1 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
3 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
4 kernels whose paths contain regex metacharacters.
5 * util/grub.d/10_kfreebsd.in: Likewise.
6 * util/grub.d/10_linux.in: Likewise.
7 * util/grub.d/20_linux_xen.in: Likewise.
9 Reported by: Heimo Stranner.
11 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
13 * docs/grub-dev.texi (Finding your way around): The build system no
14 longer uses AutoGen directly.
16 2014-06-21 Роман Пехов <roman_pekhov>
18 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
20 2014-06-21 Glenn Washburn <development@efficientek.com>
22 * util/grub-install.c: Fix handling of --disk-module.
24 2014-06-21 Stephane Rochoy <sheda>
26 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
29 2014-06-21 Stephane Rochoy <sheda>
31 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
32 EFI system table physical address.
34 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
36 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
38 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
40 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
42 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
47 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
49 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
51 Reported by: Yves Blusseau <blusseau@zetam.org>.
53 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
55 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
56 GDT in conventional memory.
58 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
60 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
61 UUID. Other parts of grub-mkconfig tolerate these, they were
62 previously allowed here up to commit
63 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
64 practice when the system has active LVM snapshots.
65 Fixes Ubuntu bug #1287436.
67 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
69 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
70 "logical_volumes" block a little more accurately.
72 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
74 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
76 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
78 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
81 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
83 Replace few instances of memcmp/memcpy in the code that should be
84 grub_memcmp/grub_memcpy.
86 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
88 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
91 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
93 btrfs: fix get_root key comparison failures due to endianness
95 * grub-core/fs/btrfs.c (get_root): Convert
96 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
98 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
100 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
102 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
103 no longer to be forgiving of trailing spaces on grub-probe output
104 lines, which among other things means that util/grub.d/10_linux.in
105 no longer detects LVM. To fix this, make grub-probe's output
106 delimiting more consistent. As a bonus, this improves the coverage
109 Fixes Debian bug #735935.
111 * grub-core/disk/cryptodisk.c
112 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
113 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
115 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
117 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
118 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
119 probe_mods): Adjust for extra user-data arguments.
120 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
121 probe_abstraction): Use configured delimiter. Update callers.
123 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
125 * util/grub-probe,c (options): Make -0 work again (broken by
127 (main): Simplify logic.
129 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
131 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
133 2014-03-26 Fu Wei <fu.wei@linaro.org>
135 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
137 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
139 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
140 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
142 Suggested by: Markus Müller.
144 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
146 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
147 if E820 failed to return any regions.
149 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
151 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
152 tables for low memory calculations.
154 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
156 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
159 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
161 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
164 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
166 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
169 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
171 Add bootpath parser for open firmware.
173 It enables net boot even when there is no bootp/dhcp server.
175 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
176 and call it at grub_ieee1275_net_config_real.
177 * grub-core/kern/ieee1275/init.c: Add bootpath to
178 grub_ieee1275_net_config.
179 * include/grub/ieee1275/ieee1275.h: Likewise.
182 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
184 Add grub_env_set_net_property function.
186 * grub-core/net/bootp.c: Remove set_env_limn_ro.
187 * grub-core/net/net.c: Add grub_env_set_net_property.
188 * include/grub/net.h: Likewise.
190 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
192 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
194 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
196 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
198 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
200 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
201 7 seconds to recover if last poweroff was bad.
203 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
205 * grub-core/disk/ahci.c: Properly handle transactions with no
208 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
210 * grub-core/disk/ahci.c: Add safety cleanups.
212 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
214 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
215 slots to avoid pointing to uninited area.
217 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
219 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
220 enabling busmaster for the end.
222 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
224 * util/grub-mkfont.c: Downgrade warnings about unhandled features
227 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
229 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
231 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
233 * .gitignore: add missing files and .exe variants.
235 2014-01-26 Mike Gilbert <floppym@gentoo.org>
237 grub-install: support for partitioned partx loop devices.
239 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
240 /dev/loopX as being the parent of /dev/loopXpY.
242 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
244 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
245 Ensure that pointers are inited to NULL and that pointers are not
248 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
250 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
251 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
252 * include/grub/emu/misc.h: ... and here.
253 * include/grub/err.h: ... and here.
254 * util/import_gcry.py: ... and here (in files g10lib.h).
256 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
258 * util/grub-mkimage.c: Make prefix argument mandatory.
260 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
262 Fix several translatable strings.
264 Suggested by: D. Prévot.
266 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
268 * util/grub-install.c: List available targets.
270 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
272 * util/grub-install.c (write_to_disk): Add an info message.
274 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
276 * Makefile.am: Allow adding extra files to generated Windows ZIP
277 archive by setting GRUB_WINDOWS_EXTRA_DIST.
279 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
281 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
282 Show detected font path in summary.
284 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
286 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
288 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
289 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
290 * grub-core/net/tftp.c (tftp_open): Likewise.
291 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
293 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
295 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
298 In net/net.c there is a while (1) that only exits if there is a stop
299 condition and more then 10 packages or if there is no package received.
301 If GRUB is idle and enter in this loop, the only condition to leave is
302 if it doesn't have incoming packages. In a network with heavy traffic
305 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
307 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
308 EPERM when modifying kern.geom.debugflags. It is only a problem for
309 such things as installing GRUB to the MBR, in which case there'll be
310 an error later anyway, not for opening files during tests.
312 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
314 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
315 instead of MOD_FILES.
316 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
317 both with and without .exe.
318 * grub-core/genemuinitheader.sh: Same.
320 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
322 * util/grub-install.c: Fix a typo.
324 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
326 * grub-core/normal/main.c (read_config_file): Buffer config file.
329 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
331 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
332 symbolic link to directory. It fails in Msys shell on Windows 2003.
334 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
336 * Makefile.am (default_payload.elf): Add modules
337 multiboot cbmemc linux16 gzio echo help.
339 2014-01-18 Mike Gilbert <floppym@gentoo.org>
341 * Makefile.util.def: Link grub-ofpathname with zfs libs.
343 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
345 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
348 Reported by: Andrey Borzenkov.
350 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
352 * include/grub/misc.h: Move macros for compiler features to ...
353 * include/grub/compiler.h: ... new file.
354 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
355 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
356 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
357 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
358 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
359 * grub-core/video/capture.c: Include <grub/misc.h>.
360 * include/grub/command.h: Include <grub/misc.h>.
361 * include/grub/dl.h: Include <grub/misc.h>.
362 * include/grub/procfs.h: Include <grub/misc.h>.
364 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
366 * configure.ac: Add support for BUILD_EXEEXT and use it ...
367 * Makefile.am: ... here.
368 * Makefile.util.def: ... and here.
369 * grub-core/Makefile.am: ... and here.
371 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
373 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
374 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
376 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
378 * grub-core/term/terminfo.c: Recognize keys F1-F12.
380 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
382 * configure.ac: Add support for BUILD_LDFLAGS.
383 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
384 * grub-core/Makefile.am: ... and here.
385 * INSTALL: Mention BUILD_LDFLAGS.
387 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
389 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
391 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
393 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
396 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
398 * NEWS: Add few missing entries.
400 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
402 * util/grub.d/00_header.in (make_timeout): Use && rather than test
404 * util/grub.d/10_windows.in: Likewise.
405 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
407 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
410 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
412 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
413 redundant preprocessor conditional.
415 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
417 * Makefile.util.def (grub-macbless): Change mansection to 8.
419 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
421 * grub-core/loader/arm64/linux.c: correctly set device path end length.
423 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
425 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
426 arm64 to comply with EFI specification. Also use grubaa64.efi for
428 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
430 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
432 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
433 on MinGW-64 when compiling for 32 bits.
435 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
437 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
439 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
441 * NEWS: Add few missing entries. Correct existing ones.
443 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
445 Don't abort() on unavailable coreboot tables if not running on coreboot.
447 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
449 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
452 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
454 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
455 mention of it from 2.02.
457 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
459 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
461 As these functions are used on pre-ARMv6 CPUs as well we don't want
462 to make assembler assume that architecture is higher than default one.
464 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
466 * NEWS: First draft of 2.02 entry.
468 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
470 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
471 * docs/grub.texi (Getting the source code): Likewise.
473 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
475 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
478 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
480 * configure.ac: Set version to 2.02~beta2.
482 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
484 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
486 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
488 * util/grub-probe.c: Improve help message and simplify list handling.
490 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
492 Fix buffer overflow in grub_efi_print_device_path.
494 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
496 Show SATA device path.
498 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
500 Revert grub-file usage in grub-mkconfig.
502 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
504 Make newly-created files other than grub.cfg world-readable.
506 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
508 * util/grub.d/00_header.in: Improve compatibility with old config.
510 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
512 Make rijndael.c respect aliasing rules.
514 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
516 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
518 Make grub_util_device_is_mapped_stat available in grub-emu core.
520 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
522 Add -Qn to TARGET_CFLAGS if it's supported.
523 Fixes compilation on cygwin.
525 Reported by: Andrey Borzenkov.
526 Suggested by: Andrey Borzenkov.
528 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
530 Save TARGET_CC version in modinfo.sh.
532 Suggested by: Andrey Borzenkov.
534 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
536 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
537 follow the same algorithm to avoid method mismatch. Don't assume
538 DMRAID- UUID to mean full disk but instead check that mapping is linear.
540 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
542 Declare GRUB_EFI_VENDOR_APPLE_GUID.
544 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
546 Dump type and vendor specific data when printing device path.
548 2013-12-23 Colin Watson <cjwatson@debian.org>
550 Update some documentation to refer to Git rather than Bazaar.
552 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
554 * po/README: Likewise. Fix spelling mistake.
556 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
558 Don't distribute config.h.
560 * Makefile.am (platform_HEADERS): Move to ...
561 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
562 failure when building from a distributed tarball.
564 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
566 * configure.ac: Fix spelling.
567 * grub-core/commands/parttool.c: Fix grammar.
568 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
569 Embedding Partition".
571 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
573 ARM64 support for grub-mkrescue.
575 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
577 Install modinfo.sh to keep build information around.
579 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
581 * grub-core/modinfo.sh.in: Add build config information.
583 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
585 ARM64 grub-file and grub-mkconfig support.
587 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
589 Remove leftover options defines.
591 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
593 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
595 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
597 * grub-core/loader/arm64/linux.c: Add missing bracket.
599 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
601 Add arm64-efi recognition to grub-file.
603 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
605 Fix ia64-efi recognition in grub-file.
607 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
609 Recognize raspberry pi kernel in grub-file.
611 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
613 Enable cache on ARM U-Boot port.
615 Without it the port is reidiculously slow.
617 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
619 Fix ARM cache maintainance.
621 More code was converted from ASM to C for easier handling.
623 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
625 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
628 Suggested by: Leif Lindholm.
630 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
632 * util/grub-mkconfig.in: Fix Xen platform conditions.
634 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
636 * util/grub-mkrescue.c: Split single help message string in several
637 strings used in previous shell version.
639 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
641 Add arm64 Linux loader.
643 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
645 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
647 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
649 Add module loading and parsing boot time checkpoints.
651 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
653 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
656 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
658 * util/grub-mkconfig.in: Skip non-executable files.
660 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
662 Workaround buggy timer in raspberry pie by using our own timer
665 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
667 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
668 Increase to 16 MiB to allow loading the whole memdisk.
670 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
672 Fix ARM Linux Loader on non-FDT platforms.
674 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
676 * configure.ac: Choose link format based on host_os on emu.
678 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
680 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
682 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
684 * grub-core/kern/emu/main.c: Build fix for emu.
686 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
688 Build fixes for argp.h with older gcc.
690 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
692 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
695 Suggested by: David Prévot.
697 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
699 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
701 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
703 Enable -Wformat=2 if it's supported.
705 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
707 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
708 -Wmissing-declarations if supported.
710 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
712 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
713 u32 as both HFS and HFS+ have 32-bit inodes.
715 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
717 * include/grub/misc.h (grub_strtol): Fix overflow.
719 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
721 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
722 as return type in both conditionals.
724 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
726 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
727 to use uint8_t for color.
729 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
731 * util/misc.c (grub_util_get_image_size): Check for overflow.
733 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
735 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
738 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
740 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
741 for pointer difference.
743 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
745 * util/import_gcry.py: Skip sample keys.
747 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
749 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
751 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
753 * configure.ac: Remove duplicate warning arguments.
755 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
757 Add missing static qualifiers.
759 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
761 Add missing includes.
763 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
765 Inline printf templates when possible to enable format checking.
767 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
769 * include/grub/crypto.h: Don't discard const attribute.
771 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
773 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
776 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
778 * grub-core/lib/crypto.c: Don't discard const attribute.
780 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
782 * grub-core/lib/disk.c: Fix potential overflow.
784 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
786 * grub-core/lib/arg.c: Don't discard const attribute.
788 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
790 * grub-core/kern/dl.c: Don't discard const attribute.
792 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
794 * grub-core/kern/disk.c: Fix potential overflow.
796 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
798 * conf/Makefile.common: Don't include non-existing directory
799 grub-core/lib/libgcrypt-grub/include.
801 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
803 Clarify several translatable messages.
805 2013-12-21 David Prévot <david@tilapin.org>
807 Correct some translatable strings.
809 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
811 * util/grub-mkrescue.c: Rephrase mkrescue description.
813 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
814 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
816 Clarify several translatable messages.
818 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
820 Be more verbose about some configure failures.
822 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
824 Fix various build problems on GNU/Hurd.
826 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
829 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
830 [__GNU__]: Add prototype.
831 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
832 long int using %ld rather than %d.
834 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
836 * util/grub-install.c: Inform user about install platform.
838 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
840 * configure.ac: Set version to 2.02~beta1.
842 2013-12-18 Allen Pais <allen.pais@oracle.com>
843 2013-12-18 Bob Picco <bob.picco@oracle.com>
845 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
847 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
849 Make grub_zlib_decompress handle incomplete chunks.
853 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
855 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
858 2013-12-18 Aleš Nesrsta <starous@volny.cz>
860 * grub-core/disk/usbms.c: Retry on unknown errors.
861 Reuse the same tag on retries.
863 2013-12-18 Aleš Nesrsta <starous@volny.cz>
865 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
867 Avoid confusing them with already completed transfers.
869 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
873 Due to XEN bug it prevents Linux boot. Remove it at least, until
876 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
878 * po/exclude.pot: Add 2 missing excludes.
880 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
882 Add missing license section in macbless.mod and macho.mod.
884 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
886 Allow compilation without thumb-interwork as long as no thumb is
887 involved or only thumb2 is used.
889 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
891 Use -Wl,--no-relax rather than -mno-relax for uniformity.
893 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
895 * INSTALL: Update comment as to why sparc64 clang isn't usable.
897 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
899 Add __attribute__ ((sysv_abi)) only if it's really needed.
901 Some compilers don't support it.
903 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
905 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
907 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
909 Remove -Wold-style-definition.
911 Not very useful and interaction of it with regexp depends on GCC
914 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
916 Make grub_util_get_windows_path_real static.
918 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
920 * grub-core/commands/fileXX.c: Silence cast-align.
921 * grub-core/loader/i386/xen_fileXX.c: Likewise.
923 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
925 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
926 rather than LL suffix.
928 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
930 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
932 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
934 * grub-core/loader/arm/linux.c: Use common initrd functions.
936 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
938 Decrease number of strings to translate.
940 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
942 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
944 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
946 Mark strings for translation and add remaining ones to exclude list.
948 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
950 * util/grub-file.c (main): Fix sizeof usage.
952 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
954 Silence spurious warning.
956 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
958 Remove check_nt_hiberfil as it's been superseeded by file command.
960 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
962 * docs/osdetect.cfg: Add isolinux config to detected OSes.
964 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
966 Implement syslinux parser.
968 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
970 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
972 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
976 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
978 Use AT keyboard on Yeeloong 3A.
980 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
982 Add Yeeloong 3A reboot and halt.
984 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
986 Add Radeon Yeeloong 3A support.
988 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
990 Add bonito 3A support.
992 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
994 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
996 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
998 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1000 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1002 * grub-core/loader/macho.c: Fix compilation on non-i386.
1004 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1006 Add missing format_arg attribute to check that printf with translated
1007 messages has proper arguments.
1009 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1011 Use grub_xasprintf to format translated error messages containing
1014 2013-12-17 Jon McCune <jonmccune@google.com>
1016 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1018 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1020 Unify message for unsupported relocation.
1022 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1024 Mark miscompile error for translation.
1026 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1028 Use %I64 and not %ll when using OS printf if compiling for windows.
1030 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1032 Update Mac code to match new register_efi prototype.
1034 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1036 Implement better integration with Mac firmware.
1038 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1040 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1043 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1045 Include serial module in default_payload.elf.
1047 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1049 Add explicit thumb interwork bx in asm files.
1051 Shouldn't matter for armv >= 5 but let's be safe.
1053 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1055 Implement Truecrypt ISO loader.
1057 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1059 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1061 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1063 Implement grub_file tool and use it to implement generating of config
1066 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1068 Change to v1 xen grants.
1070 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1072 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1074 GRUB relied on %ebx being preserved across hypercall which isn't true.
1076 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1078 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1080 GRUB relied on %rdi being preserved across hypercall which isn't true.
1082 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1084 Implement XEN VFB support.
1086 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1088 Remove grub_bios_interrupt on coreboot.
1090 It's not used currently and cannot be used safely currently.
1092 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1094 Update exclude.pot and mark few strings for translation.
1096 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1098 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1100 Reported by: Jon McCune
1102 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1104 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1105 Add verbose information which firmware directories were tried.
1107 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1109 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1110 function to optionally redirect all three standard descriptors.
1111 Redefine grub_util_exec, grub_util_exec_redirect and
1112 grub_util_exec_redirect_null to use it.
1113 * include/grub/emu/exec.h: Define it.
1114 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1115 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1116 Use grub_util_exec_redirect_all to redirect error to NULL.
1118 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1120 * grub-core/tests/sleep_test.c: Silence spurious warning.
1122 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1124 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1125 linker trying to "fixup" the code.
1127 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1129 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1131 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1133 Add support for converting PE+ to Elf64.
1135 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1137 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1139 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1141 Remove practice of assigning random const pointers to device id.
1143 This is not required as cache code already checks driver id as well.
1145 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1147 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1150 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1152 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1153 mingw or cygwin as API already matches.
1155 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1157 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1159 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1161 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1164 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1166 Handle X86_64_PC64 relocation.
1168 Those are generated by some cygwin compilers.
1170 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1172 Determine the need for mingw-related stubs at compile time rather than
1173 using not very significant $target_os.
1175 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1177 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1178 may not work with ELF.
1180 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1182 Use unix functions for temporary files and special files on cygwin.
1184 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1186 Define functions explicitly rather than using --defsym in tests
1187 whenever possible. Respect locality in remaining cases.
1189 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1191 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1193 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1195 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1196 unlikely errors when getting EFI variables and make exhaustive search
1197 for all BootNNNN variables to find matching one.
1199 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1201 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1203 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1205 New functional test for sleep function.
1207 This test allows to check sleep without qemu. Keep qemu version as
1208 well as functional test won't notice if all clocks are going too fast
1211 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1213 Add explicit sysv_abi on amd64 asm routines.
1215 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1217 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1220 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1222 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1225 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1227 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1230 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1232 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1234 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1236 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1239 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1241 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1243 In case of quick removal of loopback and adding another one it may
1244 get same ID, confusing the cache system.
1246 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1248 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1251 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1253 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1254 than converting to long.
1256 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1258 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1260 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1262 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1263 than almost useless pointer.
1265 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1267 Add gcc_struct to all packed structures when compiling with mingw.
1269 Just "packed" doesn't always pack the way we expect.
1271 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1273 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1275 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1277 * util/grub-pe2elf.c: Fix handling of .bss.
1279 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1281 Implement windows flavour of EFI install routines.
1283 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1285 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1287 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1289 Change grub_install_register_efi interface to pass GRUB device.
1291 This allows grub_install_register_efi to request partition info
1294 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1296 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1298 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1300 Do not use TCHAR string functions as they are not available on cygwin.
1302 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1304 Workaround windows bug when querying EFI system partition parameters.
1306 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1308 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1311 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1313 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1315 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1317 Make i386-* other than i386-pc compileable under cygwin.
1319 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1321 Fix definition of grub_efi_hard_drive_device_path. Take care that
1322 existing code would work even if by some reason bogus definition is
1323 used by EFI implementations.
1325 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1327 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1329 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1331 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1334 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1336 * util/config.c: Remove trailing newline from distributor in simple
1339 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1341 * include/grub/efi/api.h: Rename protocol and interface to avoid
1344 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1346 * .gitignore: add .exe variants. add missing files. remove few outdated
1349 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1351 * grub-core/osdep/exec.c: Use unix version on cygwin.
1353 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1355 Implement multiboot2 EFI BS specification.
1357 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1359 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1360 Crash happened only in some cases like a string starting at the
1361 half of the screen of same length.
1363 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1365 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1366 with EFI counterpart.
1368 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1370 Propagate the EFI commits to x86-efi specific parts.
1372 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1374 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1376 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1378 Introduce grub_efi_packed_guid and use it where alignment is not
1381 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1383 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1384 unaligned u16 rather than u8[2].
1386 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1388 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1389 for relocation range.
1391 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1393 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1394 non-function pcrel21b relocation. It happens with .text.unlikely
1397 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1399 * make MAX_USABLE_ADDRESS platform-specific
1400 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1402 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1404 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1406 2013-12-09 Jon McCune <jonmccune@google.com>
1408 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1409 in grub-install and grub-bios-setup for x86 BIOS targets.
1411 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1413 Add missing compile and link options for sparc64-emu.
1415 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1417 Implement sparc64 trampolines (needed for sparc64-emu).
1419 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1421 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1422 range of R_SPARC_HI22.
1423 Implement R_SPARC_LM22.
1425 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1427 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1428 Do not explicitly check for symbol table as it's already checked in
1429 platform-independent layer.
1431 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1433 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1434 on ia64 as __clear_cache is a dummy on ia64.
1436 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1438 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1439 Do not explicitly check for symbol table as it's already checked in
1440 platform-independent layer.
1442 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1444 * util/grub-mkconfig.in: Add missing newline to output.
1446 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1448 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1449 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1451 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1453 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1454 compilation with GCC <= 4.2.
1455 * grub-core/kern/emu/argp_common.c: Likewise.
1457 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1459 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1460 right platform rather than leaking to sparc64-emu.
1462 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1464 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1465 But ensure that the variables in question are indeed unsigned.
1467 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1469 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1471 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1473 Remove grub_memalign on emu.
1475 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1477 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1478 truncate incomplete lines but instead flushes them.
1480 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1482 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1483 and implement windows variant.
1485 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1487 Fix mips-emu compilation.
1489 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1491 * configure.ac: Check for freetype library usability.
1493 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1497 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1499 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1501 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1503 * docs/grub.texi (Environment): Update color_normal and color_highlight
1504 defaults (light-gray instead of white).
1506 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1508 * grub-core/normal/main.c (INIT): Set default color to light-gray
1509 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1510 and apparently BIOS defaults.
1512 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1514 Transform -C option to grub-mkstandalone to --core-compress available
1515 in all grub-install flavours.
1517 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1519 Merge GRUBFS and GRUB_FS variables.
1521 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1523 Revert commit 69ca97c820, it caused failures when using OS device name
1524 in grub-install. Instead just strip off parenthesis in grub-install
1525 if (hdX) was passed.
1527 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1529 * util/grub-install.c (push_partmap_module): Add helper to convert
1530 partmap names to module names and use it in probe_mods(). Fixes
1531 failure to find partmap modules in diskfilter case.
1533 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1535 * configure.ac: Make unifont mandatory on coreboot.
1537 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1539 * configure.ac: Skip unifont 6.3 pcf and bdf.
1541 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1543 * Makefile.am: Remove partial font files if generation failed.
1545 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1547 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1549 * include/grub/util/misc.h: Define it ...
1550 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1552 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1554 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1557 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1559 Don't add -mlong-calls when compiling with clang.
1561 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1563 * configure.ac: Fix a typo.
1565 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1567 Revamp relocation handling.
1569 Move more code to common dl.c. Add missing veneers for arm and arm64.
1570 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1572 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1574 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1576 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1578 * INSTALL: Raise minimum python version to 2.6.
1579 * gentpl.py: Use python3-style print function.
1581 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1583 * util/grub-install.c: Mention Boot* variable.
1585 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1587 * grub-core/osdep/linux/hostdisk.c
1588 (grub_util_find_partition_start_os): Initialise start to avoid
1589 spurious compiler warning.
1591 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1593 On Linux, read partition start offsets from sysfs if possible, to
1594 cope with block device drivers that don't implement HDIO_GETGEO.
1595 Fixes Ubuntu bug #1237519.
1597 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1599 (sysfs_partition_start): Likewise.
1600 (grub_util_find_partition_start_os): Try sysfs_partition_start
1603 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1605 * grub-core/kern/fdt.c: Update struct size when adding node.
1607 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1609 Handle unaligned .bss on sparc64.
1611 Current code improperly assumes that both __bss_start and _end are
1612 aligned to 8-bytes. Eliminating this assumption and explicitly align
1615 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1617 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1618 so it doesn't land in the middle of loaded image.
1620 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1622 * configure.ac: Move all warning options that may be absent in
1623 gcc >= 3.1 to optional.
1625 Note: while this allows to compile with older GCC, official requirements
1626 remain the same and no support for older GCC.
1628 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1630 Copying the themes directory in grub-shell isn't
1631 parallel-test-friendly and breaks on the second test when the source
1632 directory is read-only (as in "make distcheck"). Instead, add a
1633 hidden --themes-directory option to grub-mkrescue et al, and use it
1636 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1638 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1639 as it's no longer necessarry.
1641 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1643 * configure.ac: Allow compilation with older GCC for ARM.
1645 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1647 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1648 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1651 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1653 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1655 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1657 Pass font config to config.h and not by TARGET_CFLAGS as adding
1658 arguments doesn't work if TARGET_CFLAGS is specified on command
1661 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1663 * configure.ac: Add -Wvla if compiler supports it.
1665 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1667 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1668 Remove variable length arrays.
1669 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1671 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1673 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1675 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1677 * include/grub/types.h: Declare all byteswaps as inline functions
1678 except compile-time ones.
1680 Solves variable shadowing in constructions like
1681 cpu_to_le (le_to_cpu(x) + 1).
1683 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1685 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1687 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1689 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1692 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1694 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1695 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1697 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1699 * grub-core/Makefile.core.def (setjmp): Distribute
1702 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1704 Add a new timeout_style environment variable and a corresponding
1705 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1706 controls hidden-timeout handling more simply than the previous
1707 arrangements, and pressing any hotkeys associated with menu entries
1708 during the hidden timeout will now boot the corresponding menu entry
1711 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1712 generates a warning, and if it shows the menu it will do so as if
1713 the second timeout were not present. Other combinations are
1714 translated into reasonable equivalents.
1716 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1718 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1720 * util/config.c: Add missing pointer adjustment.
1721 Reported by: qwertial
1723 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1725 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1726 directly, not via `cpu' link, to fix libgrub.pp generation.
1728 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1732 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1734 * docs/grub.texi (sleep): Document exit codes.
1736 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1738 Ensure that -mno-unaligned-access or some equivalent option is used.
1740 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1745 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1747 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1749 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1751 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1752 builds, since we don't have an EPS version of font_char_metrics.png.
1753 Add leading dot to image extension per the Texinfo documentation.
1755 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1757 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1758 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1759 * util/grub-gen-widthspec.c: Likewise.
1760 * util/grub-mkfont.c: Likewise.
1762 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1764 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1765 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1766 failed to install on (hdX).
1767 * util/grub-setup.c (get_device_name): Remove, not needed after
1770 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1772 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1774 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1776 * util/grub-fstest.c: Remove variable length arrays.
1778 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1780 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1782 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1784 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1785 computing crc32 rather than handling with md fundtions directly.
1787 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1789 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1790 checking fwstart.img rather than md fundtions directly.
1792 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1794 * util/grub-mkrescue.c (main): Check that fread succeeded.
1796 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1798 * conf/Makefile.common: Remove -mexplicit-relocs and
1799 -DUSE_ASCII_FALLBACK on yeeloong.
1801 -DUSE_ASCII_FALLBACK is already added by font snippets.
1802 -mexplicit-relocs isn't needed is compiler/assemblera are
1803 configured properly.
1804 If they're not we shouldn't attempt to fix it by ourselves.
1805 Binary compare between before and after shows no difference.
1807 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1809 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1810 sources in dependencies directly.
1812 This was the only instance of "library" in core config. A bug was
1813 reported that -fno-stack-protector wasn't passed to it. Instead of
1814 figuring out why it failed just remove this construction used
1817 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1819 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1822 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1824 * docs/grub.texi (ls): Fix command description in case of a device name
1827 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1829 Eliminate variable length arrays in grub_vsnprintf_real.
1831 A bit tricky because this function has to continue to work without
1832 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1833 but make all stack references use 32-bit offset rather than 8-bit one.
1834 So split va_args preparsing to separate function and put the prealloc
1837 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1839 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1840 Fixes build for windows.
1842 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1844 * gentpl.py: Don't generate platform-dependent conditionals for
1845 platform-independent targets.
1847 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1849 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1850 references to mdadm from otherwise generic code.
1851 (grub_util_exec_pipe): Likewise.
1852 (grub_util_exec_pipe_stderr): Likewise.
1853 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1854 This function calls vgs, not mdadm; adjust variable names
1857 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1859 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1860 of Autogen. The Autogen definitions files remain intact as they
1861 offer a useful abstraction.
1863 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1865 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1866 into no-ops, and use it in programs that copy files but do not need
1867 to take special care to sync writes (grub-mknetdir, grub-rescue,
1870 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1872 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1873 than hardcoding /usr/local/bin/xorriso.
1875 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1877 Add PCI command activation to all PCI drivers as required for coreboot
1878 and maybe some other firmwares.
1880 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1882 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1883 and non-Apple variants of efiemu compile.
1885 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1887 * configure.ac: Add explicit check for linking format of
1888 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1889 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1890 hardcoding linking format.
1892 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1894 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1897 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1898 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1900 Add a --locale-directory option to grub-install and related tools.
1902 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1903 --locale-directory option.
1904 (enum grub_install_options): Add
1905 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1906 * util/grub-install-common.c (grub_install_help_filter): Handle
1907 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1908 (grub_install_parse): Likewise.
1909 (get_localedir): New function to check for a user-provided option
1910 before trying grub_util_get_localedir.
1911 (copy_locales): Use get_localedir rather than
1912 grub_util_get_localedir. Handle differing locale directory layouts.
1913 (grub_install_copy_files): Likewise.
1915 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1917 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1918 Don't rely on PATH_MAX.
1920 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1922 * grub-core/genmoddep.awk: Use more portable && rather than and.
1924 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1926 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1927 an object after data. While it doesn't seem right solution, it
1928 works well enough and OSX isn't main compilation platform.
1930 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1932 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1933 While it doesn't seem right solution, it works well enough and
1934 OSX isn't main compilation platform.
1936 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1938 * configure.ac: Add -static to LDFLAGS when using apple linker to
1939 prevent it from pulling in dynamic linker.
1941 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1943 Apple assembly doesn't handle symbol arithmetic well. So define an
1944 offset symbol in boot.S and use it.
1946 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1948 Apple assembly doesn't handle symbol arithmetic well. So instead
1949 of getting addres of kernel_sector + 4 define kernel_sector_high.
1950 It also makes code more readable.
1952 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1954 With Apple assembly in .macro environvemnt you have to use $$ instead
1955 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1956 to $$x on Apple and to $x on everything else.
1958 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1960 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1963 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1965 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1966 and non-Apple. This instruction is shorter and faster,
1967 so no reason not to use it on both.
1969 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1971 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1972 .text when compiling for Apple.
1974 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1976 * grub-core/term/arc/console.c: Add missing cast to silence warning.
1978 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1980 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
1981 %dx restore the probe worked on non-existant drive. Reorganize the
1982 code a little bit to free 2 bytes necessary for push/pop.
1984 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1986 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1987 Add missing cast to silence warning.
1989 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
1991 * util/grub-install.c (update_nvram): Support --no-nvram flag
1994 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1996 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
1998 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2000 * util/garbage-gen.c: Add missing include of sys/time.h.
2002 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2004 Don't add -mflush-func if it's not supported by compiler.
2006 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2008 Move common BIOS/coreboot memory map declarations to
2009 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2011 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2013 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2015 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2017 * INSTALL: Document why older clang versions aren't appropriate.
2019 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2021 * INSTALL: Document about clang for mips.
2023 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2025 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2028 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2030 Add *-xen to the list of grub-install-common platforms.
2032 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2034 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2037 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2041 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2043 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2044 with -mcmodel=large.
2046 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2048 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2049 range-checking for 32-bit quantities.
2051 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2053 * configure.ac: Compile with -fPIC when compiling with clang on
2056 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2058 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2059 when compiling with clang.
2061 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2063 clang emits calls to abort () under some unknown conditions.
2064 Export abort () when compiling with clang.
2066 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2068 * docs/grub-dev.texi: Document stack and heap sizes.
2070 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2072 * include/grub/i386/pc/memory.h: Decrease
2073 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2074 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2075 The binary doesn't change (checked). It's more to better reflect actual
2078 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2080 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2081 at compile time that enough of scratch size is available.
2083 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2085 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2086 Previously we misaligned stack by 8 in startup.S and compensated
2087 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2088 right behaviour is to align stack in startup.S and keep it aligned
2089 in callwrap.S. startup.S part was committed few commits before. This
2090 takes care of callwrap.S.
2091 Reported by: Gary Lin.
2093 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2095 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2096 .data and .bss. May happen if compiler and assembly use different
2099 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2101 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2104 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2106 Add support for a new magic symbol _gp_disp on mips to handle PIC
2109 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2111 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2113 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2115 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2116 when rest of GRUB is compiled for hisher stepping. Instead use
2117 .set mips3/.set mips1 around cache and sync opcodes.
2119 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2121 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2122 do essentially the same thing, do it in similar way.
2124 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2126 * util/grub-mkrescue.c (main): If a source directory is not
2127 specified, read platform-specific files from subdirectories of
2128 pkglibdir, not pkgdatadir.
2130 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2132 * grub-core/normal/progress.c: Remove unused file.
2134 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2136 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2139 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2141 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2144 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2146 * coreboot.cfg: Add missing file.
2148 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2150 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2152 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2154 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2155 selectively skipping systems.
2157 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2159 * Makefile.util.def (grub-mkimage): Add
2160 grub-core/osdep/aros/config.c to extra_dist.
2161 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2162 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2163 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2164 grub-core/gnulib-no-gets.diff.
2166 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2168 Add automated filesystem checking based on scripts I've used now for
2169 quite some time locally. Most of the test require root so they are
2170 skipped when run without necessarry privelegies.
2172 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2174 * util/grub-install.c (main): Adjust info messages to match
2175 installed paths of grub-bios-setup and grub-sparc64-setup.
2177 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2179 * util/grub-install-common.c (copy_locales): Consistently use
2180 grub_util_get_localedir () rather than LOCALEDIR.
2181 (grub_install_copy_files): Likewise.
2183 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2185 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2186 16-byte boundary, as required by the x86-64 ABI, before calling
2187 grub_main. In some cases, GCC emits code that assumes this
2188 alignment, which crashes if not aligned. The EFI firmware is also
2189 entitled to assume that stack alignment without checking.
2191 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2193 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2194 4k page boundaries as expected by firmware rather than 1k
2196 (grub_mmap_malign_and_register): Likewise.
2198 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2200 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2201 fragmentation 512M is enough.
2203 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2205 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2206 pointer to 32K. This is the size of cache element which is the most
2207 common allocation >1K. This way the pointer is always around blocks
2208 of 32K and so we keep performance while decreasing fragmentation.
2210 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2212 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2213 current memory when allocating large chunks. This significantly
2214 decreases memory fragmentation.
2216 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2218 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2220 * tests/lzocompress_test.in: Skip if lzop is not installed.
2221 * tests/xzcompress_test.in: Skip if xz is not installed.
2223 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2225 * util/grub-mkrescue.c (main): Fix typo.
2227 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2229 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2230 clock frequency to 200 MHz,
2232 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2234 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2236 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2238 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2239 Load config file from (cbfsdisk)/etc/grub.cfg.
2241 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2243 * util/grub-install-common.c (grub_install_copy_files): Fix module
2244 destination directory.
2246 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2248 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2249 files have not been built.
2251 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2253 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2254 Handle errors from mkstemp.
2255 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2257 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2259 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2260 on primary master on pseries.
2262 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2264 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2265 already loaded. This saves memory needed for tests,
2267 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2269 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2272 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2274 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2277 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2279 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2280 master since with some combinations of qemu and firmware only primary
2281 IDE channel is available.
2283 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2285 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2286 low-memory platforms where we don't have enough memory for them.
2287 * grub-core/tests/videotest_checksum.c: Likewise.
2289 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2291 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2292 already loaded. This saves memory needed for tests,
2294 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2296 Fix handling of install lists.
2298 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2300 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2302 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2304 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2305 the devices before accessing them.
2307 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2309 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2312 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2314 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2316 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2318 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2319 (grub_file_close): Free file->name.
2321 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2323 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2324 (grub_load_public_key): Likewise.
2325 (grub_verify_signature_real): Likewise.
2326 (grub_cmd_verify_signature): Likewise.
2328 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2330 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2333 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2335 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2336 (grub_longjmp): Restore r31.
2337 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2339 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2341 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2342 modules to be in line with make_image_abs.
2344 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2346 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2348 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2350 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2352 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2354 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2356 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2357 to leave some memory to firmware.
2359 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2361 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2362 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2363 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2366 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2368 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2369 now needs full arguments.
2371 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2373 * util/grub-mkrescue.c (main): Add trailing \n in
2374 .disk_label.contentDetails to be in line with previous shell script.
2376 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2378 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2380 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2382 * util/grub-install-common.c (grub_install_parse): Recognize
2383 --compress=none like shell script did.
2385 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2387 * include/grub/misc.h: Replace check for __sparc64__ with one for
2388 __sparc__ as __sparc64__ isn't actually defined.
2390 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2392 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2393 counterpart of fixing the naming of escc ports.
2395 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2397 * util/grub-install-common.c (platforms): Fix the order of entries and
2398 remove useless field val.
2400 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2402 * util/grub-install.c: Add new option --no-bootsector to skip
2403 installing of bootsector. Accept --grub-setup=/bin/true as
2404 backwards-compatible synonym.
2406 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2408 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2409 order of qsort arguments (number of elements vs. element size).
2411 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2413 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2414 the function of these files exceeds what can be sanely handled in shell
2415 in posix-comaptible way. Also writing it in C extends the functionality
2416 to non-UNIX-like OS and minimal environments.
2418 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2420 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2421 compiling to thumb2.
2422 * grub-core/kern/arm/cache_armv7.S: Likewise.
2423 * grub-core/lib/arm/setjmp.S: Likewise.
2425 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2427 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2428 in grub_uboot_syscall
2430 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2432 Decrease stack usage in lexer.
2434 We have only 92K of stack and using over 4K per frame is wasteful
2436 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2437 as macros so that compiler would remove useless structure on stack.
2438 Better solution would be to fix flex not to put this structure on
2439 the stack but flex is external program.
2441 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2443 Decrease stack usage in signature verification.
2445 We have only 92K of stack and using over 4K per frame is wasteful
2447 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2449 (grub_verify_signature_real): Likewise.
2451 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2453 Decrease stack usage in mdraid 0.9x.
2455 We have only 92K of stack and using over 4K per frame is wasteful
2457 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2460 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2462 Decrease stack usage in BtrFS.
2464 We have only 92K of stack and using over 4K per frame is wasteful
2466 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2469 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2471 Decrease stack usage in JFS.
2473 We have only 92K of stack and using over 4K per frame is wasteful
2475 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2476 stack. Note: this function is recursive.
2477 (grub_jfs_read_inode): Read only part we care about.
2479 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2481 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2484 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2486 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2488 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2490 * docs/grub.texi (Environment): Document cmdpath.
2492 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2494 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2495 Remove "unused" attribute from arguments, they are used.
2497 2013-11-15 Colin Watson <cjwatson@debian.org>
2499 * .gitignore: Only ignore grub-mk* at the top level.
2501 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2503 * util/grub-reboot.in (usage): Fix a typo.
2505 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2507 Replace libgcc version of ctz with our own.
2509 On upcoming arm64 port libgcc ctz* are not usable in standalone
2510 environment. Since we need ctz* for this case and implementation is
2511 in C we may as well use it on all concerned platforms.
2513 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2515 * configure.ac: Probe for linking format rather than guessing it based
2518 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2520 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2521 "1" prior to handoff.
2523 Reported by: M A Young.
2525 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2527 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2530 Reported by: M A Young.
2532 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2534 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2535 compilation on NetBSD.
2537 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2539 * acinclude.m4: Don't add -P on initial nm test.
2541 Note: even though this patch postdates Andrey's it bears 14 Nov as
2542 date due to timezone difference.
2544 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2546 * grub-core/Makefile.core.def (signature_test): Add missing
2549 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2551 * util/grub-install_header: Set localedir here, since this file is
2553 * util/grub-install.in: Remove setting of localedir.
2554 * util/grub-mkrescue.in: Likewise.
2556 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2558 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2560 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2562 * configure.ac: Move nm checks to the end.
2563 Call grub_PROG_NM_WORKS.
2564 * acinclude.m4: New check grub_PROG_NM_WORKS.
2565 Use $TARGET_CFLAGS -c when compiling test binary.
2567 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2569 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2572 2013-11-14 Matthew Garrett <mjg@redhat.com>
2574 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2575 cmdpath to firmware directory.
2577 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2579 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2580 at the start of second iteration.
2582 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2584 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2586 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2588 * Makefile.am (default_payload.elf): New target for easier coreboot
2591 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2593 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2594 clang (not necessarry with -no-integrated-as).
2595 * include/grub/symbol.h [__arm__]: Likewise.
2597 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2599 * configure.ac: Use -no-integrated-as on arm with clang.
2600 * INSTALL: Mention ARM compilation with clang.
2602 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2604 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2607 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2609 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2610 code for indirect block handling.
2612 Saves 185 bytes on compressed image.
2614 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2618 * Makefile.am: Remove build-grub-* in make clean.
2620 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2622 New files to gitignore.
2624 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2625 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2627 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2629 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2631 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2633 * .gitignore: fix rules for .dep* and add *.a post git migration
2635 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2637 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2640 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2642 * grub-core/kern/misc.c: Don't redirect divisions in the
2644 * include/grub/misc.h: Likewise.
2646 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2648 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2649 systems that require checking the return value of write.
2651 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2653 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2654 efibootmgr quiet when --debug is not used, rather than when it is.
2656 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2658 * gentpl.py (define_macro_for_platform_dependencies): Remove
2659 first (and thus unused) of two definitions for this function.
2660 (platform_dependencies): Likewise.
2662 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2664 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2665 functions, we only need to check this for the target, not the host.
2666 * configure.ac (grub_apple_cc): Likewise.
2668 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2670 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2671 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2672 asm to stay in arm even if surrounding is thumb.
2674 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2676 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2677 helper functions are needed for thumb.
2679 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2681 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2682 level / 3 division explicitly unsigned. Saves few bytes.
2684 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2686 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2688 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2690 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2693 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2695 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2696 grub_uboot_boot_data to asm part.
2698 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2700 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2702 (grub_uboot_syscall): Save/restore r9 and align stack.
2704 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2706 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2708 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2710 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2711 occurencies with END.
2713 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2715 * util/grub-editenv.c (help_filter, argp): Document how to delete
2716 the whole environment block.
2717 Reported by Dan Jacobson. Fixes Debian bug #726265.
2719 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2721 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2724 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2726 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2727 increment/decrement.
2729 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2731 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2732 compiling with clang.
2734 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2736 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2739 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2741 Redirect all divisions to grub_divmod64.
2743 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2745 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2747 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2749 Add missing includes of loader.h.
2751 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2753 * configure.ac: Allow disabling themes.
2755 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2757 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2759 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2761 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2762 until it becomes operational.
2764 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2766 * grub-core/Makefile.core.def (legacy_password_test): Disable
2767 on platforms where no legacycfg is compiled.
2768 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2769 load legacy_password_test.
2771 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2773 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2775 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2777 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2779 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2781 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2782 strict-aliasing warning.
2783 (fsync): Silence cast warning.
2785 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2787 * grub-core/commands/verify.c: Remove variable length arrays.
2788 Load gcry_dsa/gcry_rsa automatically.
2790 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2792 * grub-core/tests/signature_test.c: New test.
2794 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2799 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2801 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2802 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2804 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2806 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2808 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2810 * grub-core/fs/proc.c: Allow \0 in proc files.
2812 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2814 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2816 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2818 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2820 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2822 * grub-core/fs/ext2.c: Remove variable length arrays.
2824 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2826 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2829 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2831 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2832 * grub-core/disk/cryptodisk.c: Likewise.
2833 * grub-core/disk/geli.c: Likewise.
2834 * grub-core/disk/luks.c: Likewise.
2836 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2838 * grub-core/tests/legacy_password_test.c: New test.
2839 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2841 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2843 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2845 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2847 * grub-core/tests/pbkdf2_test.c: New test.
2849 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2851 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2853 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/io/lzopio.c: Remove variable length arrays.
2857 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2859 * include/grub/crypto.h: Add maximums on hash size and cipher block
2862 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2864 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2866 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2868 * grub-core/tests/xnu_uuid_test.c: New test.
2870 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2872 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2875 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2877 * grub-core/commands/hashsum.c: Remove variable length arrays.
2879 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2881 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2883 * tests/grub_func_test.in: Increase memory allocation.
2885 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2887 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2888 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2891 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2893 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2894 (grub_util_get_fd_size_os): ...this.
2895 (grub_hostdisk_flush_initial_buffer): New empty function.
2897 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2899 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2900 without --defined-only.
2902 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2904 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2905 rip-relative addressing in prologue.
2907 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2909 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2910 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2912 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2914 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2915 Add missing semicolon.
2917 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2919 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2921 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2923 * configure.ac: Check for lzma.h for enabling liblzma and allow
2926 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2928 Add missing includes of loader.h.
2930 2013-11-11 Fam Zheng <famcool@gmail.com>
2932 * util/grub.d/30_os-prober.in: Add minix entry.
2934 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2936 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2937 right buffer for temporary load.
2939 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2941 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2943 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2945 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2948 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2950 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2952 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2954 (LzmaDec_InitDicAndState): Make static.
2956 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2958 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2960 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2962 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2964 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2966 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2968 * docs/grub-dev.texi: Replace bzr references with git ones.
2970 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2972 * docs/grub.texi (Simple configuration): Remove reference to
2973 grub-reboot from saved default entry description - grub-default
2974 does not use it anymore.
2976 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2978 * configure.ac: Make efiemu test cflags match the cflags efiemu is
2981 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2983 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
2985 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2987 Fix grub_machine_fini bitrot.
2989 Reported by: Glenn Washburn.
2991 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2993 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
2995 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2997 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
2999 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3002 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3004 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3005 Add -march=core2 when testing compile of efiemu64.
3007 Thanks Andrey Borzenkov for spotting this.
3009 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3011 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3012 XEN PV environment and load kernels.
3014 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3016 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3017 * grub-core/loader/multiboot_mbi2.c: Likewise.
3019 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3021 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3024 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3026 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3028 Tested by: Denis 'GNUtoo' Carikli.
3030 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3032 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3034 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3036 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3037 Use to get rounded angle rather than truncated.
3039 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3041 * grub-core/term/serial.c: Add option for enabling/disabling
3042 RTS/CTS flow control.
3044 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3046 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3049 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3051 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3052 Use grub_fatal rather than divide by zero.
3053 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3055 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3057 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3059 (grub_fixed_fsf_divide): Likewise.
3061 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3063 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3064 division by-zero and senseless negative divisions.
3066 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3068 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3069 division by-zero and senseless negative divisions.
3070 (circprog_set_property): Don't accept negative num_ticks.
3072 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3074 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3075 division by-zero and senseless negative divisions.
3077 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3079 * configure.ac: Use elf_*_fbsd on kfreebsd.
3081 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3083 * grub-core/tests/div_test.c: New test.
3085 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3087 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3088 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3089 * grub-core/gfxmenu/view.c: Likewise.
3090 * grub-core/video/fb/video_fb.c: Introduce new functions:
3091 grub_video_set_area_status, grub_video_get_area_status,
3092 grub_video_set_region, grub_video_get_region.
3093 * grub-core/video/bochs.c: Likewise.
3094 * grub-core/video/capture.c: Likewise.
3095 * grub-core/video/video.c: Likewise.
3096 * grub-core/video/cirrus.c: Likewise.
3097 * grub-core/video/efi_gop.c: Likewise.
3098 * grub-core/video/efi_uga.c: Likewise.
3099 * grub-core/video/emu/sdl.c: Likewise.
3100 * grub-core/video/radeon_fuloong2e.c: Likewise.
3101 * grub-core/video/sis315pro.c: Likewise.
3102 * grub-core/video/sm712.c: Likewise.
3103 * grub-core/video/i386/pc/vbe.c: Likewise.
3104 * grub-core/video/i386/pc/vga.c: Likewise.
3105 * grub-core/video/ieee1275.c: Likewise.
3106 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3107 * include/grub/video.h: Likewise.
3108 * include/grub/video_fb.h: Likewise.
3109 * include/grub/fbfill.h: Updated render_target structure.
3110 grub_video_rect_t viewport, region, area
3111 int area_offset_x, area_offset_y, area_enabled
3112 * include/grub/gui.h: New helper function
3113 grub_video_bounds_inside_region.
3114 * docs/grub-dev.texi: Added information about new functions.
3116 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3118 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3121 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3123 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3125 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3127 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3129 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3130 simple division on arm and ia64.
3132 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3134 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3137 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3139 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3141 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3143 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3144 prefix symbol, not @.
3146 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3148 * INSTALL: Add note about older gcc and clang.
3150 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3152 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3154 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3156 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3157 NULL pointer dereference.
3159 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3161 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3164 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3166 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3169 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3171 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3173 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3174 * grub-core/disk/geli.c (ascii2hex): Likewise.
3176 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3178 * configure.ac: Run linker tests without -Werror.
3179 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3180 Change all occurences of -static-libgcc resp -lgcc to
3181 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3183 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3185 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3187 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3189 Allow compiling with clang (not really supported though).
3191 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3193 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3194 Add -mrtd -mregparm=3 on i386 when not using clang.
3195 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3197 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3199 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3201 * grub-core/lib/reed_solomon.c: Likewise.
3202 * include/grub/i386/gdb.h: Likewise.
3203 * include/grub/i386/pc/int.h: Likewise.
3204 * include/grub/i386/pc/pxe.h: Likewise.
3205 * include/grub/ieee1275/ieee1275.h: Likewise.
3207 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3209 Import libgcrypt 1.5.3.
3211 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3213 * configure.ac: Don't add -Wcast-align on x86.
3215 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3217 * configure.ac: Add -freg-struct-return on all platforms that
3220 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3222 * acinclude.m4: Use -Werror on parameter tests.
3223 * configure.ac: Likewise.
3225 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3227 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3229 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3231 * configure.ac: Check that -malign-loops works rather than assuming that
3232 either -falign-loops or -malign-loops work.
3234 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3236 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3238 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3240 * configure.ac: Prevent cflags leaking to subsequent tests by always
3241 resetting cflags to target_cflags in target tests.
3243 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3245 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3248 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3250 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3252 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3254 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3256 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3258 * grub-core/normal/cmdline.c (grub_cmdline_get):
3259 Remove nested functions.
3261 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3263 * tests/test_sha512sum.in: Make it work on emu.
3265 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3267 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3269 (grub_bidi_line_logical_to_visual): Likewise.
3271 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3273 Remove vestiges of -Wunsafe-loop-optimisations.
3275 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3276 -Wno-unsafe-loop-optimisations.
3277 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3279 * grub-core/io/gzio.c: Likewise.
3280 * grub-core/script/parser.y: Likewise.
3281 * grub-core/script/yylex.l: Likewise.
3282 * util/grub-mkfont.c: Likewise.
3284 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3286 * util/grub-mkfont.c (process_cursive): Remove nested function.
3288 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3290 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3291 (grub_boot_time): Likewise.
3293 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3295 * include/grub/symbol.h (FUNCTION): Use @function rather than
3297 (VARIABLE): Likewise.
3299 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3301 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3303 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3305 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3306 (parse_dhcp_vendor): Likewise.
3308 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3310 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3312 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3314 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3315 Define after defining type and not before.
3317 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3319 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3321 (grub_gcm_decrypt): Likewise.
3322 (algo_decrypt): Likewise.
3323 (grub_zfs_decrypt_real): Transform error type.
3325 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3327 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3329 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3331 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3332 (grub_usbms_cbi_reset): Likewise.
3333 (grub_usbms_bo_reset): Likewise.
3334 (grub_usbms_reset): Likewise.
3335 (grub_usbms_attach): Likewise.
3336 (grub_usbms_transfer_cbi): Likewise.
3338 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3340 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3341 "checksum = checksum;".
3343 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3348 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3350 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3353 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3355 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3357 (grub_ehci_fini_hw): Likewise.
3358 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3360 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3362 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3363 return grub_usb_err_t for cosistency. All users updated.
3365 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3367 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3368 assigning to itself.
3370 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3371 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3373 Issue separate DNS queries for ipv4 and ipv6
3375 Adding multiple questions on a single DNS query is not supportted by
3376 most DNS servers. This patch issues two separate DNS queries
3377 sequentially for ipv4 and then for ipv6.
3379 Fixes: https://savannah.gnu.org/bugs/?39710
3381 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3382 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3383 * (grub_net_dns_lookup): Now using separated dns packages.
3384 * (grub_cmd_nslookup): Add error condition.
3385 * (grub_cmd_list_dns): Print DNS option.
3386 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3387 --prefer-ipv4, and --prefer-ipv6.
3388 * include/grub/net.h (grub_dns_option_t): New enum.
3389 * (grub_net_network_level_address): option added.
3391 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3393 * grub-core/video/fb/video_fb.c: Merge two blit functions
3396 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3398 * grub-core/term/terminfo.c: Add sequences for home and end.
3400 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3402 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3405 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3407 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3410 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3412 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3413 e-mail by Per Öberg.
3415 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3417 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3420 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3422 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3424 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3426 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3428 * docs/grub.texi: Document usage of menuentry id.
3430 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3432 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3434 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3436 * grub-core/commands/i386/nthibr.c: New command.
3438 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3440 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3442 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3444 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3447 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3449 Support GRUB_DISABLE_SUBMENU config.
3451 Inspired by patch from Prarit Bhargava.
3453 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3455 * docs/grub.texi: Mention RSA support.
3457 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3459 * grub-core/commands/verify.c: Add RSA support.
3461 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3463 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3464 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3465 device is known to be ATAPI.
3467 2013-11-03 Mike Frysinger <vapier>
3469 * configure.ac: Don't add target-prefix.
3471 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3473 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3476 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3478 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3479 if language is English.
3481 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3483 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3485 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3487 * configure.ac: Don't add -m32/-m64 on emu.
3491 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3492 broken linux headers.
3494 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3496 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3498 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3500 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3501 Reed-Solomon recovery if more than half of redundancy info is 0.
3503 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3505 * util/grub-mount.c: Handle symlinks to directories.
3507 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3509 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3510 find_file recursively for symlink.
3512 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3514 * tests/util/grub-shell.in: Copy themes.
3516 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3518 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3520 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3522 * configure.ac: Use 0x8000 for address instead of 8000.
3524 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3526 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3529 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3531 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3534 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3536 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3538 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3540 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3541 file_progress_read_hook.
3542 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3544 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3546 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3549 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3551 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3553 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3555 Rewrite blocklist functions in order to get progress when
3556 reading large extents and decrease amount of blocklist hook calls.
3558 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3560 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3563 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3565 Support --base-clock for serial command to handle weird cards with
3566 non-standard base clock.
3568 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3570 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3572 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3573 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3574 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3575 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3576 + strcpy rather than strncpy.
3578 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3580 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3581 (check_pool_label): Likewise. Fixes overflow.
3582 (nvlist_find_value): Fix comparison.
3584 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3586 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3587 more appropriate functions.
3589 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3591 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3594 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3596 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3598 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3600 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3603 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3605 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3607 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3609 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3610 (initialize_tables): reset tl and td to NULL after freeing.
3612 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3614 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3616 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3618 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3621 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3625 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3630 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3632 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3633 a page in protected space.
3635 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3637 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3638 allocate space for zero-sized modules.
3640 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3642 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3644 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3646 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3648 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3650 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3651 safeguards. Fixes a crash with i386/pc/console.c.
3653 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3655 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3656 and grub_hostfs_init.
3658 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3660 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3661 windows method on other platforms without good stat as well.
3663 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3665 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3667 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3669 Make / in btrfs refer to real root, not the default volume.
3670 Modify mkrelpath to work even if device is mounted with subvolid option.
3672 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3674 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3676 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3679 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3681 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3684 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3686 * docs/autoiso.cfg: New file.
3688 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3690 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3691 COND_GRUB_PE2ELF conditions.
3693 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3695 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3696 "vnd", "rd" and "fd" disks.
3698 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3700 Move grub_disk_write out of kernel into disk.mod.
3702 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3704 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3707 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3709 * grub-core/kern/misc.c (grub_abort): Make static
3711 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3713 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3714 transform invalid unicode codepoints.
3716 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3718 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3721 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3723 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3725 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3727 Consolidate cpuid code.
3729 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3731 Move cpuid code to cpuid.h and TSC code to tsc.c.
3733 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3735 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3737 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3739 * util/grub-mkconfig.in: Replace $0 with $self.
3740 * util/grub-reboot.in: Likewise.
3741 * util/grub-set-default.in: Likewise.
3743 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3745 * docs/osdetect.cfg: New file.
3747 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3749 * tests/util/grub-shell.in: Add new --debug option.
3751 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3753 * tests/test_unset.in: New test.
3755 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3757 * tests/test_sha512sum.in: New test.
3759 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3761 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3762 * include/grub/misc.h: Remove strncat.
3763 * grub-core/lib/posix_wrap/string.h: Likewise.
3765 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3767 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3768 Try to handle more than 0xFFFF packets.
3769 Reported by: Bernhard Übelacker <bernhardu>.
3770 He also spotted few overflows in first version of this patch.
3772 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3774 * tests/date_unit_test.c: New test.
3776 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3778 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3779 of first three years after start of validity of unixtime.
3781 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3783 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3784 division as the one making more sense.
3785 (update_screen): Likewise.
3786 (complete): Likewise.
3788 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3790 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3792 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3794 Make char and string width grub_size_t rather than grub_ssize_t.
3796 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3798 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3800 (grub_history_replace): Likewise.
3802 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3804 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3807 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3809 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3812 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3814 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3815 Use unsigned divisions rather than signed variants.
3817 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3819 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3820 unsigned arithmetics.
3823 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3827 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3830 rather than signed one.
3831 (recovery): Likewise.
3833 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3837 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3839 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3842 2013-10-25 Jon McCune <jonmccune@google.com>
3844 * docs/grub.texi: Cleanup security documentation around signatures.
3846 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3848 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3850 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3852 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3855 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3857 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3858 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3859 functions when compiling for kernel.
3861 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3863 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3864 unsigned long long when using %llu.
3866 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3868 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3869 terminal after updating progress.
3871 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3873 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3874 argument. We don't disable Gate A20 in this code.
3876 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3878 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3879 Conceptually based on change in branch "vbe-on-coreboot".
3881 2013-10-24 Robert Millan <rmh@gnu.org>
3883 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3884 numeric constants with their symbolic equivalent.
3885 Taken from branch "vbe-on-coreboot".
3887 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3889 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3891 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3893 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3894 divmod64 for offset division.
3896 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3898 Rename .bzrignore to .gitignore. Add "*.o" rule.
3900 * .bzrignore: Renamed to...
3901 * .gitignore: ...this.
3903 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3905 Add new progress module that displays the load progress of files.
3907 * grub-core/lib/progress.c: New file.
3908 * grub-core/Makefile.core.def (progress): New module.
3909 * grub-core/kern/file.c (grub_file_open): File name added.
3910 * (grub_file_read): Progress hook added.
3911 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3912 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3913 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3914 * include/grub/file.h (struct grub_file): Add progress module members.
3915 * include/grub/term.h (struct grub_term_output): Likewise.
3916 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3917 Terminal velocity added.
3918 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3919 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3920 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3921 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3922 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3923 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3924 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3925 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3926 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3927 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3928 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3929 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3931 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3933 Verify signatures of signatures unless --skip-sig is specified.
3935 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3937 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3940 Saves 70 bytes on compressed image.
3942 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3944 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3947 Saves 10 bytes on compressed image.
3949 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3951 * grub-core/kern/misc.c (grub_isprint): Move to ...
3952 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3954 Saves 20 bytes on compressed image due to remving exporting.
3956 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3958 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3960 Saves 5 bytes on compressed image.
3962 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3964 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3967 Saves 379 bytes on compressed image.
3969 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3971 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3973 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3975 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
3977 Saves 40 bytes on compressed image.
3979 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3981 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
3982 mask rather than 64-bit type.
3984 Saves 20 bytes on compressed image.
3986 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3988 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
3989 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
3991 Saves 273 bytes on compressed image.
3993 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3995 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
3996 variable length arrays.
3998 Saves 50 bytes on compressed image.
4000 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4002 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4004 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4006 * grub-core/fs/ufs.c: Remove variable length arrays.
4008 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4010 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4012 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4014 * grub-core/fs/zfs.c: Remove variable length arrays.
4015 Reduces zfs.mod by 160 bytes (208 compressed).
4017 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4019 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4021 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4023 * grub-core/net/arp.c: Remove variable length arrays.
4024 * grub-core/net/bootp.c: Likewise.
4025 * grub-core/net/dns.c: Likewise.
4026 * grub-core/net/icmp6.c: Likewise.
4027 * grub-core/net/net.c: Likewise.
4029 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4031 * grub-core/fs/ntfs.c: Remove variable length arrays.
4032 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4035 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4037 * grub-core/fs/hfs.c: Remove variable length arrays.
4038 Reduces hfs.mod by 8 bytes (52 compressed).
4040 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4042 * grub-core/fs/udf.c: Remove variable length arrays.
4043 Increases udf.mod by 128 bytes (but decreases by 13 when
4046 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/fs/iso9660.c: Remove variable length arrays.
4049 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4052 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4055 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4058 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4060 * grub-core/fs/xfs.c: Remove variable length arrays.
4061 Reduces xfs.mod by 40 bytes (43 compressed).
4063 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4065 * grub-core/fs/fshelp.c: Remove variable length arrays.
4066 Reduces fshelp.mod by 116 bytes (23 compressed).
4068 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4070 * grub-core/normal/completion.c: Remove variable length arrays.
4071 * grub-core/normal/menu_entry.c: Likewise.
4073 Reduces normal.mod by 496 bytes.
4075 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4078 by 356 bytes (158 compressed).
4080 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4083 by 364 bytes (169 compressed).
4085 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4087 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4088 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4089 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4091 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4093 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4094 bitmasks to small structures of size chosen to fit in registers.
4096 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4098 * conf/Makefile.common: Use -freg-struct-return on i386. This
4099 decreases code size and improves performance.
4101 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4103 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4105 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4107 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4109 Simplify expressions to save around 256 bytes in kernel.img.
4110 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4112 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4114 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4115 Use GRUB_UTIL_FD_O_* rather than O_*.
4117 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4119 Add haiku-specific functions.
4121 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4123 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4125 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4127 Move stat () and device mode checking into OS-dependent files as
4128 long as performance doesn't suffer.
4130 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4132 Split make_system_path_relative_to_its_root into separate file
4133 relpath.c from getroot.c as it's common between unix and haiku
4134 but otherwise haiku doesn't use any functions from unix getroot.c.
4136 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4138 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4140 (grub_util_is_special_file): Likewise.
4142 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4144 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4145 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4147 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4149 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4150 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4152 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4154 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4155 (load_image): Likewise.
4157 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4159 * util/grub-render-label.c: Move backend part to ...
4160 * util/render-label.c: ... here.
4162 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4164 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4165 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4167 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4169 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4171 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4174 CD-ROM in case when it's declared as having subpartitions.
4176 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4178 Don't add -lm on haiku.
4180 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4182 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4185 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4187 * configure.ac: Use -melf_*_haiku as target on haiku.
4189 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4191 * Makefile.util.def: Add util/setup.c to extra_dist.
4193 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4195 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4196 unknown types through.
4198 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4200 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4201 (grub_util_check_char_device): Likewise.
4202 * include/grub/emu/getroot.h: Likewise.
4204 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4206 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4207 memset rather than inline static function.
4209 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4211 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4212 not doing embedded decompressor.
4214 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4216 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4218 * grub-core/kern/disk.c: Likewise.
4219 * grub-core/kern/misc.c: Likewise.
4220 * include/grub/parser.h: Likewise.
4221 * include/grub/script_sh.h: Likewise.
4222 * include/grub/zfs/zfs.h: Likewise.
4224 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4226 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4228 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4230 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4231 defined before trying to use it.
4233 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4235 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4238 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4240 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4241 Use __unused__ rather than __used__ on gcc < 3.2.
4243 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4245 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4247 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4249 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4253 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4255 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4256 * include/grub/emu/misc.h: Likewise.
4258 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4260 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4263 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4265 * grub-core/tests/checksums.h: Regenerated due to progress bar
4266 get_minimal_size changes.
4268 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4270 Added `tr' command support.
4272 * grub-core/commands/tr.c: New file.
4273 * grub-core/Makefile.core.def: Build rules for new module.
4275 * tests/grub_cmd_tr.in: New test.
4276 * Makefile.util.def: Build rules for new test.
4278 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4280 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4282 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4284 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4285 * docs/gurb.texi: Likewise.
4287 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4289 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4290 Pixmap highlighted section with east and west slices was displayed
4291 incorrectly due to negative width of the central slice.
4293 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4295 * docs/grub.texi: Graphical options information update.
4296 Removed outdated. Updated current. Inserted missed.
4298 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4300 * docs/grub.texi: Mention few new platform-specific commands.
4302 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4304 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4305 currently used so this doesn't really have any effect.
4306 Reported by: Douglas Ray <dougray>
4308 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4310 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4311 compilation but prevents gcc from displaying messages in non-Latin
4313 * conf/Makefile.common: Likewise.
4315 2013-10-16 Hiroyuki YAMAMORI
4317 Handle Japanese special keys.
4318 Reported by: Hiroyuki YAMAMORI.
4319 Codes supplied by: Hiroyuki YAMAMORI.
4321 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4323 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4325 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4327 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4328 * docs/grub.texi: Likewise.
4330 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4332 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4333 value in case of incomplete read.
4334 (grub_util_fd_write): Likewise.
4336 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4338 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4340 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4342 * util/grub-editenv.c (create_envblk_file): More from here ...
4343 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4345 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4347 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4348 canonicalize file name before doing the rest.
4350 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4352 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4355 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4357 Define grub_util_is_directory/regular/special_file and
4358 use OS-dependent versions rather than to rely on stat().
4360 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4362 * util/grub-mkimage.c: Move backend part to ...
4363 * util/mkimage.c: ... here.
4365 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4367 Allow compilation with mingw64 albeit with warnings due to lack of
4370 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4371 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4372 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4373 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4375 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4377 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4379 Remove leftover references to some of the system headers.
4381 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4383 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4386 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4388 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4391 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4393 Split out blocklist retrieving from setup.c to
4394 grub-core/osdep/blocklist.c and add windows implementation since
4395 generic version doesn't work on NTFS on Windows due to aggressive
4398 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4400 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4403 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4405 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4406 Cut tailing newline. Remove arbitrary limitation. Always use
4407 grub_util_tchar_to_utf8.
4409 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4411 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4412 * tests/printf_unit_test.c (printf_test): Add %% tests.
4413 Reported by: Paulo Flabiano Smorigo.
4415 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4417 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4420 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4422 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4423 use nvlist_lookup_string and don't use nvlist_print.
4425 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4427 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4428 closedir to handle filename charset translation.
4430 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4432 * include/grub/emu/hostdisk.h: Move file operations to
4433 * include/grub/emu/hostfile.h: ... here.
4435 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4437 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4440 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4442 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4444 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4446 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4447 and remove export.h.
4449 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4451 * grub-core/kern/emu/error.c: Removed.
4452 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4453 explicitly as it's already in libgnu.a.
4455 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4457 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4458 config-util.h include.
4460 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4462 Split emunet into platform-dependent and GRUB-binding parts. Keep
4463 platform-dependent part in kernel for easy access to OS functions.
4465 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4467 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4470 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4472 * grub-core/osdep/windows/emuconsole.c: New file.
4474 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4476 * conf/Makefile.extra-dist: Add osdep/*/init.c
4478 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4480 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4482 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4484 * util/grub-probe.c (probe): Separate different drives in hint-str
4485 by spaces and not newlines.
4486 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4488 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4490 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4493 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4495 Pass-through unknown E820 types. It required reorganisation of mmap
4498 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4500 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4502 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4504 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4507 2013-10-14 qwertial <qwertial>
4509 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4511 2013-10-14 Jon McCune <jonmccune@google.com>
4513 * docs/grub.texi: Document new signatures possibility.
4515 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4517 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4519 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4521 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4523 (grub_util_tchar_to_utf8): Likewise.
4525 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4527 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4528 * grub-core/kern/emu/main.c: Add missing include.
4529 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4530 Don't call grub_util_init_nls.
4531 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4534 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4536 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4539 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4541 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4543 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4545 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4547 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4549 Add a wrapper for fopen. On unix-like systems just pass-through. On
4550 windows use unicode version.
4552 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4554 Move set_program_name and init_nls to host_init. On windows
4555 fix in this fuction console and argument charset as well.
4557 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4559 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4560 GRUB_ENABLE_CRYPTODISK.
4562 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4563 GRUB_ENABLE_CRYPTODISK.
4564 * util/grub-mkconfig_lib.in: Likewise.
4566 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4568 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4570 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4572 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4573 error when enabling debug.
4575 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4577 * configure.ac: Use -melf_*_obsd on openbsd.
4579 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4581 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4583 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4585 * include/grub/misc.h: Use gnu_printf rather than printf as format
4586 template since our functions are independent of libc.
4588 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4590 * util/grub-setup.c (setup): Move copying of partition table as
4591 futher up as possible to avoid possible overwrite by floppy routines.
4593 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4595 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4597 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4599 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4600 * docs/grub.texi: Likewise.
4602 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4604 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4605 it's mostly unused. Move vestiges to the callers.
4607 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4609 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4610 version of salt and hash. Use grub_snprintf rather than snprintf.
4612 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4614 * docs/grub.texi: Fix problem with braces.
4616 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4618 * conf/Makefile.extra-dist: Fix extra-dist list.
4619 * grub-core/Makefile.core.def: Likewise.
4621 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4623 * docs/grub.texi: Document disk names used on Windows and AROS.
4625 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4627 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4629 * grub-core/osdep/aros/hostdisk.c: Likewise.
4631 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4633 Avoid including hostfile.h when not necessarry as it pulls
4634 in OS-specific headers which may redefine generic names
4637 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4639 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4640 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4641 scrollbar_bottom_pad
4642 * docs/grub.texi: Likewise.
4644 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4646 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4648 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4650 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4652 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4654 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4656 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4659 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4661 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4664 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4666 Move OS-specific driver configuration to grub_util_fd_open. This
4667 moves OS-dependent parts from kern/emu/hostdisk.c to
4668 grub-core/osdep/*/hostdisk.c.
4670 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4672 * util/grub-mkimage.c (generate_image): Use size_t instead of
4674 * util/grub-mkimagexx.c (locate_sections): Likewise.
4675 (load_image): Likewise.
4677 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4679 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4681 (grub_util_write_image): Likewise.
4683 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4685 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4686 get random when no RNG is available.
4687 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4689 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4691 * include/grub/util/lvm.h: Removed.
4693 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4695 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4696 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4698 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4700 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4702 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4704 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4706 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4708 * grub-core/net/drivers/emu/emunet.c: Move to ..
4709 * grub-core/osdep/linux/emunet.c: ..here.
4711 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4713 * util/ieee1275/ofpath.c: Move to ...
4714 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4715 * grub-core/osdep/basic/ofpath.c: ..here.
4717 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4719 Move password-querying (util-version) routines to grub-core/osdep.
4721 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4723 Move sleep routines to grub-core/osdep.
4725 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4727 Move OS-dependent files to grub-core/osdep and document it.
4729 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4731 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4732 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4734 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4736 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4738 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4740 * util/misc.c: Remove leftover inclusion of malloc.h.
4742 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4744 * include/grub/setjmp.h: Remove leftover GRUBOF.
4746 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4748 * util/raid.c: Fold into ...
4749 * util/getroot_linux.c: ... here. Make all functions static.
4751 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4753 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4754 macros to GRUB ones.
4756 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4758 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4759 occasional bug. If there are too many boot entries or too low
4760 scrollbar height then we need to use another formula to calculate
4761 the position and size of the scrollbar thumb.
4763 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4765 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4767 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4769 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4770 * docs/grub.texi: Likewise.
4772 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4774 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4777 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4779 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4780 minimal width calculations.
4782 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4784 * docs/grub.texi: Update note on colors on emu console.
4786 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4788 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4789 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4790 it's FS and not GRUB limitation.
4792 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4794 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4796 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4798 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4800 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4802 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4803 kernels by version order.
4805 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4807 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4809 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4811 Add AROS hostdisk and getroot routines.
4813 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4815 Make cryptodisk and diskfilter probe data retrievable programmatically
4816 and not just printable.
4818 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4820 Split random retrieving code into separate files.
4822 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4824 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4827 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4829 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4831 * grub-core/tests/fake_input.c: Likewise.
4832 * grub-core/tests/cmdline_cat_test.c: Likewise.
4834 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4836 * grub-core/video/capture.c: Do not do finalization when .fini
4837 is called as there is explicit capture_end.
4839 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4841 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4842 changing windows to avoid crash.
4844 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4846 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4848 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4850 * po/exclude.pot: Add several strings to exclude.
4852 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4854 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4856 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4858 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4859 ./util/grub-gen-asciih.c to exclude list.
4861 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4863 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4864 and don't mark error strings for translation.
4866 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4868 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4869 properly in case of missing block size.
4871 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4873 * grub-core/lib/arm/setjmp.S: Add missing license section.
4875 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4877 * po/swiss.sed: Add replacement for key names and for term computer.
4879 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4881 * grub-core/gfxmenu/theme_loader.c: New global options for the
4882 theme background image handling. desktop-image-scale-method,
4883 desktop-image-h-align, desktop-image-v-align.
4884 * grub-core/gfxmenu/view.c: Likewise.
4885 * include/gfxmenu_view.h: Likewise.
4886 * include/bitmap_scale.h: Proportional scale functions introduced.
4887 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4888 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4889 cases of unexpected input variables for scale functions.
4890 * docs/grub.texi: Updated documentation for new options.
4892 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4894 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4896 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4898 * grub-core/tests/checksums.h: Corrected due to changes in
4899 bilinear interpolation function.
4901 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4903 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4904 to eliminate artefacts in bilinear interpolation.
4906 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4908 * grub-core/video/readers/tga.c: Support paletted tga.
4910 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4912 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4913 incorrect cbcr setting when in color mode.
4915 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4917 * grub-core/video/readers/png.c: Support paletted images and clean up
4920 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4922 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4923 usage of wrong table which resulted in mishandling of 4-byte
4926 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4928 * grub-core/term/terminfo.c: Add Home and End key sequences.
4930 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4932 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4933 Fix formula for computing total number of bytes.
4935 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4937 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4938 image processing, fix big-endian and support grayscale.
4940 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4942 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4943 Correctly will with maximum transparency when using index color.
4945 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4947 * grub-core/video/readers/png.c: Support grayscale
4949 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4951 * grub-core/video/readers/jpeg.c: Support grayscale.
4953 2013-09-26 Jon McCune <jonmccune@google.com>
4955 * grub-core/commands/loadenv.c: Support skipping signature check
4956 and variable names filtering.
4958 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4960 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4961 * grub-core/kern/emu/hostfs.c: Likewise.
4962 * util/getroot_unix.c: Likewise.
4964 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4966 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4967 Migrate all explicit defines to this new one.
4969 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4971 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4972 grub_util_fd_strerror when using grub_util_fd_*.
4973 (grub_util_fd_open_device): Likewise.
4974 (grub_util_biosdisk_read): Likewise.
4975 (grub_util_biosdisk_write): Likewise.
4976 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
4977 (grub_util_fd_strerror): Likewise.
4978 (grub_util_fd_sync): Likewise.
4979 (grub_util_fd_close): Likewise.
4980 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
4981 (grub_util_fd_close): Likewise.
4982 (grub_util_fd_strerror): Likewise.
4983 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
4984 function proto rather than macro.
4985 (grub_util_fd_sync): Likewise.
4986 (grub_util_fd_open): Likewise.
4987 (grub_util_fd_strerror): New proto.
4989 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4991 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
4992 platforms on which it doesn't work.
4994 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4996 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
4997 stat immediately to where it's used.
4999 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5001 * util/getroot.c (grub_util_check_block_device): Move to ...
5002 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5003 * util/getroot.c (grub_util_check_char_device): Move to ...
5004 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5006 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5008 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5011 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5013 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5015 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5017 * docs/grub.texi (File name syntax): Document ZFS filenames
5018 (/volume@snapshot/...).
5020 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5022 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5023 Always return full path. Fixes a problem with mkrelpath.
5025 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5027 * util/grub-install.in: Add GPT PReP support.
5028 * util/grub-probe.c (probe): Support GPT partition type.
5029 (main): Support -t gpt_parttype.
5031 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5033 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5035 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5037 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5039 2013-09-23 Tim Hardeck <thardeck>
5041 * util/grub.d/10_hurd.in: Filter out character for the class.
5042 * util/grub.d/10_kfreebsd.in: Likewise.
5043 * util/grub.d/10_linux.in: Likewise.
5044 * util/grub.d/20_linux_xen.in: Likewise.
5046 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5048 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5051 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5053 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5056 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5058 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5059 doesn't use posix_wrap. Keep literal -fno-builtin however.
5061 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5063 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5065 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5068 * configure.ac: Do not enable -Wmissing-noreturn as its
5069 usefulness is limited and creates problems on some OS notably with
5070 code generated by bison.
5072 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5075 * configure.ac: Do not explicitly enable -Waddress as it's not
5076 supported by all gcc and when it is, it's already enabled by -Wall.
5078 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5080 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5081 desactivated use of EDID at all.
5083 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5086 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5087 video if no text is available.
5089 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5092 * configure.ac: Substitute TARGET_RANLIB.
5094 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5097 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5099 Based on patches from AROS.
5101 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5104 * grub-core/Makefile.am: Override STRIP and RANLIB.
5105 * configure.ac: compute TARGET_RANLIB.
5106 * INSTALL: Document TARGET_RANLIB
5108 Based on patches from AROS.
5110 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5112 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5113 that floppies are unpartitioned.
5115 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5117 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5118 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5120 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5122 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5123 less nice but more portable.
5124 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5126 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5128 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5130 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5132 (grub_cryptodisk_cheat_insert): Likewise.
5133 (grub_cryptodisk_close): Likewise.
5135 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5137 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5138 Use windows path for DEFAULT_DIRECTORY.
5140 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5142 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5143 difference was likely just gcc version, not anything mingw-related.
5145 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5147 Use Winapi on both cygwin and mingw32 to share more code between both.
5149 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5151 * util/grub-install.in: Add --grub-editenv option.
5152 * util/grub-install_header (grub_compress_file): Explicitly check for
5153 plain file to avoid cp error.
5155 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5157 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5158 names; fix LVM driver name (lvm, not lv).
5159 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5162 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5164 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5165 files rather than one file with loads of #if's.
5166 * util/getroot.c: Likewise.
5168 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5170 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5172 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5174 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5175 GNU/Hurd to the list of checked PRNG.
5177 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5179 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5181 2013-09-21 Ales Nesrsta <starous@volny.cz>
5183 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5185 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5187 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5188 * grub-core/disk/lvm.c: Add LVM UUIDs.
5189 * util/getroot.c: Use LVM UUIDs whenever possible.
5191 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5193 * docs/grub.texi (Networking commands): Add documentation for
5194 network related commands.
5196 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5198 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5199 to determine if device is handled by devmapper.
5200 (convert_system_partition_to_system_disk): Likewise.
5201 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5202 already done in grub_util_open_dm.
5204 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5206 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5207 Clean up stack manipulation (sync_caches_armv*)
5209 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5211 * util/lvm.c: Remove since unused. Remove remaining references.
5213 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5215 Handle the case of partitioned LVM properly.
5217 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5218 Stop on meeting LVM, mpath or DMRAID.
5219 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5220 (read_device_map): Likewise.
5221 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5222 device is full disk rather than erroring out on LVM and similar cases.
5224 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5226 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5228 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5230 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5232 Reported by: Leif Lindholm
5234 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5235 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5237 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5240 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5242 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5243 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5245 2013-09-18 Douglas Ray <dougray@cpan.org>
5247 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5250 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5252 * docs/grub.texi: Fix broken link.
5254 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5256 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5257 to break endless loop.
5259 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5261 * util/grub-fstest.c: Fix several printf formats.
5262 * util/grub-mkimage.c: Likewise.
5263 * util/grub-mkimagexx.c: Likewise.
5264 * util/grub-script-check.c: Likewise.
5266 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5268 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5271 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5273 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5275 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5277 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5278 removed in current versions cygwin_conv_*.
5280 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5282 * configure.ac: Disable efiemu runtime on cygwin.
5284 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5286 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5287 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5289 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5291 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5294 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5296 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5298 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5301 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5303 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5304 when on x86 and not cygwin.
5305 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5308 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5310 * configure.ac: Set CPP to build one when checkoing for freetype for
5313 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5315 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5316 [!GRUB_BUILD]: Remove has_argument.
5318 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5320 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5321 Replace with a dummy.
5323 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5325 * configure.ac: Don't change host_os from mingw to cygwin.
5327 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5329 * configure.ac: Change target_os from windows to cygwin.
5331 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5333 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5335 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5336 (build-grub-gen-asciih): Likewise.
5337 (build-grub-gen-widthspec): Likewise.
5338 * Makefile.util.def (grub-pe2elf): Remove.
5339 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5340 * configure.ac: Separate tests for build.
5341 Move ./build-grub-pe2elf to grub-core.
5343 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5344 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5346 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5348 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5349 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5350 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5352 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5354 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5355 mingw32 as well based on grub_util_get_disk_size.
5356 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5357 grub_util_get_fd_size.
5359 (fsync): Moved to ...
5360 * grub-core/kern/emu/misc.c (fsync): ... here.
5362 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5364 * include/grub/mm.h (grub_extend_alloc): Remove.
5365 * grub-core/loader/i386/pc/plan9.c: Use own version of
5366 grub_extend_alloc with appropriate types.
5368 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5370 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5372 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5374 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5376 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5378 Fix dependencies on cygwin.
5380 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5381 dependencies when used and defined.
5382 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5384 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5386 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5387 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5389 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5391 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5392 implementation available to cause compile-time rather than runtime
5395 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5397 * util/grub-fstest.c: Don't check for symlinks on windows.
5399 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5401 * INSTALL: Mention unavailability of man pages when cross-compiling.
5403 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5405 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5407 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5409 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5411 * INSTALL: Document cross-compilation.
5412 * acinclude.m4: Determine whether nm support -P and --defined-only.
5413 * configure.ac: Add TARGET_ to all variables pertaining to target
5414 that don't have it yet.
5415 * gentpl.py: Likewise.
5416 * grub-core/Makefile.am: Likewise.
5417 * grub-core/genmod.sh.in: Likewise.
5418 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5421 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5423 * configure.ac: Remove -Wempty-body. It's not essential and needs
5426 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5428 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5429 * util/getroot.c: Likewise.
5431 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5433 * grub-core/disk/ahci.c: Add needed explicit cast.
5434 * grub-core/lib/backtrace.c: Likewise.
5435 * grub-core/net/ip.c: Likewise.
5436 * grub-core/net/tcp.c: Likewise.
5437 * grub-core/net/udp.c: Likewise.
5439 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5441 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5443 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5445 * util/import_gcry.py: Add final newline in visibility.h.
5447 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5449 * conf/Makefile.common: Fix typo.
5451 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5453 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5455 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5457 * Makefile.am (widthspec.h): Fix typo.
5458 * util/grub-gen-widthspec.c: Likewise.
5460 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5462 Move ascii.h and widthspec.h generation to a separate build-time-only
5465 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5467 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5468 Always fill bootdisk info and improve check for NetBSD disklabel.
5470 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5472 * conf/Makefile.extra-dist: Add util/bin2h.c.
5473 Reported by: floppym.
5475 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5477 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5479 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5481 * configure.ac: Disable unifont and starfield if no freetype was found.
5483 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5485 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5486 on NetBSD and OpenBSD.
5488 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5490 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5492 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5494 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5495 reduced. Inheritant options are processed during the theme loading.
5497 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5499 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5501 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5503 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5505 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5507 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5510 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5512 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5513 remove-potcdate.sed.
5515 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5517 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5518 unused attribute from pull argument.
5520 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5522 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5525 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5527 * util/getroot.c (pull_lvm_by_command): add --separator option
5528 to vgs call to disable padding of output to 10 characters.
5530 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5532 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5534 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5537 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5539 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5542 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5544 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5545 full Canadian cross. Tested with build=x86_64, host=arm,
5546 target=ppc-ieee1275.
5548 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5550 * configure.ac: Error if no $BUILD_CC could be found.
5553 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5555 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5558 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5560 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5561 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5563 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5565 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5566 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5567 falling back to the partition device, otherwise a later call to this
5568 function may fail spuriously.
5569 Reported by Axel Beckert. Fixes Debian bug #708614.
5571 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5573 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5575 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5577 Prevent shadowing of stdlib's devname(3) on BSD.
5579 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5580 and devlast to diskname and disklast, respectively.
5582 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5584 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5586 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5588 * docs/grub.texi: Introduce terminal window position options:
5589 terminal-left: terminal window's left position
5590 terminal-top: terminal window's top position
5591 terminal-width: terminal window's width
5592 terminal-height: terminal window's height
5593 terminal-border: terminal window's border width
5594 * grub-core/gfxmenu/theme-loader.c: Likewise.
5595 * include/grub/gfxmenu_view.h: Likewise.
5596 * po/exlude.pot: Likewise.
5597 * grub-core/gfxmenu/view.c: Likewise.
5598 Also updated minimal window size.
5599 Also terminal_sanity_check function has been introduced.
5600 * grub-core/tests/checksums.h: Update (terminal window height
5601 is adjusted now for low resolution screen)
5603 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5605 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5608 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5610 * po/exclude.pot: Add few recent exceptions.
5612 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5614 * tests/grub_func_test.in: Add unicode.pf2.
5616 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5618 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5619 standard rather than noral color, in line with other terminals.
5621 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5623 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5626 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5628 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5630 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5632 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5633 inappropriate printf.
5635 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5637 * .bzrignore: Remove grub-core/lib/dtc-grub,
5638 grub-core/Makefile.libfdt.def
5639 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5641 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5643 * include/grub/video.h (grub_video_register): Keep double-linked as
5644 well as single-linked invariants.
5645 Reported by: qwertial.
5647 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5649 * grub-core/commands/nativedisk.c (get_uuid): Handle
5650 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5652 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5654 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5655 maximum of NW, N, NE heights instead of N's height and maximum of
5656 NW, W, SW widths instead of W's width. (So the box will be always
5659 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5661 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5662 Fix misuse of variable count.
5664 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5665 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5666 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5668 New ports to arm-uboot and arm-efi.
5669 Mostly by Leif Lindholm with some additions from
5670 Francesco Lavra and cleanup by Vladimir Serbinenko.
5672 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5674 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5676 Reported by: Leon Drugi.
5678 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5680 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5681 Reported by: Paulo Flabiano Smorigo.
5683 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5685 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5687 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5689 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5691 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5693 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5695 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5697 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5699 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5701 * grub-core/net/bootp.c: Export net_* variables.
5702 * grub-core/net/net.c: Likewise.
5704 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5706 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5708 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5710 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5712 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5714 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5716 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5718 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5720 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5722 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5725 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5727 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5730 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5732 * grub-core/fs/zfs/zfs_lz4.c: New file.
5733 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5735 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5737 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5739 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5741 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5742 (check_pool_label): Likewise.
5743 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5745 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5747 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5749 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5751 * docs/grub.texi (Commands): Document postition parameters
5752 for menuentry command.
5754 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5756 * util/grub-mknetdir.in: Remove stray line from help output.
5758 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5760 Remove early sm712 init as there is no reason for it (the "watchdog"
5761 effect was due to wrong GPIO map).
5763 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5765 * grub-core/commands/pcidump.c: Remove static variables.
5767 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5769 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5771 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5773 * configure.ac: Move delimiter after the infos.
5775 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5777 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5779 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5781 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5782 not filling whole 8x16 space.
5784 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5786 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5788 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5790 * configure.ac: Indicate which liblzma is used if any.
5792 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5793 2013-06-21 Craig Sanders <savannah@taz.net.au>
5795 * util/grub-reboot.in: Document submenu usage.
5797 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5799 * .bzrignore: Update with a number of new test-related files.
5801 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5803 * util/grub-script-check.c: Fail on scripts containing no
5804 commands, to guard against corrupted grub-mkconfig setups that
5805 produce no useful output.
5806 * tests/grub_script_no_commands.in: New test.
5807 * Makefile.util.def (grub_script_no_commands): Add.
5808 Reported by Hans Putter. Fixes Debian bug #713886.
5810 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5812 * grub-core/disk/diskfilter.c: Forgot to remove comment
5813 from previous commit.
5815 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5817 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5818 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5820 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5822 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5824 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5826 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5827 rescan diskfilter devices until nothing new is found.
5829 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5831 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5833 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5835 Don't try to detect cbfs on *-emu.
5837 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5839 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5841 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5843 Add support for processed coreboot payload chainloading.
5845 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5847 Enable coreboot information commands even when not loaded as
5848 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5850 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5852 Support for cbfs. Also factor out the part which is common
5853 for all archives to a separate module. This splits tar from cpio
5854 as they are very different but keeps cpio, cpio_be, odc and newc
5855 together since they're very similar.
5857 2013-06-15 David Michael <fedora.dm0@gmail.com>
5859 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5860 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5862 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5864 * tests/grub_script_eval.in: Really add the eval test.
5866 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5868 Move flavour-specific parts out of common cpio.c file and
5869 rename remaining to cpio_common.c
5871 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5873 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5874 off new function grub_script_execute_new_scope. Change callers to use
5875 either of them as appropriate.
5876 * grub-core/commands/eval.c: New command eval.
5877 * docs/grub.texi (Commands): Document it.
5879 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5881 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5882 to fetch values when listing.
5884 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5886 Fix make dist on non-pc.
5888 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5890 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5891 without a device name.
5893 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5895 Remove enable_executable_check as it's not needed anymore.
5896 Reported by: dougray.
5898 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5900 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5901 ambigouos RAID before discovering RAIDs on top of it.
5904 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5906 Fix typo (failback vs fallback).
5908 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5910 * util/grub.d/30_os-prober.in: Add support for probing EFI
5911 System Partition (as of os-prober 1.58).
5913 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5915 * configure.ac: Add yet another path to unifont. For parabola.
5917 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5919 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5920 handling to copy the killed characters to the kill buffer as
5921 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5922 stored as char. Eliminates UCS4 truncation and corruption
5923 observed when killing characters with Ctrl-u and yanking them
5926 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5928 Detach optional parts of gfxterm and integrate in with coreboot init.
5930 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5932 Move blit and fill dispatcher to appropriate files to decrease export
5933 and relocation overhead.
5935 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5937 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5940 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5942 * grub-core/Makefile.am: Fix compilation problem with some
5945 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5947 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5949 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5951 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5954 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5956 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5959 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5961 * grub-core/partmap/dfly.c: New partition map.
5963 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5965 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5967 Reported by: Francesco Lavra.
5969 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5971 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5972 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5974 * conf/Makefile.common: define dist_grubconf_DATA
5976 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5978 Progressively skip menu elements on small terminals rather
5981 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5983 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5984 to avoid losing last column.
5986 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5988 * po/exclude.pot: Add missing string "%C".
5990 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5992 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
5995 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5997 * util/grub-install.in: Gettextize "Not found" message.
5999 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6002 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6004 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6006 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6008 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6010 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6012 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6014 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6016 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6017 attribute since structure is not necessarily aligned.
6019 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6021 * docs/grub.texi (Device syntax): Clarify description of network
6024 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6026 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6027 for vasprintf presence.
6029 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6031 * util/grub-install.in: Handle efibootmgr presence check.
6032 Reported by: Leif Lindholm.
6034 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6036 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6037 new strings to translate.
6039 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6041 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6042 yet another string (pun intended) to translate.
6044 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6046 * po/POTFILES-shell.in: Autogenerate it.
6048 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6050 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6052 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6054 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6057 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6059 * docs/grub.texi (Network): Add description of net_default_interface,
6060 net_default_ip and net_default_mac. Rewrite variables description
6061 to emphasize that they are per-interface.
6063 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6065 New test: cmdline and cat.
6067 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6069 * grub-core/commands/cat.c: Show UTF-8 characters.
6071 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6073 * conf/Makefile.common: Poison float and double on non-emu.
6075 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6077 * configure.ac: Don't disable extended registers on emu.
6079 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6081 * configure.ac: Don't use extended registers on x86_64.
6082 Reported by: Peter Jones.
6084 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6086 * grub-core/term/efi/console.c: Fix compile error.
6088 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6090 Compressed HFS+ support.
6092 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6094 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6097 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6101 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6103 * grub-core/tests/setjmp_test.c: New test.
6105 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6107 New variables 'net_default_*' to determine MAC/IP of default interface.
6109 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6111 * tests/gettext_strings_test.in: A test to check for strings not
6112 marked for translation.
6114 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6116 * autogen.sh: Exclude unused libgcrypt files from translation.
6118 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6120 Simplify few strings.
6122 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6124 Mark few forgotten strings for translation.
6126 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6128 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6131 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6133 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6135 * grub-core/video/readers/tga.c: Likewise.
6137 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6139 * tests/priority_queue_unit_test.cc: New test.
6141 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6143 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6146 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6148 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6149 variable for one time boot menu entry.
6151 2013-05-05 Bean <bean123ch@gmail.com>
6153 * grub-core/commands/testspeed.c: New command testspeed.
6155 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6157 Factor-out human-size printing.
6159 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6161 Agglomerate more mallocs to speed-up gfxterm.
6163 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6165 Speed-up gfxterm by slightly agglomerating mallocs.
6167 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6171 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6173 Speed-up gfxterm by saving intermediate results in index+alpha
6176 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6178 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6181 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6183 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6184 line of timeout as it may contain the rest of long line.
6186 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6188 * grub-core/normal/main.c: Fix freed memory dereference.
6190 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6192 Fix several memory leaks.
6194 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6196 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6198 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6200 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6202 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6204 Fix test -a and -o precedence.
6205 Reported by: adrian15.
6207 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6209 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6211 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6213 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6214 and add it as source to functional_test module.
6216 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6218 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6220 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6222 New series of tests for gfxterm and gfxmenu.
6224 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6226 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6227 the theme path relative to $prefix/themes.
6229 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6231 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6233 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6235 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6237 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6240 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6242 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6243 grub_gfxmenu_timeout_notifications.
6244 (grub_gfxmenu_view_destroy): Likewise.
6246 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6248 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6250 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6252 Several fixes to ieee1275 and big-endian video.
6254 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6256 Add missing exports on mips.
6258 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6260 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6261 if no unifont is found.
6262 Restore original keyboard.
6264 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6266 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6267 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6269 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6271 First automated video test (running videotest and comparing results)
6273 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6275 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6276 instead of 2 to have full RGB/CMY test pattern.
6278 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6282 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6284 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6285 ARCS. All users updated.
6287 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6289 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6291 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6293 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6295 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6297 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6298 Reported by: qwertial.
6300 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6302 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6303 with syntax "XXX deg"/"XXX °".
6305 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6307 Make PCI init in i386-qemu port more robust.
6309 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6311 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6312 cached view is reused.
6313 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6316 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6318 Unify more code in grub-install_header.
6320 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6324 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6326 Enforce disabling of firmware disk drivers when native drivers kick in.
6328 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6330 * grub-core/commands/nativedisk.c: Customize the list of modules on
6331 platform. Don't try to search for disks already using native drivers.
6333 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6335 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6338 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6340 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6341 handling of variables containing backslash.
6343 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6345 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6347 Reported by: qwertial.
6349 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6351 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6353 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6355 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6357 Reported by: qwertial.
6359 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6361 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6363 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6365 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6367 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6369 New command `nativedisk'.
6371 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6373 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6374 * grub-core/loader/i386/bsd.c: Likewise.
6376 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6378 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6380 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6382 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6383 grub_get_unaligned16 rather than shifts.
6385 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6387 * grub-core/kern/file.c: Use const char * rather than casting to
6390 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6392 * grub-core/commands/probe.c: Add missing grub_device_close.
6394 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6396 * INSTALL: Document linguas.sh.
6398 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6400 Remove POTFILES.in and regenerate it in autogen.sh.
6402 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6404 Move --directory/--override-directorry to grub-install_header and unify.
6406 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6408 * grub-core/term/morse.c: Macroify dih and dah.
6410 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6412 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6414 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6416 * grub-core/term/ns8250.c: Systematically probe ports by writing
6417 to SR before using them.
6419 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6421 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6423 (check_sas): Get sas_adress info.
6425 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6427 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6430 2013-04-27 Leon Drugi <eyak>
6432 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6435 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6437 Core compression test.
6439 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6441 Implement grub_machine_get_bootlocation for ARC.
6443 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6445 Improve AHCI detection and command issuing.
6447 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6451 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6453 Make 'make check' work on emu.
6455 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6457 Replace libcurses with our own vt100 handling for the ease of testing
6458 and decreasing prerequisites.
6460 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6462 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6464 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6466 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6467 compile when not needed.
6469 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6471 * tests/pseries_test.in: New test.
6473 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6475 Add test to check that different boot mediums work.
6477 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6479 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6480 ofw limited ISO support.
6482 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6484 * configure.ac: Fix loongson conditional.
6486 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6490 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6492 Add serial on ARC platform.
6494 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6496 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6499 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6501 * tests/partmap_test.in: Add missing double semicolon.
6503 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6505 * util/grub-mkrescue.in: Fix loongson filename.
6507 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6509 * util/grub-mkrescue.in: Move all files that don't have a location
6510 set in stone under /boot/grub. Use ISO hard links rather than copies
6513 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6515 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6518 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6520 Make check work on mips-arc.
6522 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6524 * util/grub-mkrescue.in: Alias sashARCS as sash.
6526 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6528 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6531 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6533 * util/grub-install.in: Fix target fo qemu_mips.
6534 Fix extension on EFI.
6536 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6538 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6539 in front of chosen entry to mark it even if highlighting is lost.
6541 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6543 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6544 gfxpayload=keep if cbfb is active.
6546 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6548 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6550 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6552 Add missing video ids to coreboot and ieee1275 video.
6554 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6556 * util/grub-mkrescue.in: Add mips-arc support.
6558 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6560 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6562 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6564 Move mips-arc link address. Previous link address was chosen
6565 in belief that RAM on SGI platforms grows down while in fact it
6566 grows up from an unusual base.
6568 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6570 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6571 Fix a type which prevented CD-ROM and floppy boot.
6573 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6575 Support coreboot framebuffer.
6577 * grub-core/video/i386/coreboot/cbfb.c: New file.
6579 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6581 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6582 detecting too small regions.
6584 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6586 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6588 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6590 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6592 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6594 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6596 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6597 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6598 * grub-core/loader/powerpc/ieee1275/linux.c
6599 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6601 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6603 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6604 Look for /boot-rom as well as /rom/boot-rom.
6606 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6608 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6609 handling when creating text_layer failed.
6610 * grub-core/video/video.c (grub_video_create_render_target):
6611 Set result to 0 on error.
6612 (grub_video_delete_render_target): Do not dereference NULL.
6614 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6616 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6617 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6618 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6619 (grub_linux_load64): Mask out 2 high bits.
6621 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6623 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6626 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6628 Add support for pseries and other bootinfo machines to grub-mkrescue.
6630 Tested by: Paulo Flabiano Smorigo.
6632 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6634 * util/grub-mkrescue.in: Add GPT for EFI boot.
6636 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6638 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6639 It improves performance in qemu.
6641 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6643 * build-aux/snippet: Add missing gnulib files.
6645 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6647 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6649 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6651 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6653 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6654 2013-04-15 Peter Jones <pjones@redhat.com>
6656 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6658 Based on patch by Peter Jones.
6660 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6662 Fix DMRAID partition handling.
6664 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6666 * tests/grub_cmd_date.in: Skip on sparc64.
6668 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6670 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6671 firmware error messages.
6673 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6675 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6676 source and destination differ.
6678 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6680 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6683 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6685 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6686 match config-util.h to avoid warnings and increase compatibility.
6688 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6689 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6691 Add option to compress files on install/image creation.
6693 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6695 * docs/grub-dev.texi: Rearrange menu to match the section order.
6696 Reported by: Bryan Hundven.
6698 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6700 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6702 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6704 Move GRUB out of system area when using xorriso 1.2.9 or later.
6706 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6708 * tests/grub_cmd_date.in: Add missing exit 1.
6710 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6712 * tests/partmap_test.in: Skip on sparc64.
6714 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6716 Support grub-shell on sparc64.
6718 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6720 Support mkrescue on sparc64.
6722 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6724 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6725 Needed on OpenBIOS due to incomplete device tree.
6727 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6729 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6730 would be otherwise excluded.
6732 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6734 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6735 Inline name defines used only once.
6737 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6739 Fix memory leaks in ofnet.
6740 Reported by: Francesco Lavra.
6742 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6744 * docs/man/grub-glue-efi.h2m: Add missing file.
6746 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6748 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6750 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6752 Better support Apple Intel Macs on CD.
6754 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6756 Replace stpcpy with grub_stpcpy in tools.
6758 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6760 Handle Japanese special keys.
6761 Reported by: Hiroyuki YAMAMORI.
6762 Codes supplied by: Hiroyuki YAMAMORI.
6764 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6766 * util/grub-mkimage.c: Document memdisk implying --prefix.
6768 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6770 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6771 much we can do about it anyway.
6773 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6775 Fix handling of split transfers.
6777 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6779 * grub-core/net/http.c: Fix bad free.
6781 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6783 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6786 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6788 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6790 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6792 * tests/util/grub-shell.in: Fix it on powerpc.
6794 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6796 Turn off QEMU ACPI-way since new releases don't have shutdown port
6799 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6801 * docs/grub.texi: Update coreboot status info.
6803 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6805 * tests/grub_cmd_date.in: New test for datetime.
6807 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6809 * tests/partmap_test.in: Fix missing qemudisk setting.
6811 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6813 Support i386-ieee1275 grub-mkrescue and make check on it.
6815 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6817 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6820 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6822 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6823 GRUB_CMDLINE_XEN_DEFAULT.
6824 Reported by: Marc Warne (GigaTux) <gigatux>
6826 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6830 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6832 Use ACPI shutdown intests as traditional port was removed.
6834 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6836 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6839 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6841 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6842 Fix few warining messages and leaks while on it.
6844 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6846 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6847 links under grub-core/lib/libgcrypt-grub/mpi.
6849 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6851 Fix ia64-efi image generation on big-endian machines. Deduplicate
6852 some code while on it.
6853 Reported by: Leif Lindholm.
6855 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6857 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6860 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6862 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6864 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6866 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6869 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6871 * grub-core/normal/term.c: Few more fixes for menu entry editor
6873 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6875 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6877 * grub-core/normal/term.c: Few more fixes for menu entry editor
6879 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6881 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6883 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6884 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6886 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6888 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6889 instead of hardcoding grub.mo.
6891 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6893 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6895 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6897 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6898 grub-core/disk/geli.c.
6900 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6902 * util/grub-mkfont.c: Prefer enum to #define.
6904 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6906 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6908 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6910 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6912 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6914 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6916 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6918 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6920 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6922 * include/grub/bsdlabel.h: Use enums.
6924 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6926 Move GRUB_CHAR_BIT to types.h.
6928 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6930 * docs/grub.texi: Document more user commands.
6932 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6934 * docs/grub.texi: Document menuentry --id option.
6936 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6938 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6940 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6942 Unify file copying setup across different install scripts. Add
6943 options for performing partial install.
6945 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6946 2013-04-04 Peter Jones <pjones@redhat.com>
6948 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6950 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6952 Use TSC as a possible time source on i386-ieee1275.
6954 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6956 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6959 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6961 * util/grub-setup.c (setup): Handle some corner cases.
6963 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6965 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6967 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/commands/verify.c: Save verified file to avoid it being
6970 tampered with after verification was done.
6972 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6974 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
6975 reported width by one to compensate for curesor algorithm problem.
6977 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6979 Fix screen corruption in menu entry editor and simplify the code
6982 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
6984 * util/grub-mount.c (fuse_init): Return error if fuse_main
6987 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
6989 * include/grub/elf.h: Add missing ARM relocation codes and fix
6992 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6994 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
6996 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6997 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6999 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7000 into account when calculating radius.
7002 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7004 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7006 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7008 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7010 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7012 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7013 missing closing bracket.
7015 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7017 * INSTALL: Mention xorriso requirement.
7019 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7021 * grub-core/commands/verify.c: Fix hash algorithms values for
7022 the first three hashes - they start with 1, not with 0.
7024 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7026 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7027 Try terminating EFI services several times due to quirks in some
7030 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7032 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7033 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7034 BankField extended opcodes.
7035 (get_sleep_type): Add minimal scope handling (just enough to
7036 handle setting the scope to the root path).
7037 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7038 * include/grub/acpi.h: Add enumeration values for Event, Device,
7039 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7041 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7043 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7046 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7048 * grub-core/disk/ahci.c: Give more time for AHCI request.
7050 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7052 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7055 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7057 Replace the region at 0 from coreboot tables to available in BSD
7060 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7062 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7065 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7067 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7070 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7072 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7073 handling of multi-device filesystems.
7075 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7077 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7080 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7082 Add new 'proc' filesystem framework and put luks_script into it.
7084 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7086 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7089 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7091 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7093 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7095 Add ability to generate newc additions on runtime.
7097 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7099 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7102 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7104 * po/POTFILES.in: Regenerate.
7106 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7108 * grub-core/commands/verify.c (hashes): Add several hashes
7111 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7113 Slight improve in USB-related boot-time checkpoints.
7115 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7117 * grub-core/commands/boottime.c: Fix copyright header.
7119 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7121 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7122 coreboot tables content. Support for cbmemc.
7124 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7126 Fix a conflict between ports structures with 2 controllers of
7129 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7131 * include/grub/boottime.h: Add missing file.
7133 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7135 Initialize USB ports in parallel to speed-up boot.
7137 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7139 Fix USB devices not being detected when requested
7140 due to delayed attach.
7142 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7144 Implement boot time analysis framework.
7146 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7148 Remove get_endpoint_descriptor and change all functions needing
7149 descriptor to just receive it as argument rather than endpoint
7152 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7154 Better estimate the maximum USB transfer size.
7156 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7158 Resend a packet if we got the wrong buffer in status.
7160 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7162 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7163 multiplication rather than division.
7165 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7167 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7170 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7172 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7173 operations to have intended shifts and not divisions.
7175 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7177 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7178 intended shifts rather than division.
7180 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7182 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7183 computation for some years before epoch. Avode confusing division
7186 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7188 * grub-core/video/i386/pc/vbe.c
7189 (grub_video_vbe_print_adapter_specific_info): Replace division by
7192 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7194 Adjust types in gdb module to have intended unsigned shifts rather than
7197 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7199 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7200 maximum size is 4G - 1 on hfs
7202 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7204 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7206 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7208 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7211 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7213 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7214 causing gcc error with gcc 4.7.1.
7216 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7218 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7219 dereference null pointer. While the code is technically correct, gcc
7220 may eliminate a null check if pointer is already dereferenced.
7222 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7224 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7226 * grub-core/normal/term.c (read_terminal_list): Likewise.
7228 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7230 Lift up core size limits on some platforms. Fix potential memory
7231 corruption with big core on small memory systems. Document remaining
7234 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7236 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7239 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7241 Remove all trampoline support. Add -Wtrampolines when
7242 present. Remove symbols used for trampolines to make
7243 link fail if trampolines are present.
7245 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7247 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7248 append out of its parent.
7250 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7252 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7255 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7257 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7258 all vars to a macro. All users updated.
7260 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7262 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7265 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7267 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7269 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7271 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7273 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7275 Move to more hookless approach in IEEE1275 devices handling.
7277 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7279 * grub-core/kern/term.c (grub_term_normal_color),
7280 (grub_term_highlight_color): Add back lost defaults.
7282 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7284 Make elfload not use hooks. Opt for flags and iterators instead.
7286 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7288 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7289 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7291 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7293 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7295 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7297 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7298 hook pass-through parameter. All users updated and unnested.
7300 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7302 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7305 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7307 * grub-core/fs/hfs.c: Remove nested functions.
7309 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7311 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7312 the context through.
7313 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7315 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7317 * util/grub-editenv.c (list_variables): Move print_var out of its
7320 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7322 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7325 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7327 * grub-core/gentrigtables.c: Make tables const.
7329 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7331 Remove nested functions from videoinfo iterators.
7333 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7335 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7336 for 64-bit platforms.
7338 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7340 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7341 a FOR_CHILDREN macro.
7343 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7345 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7346 platform from firmware path.
7348 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7350 Enable linux16 on non-BIOS systems for i.a. memtest.
7352 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7354 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7356 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7358 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7359 Fix end of table condition.
7361 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7363 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7366 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7368 * grub-core/fs/jfs.c: Remove nested functions.
7370 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7372 * grub-core/fs/minix.c: Remove nested functions.
7374 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7376 * grub-core/fs/iso9660.c: Remove nested functions.
7378 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7380 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7383 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7385 * util/grub-fstest.c: Remove nested functions.
7387 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7389 * grub-core/loader/machoXX.c: Remove nested functions.
7391 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7393 Remove nested functions from disk and file read hooks.
7395 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7396 (struct grub_disk): Add read_hook_data member.
7397 * include/grub/file.h (struct grub_file): Likewise.
7398 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7403 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7405 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7406 Fix off by one error in enumerating extended partitions.
7408 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7410 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7411 memory leak if device name is not found.
7413 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7415 * grub-core/normal/menu_entry.c (update_screen): remove
7416 unused variable `off' which caused scroll down arrow to be always shown.
7418 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7420 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7421 access to unallocated memory.
7423 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7425 * Makefile.util.def: Add partmap/msdos.c to common library.
7426 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7427 * grub-core/disk/ldm.c: Check for existence of
7428 GRUB_PC_PARTITION_TYPE_LDM.
7430 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7432 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7433 sizes and display sector size.
7435 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7437 Implement new command cmosdump.
7439 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7441 Support Openfirmware disks with non-512B sectors.
7443 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7445 * (grub_ofdisk_get_block_size): New function.
7446 * (grub_ofdisk_prepare): Use the correct block size.
7447 * (grub_ofdisk_read): Likewise.
7448 * (grub_ofdisk_write): Likewise.
7449 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7452 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7454 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7456 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7458 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7461 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7463 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7466 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7468 Implement USBDebug (full USB stack variant).
7470 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7472 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7473 unless they have unexpected values.
7475 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7477 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7480 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7482 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7483 zero-out of port structure.
7485 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7487 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7488 of extended attributes.
7490 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7492 * util/grub-install.in: change misleading comment about
7495 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7497 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7498 when menu highlight color isn't set.
7500 2013-01-27 C. Masloch <pushbx@38.de>
7502 Improve FreeDOS direct loading support compatibility.
7504 * include/grub/i386/relocator.h (grub_relocator16_state):
7506 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7508 (grub_relocator16_boot): Handle %ebp.
7509 * grub-core/lib/i386/relocator16.S: Likewise.
7510 * grub-core/loader/i386/pc/freedos.c:
7511 Load BPB to pass kernel which partition to load from.
7512 Check that kernel file is not too large.
7513 Set register dl to BIOS unit number as well.
7515 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7517 * util/grub-reboot.in (usage): Document the need for
7519 * util/grub-set-default.in (usage): Likewise.
7520 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7522 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7524 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7525 than defining WORDS_BIGENDIAN manually.
7527 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7529 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7532 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7534 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7536 (blit_comb: add_device_width): Likewise.
7538 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7540 Remove nested functions from USB iterators.
7542 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7543 (grub_usb_controller_iterate_hook_t): Likewise.
7544 (grub_usb_iterate): Add hook_data argument.
7545 (grub_usb_controller_iterate): Likewise.
7546 (struct grub_usb_controller_dev.iterate): Likewise.
7548 Update all implementations and callers.
7550 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7552 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7553 margin when not needed.
7555 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7557 Make color variables global instead of it being per-terminal.
7559 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7561 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7564 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7566 Fix powerpc and sparc64 build failures caused by un-nesting memory
7569 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7571 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7572 parameter declarations.
7574 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7576 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7578 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7580 Improve spkmomdem reliability by adding a separator between bytes.
7582 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7584 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7585 an Acer registration utility with several sightings in the wild.
7586 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7588 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7590 Remove nested functions from filesystem directory iterators.
7592 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7593 (struct grub_fs.dir): Add hook_data argument.
7595 Update all implementations and callers.
7597 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7599 * docs/grub.texi (Multi-boot manual config): Fix typo for
7602 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7604 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7605 until after its use in generate_image.
7607 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7609 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7610 initrd size to addr_min, since the initrd will be allocated after
7613 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7615 * conf/Makefile.common: Fix autogen rules to pass definition
7616 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7618 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7620 * include/grub/elf.h: Update ARM definitions based on binutils.
7622 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7624 Split long USB transfers into short ones.
7626 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7628 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7629 is interrupted by ESC.
7631 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7633 * util/grub-script-check.c (main): Uniform the error message.
7635 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7637 Remove nested functions from ELF iterators.
7639 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7641 Remove nested functions from device iterators.
7643 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7644 (grub_arc_iterate_devs): Add hook_data argument.
7645 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7646 (struct grub_ata_dev.iterate): Add hook_data argument.
7647 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7648 (grub_device_iterate): Add hook_data argument.
7649 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7650 (struct grub_disk_dev.iterate): Add hook_data argument.
7651 (grub_disk_dev_iterate): Likewise.
7652 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7654 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7656 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7658 (struct grub_partition_map.iterate): Add hook_data argument.
7659 (grub_partition_iterate): Likewise.
7660 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7661 (struct grub_scsi_dev.iterate): Add hook_data argument.
7665 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7667 Fix typos for "developer" and "development".
7669 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7671 Add license header to spkmodem-recv.c.
7673 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7675 Rewrite spkmodem to use PIT for timing. Double the speed.
7677 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7679 Add new command pcidump.
7681 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7683 New terminal outputs using serial: morse and spkmodem.
7685 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7687 Improve bidi handling in entry editor.
7689 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7691 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7692 argument to prevent name collision.
7694 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7696 Remove nested functions from script reading and parsing.
7698 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7699 getline_data argument, passed to getline.
7700 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7701 getline_data argument, passed to grub_parser_split_cmdline.
7702 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7703 lexerstate->getline_data to lexerstate->getline.
7704 (grub_script_lexer_init): Add getline_data argument, saved in
7705 lexerstate->getline_data.
7706 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7707 argument, passed to grub_script_parse.
7708 * grub-core/script/script.c (grub_script_parse): Add getline_data
7709 argument, passed to grub_script_lexer_init.
7710 * include/grub/parser.h (grub_parser_split_cmdline): Update
7711 prototype. Update all callers to pass appropriate getline data.
7712 (struct grub_parser.parse_line): Likewise.
7713 (grub_rescue_parse_line): Likewise.
7714 * include/grub/reader.h (grub_reader_getline_t): Add void *
7716 * include/grub/script_sh.h (struct grub_lexer_param): Add
7717 getline_data member.
7718 (grub_script_parse): Update prototype. Update all callers to pass
7719 appropriate getline data.
7720 (grub_script_lexer_init): Likewise.
7721 (grub_normal_parse_line): Likewise.
7723 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7725 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7726 static instead of nested. Rename to ...
7727 (grub_parser_execute_getline): ... this.
7728 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7730 * grub-core/normal/main.c (read_config_file: getline): Make static
7731 instead of nested. Rename to ...
7732 (read_config_file_getline): ... this.
7733 (grub_normal_read_line): Add unused data argument.
7734 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7735 getline): Make static instead of nested. Rename to ...
7736 (grub_script_execute_sourcecode_getline): ... this.
7737 * util/grub-script-check.c (main: get_config_line): Make static
7740 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7742 Remove nested functions from memory map iterators.
7744 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7745 argument, passed to hook.
7746 * grub-core/kern/i386/coreboot/mmap.c
7747 (grub_linuxbios_table_iterate): Likewise.
7748 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7750 (grub_machine_mmap_iterate): Add hook_data argument.
7751 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7752 Add hook_data argument, passed to hook.
7753 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7755 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7757 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7759 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7761 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7763 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7765 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7766 (grub_machine_mmap_iterate): Likewise.
7767 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7768 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7770 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7771 Remove NESTED_FUNC_ATTR from here and from all users.
7772 (grub_mmap_iterate): Update prototype.
7773 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7774 pass appropriate hook data.
7775 (grub_machine_mmap_iterate): Likewise.
7777 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7778 static instead of nested.
7779 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7781 (lsmmap_hook): ... this.
7782 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7784 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7785 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7786 heap_init): Likewise.
7787 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7789 (mmap_iterate_hook): ... this.
7790 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7792 * grub-core/lib/ieee1275/relocator.c
7793 (grub_relocator_firmware_get_max_events: count): Likewise.
7794 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7796 (grub_relocator_firmware_fill_events_iter): ... this.
7797 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7798 hook): Likewise. Rename to ...
7799 (grub_relocator_alloc_chunk_align_iter): ... this.
7800 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7802 (generate_e820_mmap_iter): ... this.
7803 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7805 (count_hook): ... this.
7806 (grub_linux_boot: hook): Likewise. Rename to ...
7807 (grub_linux_boot_mmap_find): ... this.
7808 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7809 (grub_linux_boot_mmap_fill): ... this.
7810 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7811 hook): Likewise. Rename to ...
7812 (grub_fill_multiboot_mmap_iter): ... this.
7813 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7814 hook): Likewise. Rename to ...
7815 (count_hook): ... this.
7816 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7817 hook): Likewise. Rename to ...
7818 (grub_fill_multiboot_mmap_iter): ... this.
7819 * grub-core/loader/powerpc/ieee1275/linux.c
7820 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7821 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7822 Likewise. Rename to ...
7823 (alloc_phys_choose): ... this.
7824 (determine_phys_base: get_physbase): Likewise.
7825 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7826 find_hook): Likewise.
7827 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7828 (malloc_hook: count_hook): Likewise.
7829 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7830 Likewise. Rename to ...
7831 (lower_hook): ... this.
7832 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7833 (upper_hook): ... this.
7834 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7835 (post64_hook): ... this.
7836 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7837 Likewise. Rename to ...
7838 (lower_hook): ... this.
7839 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7840 (upper_hook): ... this.
7841 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7842 (grub_mmap_iterate: fill_hook): Likewise.
7843 (fill_mask): Pass addr and mask within a single struct.
7844 (grub_cmd_badram: hook): Make static instead of nested. Rename
7846 (badram_iter): ... this.
7847 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7848 (cutmem_iter): ... this.
7850 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7852 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7853 delimit path in strings using quotes.
7854 * util/getroot.c (grub_guess_root_devices): Likewise.
7855 (grub_make_system_path_relative_to_its_root): Likewise.
7856 * util/grub-probe.c (probe): Likewise.
7857 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7858 (xrealpath): Likewise.
7860 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7862 Fix compilation with older compilers.
7864 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7865 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7867 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7868 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7869 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7871 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7872 * include/grub/crypto.h: Add type defines.
7873 * util/import_gcrypth.sed: Remove duplicate type defines.
7875 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7877 New command list_trusted.
7879 * grub-core/commands/verify.c (grub_cmd_list): New function.
7881 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7883 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7886 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7888 Remove nested functions from PCI iterators.
7890 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7891 passed to hook. Update all callers to pass appropriate hook data.
7892 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7893 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7894 Remove NESTED_FUNC_ATTR from here and from all users.
7895 (grub_pci_iterate): Update prototype.
7896 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7897 instead of nested. Rename to ...
7898 (grub_cs5536_find_iter): ... this.
7899 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7900 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7902 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7904 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7906 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7908 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7909 * grub-core/video/radeon_fuloong2e.c
7910 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7911 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7912 find_card): Likewise.
7913 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7916 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7918 * grub-core/commands/verify.c: Mark messages for translating.
7920 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7922 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7925 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7927 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7930 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7932 * autogen.sh: Do not try to delete nonexistant files.
7933 * util/import_gcrypth.sed: Add some missing header removals.
7935 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7937 Clean up dangling references to grub-setup.
7938 Fixes Ubuntu bug #1082045.
7940 * docs/grub.texi (Images): Refer generally to grub-install rather
7941 than directly to grub-setup.
7942 (Installing GRUB using grub-install): Remove direct reference to
7944 (Device map) Likewise.
7945 (Invoking grub-install): Likewise.
7946 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7947 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7948 * util/grub-install.in (usage): Likewise.
7950 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7951 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7953 * configure.ac: Remove grub_setup output variable.
7955 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7957 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7958 grub-setup to grub-sparc64-setup.
7960 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7962 Import gcrypt public-key cryptography and implement signature checking.
7964 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7966 * grub-core/fs/ntfs.c: Ue more appropriate types.
7967 * grub-core/fs/ntfscomp.c: Likewise.
7968 * include/grub/ntfs.h: Likewise.
7970 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7972 Support Apple FAT binaries on non-Apple platforms.
7974 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
7975 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
7977 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
7980 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7982 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
7985 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7987 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
7988 explicitly zeroing elements.
7989 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
7990 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
7991 of elements in a structure already allocated using grub_zalloc.
7992 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7994 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7996 * docs/grub.texi (grub_cpu): New subsection.
7997 (grub_platform): Likewise.
7999 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8001 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8003 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8005 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8008 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8010 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8011 * grub-core/fs/ntfscomp.c: Likewise.
8012 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8013 (grub_ntfs_comp): Likewise.
8015 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8017 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8019 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8020 of groups_per_block. All users updated.
8022 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8024 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8025 grub_error properly.
8026 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8027 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8029 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8031 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8032 always in /boot/zfs.
8033 Reported by: Yuta Satoh.
8035 2013-01-03 Yuta Satoh <nigoro>
8037 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8040 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8042 * configure.ac: Extend -Wno-trampolines to host.
8044 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8046 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8049 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8051 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8052 (Invoking grub-script-check): Likewise.
8054 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8056 * docs/grub.texi (Invoking grub-mount): New section.
8057 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8059 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8061 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8062 test failures, so that a failing unit test correctly causes 'make
8065 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8067 Fix failing printf test.
8069 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8070 '$' in the correct order when collecting type information.
8072 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8074 * docs/grub.texi (configfile): Explain environment variable
8076 (source): New section.
8077 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8079 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8081 Remove several trivially-unnecessary uses of nested functions.
8083 * grub-core/commands/i386/pc/sendkey.c
8084 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8086 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8088 (legacy_file_getline): ... this.
8089 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8091 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8092 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8094 (probe_dummy_iter): ... this.
8095 * grub-core/kern/i386/coreboot/mmap.c
8096 (grub_linuxbios_table_iterate: check_signature): Likewise.
8097 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8098 check_varstate): Likewise. Mark inline.
8099 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8100 an additional parameter.
8101 (find_long: fnd_long): Likewise. Pass two additional parameters.
8102 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8103 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8104 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8105 Likewise. Rename to ...
8106 (grub_cmos_find_port_iter): ... this.
8107 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8109 (find_rtc_iter): ... this.
8111 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8112 function directly into the function body, since it is only called
8115 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8117 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8118 __attribute__ ((unused)).
8119 * grub-core/video/bochs.c (find_card): Likewise.
8120 * grub-core/video/cirrus.c (find_card): Likewise.
8121 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8122 * grub-core/video/sis315pro.c (find_card): Likewise.
8123 * grub-core/video/sm712.c (find_card): Likewise.
8125 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8127 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8128 Fixes Savannah bug #37821.
8130 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8132 Apply program name transformations at build-time rather than at
8133 run-time. Fixes Debian bug #696465.
8135 * acinclude.m4 (grub_TRANSFORM): New macro.
8136 * configure.ac: Create output variables with transformed names for
8138 * util/bash-completion.d/grub-completion.bash.in: Use
8139 pre-transformed variables for program names.
8140 * util/grub-install.in: Likewise.
8141 * util/grub-kbdcomp.in: Likewise.
8142 * util/grub-mkconfig.in: Likewise.
8143 * util/grub-mkconfig_lib.in: Likewise.
8144 * util/grub-mknetdir.in: Likewise.
8145 * util/grub-mkrescue.in: Likewise.
8146 * util/grub-mkstandalone.in: Likewise.
8147 * util/grub-reboot.in: Likewise.
8148 * util/grub-set-default.in: Likewise.
8149 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8150 * tests/util/grub-shell-tester.in: Remove unused assignment.
8151 * tests/util/grub-shell.in: Likewise.
8152 * util/grub.d/00_header.in: Likewise.
8154 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8156 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8158 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8160 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8162 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8164 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8165 Reported by: Eriks Latosheks <foresterlv>.
8167 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8169 * docs/grub.texi (Network): Update instructions on generating netboot
8172 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8174 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8175 around device name if necessarry.
8177 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8179 * util/grub-install.in: Follow the symbolic link parameter added
8180 to the file command.
8182 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8184 * util/grub-install.in: Remove stale TODO.
8186 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8188 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8189 dynamic allocation for the bootpath buffer.
8191 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8193 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8196 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8198 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8199 argument rather than font name. All users updated.
8200 (grub_gfxterm_set_window): Likewise.
8202 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8204 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8207 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8209 * util/getroot.c (convert_system_partition_to_system_disk): Support
8212 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8214 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8215 infinite loop on corrupted FS.
8217 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8219 Fix big-endian mtime.
8221 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8222 together sec and usec.
8223 (grub_ufs_dir): Use correct byteswapping for UFS time.
8225 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8227 Support big-endian UFS1.
8229 * Makefile.util.def (libgrubmods): Add ufs_be.c
8230 * grub-core/Makefile.core.def (ufs1_be): New module.
8231 * grub-core/fs/ufs_be.c: New file.
8232 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8235 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8237 * include/grub/types.h: Fix functionality unaffecting typo in
8238 GRUB_TARGET_WORDSIZE conditional macro.
8240 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8242 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8244 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8246 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8247 that /netbsd appears first (when it exists).
8249 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8251 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8252 Fixes Savannah bug #37558.
8254 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8256 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8257 description of extract_entries_configfile.
8259 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8261 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8263 (grub_cmd_linux): Likewise.
8264 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8265 preferred_lifetime. Update all users.
8267 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8269 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8270 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8272 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8274 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8275 errors from grub-probe to /dev/null, not stdout.
8277 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8279 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8282 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8284 * util/grub-install.in: Make the error message if $source_dir
8285 doesn't exist more useful.
8287 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8289 Fix grub-emu build on FreeBSD.
8291 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8292 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8294 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8295 implementation is currently Linux-specific.
8296 * util/getroot.c (exec_pipe): Define only on Linux or when either
8297 libzfs or libnvpair is unavailable.
8298 (find_root_devices_from_poolname): Remove unused path variable.
8300 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8302 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8303 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8304 should fit before end == 63.
8306 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8308 * util/grub-setup.c (write_rootdev): Remove unused core_img
8309 parameter. Update all callers.
8310 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8311 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8314 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8316 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8317 (grub_add_tab): New function.
8318 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8319 * util/grub.d/10_illumos.in: Likewise.
8320 * util/grub.d/10_kfreebsd.in: Likewise.
8321 * util/grub.d/10_linux.in: Likewise.
8322 * util/grub.d/10_netbsd.in: Likewise.
8323 * util/grub.d/10_windows.in: Likewise.
8324 * util/grub.d/10_xnu.in: Likewise.
8325 * util/grub.d/20_linux_xen.in: Likewise.
8326 * util/grub.d/30_os-prober.in: Likewise.
8328 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8330 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8331 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8332 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8333 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8334 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8336 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8337 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8339 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8341 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8343 Reported by: BURETTE, Bernard.
8345 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8347 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8350 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8352 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8353 IEEE1275 machines. Fixes powerpc-emu compilation.
8354 * include/grub/terminfo.h: Likewise.
8356 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8358 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8360 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8362 (efiemu_set_variable): Make vendor_guid a const pointer.
8364 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8366 Don't require grub-mkconfig_lib to generate manpages for programs.
8368 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8369 dependencies, don't add grub-mkconfig_lib.
8370 (program): Pass empty adddeps.
8371 (script): Pass grub-mkconfig_lib as adddeps.
8373 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8375 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8376 * util/getroot.c (grub_find_device): Likewise.
8377 (get_mdadm_uuid): Likewise.
8378 (grub_util_is_imsm): Likewise.
8379 (grub_util_pull_device): Likewise.
8380 * util/grub-probe.c (probe): Likewise.
8382 2012-09-10 Benoit Gschwind <gschwind>
8384 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8385 (devs): Add devpath_8.
8387 2012-09-08 Peter Jones <pjones@redhat.com>
8389 * grub-core/Makefile.core.def (efifwsetup): New module.
8390 * grub-core/commands/efi/efifwsetup.c: New file.
8391 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8392 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8394 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8396 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8398 * configure.ac: Add SuSe path.
8400 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8404 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8406 * util/import_gcry.py: Sort cipher_files, to make build system
8407 generation more deterministic.
8409 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8411 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8412 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8413 (grub_set_datetime): Likewise.
8415 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8417 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8420 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8422 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8424 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8426 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8428 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8430 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8431 required for checkouts from bzr, but it may be useful for users or
8432 distributors wishing to update translations against a tarball
8433 distribution, and it can be helpful for the tarball to be a superset
8436 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8438 * Makefile.am (EXTRA_DIST): Add
8439 grub-core/tests/boot/linux.init-mips.S,
8440 grub-core/tests/boot/linux.init-ppc.S, and
8441 grub-core/tests/boot/linux-ppc.cfg.
8443 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8445 * grub-core/mmap/mips/loongson: Remove empty directory.
8447 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8449 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8452 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8454 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8457 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8459 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8461 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8463 * po/POTFILES.in: Regenerated.
8465 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8467 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8468 (NetBSD): New subsection.
8470 2012-07-22 Ales Nesrsta <starous@volny.cz>
8472 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8473 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8475 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8477 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8478 * util/grub.d/10_hurd.in: Add missing quoting.
8479 * util/grub.d/10_illumos.in: Likewise.
8480 * util/grub.d/10_kfreebsd.in: Likewise.
8481 * util/grub.d/10_linux.in: Likewise.
8482 * util/grub.d/20_linux_xen.in: Likewise.
8484 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8486 New command `lsefi'.
8488 * grub-core/Makefile.core.def (lsefi): New module.
8489 * grub-core/commands/efi/lsefi.c: New file.
8490 * include/grub/efi/api.h: Add more GUIDs.
8492 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8494 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8495 (grub_bsd_elf32_hook): Likewise.
8496 (grub_bsd_elf64_size_hook): Likewise.
8497 (grub_bsd_elf64_hook): Likewise.
8498 (grub_bsd_load_elf): Likewise.
8500 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8502 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8503 if hash function is unavailable.
8504 (dec_stream_header): Likewise.
8506 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8508 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8511 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8513 Fix coreboot compilation.
8515 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8516 (grub_vga_text_init_real): ... this.
8517 (grub_vga_text_fini): Rename to ...
8518 (grub_vga_text_fini_real): ... this.
8520 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8522 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8524 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8526 * grub-core/lib/legacy_parse.c: Support clear and testload.
8528 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8530 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8532 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8534 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8536 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8538 * grub-core/net/tftp.c (ack): Fix endianness problem.
8539 (tftp_receive): Likewise.
8540 Reported by: Michael Davidsaver.
8542 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8544 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8546 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8548 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8549 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8550 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8552 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8554 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8556 Reported by: Stuart Hayes.
8558 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8560 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8562 * grub-core/Makefile.core.def (mda_text): New module.
8563 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8564 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8565 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8566 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8568 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8569 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8570 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8572 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8574 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8576 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8578 * grub-core/term/i386/vga_common.c: Removed.
8579 * include/grub/i386/vga_common.h: Likewise.
8580 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8581 (grub_vga_cr_bw_read): Likewise.
8582 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8583 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8584 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8585 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8586 grub_vga_cr_read/grub_vga_cr_write.
8587 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8589 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8591 * configure.ac: Bump version to 2.00.
8592 * grub-core/normal/main.c (features): Add feature_200_final.
8594 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8595 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8597 * NEWS: Fix unclarity and language mistakes.
8599 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8601 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8602 additional size to 3 pages.
8603 Reported by: Stuart Hayes.
8605 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8607 * NEWS: Add 2.00 entry.
8609 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8611 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8612 put explicit "/" for empty path.
8613 (wildcard_expand): Improve dprintf.
8615 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8617 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8618 it's equal to currnode. This can happen with "" symlink.
8620 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8622 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8623 echo shell command by printf command.
8625 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8627 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8628 the value returned by firmware is the maximal position, not diumension.
8629 (grub_terminfo_output_state): Use a more sane fallback.
8631 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8633 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8635 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8637 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8638 frequency to 150 MHz.
8640 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8644 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8646 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8648 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8650 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8652 Handle slash in HFS label.
8654 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8655 (grub_hfs_dir): Tanslate slash.
8656 (grub_hfs_label): Don't translate slash.
8658 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8660 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8661 network protocol listing since it introduces problematic dependency on
8664 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8666 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8668 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8670 Init video early on yeeloong to avoid being rebooted by watchdog.
8672 * grub-core/Makefile.am (gensm712): New target.
8673 (sm712_start.S): Likewise.
8674 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8675 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8676 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8678 * include/grub/vga.h: Move registry definitions to...
8679 * include/grub/vgaregs.h: ... here.
8681 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8683 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8686 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8688 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8689 platforms with firmware disk drivers in the core.
8691 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8693 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8694 informative verbose message.
8695 (read_lv): Handle 64-bit segment size.
8697 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8699 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8701 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8703 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8704 character but still remove trainling spaces.
8705 (grub_fat_label): Ignore archive flag.
8707 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8709 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8710 cast between linux_kernel_header and linux_kernel_params.
8712 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8714 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8716 (grub_raid6_recover_func_t): Likewise.
8717 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8718 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8720 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8722 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8724 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8728 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8729 [__NetBSD__]: Add explicit cast before bitshift.
8731 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8733 * configure.ac: Bump to 2.00~rc1.
8735 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8737 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8740 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8741 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8743 * docs/grub.texi: Fix search syntax.
8744 (Multi-boot manual config): Put msdos rather than GPT example.
8745 Grammar corrections.
8747 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8749 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8751 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8753 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8755 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8757 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8758 message on double free. Put the value of magic in case of mismatch.
8760 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8762 Speed-up video on yeeloong.
8764 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8766 (grub_video_sm712_video_fini): Unmap cached_ptr.
8767 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8768 (grub_video_sm712_set_active_render_target): Removed.
8769 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8770 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8773 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8775 Avoid flushing the same line multiple times on loongson.
8777 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8778 Step in 32 bytes and not 1 byte.
8779 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8782 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8784 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8787 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8789 Implement flow control for http.
8791 * grub-core/net/http.c (parse_line): Handle response 206.
8792 (http_receive): Stall if too many packets are in the queue.
8793 (http_establish): Fix range header.
8794 (http_seek): Fix double free.
8795 (http_close): Likewise.
8796 (http_packets_pulled): New function.
8797 (grub_http_protocol): Set http_seek
8798 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8799 (ack_real): Set window depending on i_stall.
8800 (grub_net_send_tcp_packet): Likewise.
8801 (grub_net_tcp_stall): New function.
8802 (grub_net_tcp_unstall): Likewise.
8803 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8804 (grub_net_tcp_unstall): Likewise.
8806 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8808 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8810 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8812 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8814 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8816 * tests/util/grub-shell.in: Fix a typo.
8818 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8820 Implement flow control for tftp.
8822 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8823 packets but stop only if stop condition is satisfied.
8824 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8825 `stall' instead of `eof' as stop condition.
8826 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8827 (http_err): Likewise.
8828 * grub-core/net/tftp.c (ack): Replace the first argument with data
8830 (tftp_receive): Stall if too many packets are in wait queue.
8831 (tftp_packets_pulled): New function.
8832 (grub_tftp_protocol): Set packets_pulled.
8833 * include/grub/net.h (grub_net_packets): New field count.
8834 (grub_net_put_packet): Increment count.
8835 (grub_net_remove_packet): Likewise.
8836 (grub_net_app_protocol): New field `packets_pulled'.
8837 (grub_net): New field `stall'.
8839 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8841 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8842 sync part to handle them.
8844 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8846 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8847 * grub-core/net/drivers/ieee1275/ofnet.c
8848 (grub_ieee1275_net_config_real): Likewise.
8850 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8852 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8853 the direct route for server/gateway.
8855 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8857 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8858 IP address to server name since we may not hame the DNS.
8860 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8862 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8863 freeing random buffer on failure.
8864 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8866 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8868 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8870 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8872 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8874 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8875 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8876 Handle malloc error correctly.
8878 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8880 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8883 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8885 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8888 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8890 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8891 none is explicitly specified.
8893 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8895 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8898 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8900 Respect netmask from bootp/dhcp.
8902 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8903 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8904 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8906 (grub_net_add_ipv4_local): ... this.
8907 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8908 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8909 (grub_net_add_ipv4_local): New proto.
8911 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8913 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8914 determining EFI memory map size.
8916 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8918 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8920 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8922 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8923 when looking for partition separator.
8925 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8927 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8930 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8932 Restructure FAT driver to avoid hook in label reading as it hits a
8935 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8936 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8937 (grub_fat_iterate_dir): Split into ...
8938 (grub_fat_iterate_init): ... this, ...
8939 (grub_fat_iterate_fini): ... this, ...
8940 (grub_fat_iterate_dir_next): ... and this. All users updated.
8942 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8944 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8945 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8946 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8947 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8948 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8949 New fields last_key and last_key_time.
8950 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8951 extended key-esc into extended key-extended key.
8953 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8955 Avoid unnecessary memcpy of whole video buffer.
8957 * grub-core/video/fb/video_fb.c (dirty): New struct.
8958 (framebuffer): Add members current_dirty and previous_dirty.
8959 (dirty): New function.
8960 (grub_video_fb_fill_rect): Update dirty.
8961 (common_blitter): Likewise.
8962 (grub_video_fb_scroll): Likewise.
8963 (doublebuf_blit_update_screen): Copy only dirty part.
8964 (doublebuf_pageflipping_update_screen): Likewise.
8965 (grub_video_fb_doublebuf_blit_init): Init dirty.
8966 (doublebuf_pageflipping_init): Likewise.
8967 (grub_video_fb_setup): Likewise.
8969 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8971 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8974 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8976 Fix wildcard regexp dot and other special characters handling.
8977 Reported by: Robert Mabee.
8979 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
8980 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
8981 (split_path): Trigger expansion on '?'.
8982 (unescape): New function.
8983 (wildcard_expand): Unescape parts copied without globbing.
8984 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
8985 (grub_script_arglist_to_argv): Don't unescape expansions.
8987 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8989 * include/grub/net.h (grub_net_card): New member txbufsize.
8990 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
8991 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8992 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
8993 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
8995 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
8996 compatible property to check for macs. Set
8997 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8998 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
8999 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9000 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9001 (send_card_buffer): Use txbuf.
9002 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9003 nested function out of the parent while on it.
9005 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9007 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9009 (grub_ieee1275_net_config_real): Fix config pointer.
9011 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9013 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9014 filename parsing to non-block devices.
9016 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9018 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9020 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9022 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9025 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9027 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9028 UUID search command even if hints probing failed.
9030 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9032 * po/POTFILES.in: Regenerated.
9034 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9036 Speed-up video on fuloong.
9038 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9040 (grub_pci_device_unmap_range): Handle non-cached address.
9041 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9043 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9044 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9045 (grub_video_sis315pro_set_active_render_target): Removed.
9046 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9047 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9048 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9050 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9053 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9055 * docs/grub.texi (Multi-boot manual config): New section.
9057 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9059 Avoid slow read-back from VRAM.
9061 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9063 * grub-core/video/fb/video_fb.c
9064 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9065 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9066 (front_target): Remove front_target. Add pages.
9067 (grub_video_fb_init): Skip setting front_pages.
9068 (grub_video_fb_fini): Likewise.
9069 (doublebuf_blit_update_screen): Use pages.
9070 (grub_video_fb_doublebuf_blit_init): Likewise.
9071 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9072 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9073 (grub_video_fb_setup): Prefer doublebuffing.
9075 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9077 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9080 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9084 * tests/util/grub-shell.in: Handle loongson.
9085 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9087 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9088 Reboot instead of shutdown if REBOOT is defined.
9090 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9092 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9093 sized ports since unlike on real hardware qemu supports only 32-bit
9096 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9098 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9099 * util/grub-mkrescue.in: Handle loongson.
9101 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9103 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9104 Set is_part appropriately.
9105 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9106 names. Canonicalize partition without full disk.
9108 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9110 Revert usb-quiesce since it's wrong.
9112 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9113 (grub_ofdisk_init): Don't do quiesce.
9115 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9117 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9118 PowerMac workaround to Xserves as well.
9119 Information supplied by: Benjamin Herrenschmidt.
9121 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9123 Don't assume that beginning address is also the entry point on ppc.
9125 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9126 (grub_linux_boot): Use linux_entry.
9127 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9128 (grub_linux_load64): Likewise.
9130 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9132 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9134 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9136 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9137 needlessly lose the console.
9139 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9141 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9144 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9146 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9147 than current grub_get_rtc() not implemented when booted with
9148 coreboot without TSC.
9150 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9151 Add machine/time.h to kernel headers on loongson.
9152 * grub-core/Makefile.core.def (kernel): Remove
9153 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9154 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9155 (grub_get_rtc): Likewise.
9156 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9157 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9158 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9159 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9160 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9161 rather than installing known non-working time source.
9162 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9163 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9164 * include/grub/time.h: Don't include machine/time.h.
9165 * include/grub/efi/time.h: Removed.
9166 * include/grub/i386/efi/time.h: Likewise.
9167 * include/grub/i386/ieee1275/time.h: Likewise.
9168 * include/grub/powerpc/ieee1275/time.h: Likewise.
9169 * include/grub/sparc64/ieee1275/time.h: Likewise.
9170 * include/grub/x86_64/efi/time.h: Likewise.
9172 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9174 Remove dot on i and j when combining with above diacritics.
9176 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9178 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9179 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9180 with dotless variants when any combining above is present.
9182 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9184 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9185 text and not binary.
9187 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9189 Stop polling as soon as we have the packet we were waiting for.
9191 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9193 * grub-core/net/arp.c (have_pending): New var.
9194 (pending_req): Likewise.
9195 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9197 (grub_net_arp_receive): Set have_pending.
9198 * grub-core/net/dns.c (recv_data): New field stop.
9199 (recv_hook): Set stop.
9200 (grub_net_dns_lookup): Init stop and use as stop condition.
9201 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9203 * grub-core/net/net.c (grub_net_poll_cards): New argument
9204 stop_condition. Stop when it goes true.
9205 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9207 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9209 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9211 Keep TX and RX buffers on EFI rather than always allocate new ones.
9213 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9214 card. All users updated.
9215 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9216 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9217 (get_card_packet): Likewise.
9218 (grub_efinet_findcards): Init new fields.
9220 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9222 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9223 compilation error on sparc64.
9225 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9227 Use ITC on IA64 rather than broken routine based on daytime.
9229 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9231 (grub_get_rtc) [__ia64__]: Likewise.
9232 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9233 (get_itc): New function.
9234 (grub_rtc_get_time_ms): Likewise.
9235 (grub_machine_init): Calibrate ITC.
9236 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9237 Keep only on non-ia64. Don't export since it's broken and used only
9238 if TSC is unavailable.
9240 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9242 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9244 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9245 Skip if parent is unused.
9247 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9249 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9251 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9253 Fix wildcard escaping.
9255 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9256 * grub-core/script/execute.c (wildcard_escape): .. to here.
9258 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9259 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9261 * grub-core/script/execute.c (gettext_append): Always escape.
9262 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9263 * grub-core/script/yylex.l: Don't cut away the escaping.
9264 * tests/grub_script_echo1.in: Add tests with wildcard.
9266 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9268 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9269 (ftdi_hw_configure): Likewise.
9270 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9272 (real_config): Handle 1.5 stop bits.
9273 (pl2303_hw_configure): Likewise.
9275 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9277 * Makefile.am: Add ppc linux bootcheck.
9278 * grub-core/tests/boot/linux-ppc.cfg: New file.
9279 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9281 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9283 * tests/grub_script_expansion.in: Skip network protocols.
9285 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9287 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9289 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9291 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9295 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9297 ESCC serial driver for conducting sautomated tests in qemu.
9298 Not tested on real hardware.
9300 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9301 * grub-core/term/ieee1275/escc.c: New file.
9302 * grub-core/Makefile.core.def (escc): New module.
9304 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9306 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9308 (serial_hw_fetch): Don't read invalid handle.
9309 (serial_hw_put): Don't write into invalid handle.
9311 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9313 Add a 1.5 stop bits value.
9315 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9316 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9317 GRUB_SERIAL_STOP_BITS_1_5.
9319 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9321 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9322 value rather than let it uninited.
9324 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9326 * grub-core/commands/wildcard.c (+check_file): New function.
9327 (wildcard_expand): Don't expand to non-existing files, expand with
9328 suffix and not attempt to expand if not needed.
9330 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9332 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9333 out of partitions containing other partitions.
9335 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9337 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9338 on some qemu versions with GRUB.
9340 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9342 (grub_openbsd_bootarg_pcibios): New struct.
9343 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9346 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9348 * tests/util/grub-shell.in: Trim firmware output on EFI.
9350 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9352 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9353 and coreboot since it's already in kernel.
9355 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9357 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9358 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9359 to here. New return value start. All users updated.
9360 Recursively scan linear mappings.
9361 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9363 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9364 Use grub_util_get_dm_node_linear_info.
9365 * util/getroot.c (convert_system_partition_to_system_disk): Use
9366 grub_util_info rather than grub_dprintf.
9367 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9369 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9371 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9373 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9374 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9376 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9378 * include/grub/types.h (grub_set_unaligned64): New function.
9379 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9382 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9384 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9385 (grub_ofdisk_fini): Quiesce USB devices.
9387 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9389 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9392 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9394 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9396 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9398 * grub-core/disk/pata.c (grub_pata_pio_read)
9399 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9400 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9402 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9404 Extend automated tests to qemu-mips.
9406 * Makefile.am: reorganise tests and enable qemu-mips.
9407 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9408 * grub-core/tests/boot/linux.init-mips.S: New file.
9409 * tests/partmap_test.in: Handle ata0 disks.
9410 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9413 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9415 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9417 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9420 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9422 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9423 (grub_halt): Likewise.
9424 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9426 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9428 * grub-core/term/serial.c (grub_serial_register)
9429 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9430 the behaviour in line with x86 platforms.
9432 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9434 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9435 (grub_ata_strncpy): Likewise.
9436 (grub_ata_identify): Add missing byteswaps.
9438 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9440 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9442 (screen_read_char): Likewise.
9443 (grub_vga_text_cls): Likewise.
9445 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9447 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9449 (make_file_path): Likewise.
9451 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9453 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9455 Tested by: Paulo Flabiano Smorigo.
9456 Crucial information about API supplied by: Coleen <Last name unknown>.
9457 Reviewed by: Coleen <Last name unknown>.
9459 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9461 * util/grub-mkimage.c: Disable -Wcast-align.
9463 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9465 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9468 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9470 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9472 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9474 * util/grub-probe.c (escape_of_path): Fix double free.
9476 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9478 * grub-core/commands/videoinfo.c (hook): Show pitch.
9480 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9482 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9484 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9486 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9487 (probe): Add ieee1275 to OFW devices.
9489 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9491 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9493 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9495 Handle IBM OFW path.
9497 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9499 (of_path_of_scsi): Handle vdevice.
9501 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9503 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9504 Allocate in multiples of 16 to avoid adding a few bytes free region the
9507 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9509 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9510 Allocate in multiples of 16 to avoid adding a few bytes free region the
9512 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9514 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9516 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9518 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9519 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9521 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9523 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9525 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9527 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9528 resulted in \\ at the end of the line.
9530 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9532 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9533 (grub_parser_cmdline_state): Likewise.
9534 (grub_parser_split_cmdline): Likewise.
9536 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9538 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9539 /dev/root and /dev/dm-*.
9541 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9543 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9544 fix partially stale display.
9546 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9548 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9551 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9553 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9554 Fix MBR remapping workaround.
9555 (grub_util_biosdisk_read) [__linux__]: Likewise.
9557 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9559 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9561 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9563 * configure.ac: Bump to beta6.
9565 2012-05-31 Christer Weinigel <christer@weinigel.se>
9567 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9569 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9571 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9572 (grub_cmd_linux): Likewise.
9574 2012-05-31 Christer Weinigel <christer@weinigel.se>
9578 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9579 (GRUB_EHCI_MULT_TWO): Likewise.
9580 (GRUB_EHCI_MULT_THREE): Likewise.
9581 (GRUB_EHCI_CMASK_MASK): New enum value.
9582 (GRUB_EHCI_SMASK_MASK): Likewise.
9583 (GRUB_EHCI_CMASK_OFF): Likewise.
9584 (GRUB_EHCI_SMASK_OFF): Likewise.
9585 (grub_ehci_pci_iter): Enable periodic schedule.
9586 (grub_ehci_parse_notrun): Likewise.
9587 (grub_ehci_restore_hw): Likewise.
9588 (grub_ehci_setup_qh): Set flags for low speed transfers.
9589 (grub_ehci_find_qh): Use periodic list for low speed.
9590 (grub_ehci_setup_transfer): Check periodic queue as well.
9591 (grub_ehci_check_transfer): Likewise.
9592 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9594 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9596 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9599 2012-05-31 Peter Jones <pjones@redhat.com>
9601 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9602 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9603 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9605 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9607 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9608 uninited variable. Allocate at least setup_sects.
9610 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9612 Fix handling of EFI with big memory maps.
9614 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9615 (real_mode_mem): Likewise.
9616 (real_mode_target): Likewise.
9617 (real_mode_pages): Likewise.
9618 (prot_mode_pages): Likewise.
9619 (linux_params): New var.
9620 (linux_cmdline): Likewise.
9621 (free_pages): Don't set real mode variables.
9622 (allocate_pages): Don't allocate real mode memory.
9623 (grub_e820_add_region): Remove the limit.
9624 (grub_linux_boot): Allocate and copy real mode memory.
9625 (grub_linux_unload): Free linux_cmdline.
9626 (grub_cmd_linux): Use temporary storage for parameters.
9627 (grub_cmd_initrd): Likewise.
9628 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9629 (linux_kernel_params): Make it 1K big.
9631 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9633 * Makefile.util.def: Remove -Wno-format.
9634 * grub-core/Makefile.core.def: Likewise.
9636 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9638 * tests/cmp_unit_test.c: Add missing failure message.
9639 * tests/example_unit_test.c: Likewise.
9640 * tests/printf_unit_test.c: Likewise.
9642 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9644 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9645 relaxation of protective MBR requirements.
9647 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9649 * configure.ac: Add condition for COND_HOST_XNU.
9650 * Makefile.util.def (10_xnu): New script.
9651 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9653 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9655 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9658 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9660 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9661 Binary on other platforms stays identical.
9663 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9665 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9668 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9670 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9672 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9674 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9675 rather than defining size_t ourselves to avoid conflict.
9677 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9679 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9680 initialisation to avoid __bzero reference.
9682 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9684 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9686 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9687 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9688 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9689 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9690 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9692 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9694 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9695 * grub-core/kern/misc.c: Likewise.
9696 * grub-core/loader/i386/xnu.c: Likewise.
9697 * include/grub/i386/tsc.h: Likewise.
9698 * include/grub/symbol.h: Likewise.
9700 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9702 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9703 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9706 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9708 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9709 Implement Apple flavour.
9710 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9712 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9714 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9715 (memmove) [__APPLE__]: Likewise.
9716 (memcpy) [__APPLE__]: Likewise.
9717 (memset) [__APPLE__]: Likewise.
9718 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9719 (memmove) [__APPLE__]: Likewise.
9720 (memcpy) [__APPLE__]: Likewise.
9721 (memset) [__APPLE__]: Likewise.
9723 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9725 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9728 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9730 * grub-core/normal/main.c (read_config_file): Provide config_file and
9732 * util/grub.d/41_custom.in: Use config_directoy when available.
9734 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9736 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9737 (grub_bfs_dir): Likewise.
9739 2012-05-27 Peter Jones <pjones@redhat.com>
9741 The old code gives arguments to a printf function which can't work
9742 correctly, and the compiler complains.
9744 * grub-core/tests/example_functional_test.c (example_test): Add
9746 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9747 * include/grub/test.h (grub_test_assert_helper): New declaration.
9748 (grub_test_assert): Use grub_test_assert_helper.
9750 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9752 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9753 (exfctest): ... this to avoid overlong filenames.
9756 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9758 Handle "." and ".." on squashfs.
9760 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9761 Make inode numbers into stack.
9762 (grub_squash_read_symlink): Use stack.
9763 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9764 (make_root_node): Fill stack.
9765 (grub_squash_open): Use stack.
9767 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9769 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9772 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9774 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9775 stderr on test calls.
9777 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9779 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9781 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9783 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9785 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9787 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9790 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9792 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9793 (grub_hfsplus_iterate_dir): Add "." and "..".
9795 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9797 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9798 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9800 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9802 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9803 (find_path): Handle "." and "..".
9805 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9807 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9808 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9809 (grub_affs_iterate_dir): Handle hardlinks.
9811 2012-05-26 Matthew Garrett <mjg@redhat.com>
9813 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9814 (grub_efi_console_fini): Likewise.
9815 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9816 (grub_video_gop_fill_mode_info): Rename to ...
9817 (grub_video_gop_fill_real_mode_info): ... this.
9818 (grub_video_gop_fill_mode_info): New function.
9819 (grub_video_gop_setup): Setup double framebuffer.
9820 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9822 (grub_video_gop_swap_buffers): Copy framebuffer.
9823 (grub_video_gop_fini): Free offscreen buffer.
9824 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9826 (grub_efi_gop_blt_pixel): New struct.
9828 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9830 * gentpl.py: Remove error disabling for objconv.
9832 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9834 * configure.ac: Remove -Wunitialized as it's not available on older
9837 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9839 Fix extent overflow comparator.
9841 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9842 (grub_hfsplus_read_block): Set type.
9843 (grub_hfsplus_cmp_extkey): Compare type.
9845 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9847 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9849 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9851 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9854 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9856 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9857 (dejavu_bold_14.pf2): New target.
9859 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9861 * configure.ac: Fix djvu font detection.
9863 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9865 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9866 ext* instead of ext2.
9868 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9870 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9873 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9875 * docs/grub-dev.texi: Remove dot from .png.
9877 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9879 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9880 protective entry in any slot.
9881 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9882 if protective entry is found in any slot.
9884 Protective entry in non-first slot make no sense but is a widespread
9887 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9889 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9891 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9893 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9895 (grub_reiserfs_open): Don't free root.
9897 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9899 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9900 after freeing for safety.
9902 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9904 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9905 Reported by: Jordan Uggla.
9907 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9909 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9910 actual implementation. Specifically, clarify that the grub menu will
9911 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9914 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9916 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9919 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9921 Remove unjustified hard dependency of normal.mod on gfxterm.
9923 * include/grub/term.h (grub_term_output): New member fullscreen.
9924 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9925 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9926 (grub_gfxterm): Set .fullscreen.
9927 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9928 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9930 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9932 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9933 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9934 Mention case-insensitive AFFS, SFS and JFS.
9936 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9938 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9940 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9942 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9945 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9947 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9948 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9950 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9952 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9953 (grub_jfs_mount): Fill caseins.
9954 (grub_jfs_find_file): Respect caseins.
9956 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9958 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9961 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9963 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9964 New argument origpath. All users updated.
9966 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9968 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9969 (read_attr): Ensure that we read start of possibly compressed block.
9971 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9973 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9974 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
9977 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9979 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
9980 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
9981 (dejavu.pf2): Replace with ...
9982 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
9985 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9987 * util/grub.d/20_linux_xen.in: Add missing line.
9989 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9991 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
9992 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
9993 (grub_utf16_to_utf8): Likewise.
9995 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9997 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
9998 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
9999 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10000 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10001 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10002 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10004 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10006 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10009 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10011 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10012 (grub_udf_read_symlink): Handle read_string failure.
10014 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10016 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10019 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10021 Fix handling of UDF symlinks.
10023 * grub-core/fs/udf.c (read_string): New argument outbuf.
10025 (grub_ufs_read_symlink): Rename to ...
10026 (grub_udf_read_symlink): ... this. All users updated.
10027 Handle symlinks with more than one component.
10029 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10032 symlinks. Replace leading colon with a slash.
10034 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10036 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10039 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10041 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10042 match in inner node.
10044 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10046 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10047 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10048 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10049 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10050 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10051 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10052 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10053 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10054 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10056 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10058 Use grub-probe and not cmp to check that disk is empty.
10060 * util/grub-install.in: Use grub-probe for zero-check.
10061 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10062 (probe): Handle PRINT_ZERO_CHECK.
10063 (argp_parser): Handle -t zero_check.
10065 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10067 Flush block cache on adding disk to device map.
10069 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10070 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10072 (read_device_map): Likewise.
10073 (open_device): Flush on opening.
10075 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10077 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10078 (handle_symlink): Fix off-by-one error.
10079 Canonicalize the target.
10080 (grub_cpio_dir): Canonicalize the name.
10083 (grub_cpio_open): Canonicalize the name.
10085 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10087 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10090 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10092 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10093 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10095 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10097 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10098 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10101 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10103 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10106 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10108 Fix UFS1 big file support.
10110 * grub-core/fs/ufs.c (INODE): Removed.
10111 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10113 (INODE_MODE): Simplify.
10114 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10115 (grub_ufs_lookup_symlink): Don't use INODE.
10117 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10119 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10121 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10122 (grub_minix_data): Replace log_block_size with block_size.
10123 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10124 (grub_minix_mount): Fill block_size.
10126 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10128 * configure.ac: Bump to beta5.
10130 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10132 Fix wrapped HFS+ handling.
10134 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10135 blocks_start. All users updated.
10136 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10138 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10140 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10142 Fix long symlinks on reiserfs.
10144 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10145 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10146 (grub_reiserfs_iterate_dir): Save size for non-directories.
10147 (grub_reiserfs_open): Don't reread stat block as we already know the
10149 (grub_reiserfs_read): Split into...
10150 (grub_reiserfs_read_real): ... and ...
10151 (grub_reiserfs_read): ...this.
10153 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10155 Fix non-indexed JFS.
10157 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10158 (grub_jfs_data): New field namecomponentlen.
10159 (grub_jfs_mount): Fill namecomponentlen.
10160 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10162 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10164 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10165 * tests/grub_script_echo1.in: Add tests.
10167 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10169 * util/grub-install.in: Ignore empty devicetree directory.
10171 2012-05-08 Bean <bean123ch@gmail.com>
10173 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10175 (free_rsm): Free header as well.
10176 (free_old_fragments): Fix memory leak.
10177 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10178 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10179 (destroy_pq): Likewise.
10180 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10182 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10184 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10185 resulting hash as a precaution.
10187 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10189 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10190 '_' in variable names.
10191 * grub-core/net/net.c (grub_net_network_level_interface_register):
10194 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10196 Fix AFFS with non-512B blocks.
10198 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10199 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10200 (grub_affs_data): Replace blocksize with log_blocksize.
10201 (grub_affs_read_block): Fix non-512B blocks.
10202 (grub_affs_read_symlink): Likewise.
10203 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10204 (grub_affs_read): Fix non-512B blocks.
10205 (grub_affs_label): Likewise.
10206 (grub_affs_mtime): Likewise.
10207 (grub_affs_mount): Fix block detection routine.
10209 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10211 Add filesystem mtime to AFFS.
10213 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10214 (aftime2ctime): New function.
10215 (grub_affs_dir): Use aftime2ctime.
10216 (grub_affs_label): Fix return value.
10217 (grub_affs_mtime): New function.
10218 (grub_affs_fs): Add mtime.
10220 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10222 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10225 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10227 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10230 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10232 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10234 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10236 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10238 (FLAGS_CASE_SENSITIVE): New enum value.
10239 (cache_entry): New struct.
10240 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10241 cache_size and cache.
10242 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10243 Add log_blocksize and fshelp_flags.
10244 (grub_sfs_read_extent): Handle non-512 blocks.
10245 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10246 (grub_sfs_read_file): Handle non-512 blocks.
10247 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10249 (grub_sfs_read_symlink): Handle non-512 blocks.
10250 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10251 (grub_sfs_dir): Free cache.
10252 (grub_sfs_close): Likewise.
10254 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10256 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10259 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10261 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10263 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10265 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10267 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10269 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10270 (grub_sfs_read_extent): Likewise.
10271 (grub_sfs_read_block): Likewise.
10272 (grub_sfs_mount): Likewise.
10273 (grub_sfs_iterate_dir): Likewise.
10274 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10275 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10277 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10279 Fix errors on compressed NTFS with 512B clusters.
10281 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10283 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10285 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10286 Relax check for inline extents.
10287 (ntfscomp): Return correct -1 on error and not 0.
10289 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10291 * util/grub-install.in: Fix handling of prefix containing spaces.
10293 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10295 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10296 (grub_squash_read_data): Fix offset byte-swapping.
10298 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10300 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10301 per common usage and preffered in several parts of code.
10302 (grub_memcmp): Likewise.
10303 (grub_strncmp): Likewise.
10304 * include/grub/misc.h (grub_strcasecmp): Likewise.
10305 (grub_strncasecmp): Likewise.
10306 * Makefile.util.def (cmp_test): New test.
10307 (grub_script_strcmp): Likewise.
10308 * tests/cmp_unit_test.c: New file.
10309 * tests/grub_script_strcmp.in: Likewise.
10310 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10312 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10314 * include/grub/pci.h: Move enums into no-asm part.
10316 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10318 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10320 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10322 * util/getroot.c (find_hurd_root_device): Try to make error message
10323 and comments to translators clearer.
10325 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10327 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10329 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10331 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10334 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10336 * docs/grub.cfg: Update.
10338 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10340 * docs/grub.texi (PXE): Remove not present variables.
10342 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10344 * grub-core/net/net.c (defserver_set_env): New function.
10345 (defserver_get_env): Likewise.
10346 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10348 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10350 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10353 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10355 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10356 * grub-core/kern/emu/hostdisk.c: Likewise.
10358 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10360 Handle hurd userspace partitions.
10362 * util/getroot.c (find_hurd_root_device): New function.
10363 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10365 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10367 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10369 Reported by: Bastian Blank.
10371 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10373 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10374 crossing page boundary.
10376 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10378 Fix B-tree search in BFS, especially in presence of non-ASCII
10381 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10382 (find_in_b_tree): Use standard bsearch + btree algorithm.
10384 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10386 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10389 2012-05-03 Matthew Garrett <mjg@redhat.com>
10390 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10392 Suspend broadcom cards in order to stop their DMA.
10394 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10395 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10396 (pci): Don't build on x86 EFI.
10397 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10398 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10400 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10401 stop_broadcom if running on EFI.
10402 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10403 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10404 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10405 (grub_pci_find_capability): New proto.
10407 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10409 * docs/grub.texi: Remove dot from the extension as it apparently
10410 doesn't work with some makeinfo versions.
10412 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10414 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10415 with GRUB expectance.
10417 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10419 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10421 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10423 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10424 zero after directory block since last entry may be not 0-terminated if
10425 it ends on block boundary. Use continue instead of if spanning whole
10428 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10430 Support 4K sectors UDF inline files.
10432 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10433 (grub_udf_extended_file_entry): Likewise.
10434 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10436 (get_fshelp_size): New function.
10437 (grub_udf_read_icb): Read whole block.
10438 (grub_udf_iterate_dir): Likewise.
10439 (grub_udf_dir): Likewise.
10440 (grub_udf_open): Likewise.
10442 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10444 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10446 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10448 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10449 inline symlinks in addition to workaround.
10451 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10453 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10455 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10457 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10459 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10461 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10463 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10465 Fix reiserfs big seek times.
10467 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10468 exact. All users updated.
10469 (grub_reiserfs_read): Use nearest btree search for seeking.
10470 Fix return value on error.
10472 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10474 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10476 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10477 * docs/grub.texi: Update menuentry description.
10479 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10481 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10482 crash when embedding onto filesystem.
10484 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10486 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10489 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10491 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10493 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10495 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10498 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10499 2012-05-01 Bean <bean123ch@gmail.com>
10501 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10503 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10505 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10506 Special behaviour for len = 0 to read whole file isn't used anywhere and
10507 can cause buffer ovewrflows in several places.
10509 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10511 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10513 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10515 Handle RAIDZ on non-512B sectors.
10517 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10518 max_children_ashift.
10519 (fill_vdev_info_real): Fill max_children_ashift.
10520 (read_device): Use max_children_ashift.
10522 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10524 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10526 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10528 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10530 * docs/grub.texi: Update device.map parts.
10532 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10534 Don't scan into non-diskfilter devices having diskfilter names.
10536 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10537 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10539 (scan_disk_hook): New function.
10541 2012-04-29 Bean <bean123ch@gmail.com>
10543 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10546 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10548 * configure.ac: Detect starfield theme font path
10549 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10551 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10553 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10554 geometry on serial consoles.
10556 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10558 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10559 because of network consoles.
10561 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10563 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10566 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10568 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10569 falls on Q syndrom.
10571 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10573 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10574 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10576 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10578 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10579 Allocate at lest 8192 for temporary buffer as required for lzo.
10581 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10583 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10584 to cluster_bits, since it's already added in.
10585 (grub_fat_read_data): Likewise.
10587 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10589 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10590 as long as cluster size is multiple of 512 bytes.
10592 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10594 * util/grub-mkrescue.in: Fix locale directory.
10596 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10598 * grub-core/kern/emu/hostdisk.c (map): Make static.
10600 2012-04-23 Bean <bean123ch@gmail.com>
10602 * util/grub-fstest.c (fstest): Add missing break.
10604 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10608 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10609 not define nr variable.
10610 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10611 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10612 grub_find_device): Do not define.
10614 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10616 Fix kfreebsd compile and behaviour.
10618 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10620 * util/getroot.c: Fix wait.h include.
10621 (grub_guess_root_devices): Error if grub_find_device fails.
10622 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10623 (grub_util_get_dev_abstraction): Likewise.
10624 (grub_util_pull_device): Likewise.
10625 (grub_util_get_grub_dev): Likewise.
10626 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10628 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10630 Fix and unify wholedisk detection.
10632 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10633 is_part. All users updated.
10634 (device_is_wholedisk): Removed.
10635 (grub_util_biosdisk_get_grub_dev): Use is_part.
10637 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10639 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10642 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10644 * configure.ac: Bump to beta4.
10646 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10648 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10649 --fs-uuid --set UUID syntax.
10651 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10653 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10656 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10658 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10660 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10662 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10664 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10666 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10668 2012-04-18 Bean <bean123ch@gmail.com>
10670 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10673 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10675 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10677 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10678 corresponding to GRUB partitions.
10679 (grub_util_biosdisk_write): Likewise.
10681 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10683 Scan mdraid before LVM.
10685 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10686 (grub_diskfilter_register_front): ... this.
10687 (grub_diskfilter_register_back): New function.
10688 All users of grub_diskfilter_register updated.
10690 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10692 * util/grub-install.in: Fix an automatic target detection bug.
10694 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10696 * util/grub-install.in: New option --efi-directory.
10698 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10700 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10701 boot services if we have no other choice.
10703 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10705 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10707 * tests/util/grub-shell.in: Update to --directory.
10709 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10711 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10713 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10715 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10716 (grub_minix_read_file): Likewise.
10717 (grub_minix_read_inode): Likewise.
10718 (grub_minix_find_file): Likewise.
10719 (grub_minix_dir): Likewise.
10721 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10723 * util/grub-setup.c (setup): Fix partition handling and blocklist
10726 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10728 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10729 redundant buggy overlap check.
10731 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10733 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10736 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10738 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10739 kh.loadflags on pre-2.00 kernels.
10741 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10743 Terminate UNDI and PXE before launching the payload to avoid problems
10746 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10747 (grub_loader_flags): ... this. All users updated.
10748 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10749 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10750 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10751 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10753 (grub_pxe_restore): Likewise.
10754 (fini_hnd): New var.
10755 (GRUB_MOD_INIT): Register shutdown hook.
10756 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10757 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10758 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10759 (grub_loader_set): Rename second argument to flags.
10761 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10763 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10765 (grub_get_num_of_utf8_bytes): New function.
10766 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10767 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10769 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10770 (grub_ucs4_to_utf8): Change return type.
10772 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10774 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10776 * grub-core/fs/bfs.c (hop_level): Likewise.
10777 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10779 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10781 * grub-core/lib/adler32.c: Recode due to license unclearness.
10783 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10785 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10786 (test_header): Likewise.
10788 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10790 Fix --help formatting.
10792 * util/grub-mkconfig_lib.in (print_option_help): New function.
10793 (grub_fmt): Likewise.
10794 * util/grub-install.in: Use print_option_help and grub_fmt.
10795 * util/grub-kbdcomp.in: Likewise.
10796 * util/grub-mkconfig.in: Likewise.
10797 * util/grub-mknetdir.in: Likewise.
10798 * util/grub-mkrescue.in: Likewise.
10799 * util/grub-mkstandalone.in: Likewise.
10800 * util/grub-reboot.in: Likewise.
10801 * util/grub-set-default.in: Likewise.
10802 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10804 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10806 * linguas.sh: Remove autogenerated *.po.
10808 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10810 * po/README: Move language fetcing to ...
10811 * linguas.sh: ... here.
10812 * po/README: Point to linguas.sh.
10814 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10816 * po/README: Exclude ko.po due to disclaimer problems.
10818 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10820 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10822 (grub_gettext_translate_real): Handle 0th string.
10823 (grub_gettext_translate): Ensure that "" isn't translated.
10825 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10827 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10828 TRANSLATORS comment.
10829 (grub_diskfilter_print_partmap): Propagate changing of error into
10832 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10834 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10835 to uint64_t to prevent overflow.
10836 (grub_diskfilter_lv): Increase start_extent and extent_count
10837 to uint64_t to prevent overflow.
10839 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10841 * configure.ac: Increase version.
10843 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10845 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10847 * po/Rules-translit: New file.
10848 * po/arabic.sed: Likewise.
10849 * po/cyrillic.sed: Likewise.
10850 * po/greek.sed: Likewise.
10851 * po/hebrew.sed: Likewise.
10852 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10853 * po/Makefile.in.in: Add extra_dist4.
10855 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10857 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10859 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10860 modify names. Introduce MODE_BIGENDIAN.
10861 * grub-core/fs/minix_be.c: New file.
10862 * grub-core/fs/minix2_be.c: Likewise
10863 * grub-core/fs/minix3_be.c: Likewise.
10864 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10866 * grub-core/Makefile.core.def (minix_be): New module.
10867 (minix2_be): Likewise.
10868 (minix3_be): Likewise.
10870 2012-04-01 Felix <email@hamburg.de>
10872 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10873 (devs): Add MBP 2011.
10875 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10877 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10879 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10881 * grub-core/normal/cmdline.c (print_completion): New field
10883 (grub_cmdline_get): Handle width properly.
10885 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10887 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10889 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10891 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10892 after 29th of February.
10894 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10896 Fix exfat endianness handling.
10898 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10899 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10900 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10901 Byte-swap utf16 when necessary.
10902 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10904 2012-03-31 Anton Blanchard <anton@samba.org>
10905 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10907 Fix btrfs endianness handling.
10909 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10910 (lower_bound): Make root uint64_t. Use root in le.
10911 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10912 (find_path): Fix template key init.
10913 (grub_btrfs_dir): Fix mtime byteswap.
10914 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10916 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10918 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10919 recursion_depth. Break infinite resursions. All users updated.
10921 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10923 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10925 Reported by: Peter Jones.
10927 2012-03-31 Anton Blanchard <anton@samba.org>
10929 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10932 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10934 * util/grub-install.in: Fix nvram call for PreP.
10936 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10938 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10939 the error when some elements are missing into a warning.
10941 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10943 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10945 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10947 * docs/grub.texi (Invoking grub-probe): New section.
10948 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10950 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10952 Fix tab and wide character handling in editor and menu.
10954 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10955 agglomerate control characters with combining marks.
10956 (bidi_line_wrap): Allow break on tab.
10957 (grub_unicode_get_comb_start): New function.
10958 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10960 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10962 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10963 fixed_tab_size. All users updated.
10964 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10965 (grub_term_getcharwidth): Handle \t.
10966 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10969 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10971 Handle big-endian mdraid.
10973 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10974 * grub-core/Makefile.core.def (mdraid09_be): New module.
10975 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
10976 rather than grub_le_to_cpu* and grub_cpu_to_le*.
10977 * grub-core/disk/mdraid_linux_be.c: New file.
10979 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10981 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
10983 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10985 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10986 missing quotes which caused confusion among translators.
10988 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10990 * util/grub-mkconfig_lib.in: Fix typo.
10992 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10994 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
10996 * tests/grub_script_leading_whitespace.in: New file.
10997 * Makefile.util.def (grub_script_leading_whitespace): New test.
10999 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11001 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11004 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11006 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11007 starts with control character.
11009 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11011 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11013 (grub_gdb_outbuf): Likewise.
11015 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11017 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11018 zero terminator. Fixes a crash.
11020 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11022 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11024 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11025 images independently of preffered adderss field.
11027 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11029 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11030 * grub-core/commands/regexp.c: Likewise.
11031 * grub-core/loader/i386/linux.c: Likewise.
11032 * grub-core/partmap/msdos.c: Likewise.
11033 * grub-core/script/execute.c: Likewise.
11034 * grub-core/term/gfxterm.c: Likewise.
11036 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11038 Add variable parsing in $"..." and fix several mismatches with bash.
11040 * Makefile.util.def (grub_script_gettext): New test.
11041 * grub-core/script/execute.c (parse_string): New function.
11042 (gettext_append): Likewise.
11043 (grub_script_arglist_to_argv): Use gettext_append.
11044 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11045 * tests/grub_script_gettext.in: New file.
11047 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11049 Fix handling of leading spaces in scripts.
11051 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11053 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11054 other than skipping \r. All users updated.
11055 * tests/grub_script_echo1.in: Add space-related tests.
11056 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11058 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11060 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11062 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11064 * configure.ac: Bump up the version to beta2.
11066 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11068 Fix gettext reload bugs (e.g. inability to disable gettext
11071 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11072 main_context and secondary_context. All functions updated.
11073 (grub_gettext_translate): Rename to ...
11074 (grub_gettext_translate_real): ... this. Return NULL on failed
11076 (grub_gettext_translate): Handle secondary context.
11077 (grub_gettext_delete_list): Close file and zero-out the context.
11078 (grub_mofile_open): Don't call grub_gettext_delete_list.
11080 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11081 if locale="" to avoid pointless error message.
11082 (grub_gettext_env_write_lang): Update lang even if load fails.
11083 Handle secondary context.
11084 (grub_gettext_reread_prefix): New function.
11085 (read_main): Likewise.
11086 (read_secondary): Likewise.
11087 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11088 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11089 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11090 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11092 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11094 * configure.ac: Decrease warning level to avoid spurious warnings and
11095 to be able to compile with GCC 4.2.
11096 * Makefile.util.def: Remove -Wno-error=logical-op.
11098 2012-03-10 William Bittner <william.bittner@gmail.com>
11100 * util/import_unicode.py: Add missing brackets around string for
11103 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11105 Fix efi chainloader on network root.
11107 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11109 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11112 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11114 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11115 unused show_text member.
11116 * docs/grub.texi: Document "text" property.
11118 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11120 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11123 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11125 Fix IMSM handling on Fedora.
11127 * util/getroot.c (grub_util_is_imsm): New function.
11128 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11130 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11132 * Makefile.am: Strip gold section.
11133 * conf/Makefile.common: Likewise.
11134 * gentpl.py: Likewise.
11135 * grub-core/Makefile.core.def: Likewise.
11136 * grub-core/genmod.sh.in: Likewise.
11138 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11140 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11141 * util/grub.d/20_linux_xen.in: Likewise.
11142 Based on Debian patch.
11144 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11146 * util/grub.d/10_linux.in: Fix syntax error resulting in
11147 Richard Laager's patch.
11148 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11150 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11152 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11155 2012-03-10 Richard Laager <rlaager@wiktel.com>
11157 * util/grub.d/10_linux.in: Fix ZFS root passing.
11159 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11161 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11162 * grub-core/commands/xnu_uuid.c: Likewise.
11163 * grub-core/loader/efi/appleloader.c: Likewise.
11164 * grub-core/script/execute.c: Likewise.
11165 * grub-core/script/main.c: Likewise.
11166 * util/grub-mkfont.c: Likewise.
11168 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11170 * util/grub-mkfont.c (options): Use more appropriate "select" that
11171 "set" for face index.
11173 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11175 * util/grub-editenv.c (options): Gettextize command summaries.
11177 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11179 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11180 "out of memory" error messagge.
11182 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11184 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11185 of diskfilter for diskfilter on diskfilter support.
11187 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11189 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11191 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11193 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11196 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11198 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11200 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11202 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11204 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11206 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11209 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11211 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11213 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11215 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11217 * util/grub-install.in: Fix and gettextize error message.
11219 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11221 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11223 * util/grub-mount.c (options): Likewise.
11225 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11227 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11229 * grub-core/commands/search_wrap.c (options): Likewise.
11231 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11233 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11235 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11237 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11239 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11242 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11244 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11245 "temporary" since it's used in identifier and is limited in space.
11247 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11249 * po/POTFILES.in: Regenerate. Include *.h since they contain
11250 translatable strings as well.
11252 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11254 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11255 byte-swap on big-endian.
11256 Reported by: Lennart Sorensen
11258 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11260 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11261 (allocate_pages): Improve dprintf.
11262 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11263 code32_start. Fill code32_start and kernel_alignment in params.
11264 (grub_cmd_initrd): Use prot_init_space.
11266 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11268 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11270 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11272 * util/grub-install.in: Add missing dot at the end of sentence.
11274 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11276 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11277 * grub-core/commands/videotest.c: Likewise.
11278 * grub-core/loader/i386/linux.c: Likewise.
11280 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11282 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11284 Reported by: Milo Casagrande.
11286 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11288 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11289 * grub-core/commands/gptsync.c: Likewise.
11290 * grub-core/commands/hashsum.c: Likewise.
11291 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11292 * grub-core/commands/legacycfg.c: Likewise.
11293 * grub-core/io/gzio.c: Likewise.
11294 * grub-core/net/net.c: Likewise.
11295 * grub-core/term/gfxterm.c: Likewise.
11296 * grub-core/term/terminfo.c: Likewise.
11297 * grub-core/tests/test_blockarg.c: Likewise.
11298 * grub-core/video/video.c: Likewise.
11299 * util/grub-install.in: Likewise.
11300 * util/grub-mkfont.c: Likewise.
11302 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11304 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11306 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11308 * grub-core/commands/search_wrap.c (options): Fix a typo.
11309 Reported by: David Prévot.
11311 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11313 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11316 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11318 * util/grub-script-check.c (main): Fix a syntax error message which was
11321 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11323 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11325 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11327 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11330 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11332 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11334 * util/grub-mount.c (options): Likewise.
11336 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11338 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11340 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11342 * grub-core/net/http.c: Add TRANSLATORS comments.
11343 * grub-core/normal/cmdline.c: Likewise.
11344 * grub-core/normal/misc.c: Likewise.
11345 * grub-core/partmap/msdos.c: Likewise.
11346 * grub-core/parttool/msdospart.c: Likewise.
11347 * grub-core/script/execute.c: Likewise.
11348 * grub-core/script/main.c: Likewise.
11349 * grub-core/term/terminfo.c: Likewise.
11350 * grub-core/video/bitmap.c: Likewise.
11351 * util/grub-install.in: Likewise.
11352 * util/grub-mkimage.c: Likewise.
11353 * util/grub-mklayout.c: Likewise.
11354 * util/grub-setup.c: Likewise.
11356 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11358 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11359 with similar messages in grub-fstest.
11361 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11363 * util/grub-install.in: Unify "option requires an argument" message
11364 with similar messages in other files.
11365 * util/grub-mkconfig.in: Likewise.
11367 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11369 * util/grub-set-default.in: Replace printf with gettext_printf (the
11370 string in in question is already translated from grub-reboot)
11372 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11374 * configure.ac: Bump up the version to beta1.
11376 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11378 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11379 case when min_align = 0.
11381 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11383 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11384 and fix a case when line_start overflows.
11386 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11388 * util/grub-reboot.in (usage): Mention id posibility.
11389 * util/grub-set-default.in (usage): Likewise.
11391 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11393 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11394 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11395 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11396 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11397 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11398 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11399 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11401 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11403 * grub-core/commands/menuentry.c (options): Remove
11404 GRUB_ARG_OPTION_REPEATABLE.
11405 Reported by: Andreas Vogel
11407 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11409 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11411 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11413 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11416 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11418 Use sort -V by the idea of Georgi Georgiev.
11420 * util/grub-mkconfig_lib.in (version_sort): New function.
11421 (version_test_numeric): Use version_sort.
11423 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11425 Use submenus in grub-mkconfig.
11427 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11428 * util/grub-mkconfig_lib.in (grub_quote): New function.
11429 (gettext_printf): Use gettext and not gettext_quoted to fix several
11431 * util/grub.d/10_hurd.in: Use submenus.
11432 * util/grub.d/10_kfreebsd.in: Likewise.
11433 * util/grub.d/10_linux.in: Likewise.
11434 * util/grub.d/10_netbsd.in: Likewise.
11435 * util/grub.d/20_linux_xen.in: Likewise.
11436 * util/grub.d/30_os-prober.in: Likewise.
11437 * util/grub.d/10_illumos.in: Add missing quoting.
11438 * util/grub.d/10_windows.in: Likewise.
11440 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11442 Fix menu title instability bug.
11444 * grub-core/commands/menuentry.c (options): New option --id.
11445 (grub_normal_add_menu_entry): New argument id. All users updated.
11446 (grub_cmd_menuentry): Handle --id.
11447 (grub_menu_init): Accept unknown arguments.
11448 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11449 feature_menuentry_options.
11450 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11452 (get_entry_number): Match with id as well.
11453 * include/grub/menu.h (grub_menu_entry): New member id.
11454 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11455 * util/grub.d/00_header.in: Define menuentry_id_option.
11456 * util/grub.d/10_hurd.in: Define id.
11457 * util/grub.d/10_illumos.in: Likewise.
11458 * util/grub.d/10_kfreebsd.in: Likewise.
11459 * util/grub.d/10_linux.in: Likewise.
11460 * util/grub.d/10_netbsd.in: Likewise.
11461 * util/grub.d/10_windows.in: Likewise.
11462 * util/grub.d/20_linux_xen.in: Likewise.
11463 * util/grub.d/30_os-prober.in: Likewise.
11465 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11467 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11468 "scope" with "body".
11470 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11472 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11473 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11474 prot_size and prot_file_size.
11476 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11478 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11479 All users updated. If easily=1 require raid-5/-6 to be full.
11480 (is_node_readable): Likewise.
11481 (scan_devices): Scan incomplete but readable LVs at the end.
11482 (grub_diskfilter_memberlist): Pull missing devices.
11483 (insert_array): Skip scanning until device is complete or scan is
11485 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11487 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11488 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11490 2012-03-03 Matthew Garrett <mjg@redhat.com>
11491 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11493 Avoid EFI boot services when loading Linux.
11495 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11496 avoid_efi_bootservices. All users updated.
11497 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11498 argument avoid_efi_bootservices. All users updated.
11499 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11500 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11501 align, min_align, relocatable, prefered_address. All users updated.
11502 Allocate avoiding boot services if kernel is relocatable.
11503 (grub_cmd_linux): Check if kernel is relocatable.
11504 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11505 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11506 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11507 avoid_efi_boot_services.
11508 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11509 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11510 (linux_kernel_params): Likewise.
11512 2012-03-03 Matthew Garrett <mjg@redhat.com>
11513 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11517 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11519 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11520 modes. Set gop_handle.
11521 (grub_video_gop_get_edid): New function.
11522 (grub_gop_get_preferred_mode): Likewise.
11523 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11524 (grub_video_efi_gop_adapter): Set .get_edid.
11525 * include/grub/efi/edid.h: New file.
11526 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11528 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11530 * util/grub-install.in: Load efivars unconditionally.
11532 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11534 * po/Rules-piglatin: Change suffix from .po-update-en to
11535 .po-update-en-piglatin.
11537 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11541 * po/piglatin.sed: New file.
11542 * po/en@piglatin.header: Likewise.
11543 * po/Rules-piglatin: Likewise.
11544 * po/README: Add en@piglatin to autogenerated languages.
11546 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11548 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11550 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11551 "Check" since we don't check anything.
11552 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11554 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11555 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11556 (grub_md_sha512_real): Likewise.
11558 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11560 * grub-core/commands/gptsync.c: Fix typographic quoting.
11561 * grub-core/commands/ieee1275/suspend.c: Likewise.
11562 * grub-core/commands/parttool.c: Likewise.
11563 * grub-core/commands/search_wrap.c: Likewise.
11564 * grub-core/commands/videoinfo.c: Likewise.
11565 * grub-core/gfxmenu/gui_label.c: Likewise.
11566 * grub-core/hello/hello.c: Likewise.
11567 * grub-core/kern/emu/main.c: Likewise.
11568 * grub-core/net/net.c: Likewise.
11569 * grub-core/normal/menu.c: Likewise.
11570 * grub-core/normal/menu_text.c: Likewise.
11571 * grub-core/normal/misc.c: Likewise.
11572 * util/grub-editenv.c: Likewise.
11573 * util/grub-install.in: Likewise.
11574 * util/grub-kbdcomp.in: Likewise.
11575 * util/grub-mkconfig.in: Likewise.
11576 * util/grub-mknetdir.in: Likewise.
11577 * util/grub-mkrescue.in: Likewise.
11578 * util/grub-mkstandalone.in: Likewise.
11579 * util/grub-reboot.in: Likewise.
11580 * util/grub-set-default.in: Likewise.
11581 * util/grub-setup.c: Likewise.
11582 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11584 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11586 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11587 * grub-core/commands/keystatus.c: Likewise.
11588 * grub-core/commands/loadenv.c: Likewise.
11589 * grub-core/commands/probe.c: Likewise.
11590 * grub-core/commands/regexp.c: Likewise.
11591 * grub-core/commands/true.c: Likewise.
11592 * grub-core/commands/videoinfo.c: Likewise.
11593 * grub-core/disk/cryptodisk.c: Likewise.
11594 * grub-core/disk/ldm.c: Likewise.
11595 * grub-core/disk/loopback.c: Likewise.
11596 * grub-core/disk/luks.c: Likewise.
11597 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11598 * grub-core/kern/disk.c: Likewise.
11599 * grub-core/kern/emu/hostdisk.c: Likewise.
11601 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11603 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11604 * util/grub-install.in: Add missing quote in the comment.
11606 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11608 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11609 * grub-core/commands/lsmmap.c: Likewise.
11610 * grub-core/commands/minicmd.c: Likewise.
11611 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11612 * grub-core/commands/regexp.c: Likewise.
11613 * grub-core/gdb/gdb.c: Likewise.
11614 * grub-core/term/gfxterm.c: Likewise.
11615 * util/grub-mkconfig.in: Likewise.
11616 * util/grub-mkfont.c: Likewise.
11617 * util/grub-mklayout.c: Likewise.
11618 * util/grub-mknetdir.in: Likewise.
11619 * util/grub-mkrescue.in: Likewise.
11620 * util/grub.d/30_os-prober.in: Likewise.
11622 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11624 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11625 with "Direct color" and "Packed" with "Packed pixel".
11626 (grub_cmd_videoinfo): Simplify legend.
11628 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11630 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11631 absolutely unclear error message.
11633 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11635 * util/grub-mkstandalone.in: Remove confusing leftover print.
11637 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11639 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11641 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11642 (GRUB_MOD_INIT): Likewise.
11643 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11645 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11647 * util/grub-install.in (usage): Likewise.
11648 Spell ID in whole letters.
11649 Add missing ending dot.
11651 * util/grub-reboot.in: Fix capitalisation.
11652 * util/grub-set-default.in: Likewise.
11654 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11656 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11657 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11658 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11659 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11660 Disable -Werror for -Wdeprecated-declarations.
11661 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11662 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11663 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11664 (grub_util_get_grub_dev): Make luks handling dependent on
11665 HAVE_DEVICE_MAPPER and not __linux__.
11666 (get_win32_path): Fix format security.
11667 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11668 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11669 Don't try grub_find_zpool_from_dir.
11670 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11671 #ifdef-out paresdir.
11673 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11675 * util/grub-pe2elf.c (usage): Add missing noreturn.
11676 (write_section_data): Rename name to shname to avoid shadowing.
11677 (write_symbol_table): Rename name to symname to avoid shadowing.
11678 Fix write_reloc_section call.
11680 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11682 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11683 to ensure that it's after the last byte of .text.
11685 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11687 * util/ieee1275/ofpath.c (my_isdigit): New function.
11688 (trailing_digits): Use my_isdigit.
11689 (strip_trailing_digits): Likewise.
11691 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11693 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11694 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11696 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11698 * grub-core/kern/i386/pc/startup.S: Define __start.
11700 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11702 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11703 strip already transforms he format.
11705 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11707 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11709 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11711 * util/grub-install.in: Add missing gettext init.
11712 * util/grub-kbdcomp.in: Likewise.
11713 * util/grub-mkconfig.in: Likewise.
11714 * util/grub-mknetdir.in: Likewise.
11715 * util/grub-mkrescue.in: Likewise.
11716 * util/grub-mkstandalone.in: Likewise.
11717 * util/grub-reboot.in: Likewise.
11718 * util/grub-set-default.in: Likewise.
11719 * util/grub.d/00_header.in: Likewise.
11720 * util/grub.d/10_hurd.in: Likewise.
11721 * util/grub.d/10_windows.in: Likewise.
11722 * util/grub.d/30_os-prober.in: Likewise.
11723 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11725 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11727 * po/Rules-swiss: Fix header comment.
11729 2012-02-29 Andreas Vogel <anvoit>
11731 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11732 resulted in leak of arguments.
11734 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11736 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11737 reed_solomon_size const definition instead of computing it since
11738 Apple assembler doesn't support the later.
11740 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11742 * gentpl.py (kernel): Rewrite Apple part.
11744 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11746 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11748 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11750 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11752 (load_image): Likewise.
11754 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11756 * configure.ac: Fix a typo in previous commit.
11758 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11760 Don't add -Wl,-N on Apple platform.
11762 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11763 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11765 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11767 * grub-core/Makefile.core.def (lzma_decompress): Use
11768 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11770 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11772 * grub-core/genmod.sh.in: Rewrite the Apple part.
11774 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11776 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11779 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11781 * acinclude.m4 (grub_CHECK_PIC): New test.
11782 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11784 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11786 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11787 to avoid the warning.
11789 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11791 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11792 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11793 after. All users updated.
11795 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11797 Use the common size routine in hostfs so we can read disks as well.
11799 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11800 (grub_util_get_fd_size): ... this. Return size in bytes.
11802 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11803 grub_util_get_fd_size.
11805 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11807 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11808 Add blocksize retrieval.
11810 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11812 * configure.ac: Restore CFLAGS after efiemu check.
11814 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11816 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11819 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11821 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11823 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11825 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11826 (grub_cmd_halt): Likewise.
11828 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11830 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11831 for local arithmetics.
11832 Break %sp init into 2 instructions.
11833 Add 0 byte at the end.
11835 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11837 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11840 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11842 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11845 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11847 * grub-core/disk/ldm.c (make_vg): Init part.name.
11848 (grub_ldm_detect): Silence spurious warning.
11849 (grub_util_is_ldm): Likewise.
11851 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11853 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11854 sane value to avoid a spurious warning.
11856 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11858 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11859 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11861 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11863 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11864 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11866 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11868 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11869 hardcoding the relevant info.
11871 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11873 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11874 missing const qualifiers.
11875 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11877 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11879 * util/getroot.c [__APPLE__]: Add missing includes.
11880 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11882 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11884 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11886 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11888 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11891 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11893 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11895 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11897 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11898 and grub_file_close call.
11900 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11902 Add LZSS Mach-O support (needed for new xnu kernelcache).
11904 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11905 * grub-core/loader/lzss.c: New file.
11906 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11907 on Mach-O open failure.
11908 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11909 Don't free cmdsXX in uncompressedXX is set.
11910 (grub_macho_file): Init new fields.
11911 New argument is_64bit. All users updated.
11912 Handle compressed. Error out if no suitable architecture is found.
11914 (grub_macho_open): New argument is_64bit. All users updated.
11915 * grub-core/loader/macho32.c: Add defines for new fields.
11916 * grub-core/loader/macho64.c: Likewise.
11917 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11918 (grub_macho_parse): Handle compressed.
11919 Defer actual processing if compressed.
11920 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11921 "filename". All users updated.
11922 (grub_macho_size): New argument "filename". All users updated.
11923 (grub_macho_get_entry_point): Likewise.
11924 (grub_macho_load): Handle compressed.
11925 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11926 (GRUB_MACHO_LZSS_OFFSET): New define.
11927 (grub_decompress_lzss): New proto.
11928 * include/grub/machoload.h (grub_macho_file): New fields to handle
11930 (grub_macho_contains_macho64): Remove proto.
11931 (grub_macho_contains_macho32): Likewise.
11932 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11934 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11936 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11938 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11942 * Makefile.am (starfield_theme_files): New var.
11943 (starfield_DATA): Use starfield_theme_files.
11944 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11945 Add bootcheck-related files.
11946 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11947 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11948 and font_char_metrics.txt.
11949 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11950 (setjmp): Add lib/ia64/longjmp.S.
11951 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11952 * po/POTFILES.in: Regenerate.
11953 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11954 DISTFILES.common.extra1.
11955 * util/devicemap.c: Removed.
11956 * grub-core/lib/i386/relocator_backward.S: Likewise.
11957 * util/import_gcry.py: Remove unused files. Add extra_dist for
11960 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11962 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11963 grub_gettext_delete_list before changing grub_gettext_max to avoid
11964 running out of array bounds.
11966 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11968 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11969 grub_vga_text_init/grub_vga_text_fini.
11971 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11973 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
11975 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11977 * configure.ac: Bump to 2.00~beta0.
11979 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11981 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
11982 missing initialisation.
11984 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11986 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
11988 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11990 Support v2 xnu boot arguments.
11992 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
11993 New argument fsbfreq_out.
11994 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11995 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
11997 * grub-core/loader/machoXX.c (grub_macho_load): New argument
11999 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12000 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12001 (grub_xnu_boot_params): Rename to ...
12002 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12003 (grub_xnu_boot_params_v2): New struct.
12005 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12007 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12008 zeroing of CRC field before computing CRC.
12010 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12012 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12013 Change order of allocations to decrease fragmentation.
12015 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12017 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12019 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12021 Use write-combining MTRR to speed up video with buggy BIOSes.
12023 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12024 (cpuid): New define.
12027 (mtrr_base): Likewise.
12028 (mtrr_mask): Likewise.
12029 (grub_vbe_enable_mtrr_entry): New function.
12030 (grub_vbe_enable_mtrr): Likewise.
12031 (grub_vbe_disable_mtrr): Likewise.
12032 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12033 control off to BIOS.
12034 (grub_video_vbe_init): Fill mtrr.
12035 (grub_video_vbe_fini): Disable mtrr.
12036 (grub_video_vbe_get_info_and_fini): Likewise.
12037 (grub_video_vbe_setup): Enable mtrr.
12039 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12041 * include/grub/partition.h (grub_partition_map): Change prototype of
12042 embed to take a maximum value for nsectors.
12043 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12044 * include/grub/fs.h (grub_fs): Likewise.
12045 * grub-core/partmap/msdos.c (embed_signatures): New array.
12046 (pc_partition_map_embed): Check for and avoid sectors matching any
12047 of the signatures in embed_signatures, up to max_nsectors.
12048 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12049 returned sector map to max_nsectors.
12050 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12051 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12052 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12053 * util/grub-setup.c (setup): Allow for the embedding area being
12054 split into multiple blocklists. Tell dest_partmap->embed the
12055 maximum number of sectors we care about.
12057 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12059 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12060 Specify blocklist_install and reserver_first_sector for all fs.
12061 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12064 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12066 * util/grub-install.in: Clarify strings.
12067 Fix source dir check.
12069 2012-02-27 Richard Laager <rlaager@wiktel.com>
12071 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12072 "zfs" and "fuse.zfs" as synonyms.
12074 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12076 * configure.ac: Put platform and target_cpu substitutions back since
12077 they are used for directories.
12079 2012-02-27 Richard Laager <rlaager@wiktel.com>
12080 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12082 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12083 * util/grub.d/20_linux_xen.in: Likewise.
12085 2012-02-27 Richard Laager <rlaager@wiktel.com>
12087 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12090 2012-02-27 Richard Laager <rlaager@wiktel.com>
12092 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12095 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12097 Don't use insecure popen in getroot.
12099 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12100 (exec_pipe): ... here.
12101 (find_root_devices_from_poolname): Use exec_pipe.
12103 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12105 Remove platform and target_cpu replacement.
12107 * configure.ac: Remove platform and target_cpu substitutions.
12108 * tests/util/grub-shell.in: Use modinfo.
12109 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12112 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12114 Autodetect platform in grub-install but allow override.
12116 * util/grub-install.in: Autodetect platform. Support --target and
12117 --directory. Read platform from modinfo.sh.
12119 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12121 Support btrfs multi-volume probe.
12123 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12124 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12125 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12126 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12127 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12128 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12129 grub_find_root_devices_from_btrfs if on btrfs.
12131 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12133 Remove any awareness of *.c util files about target.
12135 * Makefile.util.def (grub-setup): Split to ...
12136 (grub-bios-setup): ... and this.
12137 (grub-sparc64-setup): ... and this.
12138 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12139 * docs/man/grub-setup.h2m: Split into ...
12140 * docs/man/grub-sparc64-setup.h2m: ... this.
12141 * docs/man/grub-bios-setup.h2m: ... and this.
12142 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12143 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12144 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12145 (grub_target_addr_t): Remove.
12146 (grub_target_size_t): Remove.
12147 (grub_target_ssize_t): Remove.
12148 * util/grub-install.in: Use new grub-*-setup.
12149 * util/grub-mkimagexx.c (Elf_Word): New define.
12150 (Elf_Half): Likewise.
12151 (Elf_Section): Likewise.
12152 (ELF_ST_TYPE): Likewise.
12153 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12154 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12156 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12158 Replace grub_target_addr with more appropriate types.
12160 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12161 grub_target_addr with grub_addr.
12162 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12163 grub_target_addr with grub_port.
12164 (grub_cmd_write): Likewise.
12165 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12166 grub_target_addr with grub_addr.
12167 (grub_cmd_write): Likewise.
12168 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12170 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12172 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12173 const qualifier for vendor_guid.
12175 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12177 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12179 (efiemu_memequal): Likewise.
12180 (find_variable): Likewise.
12182 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12184 Fix missing console prototype on qemu-mips.
12186 * include/grub/mips/qemu_mips/console.h: New file.
12188 2012-02-27 Matthew Garrett <mjg@redhat.com>
12189 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12191 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12192 * include/grub/efi/efi.h: Likewise.
12193 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12194 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12195 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12196 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12197 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12198 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12200 2012-02-27 Matthew Garrett <mjg@redhat.com>
12202 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12204 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12206 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12209 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12211 * configure.ac: Remove inappropriate use of program_transform_name
12212 on grubdir and bootdir but allow explicit specification of those
12215 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12217 * util/grub-mknetdir.in (grub_prefix): Removed.
12218 (subdir): Use @bootdirname@ and @grubdirname@.
12220 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12222 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12224 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12226 * po/POTFILES.in: Regenerated.
12228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12230 Remove improper use of program_transform_name on pkglibrootdir.
12232 * configure.ac (pkglibrootdir): Removed.
12233 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12234 * util/grub-mkimage.c: Likewise.
12236 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12238 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12241 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12243 * util/grub-install.in: Use file identifier if no UUID is available
12244 or user explicitly prompted for it.
12246 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12248 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12249 (freebsd_get_zfs): New function.
12250 (grub_freebsd_boot): Pass zfs UUID.
12251 (grub_cmd_freebsd): Set zfs UUID.
12253 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12255 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12258 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12260 Add configure flag to control libzfs integration.
12262 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12264 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12266 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12268 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12271 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12273 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12274 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12275 be used on non-modules.
12277 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12278 Rename to grub_boot_init.
12279 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12280 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12281 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12282 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12283 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12284 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12285 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12286 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12288 (grub_machine_init): Remove empty inits.
12289 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12291 (grub_machine_init): Remove empty inits.
12292 * grub-core/term/arc/console.c: Remove explicit proto.
12293 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12294 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12295 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12296 grub_at_keyboard_fini.
12297 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12298 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12299 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12301 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12302 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12303 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12305 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12306 * grub-core/term/serial.c (GRUB_MOD_INIT)
12307 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12308 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12310 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12311 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12312 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12313 grub_terminfo_fini.
12314 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12315 (GRUB_MOD_FINI): Likewise.
12316 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12317 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12318 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12319 grub_video_radeon_fuloong2e_fini.
12320 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12321 [LOONGSON]: Rename to grub_video_sis315pro_init.
12322 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12323 grub_video_sis315pro_fini.
12324 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12325 [LOONGSON]: Rename to grub_video_sm712_init.
12326 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12327 grub_video_sm712_fini.
12328 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12329 (grub_at_keyboard_fini): Likewise.
12330 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12331 Don't declare grub_{modname}_init.
12332 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12333 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12335 (grub_keylayouts_fini) [!EMU]: Likewise.
12336 * include/grub/serial.h (grub_serial_init) [!EMU]:
12338 (grub_serial_fini) [!EMU]: Likewise.
12339 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12341 (grub_terminfo_fini) [!EMU]: Likewise.
12342 * include/grub/video.h (grub_font_init) [!EMU]:
12344 (grub_font_fini) [!EMU]: Likewise.
12345 (grub_gfxterm_init) [!EMU]: Likewise.
12346 (grub_gfxterm_fini) [!EMU]: Likewise.
12347 (grub_video_sm712_init) [!EMU]: Likewise.
12348 (grub_video_sm712_fini) [!EMU]: Likewise.
12349 (grub_video_sis315pro_init) [!EMU]: Likewise.
12350 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12351 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12352 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12354 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12356 Make nand a prefix for nand devices.
12358 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12360 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12362 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12363 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12365 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12367 * include/grub/env.h (grub_env_find): Remove prototype.
12368 * grub-core/kern/env.c (grub_env_find): Make static.
12369 (grub_env_set): Remove useless set.
12371 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12373 * grub-core/kern/i386/realmode.S: Remove useless align.
12375 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12377 * include/grub/dl.h (grub_dl_load_file): Don't export.
12379 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12381 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12384 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12386 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12388 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12389 not reloading whole superblock but only the part which is really needed.
12390 Remove useless grub_errors.
12391 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12394 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12396 Don't export grub_get_rtc.
12398 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12399 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12401 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12403 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12405 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12407 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12408 argument since it can be deduced from diskfilter. All users updated.
12410 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12414 * include/grub/list.h (grub_prio_list): Removed.
12415 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12416 GRUB_COMMAND_PRIO_MASK.
12417 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12418 GRUB_COMMAND_FLAG_ACTIVE.
12419 (grub_prio_list_insert): Removed.
12420 (grub_prio_list_remove): Likewise.
12421 (GRUB_AS_PRIO_LIST): Likewise.
12422 (GRUB_AS_PRIO_LIST_P): Likewise.
12423 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12424 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12425 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12426 * grub-core/kern/command.c (grub_register_command_prio): Inline
12427 the prio_list code.
12428 (grub_unregister_command): Likewise.
12430 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12432 Fix interrupt mixup from previous commit.
12434 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12435 (grub_realidt): New var.
12436 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12438 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12440 (grub_relocator16_boot): Set grub_relocator16_idt.
12441 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12442 (LOCAL(realidt)): ... this.
12443 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12444 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12445 (grub_realidt): New variable.
12447 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12449 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12450 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12451 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12452 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12454 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12455 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12456 * po/POTFILES.in: Regenerate.
12458 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12460 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12463 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12465 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12467 (add_length): Likewise.
12469 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12470 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12472 GDB serial and backtrace support.
12474 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12475 (prot_to_real): Likewise.
12476 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12477 * grub-core/Makefile.core.def (backtrace): New module.
12479 * grub-core/gdb/cstub.c: New file.
12480 * grub-core/gdb/gdb.c: Likewise.
12481 * grub-core/gdb/i386/idt.c: Likewise.
12482 * grub-core/gdb/i386/machdep.S: Likewise.
12483 * grub-core/gdb/i386/signal.c: Likewise.
12484 * grub-core/lib/i386/backtrace.c: Likewise.
12485 * grub-core/lib/backtrace.c: Likewise.
12486 * include/grub/backtrace.h: Likewise.
12487 * include/grub/gdb.h: Likewise.
12488 * include/grub/i386/gdb.h: Likewise.
12490 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12492 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12494 (add_length): Likewise.
12495 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12496 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12498 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12499 __argp_get_display_len.
12501 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12503 $"..." support in scripts.
12505 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12506 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12507 * grub-core/script/yylex.l: Likewise.
12508 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12511 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12513 * gentpl.py: Remove obsolete pkglib_DATA handling.
12515 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12517 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12520 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12521 * util/grub-kbdcomp.in: Likewise.
12522 * util/grub-mkconfig.in: Likewise.
12523 * util/grub-mkconfig_lib.in: Likewise.
12524 * util/grub-mknetdir.in: Likewise.
12525 * util/grub-mkrescue.in: Likewise.
12526 * util/grub-mkstandalone.in: Likewise.
12527 * util/grub-reboot.in: Likewise.
12528 * util/grub-set-default.in: Likewise.
12529 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12531 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12533 Remove GRUB_PREFIX.
12535 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12536 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12537 used for backward compatibility.
12539 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12541 Add new all_video module.
12543 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12544 * grub-core/Makefile.core.def (all_video): New module.
12545 * grub-core/genmoddep.awk: Generate dependency of all_video from
12547 * grub-core/lib/fake_module.c: New file.
12548 * grub-core/normal/main.c (features): Add feature_all_video_module.
12549 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12550 don't do explicit search again.
12551 insmod all_video in load_video if available.
12553 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12555 Another round of string clarification and adding TRANSLATORS comments.
12557 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12559 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12561 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12563 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12565 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12566 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12568 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12570 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12571 trailing newline implicitly. All users updated.
12573 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12575 Implement serial on IEEE1275 and EFI.
12577 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12578 on emu. Mention arc and emu as the only platforms without serial
12580 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12581 ieee1275 platforms.
12582 * grub-core/term/efi/serial.c: New file.
12583 * grub-core/term/ieee1275/serial.c: Likewise.
12584 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12585 specification if no ns8250 driver is available.
12586 (grub_cmd_serial): Likewise.
12587 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12588 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12589 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12590 (grub_efi_parity_type_t): New type.
12591 (grub_efi_stop_bits_t): Likewise.
12592 (grub_efi_serial_io_interface): New struct.
12593 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12594 available for all interfaces.
12595 Add EFI and IEEE1275 fields.
12596 (grub_ofserial_init): New proto.
12597 (grub_efiserial_init): Likeiwse.
12598 * util/grub.d/00_header.in: Don't check for the presence of serial
12601 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12603 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12604 name as if it was an alias.
12606 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12608 * grub-core/commands/lsacpi.c (options): Fix typo.
12610 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12612 Convert grub-emu to argp.
12614 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12616 * util/argp_common.c: Rename to ...
12617 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12618 Add missing includes.
12619 * grub-core/kern/emu/main.c: Convert to argp.
12620 * po/POTFILES.in: Regenerate.
12621 * util/grub-install.in (usage): Make first letter lowcase in messages
12623 * util/grub-setup.c (options): Likewise.
12625 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12627 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12628 Put back accidently commented-out code.
12630 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12632 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12633 loop check using Brent algorithm.
12634 (grub_hfsplus_btree_search): Likewise.
12636 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12638 * util/grub-install.in: Fix usage of wrong device for PreP install.
12640 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12642 * conf/Makefile.common (CFLAGS_GNULIB): Add
12643 -Wno-unsafe-loop-optimizations.
12644 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12646 * grub-core/commands/legacycfg.c: Add pragma to skip
12647 -Wunsafe-loop-optimizations.
12648 (check_password_md5_real): Fix loop counter type.
12649 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12651 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12652 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12654 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12655 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12656 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12658 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12659 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12660 avoid possible infinite loops.
12661 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12662 and -Wunsafe-loop-optimizations.
12663 * grub-core/script/yylex.l: Likewise.
12664 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12665 (print_glyphs): Avoid infinite loops.
12666 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12668 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12670 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12671 to avoid infinite loop.
12672 (disp_acpi_rsdt_table): Likewise.
12674 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12676 * grub-core/font/font.c (grub_font_load): Add support for default
12677 path for fonts ($prefix/fonts).
12678 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12679 for checking if string is a path.
12680 * grub-core/normal/main.c (features): Add feature_default_font_path.
12681 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12682 * util/grub.d/00_header.in: Use default directory if possible.
12683 * util/grub-install.in: Install unicode.pf2.
12685 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12687 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12688 * po/Rules-swiss: New file.
12689 * po/swiss.sed: Likewise.
12691 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12693 * grub-core/fs/btrfs.c (find_device): Fix typos.
12694 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12695 * util/grub-mkrelpath.c (argp_parser): Likewise.
12696 Reported by: Yuri Chornoivan.
12698 2012-02-23 Dalet Omega <daletomega@gmail.com>
12700 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12701 for usual informative messages.
12703 2012-02-23 Dalet Omega <daletomega@gmail.com>
12707 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12708 * conf/Makefile.common: Define starfielddir.
12709 * configure.ac: Configure starfield.
12710 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12711 * themes/starfield/README: Likewise.
12712 * themes/starfield/blob_w.png: Likewise.
12713 * themes/starfield/boot_menu_c.png: Likewise.
12714 * themes/starfield/boot_menu_e.png: Likewise.
12715 * themes/starfield/boot_menu_n.png: Likewise.
12716 * themes/starfield/boot_menu_ne.png: Likewise.
12717 * themes/starfield/boot_menu_nw.png: Likewise.
12718 * themes/starfield/boot_menu_s.png: Likewise.
12719 * themes/starfield/boot_menu_se.png: Likewise.
12720 * themes/starfield/boot_menu_sw.png: Likewise.
12721 * themes/starfield/boot_menu_w.png: Likewise.
12722 * themes/starfield/slider_c.png: Likewise.
12723 * themes/starfield/slider_n.png: Likewise.
12724 * themes/starfield/slider_s.png: Likewise.
12725 * themes/starfield/src/blob_nw.xcf: Likewise.
12726 * themes/starfield/src/bootmenu/: Likewise.
12727 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12728 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12729 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12730 * themes/starfield/src/slider_c.xcf: Likewise.
12731 * themes/starfield/src/slider_n.xcf: Likewise.
12732 * themes/starfield/src/slider_s.xcf: Likewise.
12733 * themes/starfield/src/terminalbox/: Likewise.
12734 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12735 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12736 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12737 * themes/starfield/starfield.png: Likewise.
12738 * themes/starfield/terminal_box_c.png: Likewise.
12739 * themes/starfield/terminal_box_e.png: Likewise.
12740 * themes/starfield/terminal_box_n.png: Likewise.
12741 * themes/starfield/terminal_box_ne.png: Likewise.
12742 * themes/starfield/terminal_box_nw.png: Likewise.
12743 * themes/starfield/terminal_box_s.png: Likewise.
12744 * themes/starfield/terminal_box_se.png: Likewise.
12745 * themes/starfield/terminal_box_sw.png: Likewise.
12746 * themes/starfield/terminal_box_w.png: Likewise.
12747 * themes/starfield/theme.txt: Likewise.
12749 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12751 * util/grub.d/00_header.in: Add missing export theme.
12753 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12755 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12757 Reported by: Eren D.
12759 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12761 * conf/Makefile.common (grubdatadir): Removed.
12762 (Makefile.am): Move eveything grubdata to pkgdata.
12764 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12766 * grub-core/commands/acpihalt.c (get_sleep_type):
12767 Remove unused variable.
12769 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12771 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12772 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12773 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12774 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12775 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12776 i18n with gettext no-op.
12777 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12778 GRUB_ACPI_OPCODE_STRING_CONST.
12779 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12780 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12782 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12784 * po/POTFILES.in: Regenerate.
12786 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12788 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12789 -Wno-error=missing-noreturn.
12791 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12793 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12794 condition to avoid possibly infinite loops.
12795 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12796 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12798 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12800 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12801 condition to avoid possibly infinite loops.
12803 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12805 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12808 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12810 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12812 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12814 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12816 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12818 * util/bin2h.c (usage): Add missing attribute noreturn.
12820 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12822 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12823 if the size isn't divisible by 512.
12825 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12827 Make list_push and list_remove functions rather than inline functions
12828 to decrease size and avoid aliasing violations.
12830 * include/grub/list.h (grub_list_push): Move to ...
12831 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12832 * include/grub/list.h (grub_list_remove): Move to ...
12833 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12835 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12837 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12838 and -Wunused-result.
12840 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12842 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12843 Reported by: Seth Goldberg
12845 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12847 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12849 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12851 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12852 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12854 * docs/grub.texi (Simple configuration): Document
12855 GRUB_CMDLINE_GNUMACH.
12857 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12859 * conf/Makefile.common (platform_SCRIPTS): New variable.
12860 (platform_PROGRAMS): Likewise.
12861 * gentpl.py: Mark *,module and *.image for install.
12862 * grub-core/gdb_grub.in: Add a notice of expected environment.
12863 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12864 (gmodule.pl): Likewise.
12866 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12868 Replace grub_checkkey with grub_getkey_noblock.
12870 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12871 (grub_getkey_noblock): ... this. All users updated.
12873 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12875 * grub-core/kern/emu/console.c: Move to ...
12876 * grub-core/term/emu/console.c: ...here.
12877 (grub_ncurses_getkey): Fix return value if no key is detected.
12879 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12881 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12882 (grub_unit_test_fini): Likewise.
12883 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12885 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12887 * include/grub/test.h (GRUB_UNIT_TEST)
12889 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12891 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12892 Better error handling.
12893 (grub_script_return): Likewise.
12894 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12896 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12898 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12899 rimplicit redifinition.
12901 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12903 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12906 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12908 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12909 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12912 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12914 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12915 as GRUB_ERR_BUG. Don't malloc if no device is available.
12917 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12919 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12920 Mark calling with invalid term as GRUB_ERR_BUG.
12922 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12924 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12925 packets rather than raising an error.
12927 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12929 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12932 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12934 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12935 diagnostic to dprintf.
12936 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12938 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12940 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12943 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12945 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12946 (grub_ntfs_iterate_dir): Likewise.
12948 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12950 Efiemu stylistic fixes and gettext.
12952 * grub-core/efiemu/i386/loadcore32.c
12953 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12954 * grub-core/efiemu/i386/loadcore64.c
12955 (grub_arch_efiemu_relocate_symbols64): Likewise.
12956 * grub-core/efiemu/i386/pc/cfgtables.c
12957 (grub_machine_efiemu_init_tables): Likewise.
12958 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12959 (grub_efiemu_loadcore_initXX): Add a filename argument.
12961 Improved error message.
12962 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12963 Add a filename argument.
12965 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12966 Reclassify double relocation as GRUB_ERR_BUG.
12968 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12970 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12973 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12975 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
12978 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12980 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
12982 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12984 Improve string. Gettextize.
12986 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12988 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
12990 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
12992 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12994 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12995 [GRUB_UTIL]: New function.
12996 (insert_array) [GRUB_UTIL]: Store partmaps.
12997 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
12999 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13000 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13001 (probe_abstraction): Print diskfilter and not raid.
13002 Reported by: Lennart Sorensen
13004 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13006 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13007 * util/grub-mkimagexx.c (MASK3): New define.
13008 (add_value_to_slot_20b): Use MASK3.
13009 (add_value_to_slot_21): Likewise.
13010 (relocate_addresses): Fix format specification.
13011 (load_image): Explicitly init symtab_section.
13013 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13015 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13016 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13018 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13020 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13022 Reported by: Lennart Sorensen
13024 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13026 * gentpl.py: Add missing license header.
13027 * docs/grub.texi: Update copyright year.
13029 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13031 Source grub-mkconfig_lib from the build directory at build time.
13032 Suggested by: Vladimir Serbinenko.
13034 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13035 * util/grub-install.in: Define pkgdatadir if not already set, and source
13036 grub-mkconfig_lib from there.
13037 * util/grub-kbdcomp.in: Likewise.
13038 * util/grub-mkconfig.in: Likewise.
13039 * util/grub-mknetdir.in: Likewise.
13040 * util/grub-mkrescue.in: Likewise.
13041 * util/grub-mkstandalone.in: Likewise.
13042 * util/grub-reboot.in: Likewise.
13043 * util/grub-set-default.in: Likewise.
13044 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13046 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13048 Increase warning level.
13050 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13051 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13052 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13053 (TARGET_CFLAGS): Likewise.
13054 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13055 * grub-core/Makefile.core.def (decompressor_xz): Add
13056 -Wno-unreachable-code.
13057 (normal): Add -Wno-redundant-decls.
13058 (xzio): Add -Wno-unreachable-code.
13059 (lzopio): Add -Wno-redundant-decls -Wno-error.
13060 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13061 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13062 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13063 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13064 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13065 * grub-core/kern/i386/coreboot/init.c: Add exception to
13066 -Wsuggest-attribute=noreturn.
13067 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13068 * grub-core/kern/ia64/dl_helper.c: Likewise.
13069 * grub-core/kern/mips/dl.c: Likewise.
13070 * grub-core/kern/sparc64/dl.c: Likewise.
13071 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13072 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13073 (memcmp): Likewise.
13074 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13075 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13076 * grub-core/loader/mips/linux.c: Likewise.
13077 * grub-core/loader/multiboot_elfxx.c: Likewise.
13078 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13079 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13080 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13081 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13083 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13084 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13087 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13089 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13092 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13094 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13095 Avoid improper use of strings.
13096 (grub_cmd_legacy_initrdnounzip): Likewise.
13098 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13100 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13102 (grub_util_info): Likewise.
13103 (grub_util_error): Likewise.
13105 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13107 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13108 * util/grub-fstest.c (fstest): Likewise.
13110 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13112 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13113 (grub_md_sha512_real): Likewise.
13114 (grub_util_get_geli_uuid): Likewise.
13115 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13116 (grub_util_biosdisk_open): Fix format specification.
13117 Respect format security.
13118 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13119 (xrealloc): Likewise.
13120 (xasprintf): Likewise.
13122 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13124 * util/import_gcry.py: Include grub/crypto.h in init.c.
13126 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13128 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13129 (generate_image): Make prefix a const char *.
13130 Fix format specifications. Respect format security.
13131 Avoid void * arithmetics.
13133 (argp_parser): Remove unused variable. Respect format security.
13134 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13135 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13136 (count_funcs): Remove unused variable.
13137 (relocate_addresses): Fix format specification.
13138 Disable x86-64 with elf32. Remove unused variables.
13139 (add_fixup_entry): Avoid shadowing.
13140 (make_reloc_section): Fix format specification.
13142 (locate_sections): Fix format specifications.
13143 (load_image): Avoid shadowing.
13145 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13147 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13148 Fix format specifications. Respect format security.
13149 Don't translate already translated grub_errmsg.
13150 (argp_parser): Remove unused variable
13152 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13154 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13156 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13158 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13159 (main): Likewise. Use xmalloc. Respect format security.
13161 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13163 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13165 (argp_parser): Remove unused variable.
13167 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13169 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13170 (add_pixel): Make static.
13171 (add_font): Likewise.
13172 (write_string_section): Make name and str a const char *.
13173 (write_be16_section): Make name a const char *.
13174 (print_glyphs): Make static.
13175 (write_font_ascii_bitmap): Likewise.
13176 (write_font_width_spec): Likewise.
13177 (write_font_pf2): Likewise.
13178 (argp_parser): Remove unused variable.
13179 Respect format security.
13180 (main): Avoid shadowing. Respect format security.
13182 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13184 * util/grub-editenv.c (argp_parser): Make static.
13185 (create_envblk_file): Use xmalloc.
13186 (open_envblk_file): Likewise.
13187 Resepect format security.
13188 (set_variables): Respect format security.
13190 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13192 * util/getroot.c (grub_find_device): Respect format security.
13193 (get_mdadm_uuid): Remove unused variable.
13194 (grub_util_pull_device): Dont call gettext on already translated
13196 (find_system_device): Remove unused variable.
13197 (grub_util_get_grub_dev): Likewise.
13198 (grub_make_system_path_relative_to_its_root): Respect format security.
13200 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13202 * util/grub-fstest.c (execute_command): Make first argument
13204 (read_file): Avoid shadowing.
13205 Reuse underlying error message if device open fails.
13206 (cmd_cmp): Respect format security.
13207 (root): Make const char *.
13208 (fstest): Remove args argument and use global copy.
13209 Respect format security.
13210 (argp_parser): Make static.
13211 (main): Make default_root const char *.
13213 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13215 * util/grub-mount.c (root): Make const char *.
13216 (execute_command): Make first argument a const char *.
13217 (fuse_init): Respect format security.
13218 (argp_parser): Make static. Remove unused variable.
13219 (main): Make default_root a const char *.
13220 Respect format security.
13222 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13224 * util/grub-probe.c (probe): Don't call gettext on already translated
13226 Remove unused variables.
13227 (argp_parser): Remove unused variable.
13229 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13231 * util/grub-script-check.c (argp_parser): Remove unused variable.
13232 (main): Rename read to curread to avoid shadowing.
13234 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13236 * util/misc.c (grub_util_write_image_at): Fix format specification.
13237 (grub_util_write_image): Likewise.
13238 (grub_script_execute_argument_to_string): Removed (unused).
13239 (grub_script_execute_menuentry): Likewise.
13240 (grub_putchar): Likewise.
13242 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13244 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13245 (FUNCTION) [GRUB_UTIL]: Likewise.
13246 (VARIABLE) [GRUB_UTIL]: Likewise.
13248 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13250 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13251 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13253 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13255 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13258 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13260 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13261 (LzmaEnc_SaveState): Removed (unused).
13262 (LzmaEnc_RestoreState): Likewise.
13263 (LzmaEnc_InitPriceTables): Made static.
13264 (LzmaEnc_Construct): Likewise.
13265 (LzmaEnc_FreeLits): Likewise.
13266 (LzmaEnc_Destruct): Likewise.
13267 (LzmaEnc_Init): Likewise.
13268 (LzmaEnc_InitPrices): Likewise.
13269 (LzmaEnc_Finish): Likewise.
13270 (LzmaEnc_PrepareForLzma2): Removed (unused).
13271 (LzmaEnc_MemPrepare): Likewise.
13272 (LzmaEnc_GetNumAvailableBytes): Likewise.
13273 (LzmaEnc_GetCurBuf): Likewise.
13274 (LzmaEnc_CodeOneMemBlock): Likewise.
13276 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13278 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13279 (grub_util_ldm_embed): Likewise.
13281 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13283 * util/grub-editenv.c (print_var): Rename name to varname to
13285 (main): Rename index to curindex to avoid shadowing.
13286 Make filename a const char *.
13288 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13290 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13291 to arg_getline to avoid shadowing.
13293 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13295 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13296 disk_ to avoid shadowing.
13298 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13300 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13301 curindex to avoid shadowing.
13303 (MatchFinder_GetNumAvailableBytes): Make static.
13305 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13307 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13310 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13312 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13313 argument from encrypt to do_encrypt to avoid shadowing.
13315 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13317 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13318 incorrect nesting of #if's.
13320 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13322 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13323 checks which are always false on some platforms.
13324 (grub_cmd_lsacpi): Likewise.
13325 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13326 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13329 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13331 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13332 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13334 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13336 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13337 re_dfa_t to avoid breaking alignment invariants.
13338 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13339 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13341 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13343 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13344 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13346 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13348 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13351 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13353 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13354 conserve alignment invariants.
13355 (grub_ehci_ehcc_read16): Likewise.
13356 (grub_ehci_oper_read32): Likewise.
13357 (grub_ehci_oper_write32): Likewise.
13358 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13359 Conserve alignment invariants.
13361 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13363 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13364 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13367 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13369 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13370 Remove unused variable.
13372 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13374 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13377 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13379 * include/grub/net.h: Remove double declarations.
13381 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13383 Remove "payload" command in ia64 Linux loader since I couldn't
13384 find any evidence of it being used for anything.
13385 Replace "relocate" command with an environment variable
13387 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13389 (ia64_boot_payload): Removed.
13390 (last_payload): Likewise.
13391 (RELOCATE_OFF): Likewise.
13392 (RELOCATE_ON): Likewise.
13393 (RELOCATE_FORCE): Likewise.
13394 (relocate): Likewise.
13395 (free_pages): Don't free payloads.
13396 (grub_load_elf64): Use common error messages.
13397 Use "linux_relocate" variable.
13398 Increase the space after boot_params.
13399 (grub_cmd_payload): Removed.
13400 (grub_cmd_relocate): Likewise.
13401 (grub_cmd_fpswa): Improve messages.
13402 (cmd_payload): Removed.
13403 (cmd_relocate): Likewise.
13404 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13405 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13407 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13409 Convert UHCI to DMA framework.
13411 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13412 (grub_uhci_pci_iter): Fill new members
13413 (grub_alloc_td): Use P2V and V2P functions.
13414 (grub_free_queue): Likewise.
13415 (grub_alloc_qh): Likewise.
13416 (grub_uhci_setup_transfer): Likewise.
13417 (grub_uhci_check_transfer): Likewise.
13419 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13421 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13422 Remove assignment in if while on it.
13424 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13426 * util/grub-mkstandalone.in: Fix modules directory.
13428 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13430 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13432 (argp_parser): Accept "auto" as compression specification.
13434 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13436 Fix `help' with unloaded modules.
13438 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13439 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13440 (grub_dyncmd_dispatcher): Small stylistic fix.
13441 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13442 explicit help is requested.
13444 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13446 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13447 Explicitly init restart while on it.
13449 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13451 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13454 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13456 * util/grub-mknetdir.in: Use . rather than source for POSIX
13459 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13461 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13463 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13465 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13468 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13470 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13473 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13475 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13477 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13479 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13480 iteration of partitions.
13482 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13484 Improve gettext support. Stylistic fixes and error handling fixes while
13487 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13489 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13490 part. Instead setup the correct stack in RM.
13491 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13493 * include/grub/i386/relocator_private.h: New file.
13495 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13497 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13499 * util/grub-fstest.c (options): Add missing DEVICE part.
13501 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13503 Clarify and unify messages.
13505 * grub-core/commands/hashsum.c (options): Unify messages.
13506 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13507 literal-only message as translatable.
13508 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13509 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13510 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13512 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13513 key, not the key used to unlock. Clarify what it's used for.
13514 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13515 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13516 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13517 * util/grub-editenv.c (options): Unify "verbose" message.
13518 * util/grub-fstest.c (read_file): Unify error message.
13519 (fstest): Add quotes around commands.
13520 (options): Unify "verbose" message.
13521 * util/grub-install.in: Add quotes around variable name.
13522 * util/grub-kbdcomp.in: Unify error message.
13523 * util/grub-mkfont.c (main): Likewise.
13524 * util/grub-mkrescue.in: Likewise.
13525 * util/grub-mklayout.c (options): Unify "verbose" message.
13526 * util/grub-mkstandalone.in: Unify help and verbose messages.
13527 * util/grub-mount.c (options): Unify "verbose" message.
13528 * util/grub-probe.c (options): Likewise.
13529 * util/grub-script-check.c (options): Likewise.
13530 * util/grub-setup.c (setup): Unify no-terminator message.
13531 (options): Use DEVICE and not DEV.
13532 Unify "verbose" message.
13533 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13535 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13537 Improve and unify messages.
13539 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13540 name. All users updated.
13541 Print filename in error.
13542 (read_device_map): Print filename in error.
13543 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13544 (grub_util_get_os_disk): Likewise.
13545 (grub_util_biosdisk_get_grub_dev): Likewise.
13546 (grub_util_check_block_device): Likewise.
13547 (grub_util_check_char_device): Likewise.
13548 (grub_make_system_path_relative_to_its_root): Likewise.
13549 * util/grub-editenv.c (create_envblk_file): Likewise.
13550 (open_envblk_file): Likewise.
13551 (write_envblk): Likewise.
13552 * util/grub-fstest.c (cmd_cp): Likewise.
13553 (cmd_cat): Likewise.
13554 (cmd_cmp): Likewise.
13555 * util/grub-menulst2cfg.c (main): Likewise.
13556 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13557 (write_font_width_spec): Likewise.
13558 (write_font_pf2): Likewise.
13559 * util/grub-mkimage.c (generate_image): New argument outname.
13561 Remove unreacheable message.
13562 (options): Unify messages.
13563 (help_filter): Likewise.
13564 * util/grub-mklayout.c (usage): Removed (unused).
13565 (main): Print filename in error.
13566 * util/grub-mkrescue.in: Fix wrong quoting.
13567 * util/grub-setup.c (setup): Print filename in error.
13568 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13569 (check_sas): Likewise.
13570 * util/misc.c (grub_util_get_fp_size): Removed.
13571 (grub_util_get_image_size): Print filename in error.
13572 (grub_util_read_at): Removed.
13573 (grub_util_read_image): Print filename in error.
13574 (grub_util_load_image): Likewise.
13575 (grub_util_write_image_at): New argument filename. All users updated.
13576 Print filename in error.
13577 (grub_util_write_image): New argument filename. All users updated.
13578 Print filename in error.
13579 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13580 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13582 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13584 * grub-core/Makefile.core.def (pxechain): New module.
13585 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13586 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13588 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13589 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13591 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13593 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13594 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13595 * include/grub/err.h (grub_error_saved): New struct.
13596 (grub_errmsg): Make array size explicit.
13597 * include/grub/misc.h (grub_error_save): New function.
13598 (grub_error_load): Likewise.
13599 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13600 (grub_error_push): Update `errno' member name.
13601 (grub_error_pop): Likewise
13602 * grub-core/net/tftp.c (tftp_data): New member save_err.
13603 (tftp_receive): Save error.
13604 (tftp_open): Restore error.
13606 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13608 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13609 to real mode down to execute A20-related code in protected mode as
13612 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13614 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13615 NULL when the argument `level' has an unexpected value.
13617 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13619 Move platform-dependent files from $prefix to $prefix/$platform.
13621 * config.h.in (GRUB_TARGET_CPU): New definition.
13622 (GRUB_PLATFORM): Likewise.
13623 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13624 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13625 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13626 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13627 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13628 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13629 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13630 * grub-core/normal/term.c (read_terminal_list): Likewise.
13631 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13633 (grub_gettext_init_ext): Likewise.
13634 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13636 * util/grub-install.in: Update directories.
13637 * util/grub-mknetdir.in: Likewise.
13638 * util/grub-mkrescue.in: Likewise.
13640 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13642 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13643 grub_error framework. All users updated.
13645 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13647 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13648 lists (by always binsearching), improve caching (cache strings
13649 used for binsearch, not only results), improve
13650 maintainability (by using more structured binary search) and correct
13653 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13655 * grub-core/script/execute.c (grub_script_return): Fix warning.
13657 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13659 * grub-core/script/execute.c (grub_script_return): Fix potential
13661 Reported by: Jim Meyering.
13663 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13665 * po/POTFILES.in: Regenerate.
13666 * util/grub-install.in: Gettextize the strings missed in first pass.
13668 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13670 * Makefile.util.def (grub-mkdevicemap): Removed.
13671 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13672 * include/grub/util/deviceiter.h: Removed.
13673 * util/deviceiter.c: Likewise.
13674 * util/getroot.c (grub_util_get_os_disk): New function.
13675 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13676 replacement for EFI.
13677 * util/grub-mkdevicemap.c: Removed.
13678 * util/grub-probe.c (probe): Handle PRINT_DISK.
13679 (argp_parser): Handle -t disk.
13681 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13683 * util/grub-mkfont.c: Migrate to argp.
13684 * util/grub-mklayout.c: Likewise.
13685 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13686 * util/grub-mkrelpath.c: Likewise.
13687 * util/grub-probe.c: Likewise.
13688 * util/grub-script-check.c: Likewise.
13690 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13692 * util/grub-reboot.in: Add missing datarootdir.
13693 Add missing newline.
13694 * util/grub-set-default.in: Add missing datarootdir.
13695 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13696 * util/grub-mkrescue.in: Likewise.
13698 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13700 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13702 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13704 * util/grub-kbdcomp.in: Add decent help and gettextize.
13705 * docs/man/grub-kbdcomp.h2m: New file.
13707 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13709 Migrate grub-mkimage.c to argp.
13711 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13712 (grub-setup): Likewise.
13713 * util/grub-setup.c (print_version): Move to ...
13714 * util/argp_common.c (print_version): ... here.
13715 * util/grub-setup.c (argp_program_version_hook): Move to ...
13716 * util/argp_common.c (argp_program_version_hook): ... here.
13717 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13719 * util/grub-mkimage.c (main): Migrate to argp.
13721 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13723 * util/grub-mkrescue.in: Use same message as
13724 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13725 for better translations.
13727 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13729 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13730 options with generic grub-mkrescue.in with the goal of future
13733 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13735 * grub-core/kern/mm.c: Add missing include of i18n.h
13736 * grub-core/lib/relocator.c: Likewise.
13738 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13740 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13742 (allocate_pages): Check return value.
13743 Replace fatal with error.
13744 (grub_linux_boot): Replace printf with dprintf.
13745 Check find_mmap_size return value.
13746 Replace fatal with error.
13747 Don't call grub_machine_fini.
13748 (grub_load_elf64): Replace printf with dprintf.
13749 (grub_cmd_linux): Likewise.
13750 (grub_cmd_initrd): Likewise.
13751 (grub_cmd_payload): Likewise.
13753 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13755 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13757 * grub-core/video/radeon_fuloong2e.c
13758 (grub_video_radeon_fuloong2e_setup): Likewise.
13759 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13760 * grub-core/video/video.c (grub_video_set_mode): Don't override
13761 standard out of memory message.
13763 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13765 NetBSD disk wedge support.
13767 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13768 [__NetBSD__]: Handle NetBSD disk wedges.
13769 * util/getroot.c (convert_system_partition_to_system_disk)
13770 [__NetBSD__]: Likewise.
13772 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13774 * util/grub-mkconfig.in: Use umask rather than chmod to create
13775 grub.cfg.new to avoid insecure grub.cfg.
13777 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13779 * grub-core/commands/ls.c: Gettextize.
13780 * grub-core/commands/setpci.c: Likewise.
13781 * grub-core/commands/videotest.c: Likewise.
13782 * grub-core/disk/geli.c: Likewise.
13783 * grub-core/kern/mm.c: Likewise.
13784 * grub-core/lib/relocator.c: Likewise.
13785 * grub-core/loader/efi/appleloader.c: Likewise.
13786 * grub-core/loader/i386/xnu.c: Likewise.
13787 * grub-core/loader/ia64/efi/linux.c: Likewise.
13788 * grub-core/loader/xnu.c: Likewise.
13789 * grub-core/net/dns.c: Likewise.
13790 * grub-core/net/net.c: Likewise.
13791 * grub-core/script/lexer.c: Likewise.
13792 * grub-core/script/parser.y: Likewise.
13793 * grub-core/script/yylex.l: Likewise.
13794 * util/getroot.c: Likewise.
13795 * util/grub-setup.c: Likewise.
13797 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13799 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13802 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13804 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13806 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13808 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13810 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13811 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13813 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13815 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13816 * util/grub-install.in: Gettextize.
13817 * util/grub-mkconfig.in: Likewise.
13818 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13820 (grub_warn): Gettextize.
13821 * util/grub-mknetdir.in: Gettextize.
13822 * util/grub-mkrescue.in: Likewise.
13823 * util/grub-mkstandalone.in: Likewise.
13824 * util/grub-reboot.in: Likewise.
13825 * util/grub-set-default.in: Likewise.
13826 * util/grub.d/00_header.in: Likewise.
13827 * util/grub.d/10_hurd.in: Likewise.
13828 * util/grub.d/10_kfreebsd.in: Likewise.
13829 * util/grub.d/10_linux.in: Likewise.
13830 * util/grub.d/10_netbsd.in: Likewise.
13831 * util/grub.d/10_windows.in: Likewise.
13832 * util/grub.d/20_linux_xen.in: Likewise.
13833 * util/grub.d/30_os-prober.in: Likewise.
13834 * po/POTFILES-shell.in: Regenerate.
13836 2012-02-03 Richard Laager <rlaager@wiktel.com>
13838 * util/grub-mkimage.c (main): Fix format-security warning.
13839 * util/grub-mkrelpath.c (main): Likewise.
13840 * util/grub-probe.c (main): Likewise.
13842 2012-02-03 Richard Laager <rlaager@wiktel.com>
13844 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13846 Put back lost PRINT_DRIVE.
13848 2012-02-03 Richard Laager <rlaager@wiktel.com>
13850 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13851 (grub_guess_root_devices): Replace strlen with sizeof.
13853 (find_root_devices_from_poolname): Remove unused variable.
13856 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13858 Support install on multi-device filesystems.
13860 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13861 (grub_guess_root_devices): ...this. Return char **. All users updated.
13862 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13864 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13865 (find_root_devices_from_poolname): ... here.
13866 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13868 (grub_guess_root_device): Rename to ...
13869 (grub_guess_root_devices): ... this. Return char **. All users updated.
13870 * util/grub-install.in: Handle multi-device filesystems.
13871 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13872 argument. All users updated.
13873 Handle multi-device filesystems.
13874 Use 'delim' as separator.
13875 Remove device check to allow filesystems on file.
13876 (main): Support -0 argument. Handle multi-device.
13877 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13878 Fix a cross-device check while on it.
13879 (arguments): Remove root_dev.
13880 (argp_parser): Remove -r.
13881 (main): Remove root_dev.
13883 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13885 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13887 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13889 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13891 Reported by: NODA, Kai <nodakai>.
13893 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13897 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13899 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13900 (grub_ehci_setup_qh): Likewise.
13901 (grub_ehci_find_qh): Likewise.
13902 (grub_ehci_transaction): Likewise.
13903 (grub_ehci_setup_transfer): Likewise.
13904 (grub_ehci_check_transfer): Likewise.
13905 (grub_ehci_portstatus): Likewise.
13906 (grub_ehci_detect_dev): Likewise.
13907 (grub_ehci_transfer_controller_data): New field td_last_phys.
13908 (grub_ehci_setup_transfer): Fill td_last_phys.
13909 (grub_ehci_check_transfer): Use td_last_phys.
13911 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13913 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13914 if no submenu is present.
13916 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13920 * include/grub/usb.h (grub_usbms_protocol_t): New values
13921 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13922 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13923 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13924 (grub_usbms_dev): Add subclass, protocol and intrpt.
13925 Remove in_maxsz and out_maxsz.
13926 (grub_usbms_reset): Rename to ...
13927 (grub_usbms_bo_reset): .. this.
13928 (grub_usbms_cbi_cmd): New function.
13929 (grub_usbms_cbi_reset): Likewise.
13930 (grub_usbms_reset): Likewise.
13931 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13932 (grub_usbms_transfer): Rename to ...
13933 (grub_usbms_transfer_bo): ... this.
13934 (grub_usbms_transfer_cbi): Likewise.
13935 (grub_usbms_transfer): Likewise.
13937 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13938 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13940 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13941 the support for the CS5536 modification thereos and few bugfixes.
13943 * grub-core/Makefile.core.def (ehci): New module.
13944 * grub-core/bus/usb/ehci.c: New file.
13945 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13946 port and hubaddr. All users updated.
13947 Save port and hubaddr into dev structure.
13948 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13950 * include/grub/pci.h (grub_dma_phys2virt): New function.
13951 (grub_dma_virt2phys): Likewise.
13952 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13954 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13956 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13957 check as some mkfs implementations omit it.
13959 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13961 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13963 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13965 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13966 Add new member volname2.
13967 (grub_jfs_label): Use volname2 if available.
13969 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13971 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13972 over last_mounted as seen in image generated by mkfs.nilfs2.
13973 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
13975 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13977 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
13978 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
13979 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
13981 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13983 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
13986 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13988 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
13989 subvolume name (by removing a bogus and useless check).
13991 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13993 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
13994 sizeof while on it.
13996 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13998 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
13999 (grub_scsi_read_capacity10): ... this.
14000 (grub_scsi_read_capacity16): New function.
14001 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14003 Fix off-by-one error.
14004 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14006 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14007 (grub_scsi_read_capacity10): ... this.
14008 (grub_scsi_read_capacity_data): Rename to ...
14009 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14010 (grub_scsi_read_capacity16): New struct.
14011 (grub_scsi_read_capacity16_data): Likewise.
14012 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14013 grub_scsi_cmd_read_capacity10.
14014 New command grub_scsi_cmd_read_capacity16.
14016 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14018 SCSI >2TiB support.
14020 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14021 (grub_scsi_write16): Likewise.
14022 (grub_scsi_read): Use read16 when necessary.
14023 (grub_scsi_write): Likewise.
14024 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14025 (grub_scsi_write16): Likewise.
14026 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14028 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14030 SCSI write support (for usbms mainly).
14032 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14034 (grub_scsi_write): Implement.
14035 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14037 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14039 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14042 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14044 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14046 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14048 * po/POTFILES.in: Regenerate.
14050 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14052 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14053 with grub_printf to avoid unnecessary fatal failure.
14055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14057 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14058 (INT_MAX): Likewise.
14059 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14060 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14061 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14062 (strcpy): Likewise.
14063 (strstr): Likewise.
14064 (strchr): Likewise.
14065 (strncpy): Likewise.
14066 (strcat): Likewise.
14067 (strncat): Likewise.
14068 (strcoll): Likewise.
14069 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14070 (GRUB_INT_MAX): Likewise.
14072 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14074 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14076 (optimize_utf8): Likewise.
14077 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14079 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14081 * grub-core/boot/i386/pc/lnxboot.S: Use
14082 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14083 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14085 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14087 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14089 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14091 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14092 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14093 now to avoid double free.
14094 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14096 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14097 * util/grub-probe.c (escape_of_path): Always return a new copy.
14098 (print_full_name): Escape path.
14099 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14100 Fix hints on abstractions.
14102 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14104 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14105 Don't add "root" line if no compatibility hont is available.
14106 Suggested by: Seth Goldberg.
14108 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14110 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14111 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14112 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14113 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14115 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14117 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14119 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14121 * util/grub-pe2elf.c (ehdr): Make static.
14123 (num_sections): Likewise.
14124 (offset): Likewise.
14126 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14128 Eliminate ofpath limits and possible overflows.
14130 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14131 (OF_PATH_MAX): Removed.
14132 (MAX_DISK_CAT): New const.
14133 (find_obppath): Use allocated rather than preallocated buffer.
14134 Return result. Argument of_path removed. All users updated.
14135 Add missing fdstat.
14136 (xrealpath): New function.
14137 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14138 Allocate rather than use preallocated buffer. All users updated.
14139 (__of_path_common): Use allocated rather than preallocatecd buffer.
14140 Return result. Argument of_path removed. All users updated.
14141 (vendor_is_ATA): Read only needed part form the file.
14142 (check_sas): Allocate depending on contents rather than fixed.
14143 (main) [STANDALONE]: Handle NULL result.
14145 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14147 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14149 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14151 Cryptodisk write support.
14153 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14154 (grub_cryptodisk_decrypt): Moved logic to ...
14155 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14156 (grub_cryptodisk_write): Implement.
14157 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14158 (grub_util_fd_write): ... this. Make global.
14159 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14161 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14163 * include/grub/list.h (grub_list_remove): Don't crash if element is
14166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14168 Rename ofconsole to console.
14170 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14171 as sysnonym to console.
14172 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14173 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14174 Rename grub_ofconsole_ to grub_console_. All users updated
14175 (grub_console_term_output): Rename "ofconsole" to "console".
14176 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14179 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14181 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14183 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14184 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14185 GRUB_DISK_DEVICE_FILE_ID.
14187 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14189 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14190 and improve performance.
14192 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14194 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14195 missing ieee1275/ prefix on whole disk.
14197 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14199 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14200 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14202 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14204 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14206 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14208 Merge common RAID and LVM logic to an abstract diskfilter.
14209 Add LDM support using the same framework.
14211 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14212 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14213 (libgrubmods): Remove grub-core/disk/raid.c and
14214 grub-core/partmap/gpt.c.
14215 * grub-core/Makefile.core.def (ldm): New module.
14216 (raid): Renamed to diskfilter. All users updated.
14217 * grub-core/disk/raid.c: Moved to ...
14218 * grub-core/disk/diskfilter.c: ... here.
14219 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14221 (find_array): Renamed to ...
14222 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14223 (grub_is_array_readable): Renamed to ...
14224 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14225 (insert_array): New argument id.
14226 (is_node_readable): New function.
14227 (scan_device): Rename to ...
14228 (scan_disk): .. this. Restrict to one disk.
14229 (scan_devices): New function.
14230 (grub_diskfilter_iterate): Support multi-LV.
14231 Skip invisible and nameless LVs.
14232 (grub_diskfilter_memberlist): Support multi-LV.
14233 (grub_diskfilter_read_node): New function.
14234 (grub_raid_read): Most of logic moved to ...
14235 (read_segment): ... here
14236 (read_lv): New function.
14237 (grub_diskfilter_get_vg_by_uuid): New function.
14238 (grub_diskfilter_make_raid): Likewise.
14239 * grub-core/disk/ldm.c: New file.
14240 * grub-core/disk/lvm.c (vg_list): Removed.
14241 (lv_count): Likewise.
14242 (scan_depth): Likewise.
14243 (is_lv_readable): Likewise.
14244 (grub_lvm_getvalue): Advance pointer past the number.
14245 (find_lv): Removed.
14246 (do_lvm_scan): Refactored into ...
14247 (grub_lvm_detect): ... this. Support raid.
14248 (grub_lvm_iterate): Removed.
14249 (grub_lvm_memberlist): Likewise.
14250 (grub_lvm_open): Likewise.
14251 (grub_lvm_close): Likewise.
14252 (read_lv): Likewise.
14253 (read_node): Likewise.
14254 (is_node_readable): Likewise.
14255 (is_lv_readable): Likewise.
14256 (grub_lvm_read): Likewise.
14257 (grub_lvm_write): Likewise.
14258 (grub_lvm_dev): Use diskfilter
14259 (GRUB_MOD_INIT): Likewise.
14260 (GRUB_MOD_FINI): Likewise.
14261 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14263 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14264 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14265 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14266 grub_diskfilter_read_node.
14267 Fix a bug with xor.
14268 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14269 grub_diskfilter_read_node.
14270 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14271 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14272 (grub_disk_dev_iterate): Move from here...
14273 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14274 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14276 (grub_hostdisk_find_partition_start): Likewise.
14277 (grub_hostdisk_os_dev_to_grub_drive): New function.
14278 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14279 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14280 * util/getroot.c (make_device_name): ... here.
14281 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14283 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14284 * grub-core/kern/emu/hostdisk.c
14285 (convert_system_partition_to_system_disk): Move to ...
14286 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14287 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14288 * util/getroot.c (device_is_wholedisk): ... here.
14289 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14290 * util/getroot.c (find_system_device): ... here.
14291 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14293 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14294 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14296 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14298 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14300 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14301 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14302 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14304 * include/grub/raid.h: Renamed to ...
14305 * include/grub/diskfilter.h: ... this.
14306 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14307 (GRUB_RAID_LAYOUT_*): Make into array.
14308 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14309 (grub_diskfilter_vg): New struct.
14310 (grub_diskfilter_pv_id): Likewise.
14311 (grub_raid_member): Removed.
14312 (grub_raid_array): Likewise.
14313 (grub_diskfilter_pv): New struct.
14314 (grub_diskfilter_lv): Likewise.
14315 (grub_diskfilter_segment): Likewise.
14316 (grub_diskfilter_node): Likewise.
14317 (grub_diskfilter_get_vg_by_uuid): New proto.
14318 (grub_raid_register): Inline.
14319 (grub_diskfilter_unregister): Likewise.
14320 (grub_diskfilter_make_raid): New proto.
14321 (grub_diskfilter_vg_register): Likewise.
14322 (grub_diskfilter_read_node): Likewise.
14323 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14324 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14325 (grub_util_is_ldm): Likewise.
14326 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14327 (grub_hostdisk_find_partition_start): Likewise.
14328 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14329 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14331 (grub_gpt_partition_map_iterate): New proto.
14332 * include/grub/lvm.h (grub_lvm_vg): Removed.
14333 (grub_lvm_pv): Likewise.
14334 (grub_lvm_lv): Likewise.
14335 (grub_lvm_segment): Likewise.
14336 (grub_lvm_node): Likewise.
14337 * util/getroot.c [...]
14338 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14339 (probe_abstraction): Likewise.
14340 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14341 (main): Remove dead logic.
14343 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14345 Simplify root device discover and don't fail when trying to open
14348 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14350 (get_diskname_from_path): Likewise.
14351 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14354 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14356 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14358 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14360 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14363 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14365 * util/grub-install.in: Add missing \.
14366 Reported by: gentoofan
14368 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14370 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14371 (direct_read): Use correct compressed size.
14372 (grub_squash_read_data): Likewise.
14374 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14376 * docs/grub.texi (Platform limitations): New section.
14377 (Platform-specific operations): Likewise.
14378 * docs/grub-dev.texi (Porting): Likewise.
14380 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14382 IEEE1275 disk write support.
14384 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14386 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14387 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14388 and seek loginc to ...
14389 (grub_ofdisk_prepare): ... here.
14390 (grub_ofdisk_write): Implement.
14392 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14394 ARC disk write support.
14396 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14397 (reopen): New argument writable. All users updated.
14398 Handle required access mode.
14399 (grub_arcdisk_write): Implement.
14400 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14401 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14403 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14405 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14406 (read_sblock): Don't attempt to read superblocks outside the disk size.
14408 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14410 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14411 first superblock to find the second one when possible.
14413 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14415 * util/grub-install.in: Fix an ARC bug.
14416 Print a warning if no platform-specific setup is available.
14418 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14420 Use static allocation rather than scratch pointer in reed_solomon.
14421 It decreases its size significantly and avoids a variable in .text.
14423 * grub-core/lib/reed_solomon.c (scratch): Removed.
14424 (chosenstat): New const or static array.
14426 (errpot): Likewise.
14427 (errpos): Likewise.
14430 (errvals): Likewise.
14431 (eqstat): Likewise.
14432 (pol_evaluate): Replace x with log_x argument. All users updated.
14433 (syndroms): Removed.
14434 (gauss_solve): Use statically allocated arrays.
14435 (rs_recover): Likewise.
14436 Calculate syndroms directly.
14437 (decode_block): Use statically allocated arrays.
14438 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14439 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14441 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14443 Eliminate fixed limit on reed solomon decoder length.
14445 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14446 rather than hardcoding the address.
14447 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14448 no_reed_solomon_length.
14449 Move gate_a20 to no-reed-solomon part.
14450 Don't force a particular size of no reed-solomon part.
14451 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14453 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14454 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14456 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14458 * grub-core/commands/wildcard.c (match_files): Handle filenames
14459 without explicit device.
14460 (wildcard_expand): Don't add explicit device if not already present.
14461 * tests/grub_script_echo1.in: Add a new expansion test.
14463 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14465 Replace single-linked with double-linked lists. It results in more
14466 compact and more efficient code.
14468 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14469 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14470 (grub_list_remove): Moved from here ...
14471 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14472 (grub_prio_list_insert): Set prev.
14473 * include/grub/list.h (grub_list): Add prev. All users updated.
14475 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14477 Handle newer autotools. Add some missing quotes while on it.
14479 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14480 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14481 (pkgdata_DATA): ... here.
14482 * Makefile.util.def (update-grub_lib): Removed.
14483 * conf/Makefile.common (pkglib_DATA): Removed.
14484 (pkglib_SCRIPTS): Likewise.
14485 (pkgdata_DATA): New variable.
14486 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14488 Add missing quotes.
14489 Remove unused variable while on it.
14490 * tests/util/grub-shell.in: Likewise.
14491 * util/grub-install.in: Likewise.
14492 * util/grub-mkconfig.in: Likewise.
14493 * util/grub-mknetdir.in: Likewise.
14494 * util/grub-mkrescue.in: Likewise.
14495 * util/grub-mkstandalone.in: Likewise.
14496 * util/grub.d/00_header.in: Likewise.
14497 * util/grub.d/10_hurd.in: Likewise.
14498 * util/grub.d/10_illumos.in: Likewise.
14499 * util/grub.d/10_kfreebsd.in: Likewise.
14500 * util/grub.d/10_linux.in: Likewise.
14501 * util/grub.d/10_netbsd.in: Likewise.
14502 * util/grub.d/10_windows.in: Likewise.
14503 * util/grub.d/20_linux_xen.in: Likewise.
14504 * util/grub.d/30_os-prober.in: Likewise.
14505 * util/update-grub_lib.in: Removed.
14507 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14509 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14510 a workaround for intel problem.
14512 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14513 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14514 2012-01-23 pfsmorigo
14516 * util/grub-install.in: Support dd'in into PreP partition.
14517 * util/grub-probe.c (probe): Support discovering partition type.
14518 (main): Support -t msdos_parttype.
14520 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14522 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14523 infinite recursion using counter.
14524 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14525 init to skip it if the magic check fails.
14526 (dec_stream_header): Init s->crc32.
14528 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14529 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14530 2012-01-22 Richard Laager <rlaager@wiktel.com>
14532 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14534 (find_bestub): Determine correct size.
14535 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14536 (scan_disk): Align the size down.
14537 Call check pool before find_bestub to have ashift.
14539 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14541 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14542 dprintf in no-malloc zone.
14544 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14546 * configure.ac: Add back in test for limits.h.
14548 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14550 Support 4K-sector NTFS.
14552 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14553 (grub_ntfs_data): Remove blocksize.
14554 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14555 Remove data argument. All users updated.
14557 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14559 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14560 being in .text to avoid dprel references.
14561 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14562 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14563 (grub_arch_highmemsize): Likewise.
14564 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14565 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14566 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14568 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14570 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14572 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14573 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14575 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14577 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14579 (grub_set_datetime_cmos): Likewise.
14581 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14583 Make XZ compression parameters dependent on target and not host CPU.
14585 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14586 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14588 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14590 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14591 set but not used variable.
14593 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14595 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14596 created when no uuid support is compiled into mkfs.reiser.
14598 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14600 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14601 (utf8_to_macroman): Do the opposite.
14602 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14604 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14606 * configure.ac: Refise build qemu_mips w/o unifont.
14608 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14610 Eliminate grub_min/grub_max prone to overflow usage.
14612 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14613 (poll_nonroot_hub): Likewise.
14614 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14615 (grub_affs_label): Likewise.
14616 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14617 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14618 (grub_hfs_label): Likewise.
14619 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14620 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14621 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14622 (zap_leaf_array_get): Likewise.
14623 (dnode_get_path): Likewise.
14624 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14625 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14626 * grub-core/script/execute.c (grub_script_break): Likewise.
14627 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14629 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14630 * include/grub/misc.h (grub_min): Removed.
14631 (grub_max): Likewise.
14633 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14635 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14638 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14640 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14642 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14644 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14646 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14648 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14649 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14651 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14653 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14654 rather than a hack for grub_strncasemap.
14656 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14658 Support multiple initrds
14659 Note: part of this was accidently committed in r3739.
14661 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14663 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14664 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14665 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14666 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14667 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14669 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14671 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14672 disks with unknown size.
14673 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14675 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14677 Remove defines pertaining to arbitrary limits not affecting GRUB
14680 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14681 (EXT2_MAX_SYMLINKCNT): Likewise.
14682 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14683 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14684 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14685 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14686 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14687 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14688 (DN_MAX_OBJECT_SHIFT): Likewise.
14689 (DN_MAX_OFFSET_SHIFT): Likewise.
14690 (DN_MAX_OBJECT): Likewise.
14691 (DNODES_PER_LEVEL_SHIFT): Likewise.
14692 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14693 (SPA_MAXBLOCKSIZE): Likewise.
14694 (SPA_BLOCKSIZES): Likewise.
14695 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14696 (MZAP_MAX_BLKSZ): Likewise.
14698 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14700 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14701 handle NULL appropriately.
14704 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14708 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14710 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14711 * configure.ac: Fix efiemu check.
14713 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14715 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14717 Reported by: adamwill
14719 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14721 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14723 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14725 Fix handling of wide characters in gfxterm.
14727 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14728 (clear_char): Likewise.
14729 (paint_char): Skip code == NULL chars.
14730 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14732 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14734 * grub-core/normal/charset.c: Move comment to right place.
14736 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14738 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14739 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14740 (grub_affs_mount): Revert the correct version checking.
14742 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14744 * docs/grub.texi (Unicode): Mention several other unsupported features.
14746 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14748 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14749 case statements as compile-time one.
14750 (direct_read): Prevent spurious warnings.
14751 (grub_squash_read_data): Likewise.
14753 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14755 Various squash4 fixes and LZO and XZ support.
14757 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14758 Add xzembed source files.
14759 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14760 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14761 (grub_squash_inode): New subtype long_dir.
14762 (SQUASH_TYPE_LONG_DIR): New inode type.
14763 (COMPRESSION): New enum.
14764 (XZBUFSIZ): New const.
14765 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14766 (read_chunk): Use data->decompress.
14767 (zlib_decompress): New function.
14768 (lzo_decompress): Likewise.
14769 (xz_decompress): Likewise.
14770 (squash_mount): Set new data fields.
14771 (grub_squash_iterate_dir): Handle long dir.
14772 (squash_unmount): Free xzdec and xzbuf.
14773 (grub_squash_open): Check ino type.
14774 (direct_read): Stylistic fixes. Use data->decompress.
14775 (grub_squash_read_data): Likewise.
14776 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14777 (get_byte): Likewise.
14778 (grub_zlib_disk_read): Removed.
14779 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14780 (GRUB_POSIX_BOOL_DEFINED): New define.
14781 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14782 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14783 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14784 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14786 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14788 Don't override more informative errors.
14790 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14791 * grub-core/font/font.c (open_section): Likewise.
14792 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14793 filename. Don't override errors.
14794 (grub_cmd_openbsd_ramdisk): Don't override errors.
14795 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14796 (grub_cmd_initrd): Likewise.
14797 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14798 (grub_cmd_initrd): Likewise.
14799 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14800 (grub_cmd_linux): Likewise.
14801 (grub_cmd_initrd): Likewise.
14802 (grub_cmd_payload): Likewise.
14803 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14804 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14805 (grub_cmd_module): Likewise.
14806 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14807 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14808 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14809 (grub_cmd_xnu_mkext): Likewise.
14810 (grub_cmd_xnu_ramdisk): Likewise.
14811 (grub_xnu_check_os_bundle_required): Likewise.
14812 (grub_xnu_load_kext_from_dir): Likewise.
14813 (grub_cmd_xnu_kextdir): Likewise.
14814 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14816 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14818 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14819 as 1024 in block size field. Found on one of my test images.
14820 Small optimisation while on it.
14822 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14824 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14825 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14826 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14827 performance fixes while on it.
14828 (grub_sfs_close): Fix memory leak while on it.
14829 (grub_sfs_label): Convert Latin1 to UTF-8.
14831 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14833 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14834 space to avoid overflows.
14835 (grub_hfs_label): Convert from macroman to UTF-8.
14837 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14839 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14841 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14843 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14845 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14847 * unicode: Import Unicode 6.0 data.
14849 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14851 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14854 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14856 Avoid cutting in the middle of UTF-8 character.
14858 * include/grub/charset.h (grub_getend): New function.
14859 * grub-core/script/function.c (grub_script_function_find): Use
14861 * grub-core/normal/completion.c (add_completion): Likewise.
14863 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14865 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14866 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14867 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14868 (GRUB_UNICODE_TAG_END): Likewise.
14869 (GRUB_UNICODE_LAST_VALID): Likewise.
14871 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14873 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14874 len and make it smaller. All users updated.
14875 * util/import_unicode.py: Put length and not end character.
14878 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14880 Make better Unicode-compliant and unify some UTF-8 code pathes.
14882 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14884 (grub_is_valid_utf8): Use grub_utf8_process.
14885 Check resulting code range.
14886 (grub_utf8_to_ucs4): Use grub_utf8_process.
14887 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14890 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14892 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14894 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14896 * docs/grub.texi (Filesystems): Mention AFS.
14898 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14900 * docs/grub.texi (Filesystems): Clarify restrictions.
14901 (Regexp): Mention non-Unicode regexp behaviour.
14902 (Other): Mention non-Unicode matching behaviour.
14904 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14906 Make HFS implementation use MacRoman.
14908 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14909 (macroman): New const array.
14910 (macroman_to_utf8): New function.
14911 (utf8_to_macroman): Likewise.
14912 (grub_hfs_find_dir): Use utf8_to_macroman.
14913 (grub_hfs_dir): Use macroman_to_utf8.
14914 Set case_insensitive.
14916 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14918 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14920 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14922 Integrate hints into autogeneration scripts.
14924 * docs/grub.texi (Filesystems): Add a hostdisk example.
14925 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14926 (grub-probe): Add ofpath.
14927 * gentpl.py: Remove group nosparc64.
14928 * grub-core/commands/search.c (cache_entry): New struct.
14930 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14931 * grub-core/commands/search_wrap.c (options): Add platform-specific
14933 (grub_cmd_search): Handle platform-specific hints.
14934 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14935 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14936 (grub_util_biosdisk_data): Likewise.
14937 (grub_util_biosdisk_open): Set device_map.
14938 (read_device_map): Handle "" as indication of no map.
14940 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14941 (grub_util_biosdisk_get_compatibility_hint): New function.
14942 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14943 * include/grub/emu/hostdisk.h
14944 (grub_util_biosdisk_get_compatibility_hint): New proto.
14945 * util/grub-install.in: Don't call grub-mkdevicemap.
14946 Add platform-specific hint to load.cfg.
14947 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14948 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14949 hints. Set root preliminary to compatibility hint, not to OS name.
14950 * util/grub-probe.c (PRINT_*): Add hints.
14951 (print): Make static.
14952 (escape_of_path): New function.
14953 (guess_bios_drive): Likewise.
14954 (guess_efi_drive): Likewise.
14955 (guess_baremetal_drive): Likewise.
14956 (print_full_name): Likewise.
14957 (probe): Handle hints.
14959 * util/ieee1275/devicemap.c: Removed.
14960 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14962 (grub_util_devname_to_ofpath): Return NULL on failure.
14964 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14966 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14968 * po/POTFILES.in: Regenerated.
14970 Allow purely long options
14972 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14973 (SHORT_ARG_USAGE): Likewise.
14974 (grub_arg_show_help): Compare opt with help_options.
14975 (parse_option): Receive opt as argument. If makes big simplificatons.
14978 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14980 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
14981 Restructure to avoid warning.
14983 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14985 * util/grub-install.in: Account for possible escaped comma in device
14988 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14990 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
14993 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14995 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
14996 allocation and zero-setting.
14997 (grub_ieee1275_get_devname): Check that alias is complete.
14999 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15001 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15002 unaligned segments.
15004 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15006 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15008 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15009 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15010 Add ieee1275 prefix.
15012 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15014 * docs/grub.texi (Filesystems): Update.
15016 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15018 Support odc, newc and bigendian cpio formats.
15020 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15021 * grub-core/Makefile.core.def (newc): New module.
15023 (cpio_be): Likewise.
15024 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15026 (MAGIC2): Likewise.
15027 (head) [MODE_ODC]: Adapt for the format.
15028 (head) [MODE_NEWC]: Likewise.
15029 (head) [!MODE_*]: Write fields of interest as arrays.
15030 (MAGIC_USTAR): Removed.
15031 (read_number) [MODE_NEWC]: Change to hex.
15032 (read_number) [!MODE_*]: Parse binary arrays.
15033 (grub_cpio_find_file): Factor out the code for better structure and
15034 always use read_number.
15035 (grub_cpio_mount): Use MAGIC and MAGIC2.
15036 (grub_cpio_dir): Exit on first hook non-0 return.
15037 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15038 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15039 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15040 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15041 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15042 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15043 * grub-core/fs/newc.c: New file.
15044 * grub-core/fs/odc.c: Likewise.
15045 * grub-core/fs/cpio_be.c: Likewise.
15047 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15049 Fix handling of tar numbers occupying the whole field.
15051 * grub-core/fs/cpio.c (read_number): New function.
15052 (grub_cpio_find_file): Use read_number instead of strtoull.
15054 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15056 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15057 occupying the whole field size.
15059 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15061 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15063 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15065 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15067 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15069 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15070 TARGET_IMG_LDFLAGS.
15072 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15074 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15075 (mountinfo_entry): Increase the field size to take escaping into
15077 (find_root_device_from_libzfs): Add one byte to size of strings for
15080 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15082 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15084 * util/grub-setup.c (setup): Likewise.
15086 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15088 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15091 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15093 * docs/grub.texi (Internationalisation): New section.
15095 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15097 * docs/grub.texi (Loopback booting): New section.
15099 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15101 * util/grub-mkstandalone.in: Fix minor typo errors.
15103 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15105 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15107 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15108 net/icmp.c and net/icmp6.c.
15109 (http): New module.
15110 (priority_queue): Likewise.
15111 * grub-core/io/bufio.c: Rewritten.
15112 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15113 TYPE_WITH_CONFIGFILE_OPTION.
15114 (legacy_commands): Add bootp and dhcp.
15115 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15116 (grub_legacy_parse): Likewise.
15117 * grub-core/lib/priority_queue.c: New file.
15118 * grub-core/net/arp.c: Add missing license header.
15119 (arp_find_entry): Removed.
15120 (arp_find_entry): Likewise.
15121 (grub_net_arp_resolve): Rename to ...
15122 (grub_net_arp_send_request): ...this.
15123 (grub_net_arp_receive): New card argument.
15124 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15125 Set router and DNS server.
15126 (grub_net_configure_by_dhcp_ack): Handle routing information.
15127 (grub_cmd_bootp): Set checksum.
15128 (grub_bootp_init): Remove net_dhcp.
15129 * grub-core/net/dns.c: New file.
15130 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15132 (get_card_packet): Handle allocation.
15133 (grub_efinet_findcards): Set mtu.
15134 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15135 (get_card_packet): Handle allocation.
15136 (emucard): Set mtu.
15137 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15138 (GRUB_MOD_INIT): Set mtu.
15139 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15141 (get_card_packet): Handle allocation.
15142 (grub_ofnet_findcards): Set mtu.
15143 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15145 (grub_net_recv_ethernet_packet): Handle IPv6.
15146 * grub-core/net/http.c: New file.
15147 * grub-core/net/icmp.c: Likewise.
15148 * grub-core/net/icmp6.c: Likewise.
15149 * grub-core/net/ip.c (ip6addr): New type.
15150 (ip6hdr): Likewise.
15151 (reassemble): Likewise.
15152 (cmp): New function.
15153 (reassembles): New variable.
15154 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15155 (id): New variable.
15156 (send_fragmented): New function.
15157 (grub_net_send_ip_packet): Rename to ...
15158 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15160 (grub_net_recv_ip_packets): Rename to ...
15161 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15162 (free_rsm): New function.
15163 (free_old_fragments): Likewise.
15164 (grub_net_recv_ip4_packets): New function.
15165 (grub_net_send_ip6_packet): Likewise.
15166 (grub_net_send_ip_packet): Likewise.
15167 (grub_net_recv_ip6_packets): Likewise.
15168 (grub_net_recv_ip_packets): Likewise.
15169 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15170 (LINK_LAYER_CACHE_SIZE): New const.
15171 (link_layer_find_entry): New function.
15172 (grub_net_link_layer_add_address): Likewise.
15173 (grub_net_link_layer_resolve_check): Likewise.
15174 (grub_net_link_layer_resolve): Likewise.
15175 (grub_net_ipv6_get_slaac): Likewise.
15176 (grub_net_ipv6_get_link_local): Likewise.
15177 (grub_cmd_ipv6_autoconf): Likewise.
15178 (parse_ip): Handle one number representation.
15179 (parse_ip6): New functoion.
15180 (match_net): Handle IPv6.
15181 (grub_net_resolve_address): Handle IPv6 and DNS.
15182 (grub_net_resolve_net_address): Handle IPv6.
15183 (route_cmp): New function.
15184 (grub_net_route_address): Find best route.
15185 (grub_net_addr_to_str): Handle IPv6.
15186 (grub_net_addr_cmp): New function.
15187 (grub_net_add_addr): Register local route.
15188 (print_net_address): Handle net address.
15189 (grub_net_poll_cards): Retransmit TCP.
15190 (grub_net_poll_cards_idle_real): Likewise.
15191 (have_ahead): New function.
15192 (grub_net_seek_real): Use underlying seek.
15193 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15194 * grub-core/net/tcp.c: New file.
15195 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15196 (cmp): New function.
15198 (tftp_receive): Handle unordered input.
15199 (destroy_pq): New function.
15200 (tftp_close): Close pq.
15201 * grub-core/net/udp.c: Put missing license header.
15202 (grub_net_udp_socket): New function.
15203 (udp_socket_register): Likewise.
15204 (grub_net_udp_close): Likewise.
15205 (grub_net_recv_udp_packet): Check checksum.
15206 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15207 * include/grub/misc.h (grub_memchr): New function.
15208 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15209 (grub_net_card_driver): Return buf in recv.
15210 (grub_net_slaac_mac_list): New struct.
15211 (grub_network_level_protocol_id): Add ipv6.
15212 (grub_net_network_level_addr): Likewise.
15213 (grub_net_network_level_net_addr): Likewise.
15214 (grub_net_app_protocol): Add seek.
15215 (grub_net_socket): Removed.
15216 (grub_net_sockets): Likewise.
15217 (grub_net_socket_register): Likewise.
15218 (grub_net_socket_unregister): Likewise.
15219 (FOR_NET_SOCKETS): Likewise.
15220 (grub_net_add_addr): Add const.
15221 (GRUB_NET_BOOTP_*): New enum.
15222 (grub_net_addr_cmp): New proto.
15223 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15224 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15225 (grub_net_hwaddr_to_str): NEw proto.
15226 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15227 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15228 (grub_dns_init): New proto.
15229 (grub_dns_fini): Likewise.
15230 (grub_net_tcp_retransmit): Likewise.
15231 (grub_net_link_layer_add_address): Likewise.
15232 (grub_net_link_layer_resolve_check): Likewise.
15233 (grub_net_link_layer_resolve): Likewise.
15234 (grub_net_dns_lookup): Likewise.
15235 (grub_net_add_dns_server): Likewise.
15236 (grub_net_remove_dns_server): Likewise.
15237 (GRUB_NET_TRIES): New const.
15238 (GRUB_NET_INTERVAL): Likewise.
15239 * include/grub/net/arp.h: Mostly rewritten.
15240 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15241 * include/grub/net/ip.h: Mostly rewritten.
15242 * include/grub/net/netbuff.h: Indent.
15243 * include/grub/net/tcp.h: New file.
15244 * include/grub/net/udp.h: Mostly rewritten.
15245 * include/grub/priority_queue.h: New file.
15246 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15247 (grub_swap_bytes64_compile_time): Likewise.
15248 (grub_cpu_to_be16_compile_time): Likewise.
15249 (grub_cpu_to_be32_compile_time): Likewise.
15250 (grub_cpu_to_be64_compile_time): Likewise.
15251 (grub_be_to_cpu64_compile_time): Likewise.
15253 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15255 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15256 UINT_TO_PTR with cast.
15258 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15260 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15263 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15265 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15268 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15270 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15273 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15275 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15276 Add missing const attribute.
15277 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15279 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15282 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15284 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15286 (serpent_setkey): Likewise.
15287 (serpent_encrypt_internal): Likewise.
15288 (serpent_decrypt_internal): Likewise.
15289 (serpent_encrypt): Don't put an alignment-increasing cast.
15290 (serpent_decrypt): Likewise.
15291 (serpent_test): Likewise.
15293 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15295 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15297 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15299 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15301 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15303 (PTR_TO_UINT64): Likewise.
15304 (PTR_TO_UINT32): Likewise.
15306 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15308 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15310 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15313 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15315 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15316 text_width > available width a bit more gracefully.
15318 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15320 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15321 current address calculation.
15323 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15325 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15327 (encode_block): Likewise.
15329 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15331 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15334 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15336 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15337 non-RS part to avoid RS messing with GDT.
15338 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15339 Increase to suit in realmode routines.
15341 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15343 * grub-core/kern/i386/realmode.S: Increase alignment.
15344 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15346 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15348 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15350 (syndroms): Compute 0 syndrom.
15351 (rs_recover): Use 0 syndrom.
15353 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15355 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15357 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15359 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15362 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15364 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15366 (get_top_pad): Likewise.
15367 (get_right_pad): Likewise.
15368 (get_bottom_pad): Likewise.
15370 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15372 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15374 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15376 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15377 attribute as the structure isn't guaranteed to be properly aligned.
15378 (grub_efi_pci_device_path): Likewise.
15379 (grub_efi_pccard_device_path): Likewise.
15380 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15381 specify the size of `memory_type'.
15382 (grub_efi_vendor_device_path): Likewise.
15383 (grub_efi_controller_device_path): Likewise.
15384 (grub_efi_acpi_device_path): Likewise.
15385 (grub_efi_expanded_acpi_device_path): Likewise.
15386 (grub_efi_atapi_device_path): Likewise.
15387 (grub_efi_scsi_device_path): Likewise.
15388 (grub_efi_fibre_channel_device_path): Likewise.
15389 (grub_efi_1394_device_path): Likewise.
15390 (grub_efi_usb_device_path): Likewise.
15391 (grub_efi_usb_class_device_path): Likewise.
15392 (grub_efi_i2o_device_path): Likewise.
15393 (grub_efi_mac_address_device_path): Likewise.
15394 (grub_efi_ipv4_device_path): Likewise.
15395 (grub_efi_ipv6_device_path): Likewise.
15396 (grub_efi_infiniband_device_path): Likewise.
15397 (grub_efi_uart_device_path): Likewise.
15398 (grub_efi_vendor_messaging_device_path): Likewise.
15399 (grub_efi_hard_drive_device_path): Likewise.
15400 (grub_efi_cdrom_device_path): Likewise.
15401 (grub_efi_vendor_media_device_path): Likewise.
15402 (grub_efi_file_path_device_path): Likewise.
15403 (grub_efi_protocol_device_path): Likewise.
15404 (grub_efi_piwg_device_path): Likewise.
15405 (grub_efi_bios_device_path): Likewise.
15407 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15409 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15410 (grub_ucs4_to_utf8_alloc): Likewise.
15411 (grub_ucs4_to_utf8): Likewise.
15412 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15413 (grub_ucs4_to_utf8_alloc): Likewise.
15415 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15417 AFFS never uses unicode.
15419 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15420 (grub_latin1_to_utf8): New inline function.
15421 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15423 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15425 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15428 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15430 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15431 (grub_squash_dirent_header): Likewise.
15432 (read_chunk): Don't double swap.
15433 (grub_squash_iterate_dir): Fix swap sizes.
15435 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15437 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15439 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15441 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15442 (grub_hfs_iterate_dir): Likewise.
15444 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15446 Fix video on platforms where unaligned access is forbidden.
15447 Make several optimisations while on it.
15449 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15450 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15451 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15452 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15454 (grub_video_fbblit_replace_16bit_1bit):
15455 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15456 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15457 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15458 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15459 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15460 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15461 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15462 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15463 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15464 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15465 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15466 (grub_video_fbblit_replace_index_RGB888): Likewise.
15467 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15468 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15469 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15470 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15471 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15472 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15473 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15475 (grub_video_fbblit_blend_XXX565_1bit):
15476 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15477 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15478 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15480 * grub-core/video/fb/video_fb.c (common_blitter)
15481 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15482 (grub_video_fb_create_render_target_from_pointer)
15483 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15484 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15485 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15487 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15489 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15491 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15492 HH22 and HM10 relocations.
15494 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15496 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15498 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15500 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15501 allocation succeeded.
15503 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15505 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15506 argument a u8 pointer. All users updated.
15507 Handle unaligned buffers.
15509 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15511 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15512 add_part to workaround compiler bug.
15514 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15516 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15518 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15520 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15521 Reserve alignment invariants.
15522 (grub_multiboot_load): Likewise.
15523 (retrieve_video_parameters): Likewise.
15524 (grub_multiboot_make_mbi): Likewise.
15526 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15528 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15531 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15533 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15534 (grub_pata_pio_write): Likewise.
15536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15538 Add noreturn attributes and remove unreachable code.
15540 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15542 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15543 code. Mark as noreturn.
15544 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15545 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15546 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15548 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15549 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15550 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15551 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15552 * include/grub/kernel.h (grub_main): Mark as noreturn.
15553 * include/grub/reader.h (grub_rescue_run): Likewise.
15555 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15557 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15558 redundant declaration.
15560 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15562 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15563 redundant declaration.
15564 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15566 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15568 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15569 to ensure alignment.
15570 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15571 alignment. Ensure tmp alignment.
15572 (grub_cmd_hdparm): Ensure buf alignment.
15573 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15574 to ensure alignment.
15575 (grub_ata_dumpinfo): Ensure text alignment.
15576 (grub_atapi_identify): Preserve alignment invariant.
15577 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15581 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15582 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15583 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15584 * include/grub/misc.h (grub_reboot)
15585 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15586 (grub_halt) [__mips__]: Likewise.
15588 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15590 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15591 Remove redundant declaration.
15592 (grub_mmap_get_post64): Likewise.
15593 (grub_mmap_get_upper): Likewise.
15594 (grub_mmap_get_lower): Likewise.
15596 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15598 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15599 uint32_t * to ensure alignment.
15600 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15604 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15605 uint16_t * to ensure alignment.
15606 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15609 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15611 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15612 to ensure alignment.
15613 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15615 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15617 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15618 Handle unaligned pointers.
15621 (fixup): Use byte access instead of v16at.
15622 (find_attr): Fix imporper usage of v32at.
15623 (read_data): Likewise.
15624 (list_file): Handle byte-swapping and unaligned strings.
15625 (grub_ntfs_label): Likewise.
15627 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15629 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15630 as it's not necessarily aligned.
15632 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15634 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15635 redundant declaration.
15636 (grub_serial_init): Likewise.
15637 (grub_terminfo_init): Likewise.
15639 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15641 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15643 (ZAP_HASH_IDX): Likewise.
15644 (ZAP_LEAF_HASH_SHIFT): Likewise.
15645 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15646 (LEAF_HASH): Likewise.
15647 (ZAP_LEAF_NUMCHUNKS): Likewise.
15648 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15649 alignment invariants. Return pointer. All users updated.
15650 (ZAP_LEAF_ENTRY): Make into inline function.
15653 (xor_out): Use grub_crypto_xor.
15654 (dnode_get_path): Use grub_get_unaligned.
15655 (nvlist_find_value): Likewise.
15656 (grub_zfs_nvlist_lookup_uint64): Likewise.
15657 (grub_zfs_nvlist_lookup_string): Likewise.
15658 (get_nvlist_size): Likewise.
15659 (grub_zfs_open): Likewise.
15660 (fill_fs_info): Likewise.
15661 (grub_zfs_dir): Likewise.
15662 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15663 alignment invariants.
15664 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15665 necessarily aligned.
15667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15669 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15671 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15673 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15674 arithmetic to conserve alignment invariants.
15676 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15678 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15679 redundant declaration.
15680 (grub_efiemu_mm_obtain_request): Likewise.
15681 (grub_efiemu_prepare): Likewise.
15683 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15685 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15690 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15691 case of aunaligned recptr.
15692 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15694 (grub_hfsplus_btree_search): Handle unaligned index.
15696 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15698 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15699 to get freetag and skip.
15701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15703 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15705 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15706 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15708 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15710 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15711 name for checksum and fix allocation algorithm.
15713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15715 * include/grub/types.h (grub_properly_aligned_t): New type.
15716 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15717 (grub_get_unaligned16): Add explicit casts.
15718 (grub_get_unaligned32): Likewise.
15719 (grub_get_unaligned64): Likewise.
15720 (grub_set_unaligned16): New function.
15721 (grub_set_unaligned32): Likewise.
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15725 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15730 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15731 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15733 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15740 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15741 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15745 Unify and improve RAID and crypto xor.
15747 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15748 changed to grub_crypto_xor
15749 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15750 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15751 Use bigger types when possible.
15753 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15755 * grub-core/disk/raid.c (scan_devices): Fix condition.
15757 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15760 Make name a const ptr.
15762 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15764 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15765 first argument a const pointer.
15766 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15767 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15769 (grub_children_iterate): Likewise.
15770 (grub_machine_mmap_iterate): Remove redundant declaration.
15772 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15774 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15775 (grub_cmd_acpi) [!x86]: Disable EBDA.
15777 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15779 Enable UTF8 in gnulib regexp.
15781 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15782 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15783 (isupper): Use grub_isupper.
15784 (isascii): New inline function.
15785 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15786 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15787 * grub-core/normal/charset.c (grub_utf8_process): New function.
15788 (grub_utf8_to_utf16): Use grub_utf8_process.
15789 (grub_encode_utf8_character): New function.
15790 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15791 * include/grub/charset.h (grub_utf8_process): New declaration.
15792 (grub_encode_utf8_character): Likewise.
15793 * include/grub/misc.h (grub_islower): New inline function.
15794 (grub_isupper): Likewise.
15795 (grub_strchrsub): Moved down to fix the definitions.
15797 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15799 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15802 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15804 * include/grub/loader.h (grub_loader_register_preboot_hook):
15805 Use struct preboot * and not void * for handle. All users updated.
15806 (grub_loader_unregister_preboot_hook): Likewise.
15808 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15810 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15811 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15812 UTF-16-BE. All users updated.
15813 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15814 (grub_hfsplus_iterate_dir): Likewise.
15815 (grub_hfsplus_label): Likewise.
15817 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15819 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15821 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15823 Add missing const qualifiers.
15825 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15826 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15827 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15828 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15829 (grub_lvm_check_flag): Likewise.
15830 * grub-core/efiemu/i386/coredetect.c
15831 (grub_efiemu_get_default_core_name): Likewise
15832 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15833 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15834 * grub-core/fs/ntfs.c (fixup): Likewise.
15835 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15836 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15837 (fzap_lookup): Likewise.
15838 (zap_lookup): Likewise.
15839 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15840 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15841 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15842 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15843 (grub_freebsd_add_meta_module): Likewise.
15844 (grub_cmd_freebsd_module): Likewise.
15845 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15846 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15847 (grub_xnu_writetree_get_size): Likewise.
15848 (grub_xnu_writetree_toheap_real): Likewise.
15849 (grub_xnu_find_key): Likewise.
15850 (grub_xnu_create_key): Likewise.
15851 (grub_xnu_create_value): Likewise.
15852 (grub_xnu_register_memory): Likewise.
15853 (grub_xnu_check_os_bundle_required): Likewise.
15854 (grub_xnu_scan_dir_for_kexts): Likewise.
15855 (grub_xnu_load_kext_from_dir): Likewise.
15856 * grub-core/normal/color.c (color_list): Likewise.
15857 * grub-core/normal/completion.c (current_word): Likewise.
15858 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15859 * grub-core/term/serial.c (grub_serial_find): Likewise.
15860 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15861 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15863 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15864 (grub_freebsd_add_meta_module): Likewise.
15865 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15866 * include/grub/net.h (grub_net_card_driver): Likewise.
15867 (grub_net_card): Likewise.
15868 (grub_net_app_protocol): Likewise.
15869 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15870 * include/grub/serial.h (grub_serial_find): Likewise.
15871 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15872 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15873 (grub_xnu_create_value): Likewise.
15874 (grub_xnu_find_key): Likewise.
15875 (grub_xnu_scan_dir_for_kexts): Likewise.
15876 (grub_xnu_load_kext_from_dir): Likewise.
15878 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15879 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15880 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15881 Moved from here ...
15882 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15884 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15886 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15888 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15890 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15891 (read_device): Fix size calculation.
15893 2011-11-25 Robert Millan <rmh@gnu.org>
15895 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15896 (find_root_device_from_libzfs): Add zpool output parser to be used
15897 as fallback when libzfs isn't available.
15899 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15901 * po/Makefile.in.in: Add missing escape-continuation.
15903 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15905 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15907 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15909 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15911 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15913 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15915 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15917 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15919 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15921 * grub-core/lib/adler32.c: Add missing license specification.
15922 * grub-core/lib/crc64.c: Likewise.
15923 * grub-core/loader/i386/pc/plan9.c: Likewise.
15924 * grub-core/partmap/plan.c: Likewise.
15926 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15928 Add facility to debug GRUB with gdb under qemu.
15930 * grub-core/gdb_grub.in: New file.
15931 * grub-core/gmodule.pl.in: Likewise.
15932 * grub-core/Makefile.core.def (gmodule.pl): New script.
15933 (gdb_grub): Likewise.
15935 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15937 * util/grub-mount.c (argp_parser): Accept relative pathes.
15938 * util/grub-fstest.c (argp_parser): Likewise.
15940 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15944 * Makefile.util.def (libgrubmods): Add
15945 grub-core/partmap/plan.c.
15946 * docs/grub.texi: Notice Plan9 support.
15947 * grub-core/Makefile.core.def (plan9): New module.
15948 (part_plan): Likewise.
15949 * grub-core/loader/i386/pc/plan9.c: New file.
15950 * grub-core/partmap/plan.c: Likewise.
15951 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15953 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15954 * include/grub/mm.h (grub_extend_alloc): New inline function.
15956 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15958 Make Reed-Solomon faster by using power of generator representation of
15961 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15962 (gf_double_t): Likewise.
15963 (gf_invert): Removed.
15964 (gf_powx): New array.
15965 (gf_powx_inv): Likewise.
15966 (scratch): Move higher.
15967 (gf_reduce): Removed.
15968 (gf_mul): Use powx.
15969 (gf_invert): Likewise.
15970 (init_inverts): Replaced with ...
15971 (init_powx): ...this. All users updated.
15972 (pol_evaluate): Replace multiplications with additions.
15973 (rs_encode): Likewise.
15974 (gauss_eliminate): Call gf_invert.
15975 (grub_reed_solomon_add_redundancy): Call init_powx.
15976 (grub_reed_solomon_recover): Call init_powx unconditionally.
15978 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15980 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
15982 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15984 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
15985 disk->partiton for safety.
15987 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15989 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
15991 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
15993 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15995 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
15997 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15999 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16001 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16003 Fix spaces handling in proc/self/mountinfo.
16005 * util/getroot.c (unescape): New function.
16006 (grub_find_root_device_from_mountinfo): Use unescape.
16008 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16010 Support ZFS embedding.
16012 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16013 (grub_zfs_fs): Register grub_zfs_embed.
16015 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16017 Fix MIPS compilation.
16019 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16020 * include/grub/offsets.h: Rename decompressor fields from
16021 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16022 * util/grub-mkimage.c (image_targets): Use new names.
16024 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16026 Defer multiboot device parsing until we're in compressed part.
16028 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16029 bsd_part. setdevice has fallen into disuse.
16030 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16031 (bsd_part): Likewise.
16032 (boot_dev): New variable.
16033 (multiboot_trampoline): Don't parse multiboot device.
16034 Pass multiboot device in %edx.
16035 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16037 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16039 * grub-core/kern/i386/pc/startup.S: Save edx.
16040 (grub_boot_drive): Removed.
16041 (grub_install_dos_part): Likewise.
16042 (grub_install_bsd_part): Likewise.
16043 (grub_boot_device): New variable.
16044 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16045 (grub_install_bsd_part): Likewise.
16046 (grub_boot_drive): Likewise.
16047 (grub_boot_device): New variable.
16048 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16050 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16051 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16052 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16053 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16054 * util/grub-install.in: Remove redundant condition.
16056 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16058 Fix bug introduced by previous commit.
16060 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16062 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16064 Use decompressors framework on i386-pc. It increases core size
16065 by 46 bytes but improves compatibility and maintainability.
16067 * grub-core/Makefile.core.def (lzma_decompress): New image.
16068 (kernel): Add i386_pc_ldflags.
16069 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16070 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16071 to real_to_prot, prot_to_real and device info.
16072 * include/grub/offsets.h: Renamed decompressor offsets.
16073 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16074 (image_target_desc): Remove raw_size and rename decompressor fields.
16075 (compress_kernel): Handle lzma.
16076 (generate_image): Handle decompressors on i386-pc.
16078 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16080 * configure.ac: Add -fno-asynchronous-unwind-tables.
16082 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16084 Move assembly code to C by using intwrap. It increases core size
16085 by 88 bytes but improves compatibility and maintainability.
16087 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16088 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16089 ... here. Translated to C.
16090 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16091 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16092 ... here. Translated to C.
16093 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16094 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16095 ... here. Translated to C.
16096 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16097 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16098 ... here. Translated to C.
16099 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16100 * grub-core/term/i386/pc/console.c (grub_console_cls):
16101 ... here. Translated to C.
16102 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16103 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16104 ... here. Translated to C.
16105 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16106 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16108 * grub-core/term/i386/pc/console.c (int10_9): New function.
16109 (grub_console_putchar): Likewise.
16110 * include/grub/i386/pc/console.h: Removed the not anymore shared
16113 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16115 Move grub_chainloader_real_boot out of the kernel.
16117 * grub-core/Makefile.am: Remove machine/loader.h.
16118 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16120 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16122 (grub_relocator16_keep_a20_enabled): Likewise.
16123 (grub_relocator16_boot): Fill new variables.
16124 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16125 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16127 (grub_chainloader_unload): Likewise.
16128 (grub_chainloader_cmd): Likewise.
16129 * include/grub/i386/pc/loader.h: Removed.
16130 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16131 and esi. All initialisers updated.
16133 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16134 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16136 * Makefile.util.def (grub-mount): New util.
16137 * .bzrignore: Add grub-mount.
16138 * configure.ac: Check for fuse and enable grub-mount if available.
16139 * docs/man/grub-mount.h2m: New file.
16140 * util/grub-mount.c: Likewise.
16142 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16144 * grub-core/commands/efi/fixvideo.c: Gettextize.
16145 * grub-core/commands/hashsum.c: Likewise.
16146 * grub-core/commands/i386/cmostest.c: Likewise.
16147 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16148 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16149 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16150 * grub-core/commands/lsmmap.c: Likewise.
16151 * grub-core/commands/menuentry.c: Likewise.
16152 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16153 * grub-core/commands/setpci.c: Likewise.
16154 * grub-core/loader/i386/bsd.c: Likewise.
16155 * grub-core/loader/i386/linux.c: Likewise.
16156 * util/getroot.c: Likewise.
16157 * util/grub-editenv.c: Likewise.
16158 * util/grub-fstest.c: Likewise.
16159 * util/grub-mkfont.c: Likewise.
16160 * util/grub-mkimage.c: Likewise.
16161 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16162 * util/grub-pe2elf.c: Likewise.
16163 * util/grub-probe.c: Likewise.
16164 * util/grub-setup.c: Likewise.
16165 * util/ieee1275/ofpath.c: Likewise.
16166 * util/misc.c: Likewise.
16167 * util/raid.c: Likewise.
16169 2011-11-11 Robert Millan <rmh@gnu.org>
16171 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16172 __attribute__((unused)) from `os_dev', which *is* being used.
16174 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16176 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16178 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16179 GRUB_IA64_DL_GOT_ALIGN.
16180 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16181 GRUB_IA64_DL_TRAMP_ALIGN.
16183 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16185 Replace grub_fatal with normal errors in i386 linux loader.
16187 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16188 (allocate_pages): Check find_efi_mmap_size return value.
16189 (grub_e820_add_region): Return error.
16190 (grub_linux_boot): Check mmap return value.
16192 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16194 * grub-core/commands/acpihalt.c: Gettextized.
16195 * grub-core/commands/cacheinfo.c: Likewise.
16196 * grub-core/commands/cmp.c: Likewise.
16197 * grub-core/commands/efi/loadbios.c: Likewise.
16198 * grub-core/commands/gptsync.c: Likewise.
16199 * grub-core/commands/ieee1275/suspend.c: Likewise.
16200 * grub-core/commands/legacycfg.c: Likewise.
16201 * grub-core/commands/memrw.c: Likewise.
16202 * grub-core/commands/minicmd.c: Likewise.
16203 * grub-core/commands/parttool.c: Likewise.
16204 * grub-core/commands/time.c: Likewise.
16205 * grub-core/commands/videoinfo.c: Likewise.
16206 * grub-core/disk/geli.c: Likewise.
16207 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16208 * grub-core/disk/luks.c: Likewise.
16209 * grub-core/disk/lvm.c: Likewise.
16210 * grub-core/font/font_cmd.c: Likewise.
16211 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16212 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16213 * grub-core/gfxmenu/view.c: Likewise.
16214 * grub-core/kern/emu/hostdisk.c: Likewise.
16215 * grub-core/kern/emu/main.c: Likewise.
16216 * grub-core/kern/emu/misc.c: Likewise.
16217 * grub-core/kern/emu/mm.c: Likewise.
16218 * grub-core/kern/mips/arc/init.c: Likewise.
16219 * grub-core/kern/mips/loongson/init.c: Likewise.
16220 * grub-core/kern/partition.c: Likewise.
16221 * grub-core/lib/i386/halt.c: Likewise.
16222 * grub-core/lib/mips/arc/reboot.c: Likewise.
16223 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16224 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16225 * grub-core/loader/i386/xnu.c: Likewise.
16226 * grub-core/loader/multiboot.c: Likewise.
16227 * grub-core/net/bootp.c: Likewise.
16228 * grub-core/net/net.c: Likewise.
16229 * grub-core/normal/term.c: Likewise.
16230 * grub-core/partmap/bsdlabel.c: Likewise.
16231 * grub-core/parttool/msdospart.c: Likewise.
16232 * grub-core/term/gfxterm.c: Likewise.
16233 * grub-core/term/terminfo.c: Likewise.
16234 * grub-core/video/i386/pc/vbe.c: Likewise.
16235 * util/grub-menulst2cfg.c: Likewise.
16236 * util/grub-mkdevicemap.c: Likewise.
16237 * util/grub-mklayout.c: Likewise.
16238 * util/grub-mkrelpath.c: Likewise.
16239 * util/grub-script-check.c: Likewise.
16240 * util/ieee1275/grub-ofpathname.c: Likewise.
16241 * util/resolve.c: Likewise.
16243 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16245 Support %1$d syntax.
16247 * tests/printf_unit_test.c: New file.
16248 * Makefile.util.def (printf_test): New test.
16249 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16251 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16253 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16256 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16258 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16260 * grub-core/font/font.c (grub_font_load): Likewise.
16262 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16264 * util/grub-macho2img.c: Add comment concerning gettext.
16265 * grub-core/lib/legacy_parse.c: Likewise.
16267 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16269 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16270 (grub_xvasprintf): Likewise.
16272 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16274 Add const keyword to grub_env_get and gettextize week days.
16276 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16277 (grub_read_hook_datetime): Return const char *.
16278 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16280 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16282 (grub_get_weekday_name): Return const char *. Call gettext.
16283 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16284 char * and len as the argument. All users updated.
16285 (grub_script_argv_split_append): Receive const char *.
16286 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16287 * include/grub/env.h (grub_env_get): Likewise.
16288 (grub_env_read_hook_t): Return const char *.
16289 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16290 (grub_script_argv_split_append): Likewise.
16292 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16294 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16296 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16298 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16299 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16301 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16303 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16306 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16308 Fix mips compilation.
16310 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16312 (hashes): Use in embed decoder as well (for sizes).
16313 (dec_stream_header): Fix embed decompressor logic.
16314 (dec_stream_footer): Likewise.
16316 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16318 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16319 an error and not a fatal on unrecognised relocation types.
16321 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16323 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16324 Issue error rather than printf on unknown arguments.
16326 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16328 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16331 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16333 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16336 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16338 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16339 leftover debug printf.
16341 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16343 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16345 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16347 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16350 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16352 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16354 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16356 Allow all modules to perform serial IO
16358 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16359 * include/grub/serial.h (grub_serial_port_configure): New inline
16361 (grub_serial_port_fetch): Likewise.
16362 (grub_serial_port_put): Likewise.
16363 (grub_serial_port_fini): Likewise.
16364 (grub_serial_find): New proto.
16366 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16368 Put symlink at the end of the node and fix a potential
16371 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16372 Make symlink into an array.
16373 (set_rockridge): Set have_symlink and alloc_dirents.
16374 (grub_iso9660_read_symlink): Use new layout.
16375 (grub_iso9660_iterate_dir): Fix memory corruption.
16377 (grub_iso9660_dir): Set have_symlink.
16378 (grub_iso9660_open): Likewise.
16380 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16382 Remove local keyword.
16384 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16385 (version_test_gt): Likewise.
16386 (version_find_latest): Likewise.
16387 (gettext_printf): Likewise.
16388 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16390 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16392 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16394 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16396 Fix ZFS memory and resource leaks.
16398 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16401 (fill_vdev_info): New parameter inserted. All users updated.
16402 (check_pool_label): Likewise.
16403 (scan_disk): Likewise.
16404 (scan_devices): Close non-inserted disks.
16405 (fzap_iterate): Free l.
16406 (unmount_device): Free children descripto memory.
16408 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16410 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16411 argument (access out of bounds).
16413 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16415 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16418 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16420 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16423 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16425 Fix several memory leaks.
16427 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16428 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16429 (grub_cpio_dir): Likewise.
16430 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16431 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16432 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16433 (grub_romfs_label): Likewise.
16434 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16435 (squash_unmount): New function.
16436 (grub_squash_dir): Fix memory leak.
16437 (grub_squash_open): Likewise.
16438 (grub_squash_read): Likewise.
16439 (grub_squash_mtime): Likewise.
16440 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16441 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16442 * util/grub-fstest.c (fstest): Likewise.
16444 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16446 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16447 avoid accessing beyond the array.
16449 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16451 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16453 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16455 Several AFFS fixes.
16457 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16458 (GRUB_AFFS_FLAG_FFS): Removed.
16459 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16460 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16461 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16462 (grub_fshelp_node): Make block 32-bit.
16463 Add block_cache and last_block_cache.
16464 (grub_affs_read_block): Fill and use block cache.
16465 (grub_affs_read_file): Removed.
16466 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16468 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16470 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16472 (grub_affs_close): Free block cache.
16473 (grub_affs_read): Use grub_fshelp_read_file directly.
16475 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16477 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16480 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16482 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16484 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16487 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16489 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16491 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16492 byteswap when needed.
16494 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16496 Fix FreeBSD compilation.
16498 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16499 to avoid circular dependency.
16500 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16501 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16502 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16504 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16506 Fix ZFS crypto error types.
16508 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16509 (grub_gcm_decrypt): Likewise.
16510 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16513 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16517 * Makefile.util.def (10_illumos): New script.
16518 * configure.ac: Set COND_HOST_ILLUMOS.
16519 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16520 Support Illumos calls.
16521 (find_partition_start) [__sun__]: Likewise.
16522 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16523 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16524 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16525 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16527 * util/grub-probe.c (probe) [__sun__]: Do character check.
16528 * util/grub.d/10_illumos.in: New file.
16530 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16532 Support escaped commas in hostdisk.
16534 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16535 (find_grub_drive): Use unescape_cmp.
16536 (make_device_name): Escape commas.
16538 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16540 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16542 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16544 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16547 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16549 Support trampoline jumps on powerpc.
16551 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16553 (grub_dl_load_segments): Set mod->sz.
16554 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16556 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16558 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16560 (trampoline): New struct.
16561 (trampoline_template): New const.
16562 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16563 * include/grub/dl.h (grub_dl): Add sz element.
16564 [__powerpc__]: Follow __ia64__.
16565 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16566 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16567 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16568 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16570 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16572 ZFS crypto support.
16574 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16575 * grub-core/Makefile.core.def (zfscrypt): New module.
16576 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16577 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16578 it. All users updated.
16579 (grub_zfs_decrypt): New var.
16580 (grub_zfs_load_key): Likewise.
16581 (zio_checksum_functions): Add SHA256+MAC.
16582 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16583 (zio_read): Handle encrypted blocks.
16584 (zap_verify): Remove incorrect check.
16585 (fzap_iterate): Handle non-standard fzap.
16586 (zap_iterate): Likewise.
16587 (zap_iterate_u64): New function.
16588 (dnode_get_fullpath): Load keys.
16589 * grub-core/fs/zfs/zfscrypt.c: New file.
16590 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16591 (grub_crypto_ecb_encrypt): Make input const.
16592 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16593 (grub_crypto_ecb_encrypt): Make input const.
16594 (GRUB_CIPHER_AES): New macro.
16595 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16596 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16597 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16598 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16599 prefix. All users updated.
16600 (grub_zfs_add_key): New proto.
16601 (grub_zfs_decrypt): Likewise.
16602 (grub_zfs_load_key): Likewise.
16603 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16604 * util/grub-fstest.c (options): Add -K option.
16605 (argp_parser): Likewise.
16607 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16609 Support zle compression on ZFS.
16611 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16612 (decomp_table): Add zle.
16613 * include/grub/zfs/zio.h (zio_compress): Add zle.
16615 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16617 Support BtrFS embedding.
16619 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16620 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16621 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16622 * util/grub-setup.c (setup): Use fs embedding if available.
16623 Add additional sanity check.
16625 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16627 * util/grub-install.in: Fix condition for config_opt.
16629 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16631 Support third redundancy strip on raidz3.
16633 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16634 Return error on singularity. All users updated.
16635 (read_device): Don't stop on 3rd failure on raidz3.
16637 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16639 Support case-insensitive ZFS subvolumes.
16641 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16643 (zap_hash): Likewise.
16644 (name_cmp): New function.
16645 (zap_leaf_array_equal): New parameter case_insensitive.
16647 (zap_leaf_lookup): Likewise.
16648 (fzap_lookup): Likewise.
16649 (zap_lookup): Likewise.
16650 (dnode_get_path): New parameter case_insensitive. Retrieve case
16651 sensitiviness of a volume. All users updated.
16652 (dnode_get_fullpath): New parameter case_insensitive.
16654 (grub_zfs_dir): Set info.case_insensitiveness.
16656 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16658 Support second redundancy strip on raidz(2,3).
16660 * grub-core/fs/zfs/zfs.c (powx): New array.
16661 (powx_inv): Likewise.
16663 (xor_out): New function.
16664 (gf_mul): Likewise.
16665 (recovery): Likewise.
16666 (read_device): Use second redundancy strip.
16668 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16670 Use a power of generator representation of GF(256) multiplication group
16671 to save space time and complexity.
16673 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16674 (raid6_table2): Likewise.
16676 (powx_inv): Likewise.
16678 (grub_raid_block_mul): Replace with ...
16679 (grub_raid_block_mulx): ...this.
16680 (grub_raid6_init_table): Rewritten.
16681 (grub_raid6_recover): Use power of generator representation.
16683 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16685 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16686 for the right device.
16688 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16690 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16691 expected by grub-mkimage and it's more clear since there is no implicit
16694 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16696 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16698 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16700 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16702 * util/grub-mkrescue.in: Fix handling xorriso option.
16704 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16706 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16709 2011-11-03 crocket <crockabiscuit@gmail.com>
16711 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16713 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16715 XZ CRC64 and SHA256 support.
16717 * Makefile.util.def (libgrubmods): Add crc64.c.
16718 * grub-core/Makefile.core.def (crc64): New module.
16719 * grub-core/lib/crc64.c: New file.
16720 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16721 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16723 (MAX_HASH_SIZE): New define.
16724 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16725 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16726 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16727 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16728 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16729 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16730 Handle non-crc32 hashes.
16731 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16732 (dec_stream_header): Handle non-crc32 hashes.
16733 (dec_stream_footer): Likewise.
16734 (dec_block_header): Likewise.
16735 (dec_main): Likewise.
16736 (xz_dec_init): Likewise.
16737 (xz_dec_reset): Likewise.
16738 (xz_dec_end): Likewise.
16739 * util/import_gcry.py: Add CRC64 line.
16741 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16743 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16746 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16748 Make reiserfs label retrieval similar to other *_label functions.
16750 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16751 (REISERFS_MAX_LABEL_LENGTH): Removed.
16752 (REISERFS_LABEL_OFFSET): Likewise.
16753 (grub_reiserfs_label): Rewritten.
16755 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16757 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16760 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16762 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16764 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16766 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16767 drive failure on both raidz and raidz2.
16769 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16771 Fix RAIDZ(2) for >= 5 devices.
16773 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16774 asize argument. All users updated.
16776 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16780 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16781 (fill_vdev_info_real): Set ashift.
16782 (read_device): Rewrite RAIDZ part based on reverse engineering.
16784 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16786 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16787 don't report potentially unavialiable fields in debug output.
16788 (find_path): Fix double-free and memory leak.
16790 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16792 Read label on UFS1.
16794 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16795 (grub_ufs_fs): Always set .label.
16797 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16801 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16802 (grub_ufs_data): New field log2_blksz.
16803 (grub_ufs_read_file): Use shifts.
16804 (grub_ufs_mount): Check block size and logarithm it.
16806 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16808 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16811 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16813 Handle symlinks and long names on tar and cpio.
16815 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16816 (ATTR_FILE): Likewise.
16817 (ATTR_DIR): Likewise.
16818 (ATTR_LNK): Likewise.
16819 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16820 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16822 (grub_cpio_mount): Zero-fill data.
16823 (handle_symlink): New function.
16824 (grub_cpio_dir): Handle symlinks.
16825 (grub_cpio_open): Likewise.
16826 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16828 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16830 Fix iso9660 filename limitations and fix memory leaks.
16832 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16833 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16835 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16837 Fix JFS file name length limitations.
16839 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16840 (grub_jfs_diropen): Fix maximum filename length.
16841 (grub_jfs_getent): Fix filename length.
16842 (grub_jfs_lookup_symlink): Fix size checks.
16844 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16846 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16849 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16851 Leverage BFS implementation to read AFS.
16853 * Makefile.util.def (libgrubmods): Add afs.c.
16854 * grub-core/Makefile.core.def (afs): New module
16855 * grub-core/fs/afs.c: New file.
16856 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16858 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16860 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16862 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16864 * grub-core/fs/bfs.c: Run indent.
16866 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16868 BFS implementation based on the specification.
16870 * grub-core/fs/bfs.c: New file.
16871 * Makefile.util.def (libgrubmods): Add bfs.c.
16872 * grub-core/Makefile.core.def (bfs): New module.
16874 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16876 * util/grub-fstest.c (cmd_cp): Clarify error message.
16877 (cmd_cmp): Likewise.
16879 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16881 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16884 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16886 Remove afs and befs because of copyright problem.
16888 * grub-core/fs/afs.c: Removed.
16889 * grub-core/fs/afs_be.c: Removed.
16890 * grub-core/fs/befs.c: Removed.
16891 * grub-core/fs/befs_be.c: Removed.
16892 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16893 * grub-core/Makefile.core.def (afs): Removed.
16894 (afs_be): Likewise.
16896 (befs_be): Likewise.
16898 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16900 Prefer rockridge over Joliet.
16902 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16904 (set_rockridge): ... here.
16905 (grub_iso9660_mount): Check rockridge on the primary label when
16906 discovering. Ignore Joliet if Rockridge is present.
16908 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16910 Use shifts in nilfs2.
16912 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16913 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16914 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16915 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16916 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16917 (grub_nilfs2_entries_per_block): Replaced with ...
16918 (grub_nilfs2_log_entries_per_block_log): ... this.
16919 (grub_nilfs2_blocks_per_group): Replaced with ...
16920 (grub_nilfs2_blocks_per_group_log): ... this.
16921 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16922 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16923 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16924 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16925 (grub_nilfs2_palloc_entry_offset): Replaced ...
16926 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16927 (grub_nilfs2_dat_translate): Use shifts.
16928 (grub_nilfs2_read_inode): Likewise.
16929 (GRUB_MOD_INIT): Ensure that logs are correct.
16931 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16933 Use shifts in minix filesystem.
16935 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16936 (GRUB_MINIX_ZONE2SECT): Likewise.
16937 (grub_minix_data): Replace block_size with log_block_size.
16938 (grub_minix_read_file): Use shifts.
16939 (grub_minix_mount): Check block size and take a logarithm.
16941 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16943 Use shifts in squash4.
16945 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16946 (squash_mount): Check block size and take logarithm.
16947 (direct_read): Use shifts.
16949 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16951 Correct befs block counting logic.
16953 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16954 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16955 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16956 (grub_afs_read_inode): Use block_shift.
16957 (RANGE_SHIFT): New definition.
16958 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16959 unexpected conditions, use shifts and appropriate types.
16960 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16962 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16964 * grub-core/disk/raid.c (scan_devices): Check partition.
16965 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16967 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16969 Support BFS (befs) UUID.
16971 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16972 (grub_afs_small_data_element_header): New struct.
16973 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16974 (grub_afs_read_attribute) [MODE_BFS]: New function.
16975 (grub_afs_iterate_dir): Allocate for complete inode.
16976 (grub_afs_mount): Likewise.
16977 (grub_afs_uuid) [MODE_BFS]: New function.
16978 (grub_afs_fs) [MODE_BFS]: Add .uuid.
16980 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16982 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
16983 (zfs_unmount): Fix memory leak.
16985 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16987 Support NTFS reparse points.
16989 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
16990 (symlink_descriptor): New struct.
16991 (grub_ntfs_read_symlink): New function.
16992 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
16993 (grub_ntfs_open): Likewise.
16995 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16997 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
16999 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17001 fstest xnu_uuid subcommand.
17003 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17004 grub-core/commands/xnu_uuid.c.
17005 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17006 (fstest): Handle xnu_uuid.
17007 (options): Document xnu_uuid.
17008 (argp_parser): Parse xnu_uuid.
17010 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17012 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17013 -l argument. Add newline at the end if printing.
17014 (GRUB_MOD_INIT): Document -l.
17016 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17018 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17020 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17022 ZFS multi-device and version 33 support.
17024 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17025 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17026 (grub_zfs_data): Add multidev-ice-related fields.
17027 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17028 (dva_get_offset): Make dva const.
17029 (zfs_fetch_nvlist): New function.
17030 (fill_vdev_info_real): Likewise.
17031 (fill_vdev_info): Likewise.
17032 (check_pool_label): Likewise.
17033 (scan_disk): Likewise.
17034 (scan_devices): Likewise.
17035 (read_device): Likewise.
17036 (read_dva): Likewise.
17037 (zio_read_gang): Use read_dva.
17038 (zio_read_data): Likewise.
17039 (zap_leaf_lookup): Add missing endian conversion.
17040 (zap_verify): Add missing endian conversion. All users updated.
17041 (fzap_lookup): Likewise.
17042 (fzap_iterate): Likewise.
17043 (dnode_get_path): Handle SA bonus.
17044 (nvlist_find_value): Make input const. All users updated.
17045 (unmount_device): New function.
17046 (zfs_unmount): Use unmount_device.
17047 (zfs_mount): Use scan_disk.
17048 (zfs_mtime): New function.
17049 (grub_zfs_open): Handle system attributes.
17050 (fill_fs_info): Likewise.
17051 (grub_zfs_dir): Likewise.
17052 (grub_zfs_fs): Add mtime.
17053 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17054 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17055 (SA_MTIME_OFFSET): Likewise.
17056 (SA_SYMLINK_OFFSET): Likewise.
17057 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17058 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17059 (fstest): Support zfsinfo.
17060 (argp_parser): Likewise.
17062 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17064 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17067 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17071 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17072 sharing the same block. Iterate over correct number of indices.
17073 (dnode_get_path): Handle symlinks correctly.
17075 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17077 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17079 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17081 Read label on HFS+.
17083 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17084 (grub_hfsplus_btree_search): Fix types.
17085 (grub_hfsplus_label): Implement.
17087 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17089 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17091 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17093 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17095 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17097 Fix symlink handling on iso9660.
17099 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17101 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17102 (grub_iso9660_read_symlink): Moved most of code ...
17103 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17105 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17107 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17108 Use union to avoid breaking strict-aliasing rules.
17110 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17112 Support multi-extent iso files.
17114 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17116 (grub_fshelp_node): Revamp. All users updated.
17117 (FLAG_*): New enum.
17118 (read_node): New function.
17119 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17121 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17122 (get_node_size): New function.
17123 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17125 Fix memory leak on . and ..
17126 (grub_iso9660_read): Use read_node.
17127 (grub_iso9660_close): Free node.
17129 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17131 Fix tar 4G limit and handle paths containing dot.
17133 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17134 (canonicalize): New function.
17135 (grub_cpio_find_file): Use canonicalize. Store offs in
17137 (grub_cpio_dir): Use grub_disk_addr_t.
17138 (grub_cpio_open): Likewise.
17140 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17142 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17144 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17146 (grub_squash_inode): Add long_file and block_size.
17147 (grub_squash_cache_inode): New struct.
17148 (grub_squash_dirent): Make types into enum.
17149 (SQUASH_TYPE_LONG_REGULAR): New type.
17150 (grub_squash_frag_desc): Add field size.
17151 (SQUASH_BLOCK_FLAGS): New enum.
17152 (grub_squash_data): Use grub_squash_cache_inode.
17153 (grub_fshelp_node): Make ino_chunk 64-bit.
17154 (read_chunk): Minor argument change. All users updated.
17155 (squash_mount): Use correct le_to_cpu.
17156 (grub_squash_open): Handle LONG_REGULAR.
17157 (direct_read): New function.
17158 (grub_squash_read_data): Handle blocks correctly.
17160 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17162 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17164 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17166 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17168 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17170 Fix 2G limit on ZFS.
17172 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17174 (uberblock_verify): Likewise.
17175 (dmu_read): Likewise.
17176 (grub_zfs_read): Likewise. Remove invalid cast.
17178 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17180 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17181 (grub_jfs_blkno): Fix incorrect shift.
17182 (grub_jfs_read_file): Use more appropriate types.
17184 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17186 Support triple indirect on minix2 and minix3.
17188 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17189 Declare triple_indir_zone.
17190 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17193 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17197 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17198 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17199 Rename ctime to mtime. All users updated.
17200 (grub_minix_get_file_block): Fix types and double indirect computations.
17202 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17204 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17205 if no label is found.
17206 (grub_fat_iterate_dir): Fix file size type.
17207 (grub_fat_iterate_dir): Likewise.
17209 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17211 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17213 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17214 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17216 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17218 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17220 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17222 * util/import_gcry.py: Accept space between # and include.
17224 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17226 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17228 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17230 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17232 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17233 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17235 * grub-core/script/yylex.l: Add fine-grained #pragma.
17237 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17239 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17240 New inline function.
17241 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17243 (memset) [GRUB_UTIL]: Likewise.
17244 (memcmp) [GRUB_UTIL]: Likewise.
17246 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17248 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17249 inline function rather than a define.
17251 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17253 * util/grub-setup.c: Add missing include.
17255 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17257 * util/ieee1275/grub-ofpathname.c: Add missing include.
17259 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17261 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17262 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17265 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17267 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17270 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17272 * util/grub-install.in: Add datarootdir as per automake manual
17274 * util/grub-mknetdir.in: Likewise.
17276 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17278 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17280 * util/grub.d/10_kfreebsd.in: Likewise.
17281 * util/grub.d/10_linux.in: Likewise.
17282 * util/grub.d/10_netbsd.in: Likewise.
17283 * util/grub.d/10_windows.in: Likewise.
17284 * util/grub.d/20_linux_xen.in: Likewise.
17286 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17288 Remove redundant grub_kernel_image_size.
17290 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17292 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17293 the small code. It moves it only by few bytes but simplifies the code.
17294 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17296 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17297 (grub_kernel_image_size): Removed.
17298 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17299 (grub_kernel_image_size): Removed.
17300 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17301 compiled with Apple toolchain.
17302 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17303 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17304 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17305 (grub_total_module_size): Likewise.
17306 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17308 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17309 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17310 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17311 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17312 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17313 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17314 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17315 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17317 (grub_total_module_size): Removed.
17318 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17319 (image_targets): Likewise.
17320 Set .compressed_size to no field on sparc.
17321 (generate_image): Remove kernel_image_size handling.
17323 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17325 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17326 NULL pointer dereference.
17328 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17330 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17331 done with a dedicated section.
17333 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17334 Ensure the correct position of boot_path.
17335 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17336 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17338 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17339 * include/grub/boot.h: Removed. All references removed.
17340 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17342 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17344 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17346 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17349 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17351 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17353 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17355 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17356 Don't add the bogus brackets.
17358 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17362 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17363 * grub-core/Makefile.core.def (exfat): New module.
17364 * grub-core/fs/exfat.c: New file.
17365 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17366 (GRUB_FAT_ATTR_*): Make into an enum.
17367 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17368 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17369 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17370 (GRUB_FAT_MAXFILE): Removed.
17371 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17372 (grub_current_fat_bpb_t): New type.
17373 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17374 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17375 (grub_fat_dir_node_t): New type.
17376 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17377 (fat_log2) [MODE_EXFAT]: Removed.
17378 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17379 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17380 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17381 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17382 (grub_fat_label) [MODE_EXFAT]: New function.
17383 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17384 reserved_first_sector to 0.
17386 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17388 Move grub_reboot out of the kernel.
17390 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17391 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17392 * grub-core/lib/efi/reboot.c: ... here.
17393 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17394 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17395 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17396 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17397 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17398 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17399 * grub-core/lib/ieee1275/reboot.c: ... here.
17400 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17401 * grub-core/lib/mips/arc/reboot.c: ... here.
17402 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17403 * grub-core/lib/mips/loongson/reboot.c: ...here.
17404 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17405 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17406 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17407 * include/grub/i386/reboot.h: New file.
17408 * include/grub/mips/loongson/ec.h: Fix includes.
17409 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17410 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17411 * grub-core/lib/i386/reboot.c: New file.
17413 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17415 Make grub_prefix into module to fix the arbitrary limit and save
17418 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17419 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17420 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17421 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17422 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17423 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17424 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17425 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17426 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17427 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17428 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17429 * include/grub/ia64/efi/kernel.h: Removed.
17430 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17431 (grub_prefix): Removed.
17432 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17433 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17434 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17435 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17436 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17437 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17438 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17439 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17440 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17441 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17442 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17443 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17444 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17445 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17446 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17447 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17448 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17449 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17450 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17451 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17452 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17453 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17454 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17455 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17456 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17457 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17458 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17459 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17460 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17462 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17464 (image_targets): Likewise.
17465 (generate_image): Put prefix as a module.
17467 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17469 Replace grub_module_iterate with FOR_MODULES.
17471 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17472 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17473 (grub_efi_modules_addr): ...this.
17474 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17475 (grub_efi_init): Set grub_modbase.
17476 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17477 (grub_modbase): New variable.
17478 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17479 (grub_modbase): New variable.
17480 (grub_machine_init): Set grub_modbase.
17481 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17482 (grub_modbase): New variable.
17483 (grub_machine_init): Set grub_modbase.
17484 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17485 (grub_modbase): New variable.
17486 (grub_machine_init): Set grub_modbase.
17487 * grub-core/kern/main.c (grub_module_iterate): Remove.
17488 (grub_modules_get_end): Use grub_modbase.
17489 (grub_load_modules): Use FOR_MODULES.
17490 (grub_load_config): Likewise.
17491 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17492 (grub_modbase): New variable.
17493 (grub_machine_init): Set grub_modbase.
17494 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17495 (grub_modbase): New variable.
17496 (grub_machine_init): Set grub_modbase.
17497 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17499 (grub_modbase): New variable.
17500 (grub_machine_init): Set grub_modbase.
17501 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17502 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17503 (grub_module_iterate): Likewise.
17504 (grub_modbase): New variable declaration.
17505 (FOR_MODULES): New macro.
17507 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17509 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17510 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17512 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17514 Fix few obvious type discrepancies.
17516 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17517 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17518 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17520 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17521 and connected types.
17522 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17524 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17525 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17526 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17527 and connected types.
17529 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17531 Fix python 3.x incompatibilities.
17533 * gentpl.py: Put brackets around print strings.
17534 * util/import_gcry.py: Open explicitly as utf-8.
17535 Use in instead of has_key.
17537 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17539 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17540 (GRUB_XFS_INO_AGBITS): Make into inline function.
17541 (GRUB_XFS_INO_INOINAG): Likewise.
17542 (GRUB_XFS_INO_AG): Likewise.
17543 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17544 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17545 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17546 (GRUB_XFS_EXTENT_SIZE): Likewise.
17547 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17548 (GRUB_XFS_NEXT_DIRENT): Likewise.
17549 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17550 (grub_xfs_read_file): Fix offset type.
17552 2011-10-15 Robert Millan <rmh@gnu.org>
17554 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17556 2011-10-15 Robert Millan <rmh@gnu.org>
17558 Fix build problem on FreeBSD and GNU/kFreeBSD.
17560 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17562 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17564 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17566 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17568 (grub_hfsplus_btree_recoffset): Likewise.
17569 (grub_hfsplus_btree_recptr): Likewise.
17570 (grub_hfsplus_find_block): Likewise.
17571 (grub_hfsplus_btree_search): Likewise.
17572 (grub_hfsplus_read_block): Likewise.
17573 (grub_hfsplus_read_file): Likewise.
17574 (grub_hfsplus_mount): Likewise.
17575 (grub_hfsplus_btree_iterate_node): Likewise.
17576 (grub_hfsplus_btree_search): Likewise.
17577 (grub_hfsplus_iterate_dir): Likewise.
17578 (grub_hfsplus_read): A small code simplification.
17580 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17582 * grub-core/kern/emu/hostdisk.c
17583 (convert_system_partition_to_system_disk): Don't assume that children
17584 of mapper nodes are mapper nodes.
17586 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17588 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17589 * include/grub/misc.h (grub_isxdigit): New function.
17590 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17591 switched to grub_isxdigit.
17592 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17593 number starting with a letter.
17595 2011-10-09 Robert Millan <rmh@gnu.org>
17597 LVM support for FreeBSD and GNU/kFreeBSD.
17599 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17601 (LVM_DEV_MAPPER_STRING): Move from here ...
17602 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17603 * util/getroot.c: Include `<grub/util/lvm.h>'.
17604 (grub_util_get_dev_abstraction): Enable
17605 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17606 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17607 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17608 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17610 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17612 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17613 when LVM abstraction is required for ${GRUB_DEVICE}.
17615 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17617 Add support for LZO compression in GRUB:
17618 - import of minilzo library,
17619 - LZO decompression for btrfs,
17620 - lzop files decompression.
17622 * grub-core/io/lzopio.c: New file.
17623 * grub-core/lib/adler32.c: Likewise.
17624 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17625 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17626 * grub-core/lib/minilzo/minilzo.c: Likewise.
17627 * grub-core/lib/minilzo/minilzo.h: Likewise.
17628 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17629 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17630 grub-core/lib/minilzo/minilzo.c to common.
17631 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17632 cflags in cppflags.
17633 * grub-core/Makefile.core.def (btrfs): Likewise.
17634 * grub-core/Makefile.core.def (lzopio): New module.
17635 (adler32): Likewise.
17636 * grub-core/fs/btrfs.c: Include minilzo.h.
17637 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17638 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17639 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17640 (grub_btrfs_lzo_decompress): New function.
17641 (grub_btrfs_extent_read): Add support for LZO compression type.
17642 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17643 (GRUB_USHRT_MAX): Likewise.
17644 (GRUB_UINT_MAX): Likewise.
17645 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17646 (UINT_MAX): Likewise.
17647 (CHAR_BIT): Likewise.
17648 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17649 grub-core/lib/posix_wrap/limits.h
17650 (UCHAR_MAX): Likewise.
17651 * include/grub/file.h (grub_file_filter_id): New compression filter
17652 GRUB_FILE_FILTER_LZOPIO.
17653 * include/grub/file.h (grub_file_filter_id): Set
17654 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17655 * include/grub/types.h (grub_get_unaligned16): New function.
17656 (grub_get_unaligned32): Likewise.
17657 (grub_get_unaligned64): Likewise.
17658 * util/import_gcry.py (cryptolist): Add adler32.
17660 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17662 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17663 in perspective decreases the complexity of build system and fixes
17664 compilation right now.
17666 2011-10-01 Ales Nesrsta <starous@volny.cz>
17668 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17669 (fixed problem related to using UHCI with coreboot).
17671 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17673 * gentpl.py: Use Autogen macros so that the output template file
17674 (Makefile.tpl) size is reduced.
17676 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17678 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17681 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17683 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17684 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17686 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17688 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17691 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17693 Remove extra declaration of sleep for mingw32.
17695 * util/misc.c (sleep) [__MINGW32__]: Removed.
17696 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17698 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17700 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17702 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17704 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17705 (grub_netbsd_btinfo_bootwedge): New struct.
17706 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17708 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17710 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17712 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17715 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17717 Fix incorrect identifiers in bash-completion.
17719 * util/bash-completion.d/grub-completion.bash.in
17720 (_grub_mkpasswd-pbkdf2): Rename to ...
17721 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17722 (_grub_script-check): Rename to ...
17723 (_grub_script_check): ... this. All users updated.
17725 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17727 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17728 Return 0 if disk isn't biosdisk.
17730 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17732 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17734 * Makefile.util.def (grub-fstest): Likewise.
17736 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17738 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17739 Get sector size from disk label.
17741 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17743 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17744 */README* as well as README*.
17745 Reported by: Axel Beckert.
17747 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17749 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17750 case of less than 256 MiB of RAM.
17752 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17754 * grub-core/commands/wildcard.c (make_regex): Handle @.
17756 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17758 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17760 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17762 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17763 AC_LANG_CONFTEST macros.
17765 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17767 Add grub-fstest option to uncompress data for commands.
17769 * util/grub-fstest.c (uncompress): New var.
17770 (options): New option -u.
17772 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17774 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17775 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17777 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17779 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17780 file type was not recognized correctly (not gzip or corrupted).
17782 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17784 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17785 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17787 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17789 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17791 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17792 video_radeon_fuloong2e.
17793 * grub-core/video/radeon_fuloong2e.c: New file.
17794 * include/grub/video.h (grub_video_id_t): Add new ID
17795 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17797 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17799 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17801 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17802 that PRID matches the detected subplatform and reset the subplatform
17805 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17807 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17809 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17811 Fix PCI iterating on functions >= 4.
17813 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17814 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17816 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17817 (grub_pci_read): Fix bitmask.
17818 (grub_pci_read_word): Likewise.
17819 (grub_pci_read_byte): Likewise.
17820 (grub_pci_write): Likewise.
17821 (grub_pci_write_word): Likewise.
17822 (grub_pci_write_byte): Likewise.
17824 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17826 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17827 can still be specified in TARGET_CFLAGS)
17829 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17831 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17833 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17834 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17835 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17836 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17837 (FULOONG): Rename to ...
17838 (FULOONG2F): ... this. All users updated.
17839 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17840 (machtype_fuloong2f_str): ... this.
17841 (machtype_fuloong2e_str): New string.
17842 Check for machtype_fuloong2e_str.
17843 * grub-core/loader/mips/linux.c (loongson_machtypes)
17844 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17845 * grub-core/term/serial.c (loongson_defserial)
17846 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17847 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17848 loongson_defserial.
17849 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17851 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17852 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17853 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17854 to IMAGE_FULOONG2F_FLASH. All users updated.
17855 (image_targets): Rename images.
17856 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17858 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17860 Make enable of disk cache statistics code configurable.
17862 * configure.ac: --enable-cache-stats added.
17863 * config.h.in (DISK_CACHE_STATS): New define.
17864 * grub-core/Makefile.core.def (cacheinfo): New command.
17865 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17866 * grub-core/commands/cacheinfo.c: New file.
17867 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17868 moved to cacheinfo.c.
17869 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17871 * include/grub/disk.h: Likewise.
17873 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17875 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17876 * grub-core/Makefile.am: Likewise.
17878 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17880 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17883 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17885 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17887 (grub_jfs_lookup_symlink): Use correct starting inode.
17889 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17891 * util/grub-setup.c (main): Add missing gcry initialisation.
17893 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17895 Don't accept text modes on EFI when booting Linux.
17897 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17898 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17900 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17901 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17903 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17904 use of "/path/.." as in grub-install for EFI as well as handling
17905 symlinks correctly.
17906 Fixes Debian bug #637768.
17908 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17910 * util/grub-probe.c: Remove duplicate #include.
17912 2011-08-10 Robert Millan <rmh@gnu.org>
17914 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17916 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17918 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17919 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17921 2011-08-03 Robert Millan <rmh@gnu.org>
17923 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17924 la_array as packed.
17925 Reported by: Zachary Bedell
17927 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17929 * configure.ac: The Loongson port requires grub-mkfont due to its
17930 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17933 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17935 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17936 processing arguments (otherwise help2man fails when GRUB has not yet
17939 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17941 New script grub-mkstandalone.
17943 * Makefile.util.def (grub-mkstandalone): New script.
17944 * docs/man/grub-mkstandalone.h2m: New file.
17945 * util/grub-mkstandalone.in: Likewise.
17947 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17949 Support ATA disks with 4K sectors.
17951 * include/grub/ata.h (grub_ata): New member log_sector_size.
17952 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17953 (grub_ata_identify): Read sector size.
17954 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17956 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17958 * util/grub-install.in: Don't use uhci outside of x86.
17960 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17962 * util/grub-mkrescue.in: Add missing quotes.
17964 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17966 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17969 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17971 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17973 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17975 * include/grub/video.h: add missing EXPORT_FUND on
17976 grub_video_edid_checksum and grub_video_edid_preferred_mode.
17978 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17980 * include/grub/mips/kernel.h: Fix define conflict.
17982 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17984 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
17987 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
17989 Preferred resolution detection for VBE.
17991 * grub-core/video/video.c (grub_video_edid_checksum): New function.
17992 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
17993 the Flat Panel extension, in line with the X.org VESA driver.
17994 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
17996 (grub_vbe_bios_get_ddc_capabilities): Likewise.
17997 (grub_vbe_bios_read_edid): Likewise.
17998 (grub_vbe_get_preferred_mode): Likewise.
17999 (grub_video_vbe_setup): When the mode is "auto", try to get the
18000 preferred mode from VBE, and use the largest mode that is no larger
18001 than the preferred mode (some BIOSes expose a preferred mode that is
18002 not in their mode list!). If this fails, fall back to 640x480 as a
18003 safe conservative choice.
18004 (grub_video_vbe_get_edid): New function.
18005 (grub_video_vbe_adapter): Add get_edid.
18006 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18007 (struct grub_video_adapter): Add get_edid.
18008 (grub_video_edid_checksum): Add prototype.
18009 (grub_video_edid_preferred_mode): Likewise.
18010 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18013 * grub-core/commands/videoinfo.c (print_edid): New function.
18014 (grub_cmd_videoinfo): Print EDID if available.
18016 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18017 is more appropriate on a wider range of platforms than 640x480.
18018 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18021 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18023 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18025 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18027 * po/POTFILES.in: Regenerate.
18029 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18031 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18032 incorrect memory usage.
18034 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18036 * util/grub-install.in: Source grub-mkconfig_lib.
18038 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18040 Remove getroot.c from core on emu platform.
18042 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18044 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18046 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18047 * util/getroot.c (get_win32_path): ... here.
18048 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18049 * util/getroot.c (fini_libzfs): ... here.
18050 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18051 * util/getroot.c (grub_get_libzfs_handle): ... here.
18052 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18054 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18055 * grub-core/kern/emu/misc.c
18056 (grub_make_system_path_relative_to_its_root): Moved from here...
18057 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18058 * grub-core/kern/emu/getroot.c: Moved from here ...
18059 * util/getroot.c: ... here. All users updated.
18060 * grub-core/kern/emu/raid.c: Moved from here ...
18061 * util/raid.c: ... here. All users updated.
18063 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18065 * po/POTFILES.in: Regenerate.
18067 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18069 Fix compilation on GNU/Linux.
18071 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18073 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18074 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18075 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18077 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18078 2011-07-07 Michael Gorven <michael@gorven.za.net>
18079 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18081 LUKS and GELI support.
18083 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18084 grub-core/disk/luks.c, grub-core/disk/geli.c,
18085 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18086 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18087 grub-core/lib/arg.c.
18088 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18089 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18090 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18091 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18092 (grub-bin2h): Add libgcry.a.
18093 (grub-mkimage): Likewise.
18094 (grub-mkrelpath): Likewise.
18095 (grub-script-check): Likewise.
18096 (grub-editenv): Likewise.
18097 (grub-mkpasswd-pbkdf2): Likewise.
18098 (grub-pe2elf): Likewise.
18099 (grub-fstest): Likewise.
18100 (grub-mkfont): Likewise.
18101 (grub-mkdevicemap): Likewise.
18102 (grub-probe): Likewise.
18103 (grub-ofpath): Likewise.
18104 (grub-mklayout): Likewise.
18105 (example_unit_test): Likewise.
18106 (grub-menulst2cfg): Likewise.
18107 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18108 * grub-core/Makefile.core.def (cryptodisk): New module.
18111 * grub-core/disk/AFSplitter.c: New file.
18112 * grub-core/disk/cryptodisk.c: Likewise.
18113 * grub-core/disk/geli.c: Likewise.
18114 * grub-core/disk/luks.c: Likewise.
18115 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18117 (grub_util_get_dm_abstraction): New function.
18118 (grub_util_follow_gpart_up): Likewise.
18119 (grub_util_get_geom_abstraction): Likewise.
18120 (grub_util_get_dev_abstraction): Use new functions.
18121 (grub_util_pull_device): Pull GELI and LUKS.
18122 (grub_util_get_grub_dev): Handle LUKS and GELI.
18123 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18124 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18125 (follow_geom_up): Removed.
18126 (grub_util_fd_seek): New function.
18127 (open_device): Use grub_util_fd_seek.
18128 (nread): Rename to ..
18129 (grub_util_fd_read): ... this. All users updated.
18130 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18131 (grub_crypto_cbc_decrypt): Likewise.
18132 (grub_crypto_hmac_write): Likewise.
18133 (grub_crypto_hmac_buffer): Likewise.
18134 (grub_password_get): Extend to util.
18135 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18136 New member modname.
18137 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18138 * include/grub/cryptodisk.h: New file.
18139 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18140 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18142 (grub_util_follow_gpart_up): New proto.
18143 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18144 (grub_util_fd_read): Likewise.
18145 (grub_cryptodisk_cheat_mount): Likewise.
18146 (grub_util_cryptodisk_print_uuid): Likewise.
18147 (grub_util_get_fd_sectors): Likewise.
18148 * util/grub-fstest.c (mount_crypt): New var.
18149 (fstest): Mount crypto if requested.
18150 (options): New option -C.
18151 (argp_parser): Parse -C.
18152 (main): Init and fini gcry.
18153 * util/grub-install.in: Support cryptodisk install.
18154 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18155 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18157 (prepare_grub_to_access_device): Likewise.
18158 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18159 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18160 (probe_cryptodisk_uuid): New function.
18161 (probe_abstraction): Likewise.
18162 (probe): Use new functions.
18163 * util/import_gcry.py: Create Makefile.utilgcry.def.
18164 Add modname member.
18166 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18168 Lazy device scanning.
18170 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18171 (grub-setup): Remove util/raid.c.
18172 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18173 * grub-core/disk/lvm.c (scan_depth): New variable.
18174 (grub_lvm_iterate): Rescan if necessary.
18175 (find_lv): New function based on grub_lvm_open.
18176 (grub_lvm_open): Use find_lv. Rescan on error.
18177 (is_node_readable): New function.
18178 (is_lv_readable): Likewise.
18179 (grub_lvm_scan_device): Skip already found disks.
18180 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18181 Stop if searched device is found and readable.
18182 * grub-core/disk/raid.c (inscnt): New variable.
18183 (scan_depth): Likewise.
18184 (scan_devices): New function based on grub_raid_register. Abort if
18185 looked for device is found.
18186 (grub_raid_iterate): Rescan if needed.
18187 (find_array): NEw function based on -grub_raid_open.
18188 (grub_raid_open): Use find_array and rescan.
18189 (insert_array): Set became_readable_at.
18190 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18191 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18193 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18194 (grub_util_pull_device): New function.
18195 (grub_util_get_grub_dev): Call grub_util_pull_device.
18196 * util/raid.c: Moved to ..
18197 * grub-core/kern/emu/raid.c: ... here.
18198 (grub_util_raid_getmembers): New parameter "bootable".
18199 All users updated. Support 1.x.
18200 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18202 * include/grub/disk.h (grub_disk_pull_t): New enum.
18203 (grub_disk_dev): Change iterate prototype.
18205 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18207 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18208 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18209 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18210 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18212 * include/grub/util/raid.h: Removed.
18214 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18216 * po/POTFILES.in: Regenerate.
18218 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18220 Unify sparc init with other ieee1275.
18222 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18223 instead of kern/sparc64/ieee1275/init.c.
18224 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18225 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18226 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18227 grub/machine/kernel.h.
18228 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18229 (grub_claim_heap) [__sparc__]: Use sparc version.
18230 (grub_machine_init): Moved args parsing to
18231 (grub_parse_cmdline): ...this.
18232 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18233 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18235 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18237 Move BOOTP to separate file.
18239 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18240 * grub-core/net/net.c: Move all BOOTP functions to
18241 * grub-core/net/bootp.c: ... here.
18243 Use frame interface on PXE.
18245 * grub-core/Makefile.core.def (pxecmd): Removed.
18246 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18247 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18248 * grub-core/i386/pc/pxe.c: Moved from here ...
18249 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18250 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18251 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18253 EFI network support.
18255 * grub-core/Makefile.core.def (efinet): New module.
18256 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18258 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18260 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18261 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18262 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18263 * grub-core/net/drivers/efi/efinet.c: New file.
18264 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18265 (grub_efi_net_config): New extern var.
18267 Various cleanups and bugfixes.
18269 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18271 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18272 disk declared as partition.
18273 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18275 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18276 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18277 (grub_debug_zalloc): Likewise.
18278 (grub_debug_realloc): Likewise.
18279 (grub_debug_memalign): Likewise.
18280 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18281 Check that target is IPv4.
18282 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18283 local-mac-address as fallback.
18284 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18286 * grub-core/net/ip.c (ipchksum): Rename to ...
18287 (grub_net_ip_chksum): ... this. All users updated.
18288 (grub_net_recv_ip_packets): Special handling for DHCP.
18289 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18291 Unify prefix handling
18293 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18294 (grub_machine_get_bootlocation): ... this.
18295 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18296 (grub_machine_get_bootlocation): ... this.
18297 (grub_prefix): New variable.
18299 (root_dev): New variable.
18301 (main): Use new variables.
18302 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18304 (grub_machine_get_bootlocation): ... this.
18305 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18306 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18307 (grub_machine_get_bootlocation): ... this.
18308 (grub_machine_set_prefix): Removed.
18309 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18310 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18312 (grub_machine_get_bootlocation): ... this.
18313 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18314 (grub_set_prefix_and_root): ... this. All users updated.
18315 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18317 (grub_machine_get_bootlocation): ... this.
18318 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18319 (grub_machine_get_bootlocation): New proto.
18320 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18322 Less intrusive and more reliable seek on network implementation.
18324 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18325 (grub_file_seek): Don't call grub_file_net_seek.
18326 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18327 (grub_net_fs_read_real): .. this.
18328 (grub_net_seek_real): Use net->offset.
18329 (grub_net_fs_read): Seek if necessary.
18331 Unify IEEE1275 netwotk config with the other platforms.
18333 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18335 (grub_machine_get_bootlocation): Support network.
18336 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18337 Support type and device parsing.
18338 (grub_ieee1275_get_device_type): New function.
18339 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18341 (grub_ieee1275_net_config_real): ... this.
18342 (grub_ofnet_probecards): Removed.
18343 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18344 * include/grub/ieee1275/ofnet.h: Removed.
18345 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18347 (grub_ieee1275_get_device_type): New function.
18349 Unify network device closing across platforms and make more robust.
18351 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18353 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18355 * grub-core/net/net.c (grub_net_network_level_interface_register):
18357 (grub_net_card_unregister): Close all interfaces.
18358 (receive_packets): Don't poll if no iterfaces are registered.
18360 (grub_net_fini_hw): New function.
18361 (grub_net_restore_hw): Likewise.
18362 (fini_hnd): New variable.
18363 (GRUB_MOD_INIT): Register preboot hook.
18364 (GRUB_MOD_FINI): Run and unregister preboot hook.
18366 Poll network cards when idle.
18368 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18369 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18370 * grub-core/net/net.c (receive_packets): Save last poll time.
18371 (grub_net_poll_cards_idle_real): New function.
18372 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18373 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18374 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18376 Rename ofnet interfaces.
18378 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18379 (grub_ofnet_findcards): Use ofnet_%s names.
18381 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18383 Cleanup socket opening.
18385 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18386 (grub_net_fs_close): Likewise.
18387 (grub_net_fs_read_real): Use eof member.
18388 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18389 (+grub_net_udp_close): New inline function.
18391 * include/grub/net/tftp.h: Moved to the top of ...
18392 * grub-core/net/tftp.c: ... here.
18393 * include/grub/net/ip.h: Moved mostly to the top of ...
18394 * grub-core/net/ip.c: ... here.
18395 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18396 * grub-core/net/ethernet.c: ... here.
18398 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18400 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18403 * include/grub/net/ip.h (ipv4_ini): Removed.
18404 (ipv4_fini): Likewise.
18406 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18407 (grub_net_send_ip_packets): Likewise.
18409 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18411 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18412 grub_read_cmos prototype.
18414 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18416 VGA text support in qemu-mips
18418 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18419 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18420 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18422 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18423 * grub-core/kern/vga_init.c: ... this.
18424 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18425 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18426 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18428 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18429 GRUB_MACHINE_PCI_IO_BASE.
18431 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18433 MIPS qemu flash support.
18435 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18437 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18438 (grub_machine_init): Probe memory if its size isn't known.
18439 * util/grub-mkimage.c (image_targets): Add flash targets.
18440 (generate_image): Handle flash targets.
18442 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18444 MIPS qemu at_keyboard support.
18446 * gentpl.py (videoinkernel): Add qemu-mips.
18447 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18448 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18449 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18451 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18452 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18453 * grub-core/term/serial.c (grub_serial_register)
18454 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18456 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18458 CMOS support on sparc.
18460 * gentpl.py (cmos): Add powerpc and sparc.
18461 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18463 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18464 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18465 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18466 grub_set_datetime_cmos.
18467 * grub-core/lib/ieee1275/cmos.c: New file.
18468 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18469 (find_rtc): Set no_ieee1275_rtc on error.
18470 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18471 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18472 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18473 fail. Move value to argument. All users updated
18474 (grub_cmos_write): Likewise.
18475 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18476 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18477 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18478 grub_get_datetime_cmos and grub_set_datetime_cmos.
18480 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18482 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18483 sourcing grub-mkconfig_lib.
18484 * util/update-grub_lib.in: Likewise.
18485 * util/grub.d/00_header.in: Likewise.
18486 * util/grub.d/10_hurd.in: Likewise.
18487 * util/grub.d/10_kfreebsd.in: Likewise.
18488 * util/grub.d/10_linux.in: Likewise.
18489 * util/grub.d/10_netbsd.in: Likewise.
18490 * util/grub.d/10_windows.in: Likewise.
18491 * util/grub.d/20_linux_xen.in: Likewise.
18492 * util/grub.d/30_os-prober.in: Likewise.
18494 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18496 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18497 default_bg_color rather than black.
18498 (grub_gfxterm_fullscreen): Likewise.
18499 (grub_gfxterm_background_color_cmd): Save new background color in
18502 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18504 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18506 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18508 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18511 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18513 Chainloading on coreboot support.
18515 * grub-core/Makefile.core.def (chain): Add coreboot.
18516 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18518 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18520 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18523 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18525 Implement time command.
18527 * grub-core/Makefile.core.def (time): New module.
18528 * grub-core/commands/time.c: New file.
18529 * grub-core/script/parser.y: Remove "time" keyword.
18530 * grub-core/script/yylex.l: Likewise.
18532 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18534 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18536 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18538 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18539 when handling leftovers.
18541 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18543 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18544 so that help2man doesn't fail.
18546 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18548 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18549 type in pointers on sparc64.
18550 (get_card_packet): Likewise.
18552 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18554 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18556 (grub_cmd_videoinfo): Fetch current video mode.
18558 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18560 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18561 because of underlying system restrictions.
18563 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18565 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18568 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18570 Coreboot video support.
18572 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18574 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18575 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18577 * grub-core/kern/i386/int.S: ... here.
18578 * grub-core/video/i386/pc/vbe.c: Updated includes.
18579 * grub-core/video/i386/pc/vga.c: Likewise.
18580 * include/grub/i386/coreboot/memory.h
18581 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18582 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18583 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18584 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18585 Disable interrupts.
18586 * include/grub/i386/pc/vga.h: Removed. All users updated.
18588 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18590 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18591 definitions for dprintf.
18592 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18594 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18596 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18598 (get_card_packet): Likewise.
18600 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18602 Display the path of the file when file is not found
18604 * grub-core/fs/fat.c: Display the filename when file is not found.
18605 * grub-core/fs/fshelp.c: Likewise.
18606 * grub-core/fs/hfs.c: Likewise.
18607 * grub-core/fs/jfs.c: Likewise.
18608 * grub-core/fs/minix.c: Likewise.
18609 * grub-core/fs/ufs.c: Likewise.
18610 * grub-core/fs/btrfs.c: Likewise.
18611 * grub-core/commands/i386/pc/play.c: Likewise.
18613 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18615 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18616 pointer checks before calling grub_free().
18617 * grub-core/commands/wildcard.c (match_devices): Likewise.
18618 * grub-core/commands/wildcard.c (match_files): Likewise.
18619 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18620 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18621 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18622 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18623 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18624 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18625 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18626 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18627 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18629 2011-06-25 Patrick <p55@mailinator.com>
18631 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18633 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18635 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18636 (grub_pxe_send): Likewise.
18637 (GRUB_MOD_INIT): Fix types.
18639 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18641 * grub-core/io/xzio.c: Fix code style issues
18643 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18644 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18646 Network infrastructure.
18647 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18649 * include/grub/net/arp.h: New file.
18650 * include/grub/net/device.h: Likewise.
18651 * include/grub/net/ethernet.h: Likewise.
18652 * include/grub/net/ip.h: Likewise.
18653 * include/grub/net/netbuff.h: Likewise.
18654 * include/grub/net/tftp.h: Likewise.
18655 * include/grub/net/udp.h: Likewise.
18656 * include/grub/ieee1275/ofnet.h: Likewise.
18657 * include/grub/emu/export.h: Likewise.
18658 * include/grub/net.h: Likewise.
18659 * grub-core/net/arp.c: Likewise.
18660 * grub-core/net/ethernet.c: Likewise.
18661 * grub-core/net/ip.c: Likewise.
18662 * grub-core/net/udp.c: Likewise.
18663 * grub-core/net/tftp.c: Likewise.
18664 * grub-core/net/netbuff.c: Likewise.
18665 * grub-core/net/net.c: Likewise.
18666 * grub-core/net/drivers/emu/emunet.c: Likewise.
18667 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18668 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18670 * grub-core/Makefile.core.def (net): New module.
18673 (emunet): Likewise.
18674 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18676 * grub-core/kern/device.c (grub_net_open) : New variable.
18677 (grub_device_open): Handle network device.
18678 (grub_device_close): Likewise.
18679 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18680 (grub_grubnet_fini): Likewise.
18681 (grub_file_seek): Seek in network device.
18682 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18683 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18685 (grub_machine_fini): Call grub_grubnet_fini.
18686 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18688 (grub_ieee1275_get_aliasdevname): New function.
18689 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18690 Add unofficial Solaris network info.
18691 (grub_multiboot_make_mbi): Likewise.
18692 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18693 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18694 * include/grub/device.h (grub_fs): Removed.
18695 * include/grub/err.h (grub_err_t): Add network-related values.
18696 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18697 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18698 (grub_ieee1275_get_aliasdevname): New proto.
18699 * include/grub/net.h: Rewritten.
18701 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18703 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18706 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18708 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18709 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18710 it truncates the output.
18711 Reported by: Ximin Luo.
18713 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18715 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18717 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18719 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18720 partmap before abstraction.
18722 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18724 * util/grub-mkconfig_lib.in: Add missing quotes.
18726 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18728 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18729 old method if mountinfo would return /dev/root and /dev/root doesn't
18732 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18736 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18737 (decomp_table): Add zlib entries.
18738 (zio_read): USe 8 bits for compression function rather than 3.
18739 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18741 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18743 * grub-core/disk/ahci.c: Add missing license statements.
18744 * grub-core/fs/romfs.c: Likewise.
18745 * grub-core/lib/ia64/setjmp.S: Likewise.
18746 * grub-core/loader/i386/pc/freedos.c: Likewise.
18747 * grub-core/loader/ia64/efi/linux.c: Likewise.
18748 * grub-core/video/colors.c: Likewise.
18749 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18751 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18755 * grub-core/Makefile.core.def (ata_pthru): Removed.
18756 (ahci): New module.
18758 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18760 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18762 (grub_hdparm_do_check_powermode_cmd): Likewise.
18763 (grub_hdparm_do_smart_cmd): Likewise.
18764 (grub_hdparm_set_val_cmd): Likewise.
18765 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18766 * grub-core/disk/ahci.c: New file.
18767 * grub-core/disk/ata.c: Factor out the low-level part into ...
18768 * grub-core/disk/pata.c: ... here.
18769 * grub-core/disk/ata_pthru.c: Contents moved to ...
18770 * grub-core/disk/pata.c: ... here.
18771 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18772 (grub_scsi_iterate): Use grub_scsi_names.
18773 (grub_scsi_open): Likewise.
18774 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18775 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18776 (grub_ata_regs_t): New struct.
18777 (grub_disk_ata_pass_through_parms): Likewise.
18778 (grub_ata_device): Renamed to ...
18779 (grub_ata): ... this.
18780 (grub_ata_dev): New struct.
18781 Removed all low-level inline functions.
18782 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18783 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18784 iterate hooks and open. All users updated.
18785 * util/grub-install.in: Handle AHCI disk module.
18787 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18789 Add support for DRI and RSTn markers in JPEG files.
18791 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18792 (JPEG_MARKER_RST0): Likewise.
18793 (JPEG_MARKER_RST1): Likewise.
18794 (JPEG_MARKER_RST2): Likewise.
18795 (JPEG_MARKER_RST3): Likewise.
18796 (JPEG_MARKER_RST4): Likewise.
18797 (JPEG_MARKER_RST5): Likewise.
18798 (JPEG_MARKER_RST6): Likewise.
18799 (JPEG_MARKER_RST7): Likewise.
18800 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18801 (grub_jpeg_decode_dri): New function.
18802 (grub_jpeg_decode_sos): Move image data related part into
18803 grub_jpeg_decode_data function.
18804 (grub_jpeg_decode_data): New function.
18805 (grub_jpeg_reset): New function.
18806 (grub_jpeg_decode_jpeg): Handle new markers.
18808 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18810 * util/ieee1275/ofpath.c (check_sas): Close fd.
18811 (main): Free of_path.
18812 Reported by: David Volgyes <dvolgyes>.
18814 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18816 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18817 Reported by: David Volgyes <dvolgyes>.
18819 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18821 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18823 Reported by: David Volgyes <dvolgyes>.
18825 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18827 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18829 Reported by: David Volgyes <dvolgyes>.
18831 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18833 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18834 Prevent memory leak.
18836 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18838 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18839 (main): Close file.
18840 Reported by: David Volgyes <dvolgyes>.
18842 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18844 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18845 to continue if allocation is failed.
18847 Reported by: David Volgyes <dvolgyes>.
18849 2011-06-23 David Volgyes <dvolgyes>
18851 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18854 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18856 Fix spurious warning.
18858 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18859 (acorn_partition_map_find): Use .bin member.
18861 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18863 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18864 /dev/root as a valid device.
18866 2011-06-23 Jim Meyering <meyering@redhat.com>
18868 Avoid NULL deref in grub_device_open.
18870 * grub-core/kern/device.c (grub_device_open): Don't dereference
18871 a NULL pointer upon failed grub_env_get.
18873 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18875 Support non-512B sectors and agglomerate reads.
18877 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18878 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18879 (disk_io_guid): Removed.
18880 (make_devices): Locate solely by BlockIO.
18881 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18882 (grub_efidisk_read): Use read_blocks.
18883 (grub_efidisk_write): Use write_blocks.
18884 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18886 (get_safe_sectors): Handle non-512B sectors.
18887 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18889 (grub_biosdisk_write): Handle non-512B sectors.
18890 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18891 (grub_scsi_read): Remove special non-512B block handling (now handled
18893 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18894 and do sanity checks.
18895 (grub_disk_adjust_range): Handle non-512B sectors.
18896 (transform_sector): New function.
18897 (grub_disk_read_small): Likewise.
18898 (grub_disk_read): Rewritten.
18899 (grub_disk_write): Handle non-512B sectors.
18900 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18902 (open_device): Use log_sector_size.
18903 (grub_util_biosdisk_read): Likewise.
18904 (grub_util_biosdisk_write): Likewise.
18905 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18907 (pc_partition_map_embed): Likewise.
18908 * include/grub/disk.h (grub_disk): New field log_sector_size.
18909 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18910 (GRUB_DISK_CACHE_BITS): Increased to 6.
18911 * util/grub-fstest.c (fstest): New command testload.
18912 (argp_parser): Likewise.
18914 2011-06-16 Robert Millan <rmh@gnu.org>
18916 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18917 `ata' driver on kernel of FreeBSD 9.
18919 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18920 (get_ataraid_disk_name): New functions.
18921 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18922 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18923 get_ataraid_disk_name() and get_ada_disk_name().
18925 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18927 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18930 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18932 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18933 `ftp.gnu.org' for `alpha.gnu.org'.
18935 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18937 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18938 partitions under /dev/disk/by-id/.
18940 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18942 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18943 after ten consecutive open failures. Scanning all the way up to
18944 10000 is excessive and can cause serious performance problems in
18945 some configurations.
18946 Fixes Ubuntu bug #787461.
18948 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18950 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18953 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18954 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18956 Don't stat devices unless we have to.
18958 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18959 dir == /dev/mapper.
18960 (grub_guess_root_device): Use already known os_dev if possible.
18961 * grub-core/kern/emu/hostdisk.c
18962 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18963 if device is known to be a dm one.
18965 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18967 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18968 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18969 Reported by: Pawel Tecza.
18971 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18973 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18974 (lsefisystab): Likewise.
18976 (lsefimmap): Likewise.
18977 (hdparm): Enable on qemu-mips.
18978 (setjmp): Add ia64 nodist.
18979 (serial): Simplify tags.
18981 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18983 * Makefile.util.def (grub-ofpathname): Install manual page.
18985 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18987 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
18989 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18991 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
18993 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18995 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
18998 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19000 Use full 64-bit division.
19002 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19003 (grub_divmod64): ... this.
19004 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19007 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19009 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19012 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19014 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19015 to avoid accidents when debugging with 'sh -x'.
19016 * grub-core/gensyminfo.sh.in: Likewise.
19017 * tests/example_scripted_test.in: Likewise.
19018 * tests/grub_cmd_regexp.in: Likewise.
19019 * tests/grub_script_blanklines.in: Likewise.
19020 * tests/grub_script_dollar.in: Likewise.
19021 * tests/grub_script_expansion.in: Likewise.
19022 * tests/grub_script_final_semicolon.in: Likewise.
19023 * tests/partmap_test.in: Likewise.
19024 * tests/util/grub-shell-tester.in: Likewise.
19025 * tests/util/grub-shell.in: Likewise.
19027 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19029 Move gfxmenu color handling to video, so that gfxterm can use it
19032 * grub-core/gfxmenu/named_colors.c: Move to ...
19033 * grub-core/video/colors.c: ... here. Rename
19034 grub_gui_get_named_color to grub_video_get_named_color.
19035 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19036 * grub-core/video/colors.c (my_isxdigit): ... here.
19037 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19039 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19040 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19042 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19044 * include/grub/gui.h (grub_gui_color_t): Move to ...
19045 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19046 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19047 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19048 * include/grub/gui.h (grub_gui_map_color): Move to ...
19049 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19050 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19052 * include/grub/video.h (grub_video_get_named_color): ... here.
19053 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19054 * include/grub/video.h (grub_video_parse_color): ... here.
19056 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19058 (gfxmenu): Remove gfxmenu/named_colors.c.
19059 (video) [videomodules]: Add video/colors.c.
19061 Add a background_color command.
19063 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19065 (GRUB_MOD_INIT): Register background_color command.
19066 (GRUB_MOD_FINI): Unregister background_color command.
19067 (redraw_screen_rect): Allow blend/replace of text layer to be
19068 controlled independently from whether there is a background bitmap.
19069 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19072 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19074 Patch BPB in ntldr and chainloader --bpb.
19076 * grub-core/fs/fat.c: Include grub/fat.h.
19077 (grub_fat_bpb): Moved to ...
19078 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19079 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19081 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19083 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19085 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19087 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19088 (GRUB_MOD_INIT): Show --bpb.
19089 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19090 * grub-core/normal/main.c (features): New variable.
19091 (GRUB_MOD_INIT): Set feature_* variables.
19092 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19094 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19096 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19098 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19101 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19103 FreeDOS direct loading support.
19105 * docs/grub.texi (Supported OS): Add FreeDOS.
19106 * grub-core/Makefile.core.def (freedos): New module.
19107 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19109 (grub_relocator16_boot): Handle %ebx.
19110 * grub-core/lib/i386/relocator16.S: Likewise.
19111 * grub-core/loader/i386/pc/freedos.c: New file.
19113 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19115 Long Linux command line support.
19117 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19118 (maximal_cmdline_size): New variable.
19119 (allocate_pages): Use maximal_cmdline_size.
19120 (grub_cmd_linux): Set and use maximal_cmdline_size.
19121 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19122 (allocate_pages): Use maximal_cmdline_size.
19123 (grub_cmd_linux): Set and use maximal_cmdline_size.
19124 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19125 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19128 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19129 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19131 Improve devmapper support
19133 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19134 (grub_util_is_lvm): New function.
19135 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19136 than lvm if not dmraid.
19137 Handle mapped md nodes.
19138 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19139 (grub_util_device_is_mapped): ... this. Make always available. All users
19141 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19142 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19144 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19146 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19148 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19150 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19151 * grub-core/modinfo.sh.in: New file.
19152 * grub-core/Makefile.core.def (modinfo.sh): New script.
19153 * util/grub-mknetdir.in: Use modinfo.sh.
19154 * util/grub-mkrescue.in: Likewise.
19156 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19158 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19159 Fix potential usage of Elf32 instead of Elf64 when compiling on
19160 32-bit architecture. Add endianness macros while on it.
19162 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19164 Use mipsel- rather than mips- in directories involving mipsel ports to
19165 allow both endiannesses coexist.
19167 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19168 mips. All conditions adjusted.
19169 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19171 * util/grub-install.in: Adjust conditions to take renaming into account.
19172 * util/grub-mkimage.c (image_targets): Likewise. New target
19173 mips-qemu_mips-elf for bigendian mips.
19175 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19177 Avoid unnecessary copying on MIPS.
19179 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19180 early if src == dest.
19181 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19182 compression is none.
19184 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19186 Reduce memory footprint on SGI by putting modules before the kernel
19187 as opposed to after.
19189 * grub-core/Makefile.core.def (kernel): Increase linking address.
19190 (none_decompress): Likewise.
19191 (xz_decompress): Likewise.
19192 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19194 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19196 (grub_arch_modules_addr): New function.
19197 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19198 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19199 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19201 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19202 (grub_total_modules_size): ... this. Make global.
19203 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19204 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19206 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19207 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19208 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19209 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19210 * util/grub-mkimage.c (image_target_desc): New flag
19211 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19212 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19213 (generate_image): Handle images with modules before kernel.
19215 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19217 Prevent potential loss of memory map by overwrite on qemu-mips.
19219 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19220 Save ram size in $s4.
19221 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19222 All users changed to grub_arch_memsize.
19223 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19225 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19226 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19227 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19230 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19232 * .bzrignore: Remove grub-dumpbios.
19234 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19236 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19237 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19238 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19239 existing options which append).
19240 * docs/grub.texi (Simple configuration): Document new options.
19241 Reported by: Ian Jackson. Fixes Debian bug #617538.
19243 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19245 * util/grub-fstest.c (cmd_cat): New function.
19246 (fstest): Handle CMD_CAT.
19247 (options): Add cat.
19248 (argp_parser): Handle cat.
19250 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19252 * Makefile.util.def (grub-bin2h): Don't install.
19253 * docs/man/grub-bin2h.h2m: Remove.
19255 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19257 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19260 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19262 Reenable qemu-mips port.
19264 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19265 Fix small arc bug while on it.
19266 * gentpl.py: Handle qemu_mips.
19267 * grub-core/Makefile.am: Likewise.
19268 * grub-core/Makefile.core.def: Likewise.
19269 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19270 inappropriate includes.
19271 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19272 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19273 * grub-core/kern/main.c (grub_modules_get_end)
19274 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19275 * grub-core/kern/mips/qemu-mips: Moved to ..
19276 * grub-core/kern/mips/qemu_mips: ... this.
19277 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19278 (grub_machine_init): Call terminfo_init and serial_init.
19279 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19280 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19282 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19284 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19285 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19286 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19287 * include/grub/mips/qemu_mips/cmos.h: New file.
19288 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19289 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19291 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19292 Use correct mips-style address.
19293 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19294 (GRUB_TICKS_PER_SECOND): Removed.
19295 (grub_get_rtc): Likewise.
19296 (grub_cpu_idle): Likewise.
19297 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19299 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19300 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19301 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19302 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19303 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19304 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19305 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19306 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19308 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19312 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19313 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19315 * configure.ac: New target mips-arc.
19316 * gentpl.py: Likewise.
19317 * grub-core/Makefile.am: Likewise.
19318 * grub-core/Makefile.core.def: Likewise.
19319 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19320 (none_decompress): Likewise.
19321 (lsdev): New module.
19322 (datetime): Use lib/arc/datetime.c on ARC.
19323 (part_dvh): New module.
19324 * grub-core/commands/arc/lsdev.c: New file.
19325 * grub-core/disk/arc/arcdisk.c: Likewise.
19326 * grub-core/kern/mips/arc/init.c: Likewise.
19327 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19329 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19331 (grub_arch_dl_relocate_symbols): Likewise.
19332 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19333 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19334 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19336 * grub-core/lib/arc/datetime.c: New file.
19337 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19338 pci.h on non-loongson.
19339 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19340 (grub_linux_boot): Set unused registers to 0.
19341 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19342 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19343 * grub-core/mmap/mips/uppermem.c: ...here.
19344 * grub-core/partmap/dvh.c: New file.
19345 * grub-core/term/arc/console.c: Likewise.
19346 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19347 (grub_terminfo_set_current): Add terminal "arc".
19348 (grub_terminfo_readkey): Support ARC sequences.
19349 * include/grub/arc/arc.h: New file.
19350 * include/grub/arc/console.h: Likewise.
19351 * include/grub/disk.h (grub_disk_dev_id): Add
19352 GRUB_DISK_DEVICE_ARCDISK_ID.
19353 * include/grub/mips/arc/kernel.h: New file.
19354 * include/grub/mips/arc/memory.h: Likewise.
19355 * include/grub/mips/arc/time.h: Likewise.
19356 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19357 * include/grub/mips/kernel.h (grub_halt): ... here.
19358 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19360 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19361 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19362 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19363 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19365 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19367 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19368 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19369 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19370 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19371 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19372 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19373 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19374 (grub_phys_addr_t): Moved from here ...
19375 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19376 (grub_vtop): Moved from here ...
19377 * include/grub/mips/memory.h (grub_vtop): ... here.
19378 (grub_map_memory): Moved from here ...
19379 * include/grub/mips/memory.h (grub_map_memory): ... here.
19380 (grub_unmap_memory): Moved from here ...
19381 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19382 (grub_machine_mmap_iterate): Moved from here ...
19383 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19384 (grub_mmap_get_lower): Moved from here ...
19385 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19386 (grub_mmap_get_upper): Moved from here ...
19387 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19388 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19390 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19391 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19393 * include/grub/mips/time.h (grub_get_rtc): ... here.
19394 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19396 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19397 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19399 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19400 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19402 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19403 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19404 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19405 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19406 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19407 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19408 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19409 (GRUB_MACHINE_LINK_ADDR): Likewise.
19410 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19412 * util/grub-install.in: Run dvhtool on ARC.
19413 * util/grub-mkimage.c (image_targets): Add mips-arc.
19414 (generate_image): Handle ECOFF output for mips-arc.
19416 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19418 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19421 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19423 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19424 after enabling port.
19426 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19428 Skip incorrect USB devices.
19430 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19432 * include/grub/usb.h (grub_usb_err_t): New enum value
19433 GRUB_USB_ERR_BADDEVICE.
19435 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19437 Fuloong video init support.
19439 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19441 (grub_vga_read_arx): New function.
19442 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19444 (framebuffer): New members io, mmioptr and mmiobase.
19445 (read_sis_cmd): New function.
19446 (write_sis_cmd): Likewise.
19447 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19448 rather than 640x400.
19449 * grub-core/video/sis315_init.c: New file.
19451 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19453 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19455 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19456 to grub_dl_register_symbol.
19458 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19460 Fix compilation errors.
19462 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19463 potentially unused.
19464 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19465 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19466 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19467 to loongson machines.
19469 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19471 Several FS mtime support.
19473 * grub-core/fs/affs.c (grub_affs_time): New struct.
19474 (grub_affs_file): New field mtime.
19475 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19476 type. Removed 'size'. New field 'di'. All users updated.
19477 (grub_affs_mount): Simplify checsum checking.
19478 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19479 (grub_affs_dir): Handle mtime.
19480 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19481 (grub_cpio_dir): Likewise.
19482 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19483 (grub_hfs_filerec): New field mtime.
19484 (grub_hfs_dir): Handle mtime.
19485 (grub_hfs_mtime): New function.
19486 (grub_hfs_fs): Register grub_hfs_mtime.
19487 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19488 (grub_iso9660_dir): New field mtime.
19489 (grub_fshelp_node): New field dirent.
19490 (iso9660_to_unixtime): New function.
19491 (iso9660_to_unixtime2): Likewise.
19492 (grub_iso9660_read_symlink): Use node->dirent.
19493 (grub_iso9660_iterate_dir): Likewise.
19494 (grub_iso9660_dir): Set mtime.
19495 (grub_iso9660_mtime): New function.
19496 (grub_iso9660_fs): Register grub_iso9660_mtime.
19497 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19498 (grub_jfs_inode): New fields atime, ctime and mtime.
19499 (grub_jfs_dir): Set mtime.
19500 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19501 * grub-core/fs/ntfs.c (list_file): Set mtime.
19502 (grub_ntfs_dir): Likewise.
19503 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19504 (grub_reiserfs_iterate_dir): Set mtime.
19505 (grub_reiserfs_dir): Likewise.
19506 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19507 (grub_fshelp_node): Likewise.
19508 (grub_sfs_iterate_dir): Set mtime.
19509 (grub_sfs_dir): Likewise.
19510 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19511 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19512 (grub_xfs_inode): New fields atime, mtime, ctime.
19513 (grub_xfs_dir): Set mtime.
19514 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19515 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19516 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19518 Support UDF symlinks.
19520 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19521 (grub_ufs_read_symlink): New function. All users updated.
19523 Check amiga partmap checksum.
19525 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19526 (grub_amiga_partition): Likewise.
19527 (amiga_partition_map_checksum): New function.
19528 (amiga_partition_map_iterate): Check checksum.
19530 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19534 * Makefile.util.def (libgrubmods.a): Add romfs.
19535 * grub-core/Makefile.core.def (romfs): New module.
19536 * grub-core/fs/romfs.c: New file.
19538 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19540 Squashfs v4 support.
19542 * Makefile.util.def (libgrubmods.a): Add squash4.
19543 * grub-core/Makefile.core.def (squash4): New module.
19544 * grub-core/fs/squash4.c: New file.
19545 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19546 disk_input_start, disk_input.
19547 (get_byte): Handle disk_input.
19548 (grub_zlib_disk_read): New function.
19549 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19551 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19552 2011-05-15 Feiran Zheng <famcool@gmail.com>
19554 * Makefile.util.def (libgrubmods.a): Add minix3.
19555 * grub-core/Makefile.core.def (minix3): New module.
19556 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19557 (GRUB_MINIX_BSIZE): Removed.
19558 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19559 (grub_minix_ino_t): New type.
19560 (grub_minix_le_to_cpu_ino): New macro.
19561 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19562 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19563 (grub_minix_data): New field block_size.
19564 (grub_minix_read_file): Handle 64-bit correctly.
19565 * grub-core/fs/minix3.c: New file.
19567 2011-05-15 Tristan Gingold <gingold@free.fr>
19568 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19569 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19573 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19574 * configure.ac: Add ia64-efi target.
19575 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19576 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19577 * gentpl.py: Add ia64_efi platform.
19578 Rename x86_efi to efi and Add ia64-efi. All users updated.
19579 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19580 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19581 Remove kern/generic/rtc_get_time_ms.c on EFI.
19582 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19583 kern/ia64/dl_helper.c on ia64-efi.
19584 Add kern/emu/cache.c on emu.
19585 (linux): Use on loader/ia64/efi/linux.c on ia64.
19586 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19587 whether symbol is a function.
19588 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19589 (grub_symbol): New field 'isfunc'.
19590 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19591 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19592 (grub_dl_load_segments): Place all sections into the same region.
19593 [__ia64__]: Create trampolines and got.
19594 [GRUB_MACHINE_EMU]: Call mprotect.
19595 (grub_dl_resolve_symbols): Resolve symbol type as well.
19596 [__ia64__]: Create function descriptors.
19597 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19598 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19599 (grub_get_rtc): New function.
19600 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19601 * grub-core/kern/emu/cache.S: Renamed to ...
19602 * grub-core/kern/emu/cache_s.S: ... this.
19603 [__ia64__]: Add a nop.
19604 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19605 [__ia64__]: New function.
19606 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19607 * grub-core/kern/ia64/dl.c: New file.
19608 * grub-core/kern/ia64/dl_helper.c: Likewise.
19609 * grub-core/kern/ia64/efi/init.c: New file.
19610 * grub-core/kern/ia64/efi/startup.S: Likewise.
19611 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19612 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19613 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19614 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19615 * grub-core/loader/ia64/efi/linux.c: New file.
19616 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19617 (GRUB_MOD_DEP): Likewise.
19618 (grub_dl) [__ia64__]: New fields got and tramp.
19619 (grub_dl): New field 'base'.
19620 (grub_dl_register_symbol): New argument isfunc. All users updated.
19621 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19622 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19623 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19624 (grub_ia64_dl_get_tramp_got_size): New proto.
19625 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19626 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19627 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19628 * include/grub/efi/api.h: Skip call wrappers on ia64.
19629 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19630 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19631 * include/grub/elf.h (ELF_ST_INFO): New definition.
19632 * include/grub/ia64/efi/kernel.h: New file.
19633 * include/grub/ia64/efi/memory.h: Likewise.
19634 * include/grub/ia64/efi/time.h: Likewise.
19635 * include/grub/ia64/kernel.h: Likewise.
19636 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19637 * include/grub/ia64/time.h: New file.
19638 * include/grub/ia64/types.h: Likewise.
19639 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19640 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19642 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19643 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19644 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19645 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19647 (EFI64_HEADER_SIZE): New definition. All users updated.
19648 (image_targets): Add ia64-efi.
19649 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19650 jumpers_addr. All users updated.
19651 Create function descriptors.
19652 (count_funcs): New function.
19653 (unaligned_uint32): New struct.
19654 (MASK20): New definition.
19655 (MASK19): Likewise.
19656 (MASKF21): Likewise.
19657 (add_value_to_slot_20b): New function.
19658 (add_value_to_slot_21_real): Likewise.
19659 (add_value_to_slot_21): Likewise.
19660 (ia64_kernel_trampoline): New struct.
19661 (nopm): New variable.
19663 (make_trampoline): New function.
19664 (relocate_addresses): Handle ia64.
19665 (make_reloc_section): Likewise.
19666 (load_image): Likewise.
19668 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19670 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19671 warning. Move variables before code while on it.
19673 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19677 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19678 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19679 * grub-core/boot/mips/loongson/fuloong.S: New file.
19680 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19681 Explicitly init CS5536.
19682 [FULOONG]: Don't use serial until CS5536 is available.
19683 Set GPIO based on dumps.
19684 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19685 [FULOONG]: Handle GPIO and memory controller differences.
19686 Parse machine type in $a2.
19687 * grub-core/boot/mips/startup_raw.S: Determine and save the
19689 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19690 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19691 init on architecture type.
19692 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19693 SIS315E. Don't init at_keyboard on fuloong.
19694 (grub_halt): Support Fuloong.
19695 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19696 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19697 (loongson_machtypes): New array.
19698 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19700 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19701 config. All users updated. Handle CS5536 serial.
19702 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19703 default port on machine type. Register serial as inactive.
19704 * grub-core/video/sis315pro.c: New file.
19705 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19707 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19708 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19709 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19710 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19711 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19712 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19714 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19715 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19717 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19718 (grub_arch_machine): New extern var.
19719 * include/grub/mips/loongson/serial.h
19720 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19721 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19722 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19723 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19724 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19725 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19726 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19727 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19728 * include/grub/term.h (grub_term_register_input_inactive): New inline
19730 (grub_term_register_output_inactive): Likewise.
19731 * include/grub/video.h (grub_video_driver_id): New value
19732 GRUB_VIDEO_DRIVER_SIS315PRO.
19733 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19734 New field "names". All users updated.
19735 New field value IMAGE_FULOONG_FLASH.
19736 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19738 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19740 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19741 and add some clarification.
19743 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19745 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19746 platforms if kernel is compressed.
19748 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19750 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19751 unused modules since currently referrence counter isn't reliable and
19752 there isn't much memory to recover there anyway.
19754 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19756 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19757 rather than resetting it to allow modules to reference themselves
19760 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19762 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19763 counter on dependencies since grub_dl_unref already handles this.
19765 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19767 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19768 on error if not already done.
19770 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19772 Fix few potential memory misusage.
19774 * grub-core/font/font.c (load_font_index): Don't free char_index to
19776 (grub_font_load): Zero-fill font at alloc for safety.
19777 Close file on error.
19778 (free_font): Free bmp_idx.
19780 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19782 * docs/grub.texi (Installation): Fix several outdated claims.
19784 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19786 Handle module_license on windows.
19788 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19790 (insert_string): Make argument const char * instead of char *.
19791 (write_section_data): Handle long section names.
19792 Handle module_license.
19794 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19796 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19797 handle class-free menuentries.
19798 (grub_normal_add_menu_entry): Add a check to be sure.
19800 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19802 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19805 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19807 * configure.ac: Bump version to 1.99.
19809 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19811 Give ATA device a bit more time on first try in order to allow disks
19814 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19815 if dev->present is 1. Reset dev->present on failure.
19816 (grub_ata_device_initialize): Set dev->present to 1.
19817 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19818 (grub_ata_device): New member 'present'.
19820 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19822 * util/grub-mkimage.c (generate_image): Update hash.
19824 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19826 Flush caches on DMA memory.
19828 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19829 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19830 (grub_dma_free): Likewise.
19831 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19833 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19835 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19836 to avoid asm treating ld and sd as macros.
19838 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19840 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19843 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19845 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19846 grub_decompress_core since later would fail if grub_decompress_core
19849 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19851 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19852 R_MIPS_JALR since it's used by newer compiler.
19854 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19856 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19858 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19860 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19861 file_path to 0 for surety.
19862 (grub_chainloader_boot): Set exit_data to NULL.
19863 Unset the loader once done.
19864 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19866 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19868 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19869 unknown key into a dprintf.
19871 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19873 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19874 on first non-existant partition.
19876 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19878 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19880 Reported by: Mark Korenberg.
19882 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19884 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19887 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19889 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19890 before closing to ensure that it will be readable by grub-setup.
19892 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19894 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19895 (devpath_1): Use MAKE_PIWG_PATH.
19896 (devpath_2): Likewise.
19897 (devpath_3): Likewise.
19898 (devpath_4): Likewise.
19899 (devpath_5): Likewise.
19900 (devpath_6): Likewise.
19902 The appleldr.mod was checked that to be binary identical to previous
19905 2011-05-05 Zach <mikezackles>
19907 Support 2010 Macbooks.
19909 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19910 (devs): Add devpath_6.
19912 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19914 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19915 /dev/random. /dev/urandom is good enough for our purposes (salting).
19917 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19919 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19921 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19923 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19926 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19928 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19929 and not 0 on failure.
19931 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19933 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19934 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19935 disk; otherwise grub_fs_probe will not fall back to the next
19937 (grub_pxefs_open): Likewise, for consistency.
19938 Reported and tested by: Ezekiel Grave.
19940 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19942 * tests/partmap_test.in: Don't hardcode path to parted.
19943 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19945 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19947 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19948 of `ls' to find out which devices are available.
19950 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19952 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19953 than source address for efi mmap buffer.
19955 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19957 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19958 wrong action on non-detecting the magic.
19960 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19962 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19963 already supplied by another part of the module (fixes compilation on
19966 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19968 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19969 match the one used by mdadm.
19971 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19973 * po/README: Add instructions for creating po/LINGUAS.
19975 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19977 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
19980 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
19981 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
19982 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
19983 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
19984 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
19985 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
19986 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
19987 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
19988 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
19989 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
19990 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
19991 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
19992 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
19993 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
19994 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19995 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
19996 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
19997 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
19998 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
19999 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20000 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20001 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20003 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20005 * grub-core/kern/emu/getroot.c
20006 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20007 test that was incorrectly reintroduced in r3214.
20008 Reported by: Ian Dall. Fixes Savannah bug #33133.
20010 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20012 Fix stack pointer handling in 16-bit relocator.
20014 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20015 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20016 Fixes Ubuntu bug #683904.
20018 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20020 * configure.ac: Bump version to 1.99~rc2.
20022 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20024 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20025 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20026 * grub-core/lib/x86_64/setjmp.S: Likewise.
20027 * grub-core/lib/mips/setjmp.S: Likewise.
20028 * grub-core/lib/powerpc/setjmp.S: Likewise.
20029 * grub-core/lib/sparc64/setjmp.S: Likewise.
20031 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20033 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20034 * grub-core/lib/efi/datetime.c: Likewise.
20036 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20038 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20040 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20041 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20042 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20044 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20046 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20048 (grub_gfxterm_term_init): Likewise.
20050 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20052 Take into account the decorations the computing menu entry width.
20054 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20055 (grub_gfxmenu_create_box): Register get_border_width.
20056 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20058 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20061 2011-04-18 Endres Puschner <code@e7p.de>
20063 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20064 Don't skip first class.
20066 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20068 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20070 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20072 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20074 Complete 64-bit division support.
20076 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20077 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20078 * include/grub/misc.h (grub_divmod64): Rename to ...
20079 (grub_divmod64_full): ... this.
20080 (grub_divmod64): New inline function.
20082 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20084 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20086 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20088 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20089 performing the necessary test.
20091 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20093 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20094 (kfreebsd.elf): Likewise.
20095 (pc-chainloader.elf): Likewise.
20096 (ntldr.elf): Likewise.
20098 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20100 Identify RAID by its UUID rather than (guessed) name.
20102 * grub-core/disk/raid.c (ascii2hex): New function.
20103 (grub_raid_open): Accept mduuid/%s specification.
20104 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20105 (get_mdadm_uuid): ... this.
20106 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20108 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20110 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20113 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20115 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20117 * util/grub.d/20_linux_xen.in: Likewise.
20119 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20121 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20122 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20124 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20125 Build a list of relevant visible mounts using the mnt_id and
20126 parent_mnt_id fields, and then scan that list at the end.
20128 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20130 * docs/grub.texi (normal): New section.
20131 (normal_exit): New section.
20132 (Embedded configuration): Add reference to normal.
20133 (GRUB only offers a rescue shell): Likewise.
20134 * docs/grub-dev.texi (Error Handling): Fix typo.
20136 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20138 * NEWS: Drop obsolete entry about probe-only btrfs support.
20140 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20142 * util/import_gcry.py: Fix typo.
20144 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20146 * NEWS: Add btrfs support.
20148 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20149 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20151 BtrFS support. Written by me (Vladimir) with important bugfixes and
20152 even more important testing by Colin.
20154 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20155 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20156 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20157 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20158 mem_input_off and mem_input. All users updated to accept in-RAM input.
20159 (gzio_seek): New function.
20160 (test_zlib_header): Likewise.
20161 (grub_gzio_read): Likewise.
20162 (grub_zlib_decompress): Likewise.
20163 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20164 Accept partial and non-virtual mounts.
20165 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20166 avoid receiving /dev/dm-X as device.
20167 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20168 Handle bind and partial mounts.
20169 * grub-core/lib/crc.c: New file.
20170 * include/grub/deflate.h: Likewise.
20171 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20173 * include/grub/lib/crc.h: New file.
20175 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20177 Implement automatic module license checking according to new GNU
20180 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20181 (grub_dl_load_core): Use grub_dl_check_license.
20182 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20183 (GRUB_MOD_LICENSE): Likewise.
20184 (GRUB_MOD_DUAL_LICENSE): Likewise.
20185 All modules updated.
20187 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20189 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20190 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20192 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20194 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20196 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20198 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20200 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20203 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20205 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20206 parenthesis in the middle of the filename.
20208 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20210 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20211 rather than trying to put initrd way too high.
20212 Reported by: Ryan Lortie <desrt@desrt.ca>
20214 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20216 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20217 improperly removed string.
20219 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20221 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20223 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20224 (open_device) Likewise.
20225 (grub_util_biosdisk_close): Likewise.
20226 Reported by: Mark Korenberg.
20228 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20230 * util/grub-mkconfig_lib.in: Add missing quotes.
20232 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20234 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20237 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20239 Dynamically count the number of lines for the lower banner.
20241 * grub-core/normal/menu_entry.c (per_term_screen): New member
20243 (print_down): Use num_entries.
20244 (update_screen): Likewise.
20245 (grub_menu_entry_run): Set num_entries.
20246 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20248 (grub_print_message_indented): Move real part to ...
20249 (grub_print_message_indented_real): ... here. Additional argument
20251 (draw_border): Additional argument num_entries.
20252 (print_message): Additional argument dry_run.
20253 (print_entries): Receive menu viewer data.
20254 (grub_menu_init_page): New argment num_entries.
20255 (menu_text_set_chosen_entry): Use num_entries.
20256 (grub_menu_try_text): Likewise.
20257 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20259 (grub_ucs4_count_lines): New function.
20260 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20261 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20262 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20263 (grub_term_border_height): Likewise.
20264 (grub_term_num_entries): Likewise.
20266 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20268 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20269 Remove now unused string.
20271 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20273 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20275 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20277 (Comment): Fix typo.
20278 (Getting started): General copy-editing.
20279 (Typical Development Experience): Likewise.
20280 (Error Handling): Likewise.
20281 (Video API): Likewise.
20283 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20285 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20288 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20290 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20293 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20295 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20296 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20299 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20301 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20302 grub_strcpy since the lines aren't necessarily 0-terminated.
20304 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20306 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20309 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20311 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20312 (GRUB_MOD_INIT): DEVICE isn't optional.
20314 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20316 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20317 word on new line if it's too long anyway. Fixes a hang.
20319 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20321 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20323 * util/grub-setup.c (main): Reuse md device name if available.
20324 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20325 not GRUB name as argument.
20326 Based on patch by: Florian Wagner <fwagner>.
20328 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20330 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20331 Place mbi on low memory for better compatibility.
20333 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20335 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20337 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20338 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20340 * autogen.sh: Ensure that collate and ctype locale is C.
20341 * conf/Makefile.common: Likewise.
20343 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20345 * grub-core/normal/menu.c: Add missing include.
20347 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20349 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20351 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20353 * util/grub-mkconfig.in: Ignore emacsen backup.
20355 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20357 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20359 (grub_util_biosdisk_close): Likewise.
20361 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20363 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20364 const attribute and use grub_isdigit.
20366 2011-04-06 Andrey <dev_null@ukr.net>
20368 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20371 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20373 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20374 useful grub_dprintf's.
20376 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20378 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20380 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20382 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20384 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20386 Output errors if theme loading failed.
20388 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20389 grub_gfxterm_fullscreen on error paths to ...
20390 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20391 theme loading error.
20393 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20395 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20396 space for older compilers.
20397 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20399 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20401 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20402 and report them as not RAID members since they are useless for GRUB.
20403 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20405 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20407 Increase LVM implementation robustness in order not to crash on
20408 configurations like pvmove. Previously code assumed that in some places
20409 only lvs or only pvs are used whereas it seems that they are used
20412 * grub-core/disk/lvm.c (read_node): New function.
20413 (read_lv): Use read_node.
20414 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20415 Match volumes only at the end when all lvs are found. Take both
20416 pvs (first) and lvs (second) into account.
20417 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20418 mirror_* into node_*. All users updated.
20419 (grub_lvm_stripe): Merge this ...
20420 (grub_lvm_mirror): ... and this ...
20421 (grub_lvm_node): ... into this. All users updated.
20423 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20425 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20426 of function to allow further scanning for LVMs.
20428 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20430 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20431 on failed seek as it breaks open fd reusage.
20433 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20435 * util/grub-install.in: Add a recommendation to use --recheck before
20438 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20440 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20443 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20445 GRUB developper manual based on existing Internals section and
20446 contributions by the various authors with active copyright assignment.
20448 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20449 * docs/font_char_metrics.png: New file.
20450 * docs/font_char_metrics.txt: Likewise.
20451 * docs/grub-dev.texi: Likewise.
20452 * docs/grub.texi (Internals): Move from here ...
20453 * docs/grub-dev.texi: ... here.
20455 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20457 Store the loopback device as data on loopback grub_disk structures,
20458 rather than the file it points to. This fixes use of freed memory
20459 if an existing loopback device is replaced.
20461 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20462 disk->data, not dev->file.
20463 (grub_loopback_read): Adjust file assignment to match.
20464 Fixes Ubuntu bug #742967.
20466 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20468 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20469 when replacing an existing device.
20471 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20473 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20474 memory corruptions.
20476 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20478 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20479 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20480 (grub_jfs_read_inode): Likewise.
20481 (grub_jfs_opendir): Likewise. Remove now useless casts.
20482 (grub_jfs_getent): Likewise.
20483 Make ino a grub_uint32_t rather than int.
20484 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20485 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20486 division and module with bit operations.
20487 (grub_jfs_find_file): Make ino a grub_uint32_t.
20488 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20490 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20492 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20493 warning. (This was in fact always initialised before use, but GCC
20494 wasn't smart enough to prove that.)
20495 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20497 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20499 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20501 (efi_wrap_1): Likewise.
20502 (efi_wrap_2): Likewise.
20503 (efi_wrap_3): Likewise.
20504 (efi_wrap_4): Likewise.
20505 (efi_wrap_5): Likewise.
20506 (efi_wrap_6): Likewise.
20507 (efi_wrap_10): Likewise.
20508 Based on information by: Red Hat/Peter Jones.
20510 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20512 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20513 set-but-not-used variable.
20515 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20517 * docs/grub.texi (Simple configuration): Be more explicit about
20518 GRUB_DEFAULT, and add an example.
20519 Reported by: Leslie Rhorer.
20521 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20523 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20526 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20528 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20529 * util/grub.d/20_linux_xen.in: Likewise.
20531 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20533 * util/grub.d/10_linux.in: Try alternative config filenames where
20534 we parse config file.
20535 * util/grub.d/20_linux_xen.in: Likewise.
20537 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20539 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20540 * util/grub.d/20_linux_xen.in: Likewise.
20542 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20544 * grub-core/disk/raid.c (insert_array): Add few potentially
20545 useful grub_util_info.
20546 (grub_raid_register): Likewise.
20548 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20550 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20551 Preserve partition number in mdadm code path.
20553 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20555 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20556 few potentially useful grub_util_info.
20558 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20560 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20562 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20564 * docs/grub.texi (default): Use @example rather than nested
20565 itemized lists to avoid breaking gendocs.
20567 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20569 * docs/grub.texi (Future): Update.
20571 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20573 * docs/grub.texi (Environment): New chapter.
20574 (Changes from GRUB Legacy): Link to "Environment block" section for
20575 details of limitations.
20576 (Simple configuration): Likewise. Link to documentation of gfxmode
20577 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20579 (Shell-like scripting): Note that normal variables are stored in the
20581 (gettext): Link to documentation of lang and locale_dir.
20582 (list_env): New section.
20583 (load_env): New section.
20584 (save_env): New section.
20586 (Reporting bugs): Fix typo.
20588 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20590 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20593 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20595 * grub-core/term/at_keyboard.c (set_scancodes)
20596 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20598 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20600 * docs/grub.texi (Menu-specific commands): Remove some semantics
20601 that were true in GRUB Legacy but not in GRUB 2.
20602 (submenu): New section.
20603 (false): New section.
20604 (read): New section.
20605 (true): New section.
20607 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20609 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20611 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20613 * docs/grub.texi (Simple configuration): Explain some of the
20614 current limitations of grub-mkconfig.
20615 Reported by: Leslie Rhorer.
20617 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20619 Old macs search for boot.efi rather than for bootia32.efi.
20621 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20622 * util/grub-mkrescue.in: Likewise.
20623 Suggested by: Peter Jones.
20625 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20627 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20629 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20631 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20632 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20633 (grub_lvm_mirror): New struct.
20634 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20635 (grub_lvm_iterate): Iterate only visible volumes.
20636 (grub_lvm_read): Factor out to ..
20637 (read_lv): ... this. Support mirrors.
20638 (grub_lvm_read): New wrapper function.
20639 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20640 stripped or mirrored.
20642 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20644 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20646 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20648 * docs/grub.texi (loopback): New section.
20650 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20652 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20655 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20657 * docs/grub.texi (BIOS installation): New section, partly based on
20658 previous text in other sections.
20659 (Installing GRUB using grub-install): Replace BIOS discussion with a
20661 (Images): Likewise.
20663 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20665 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20666 [HAVE_DIOCGDINFO]: Add safety checks.
20668 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20670 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20671 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20673 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20675 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20676 real_sb->size is zero (e.g. RAID-0), get the disk size from
20677 real_sb->data_size instead.
20678 Fixes Ubuntu bug #743136.
20680 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20682 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20683 printf clauses for printing size and start.
20685 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20687 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20688 Reported and tested by: Timothy Nikkel.
20690 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20692 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20693 (dirty_region_add_real): ... this.
20694 (dirty_region_add): Don't discard margin refresh when performing
20697 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20699 * grub-core/lib/relocator.c (allocate_regstart)
20700 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20701 terminals are capabple of malloc-free operation.
20702 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20703 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20705 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20707 * util/grub-setup.c: Copy the partition table zone if floppy support
20708 is disabled, even if no partition table is found.
20710 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20711 during POST if an invalid partition table is contained in the PBR
20712 of the active partition when GRUB is installed to a partition.
20714 2011-03-28 Colin Watson <cjwatson@debian.org>
20716 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20719 2011-03-28 Colin Watson <cjwatson@debian.org>
20721 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20722 to be specific about what kind of RAID device we're scanning for.
20724 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20726 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20727 return freed string.
20729 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20731 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20733 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20735 Use libgeom on FreeBSD to detect partitions.
20737 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20738 (grub-mkrelpath): Likewise.
20739 (grub-script-check): Likewise.
20740 (grub-editenv): Likewise.
20741 (grub-mkpasswd-pbkdf2): Likewise.
20742 (grub-fstest): Likewise.
20743 (grub-mkfont): Likewise.
20744 (grub-mkdevicemap): Likewise.
20745 (grub-probe): Likewise.
20746 (grub-setup): Likewise.
20747 (grub-ofpathname): Likewise.
20748 (grub-mklayout): Likewise.
20749 (example_unit_test): Likewise.
20750 (grub-menulst2cfg): Likewise.
20751 * grub-core/Makefile.core.def (grub-emu): Likewise.
20752 (grub-emu-lite): Likewise.
20753 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20754 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20755 define HAVE_DIOCGDINFO.
20756 (follow_geom_up) [FreeBSD]: New function.
20757 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20758 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20759 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20760 unconditionally of HAVE_DIOCGDINFO.
20762 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20764 Fix FreeBSD compilation problem.
20766 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20767 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20769 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20771 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20772 Switch back to page zero before loading a kernel, since some kernel
20773 drivers expect that.
20774 Thanks to: Felix Kuehling.
20776 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20778 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20779 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20780 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20782 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20784 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20785 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20787 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20789 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20790 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20791 malloc is disabled.
20793 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20795 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20796 for modules headers when counting the needed allocation size.
20798 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20800 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20801 if no ASCII character is found to prevent crash.
20803 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20805 * grub-core/video/bitmap.c (match_extension): Ignore case.
20807 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20809 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20811 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20813 * grub-core/script/parser.y: Declare "time" as valid argument.
20815 2011-03-23 Peter Jones <pjones@redhat.com>
20817 Fix incorrect assert failure reporting.
20819 * grub-core/tests/example_functional_test.c (example_test): Add
20821 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20822 (failure_start): ...this. Check that malloc succeeded.
20823 Don't call xvasprintf. Return failure struct.
20824 (failure_append_vtext): New function.
20825 (failure_append_text): Likewise.
20826 (add_failure): Likewise.
20827 (grub_test_assert_helper): Likewise.
20828 * include/grub/test.h (grub_test_assert_helper): New declaration.
20829 (grub_test_assert): Macro rewritten.
20831 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20833 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20835 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20837 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20839 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20841 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20842 into GRUB-style one.
20844 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20846 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20847 error and not grub_errno.
20848 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20850 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20852 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20853 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20855 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20857 * grub-core/efiemu/i386/pc/cfgtables.c
20858 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20859 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20860 (grub_xnu_unlock): Likewise.
20861 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20863 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20865 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20866 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20867 * grub-core/commands/hashsum.c (aliases): Likewise.
20868 * grub-core/commands/setpci.c (pci_registers): Likewise.
20869 * grub-core/disk/usbms.c (attach_hook): Likewise.
20870 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20871 (zio_checksum_table): Likewise.
20872 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20873 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20874 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20875 * grub-core/lib/relocator.c (leftovers): Likewise.
20876 (extra_blocks): Likewise.
20877 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20878 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20879 (modules_last): Likewise.
20880 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20881 (devices): Likewise.
20882 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20883 (modules_last): Likewise.
20884 * grub-core/normal/auth.c (users): Likewise.
20885 * grub-core/normal/context.c (initial_menu): Likewise.
20886 (current_menu): Likewise.
20887 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20888 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20889 (grub_serial_terminfo_input_template): Likewise.
20890 (grub_serial_terminfo_output_template): Likewise.
20891 (grub_serial_terminfo_input): Likewise.
20892 (grub_serial_terminfo_output): Likewise.
20893 (registered): Likewise.
20894 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20896 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20898 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20899 grub_video_mode_type_t.
20900 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20901 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20902 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20904 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20906 * util/grub-install.in: Correct the x86-64 name as x86_64.
20908 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20910 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20911 initial chunk read from the kernel always includes GRUB's multiboot
20912 header, which is now outside the first sector.
20914 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20916 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20917 cached mmap_size, so that this works correctly when called multiple
20919 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20921 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20923 * docs/grub.texi (Simple configuration): Tidy up formatting.
20925 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20927 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20928 Set-but-not-used variable removed.
20930 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20932 Workaround yet another IEEE1275 bug.
20934 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20935 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20936 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20937 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20939 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20940 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20942 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20944 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20947 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20949 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20950 empty, since in that case we can only generate either nothing or a
20951 syntactically invalid configuration file.
20952 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20954 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20956 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20957 (Making a GRUB bootable CD-ROM): Likewise.
20958 (Invoking grub-mkrescue): New section.
20959 Reported by: Yann Dirson. Fixes Debian bug #612585.
20961 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20963 * util/grub-install.in: Remove unnecessary brackets from tr
20965 * util/grub.d/10_hurd.in: Likewise.
20966 * util/grub.d/10_kfreebsd.in: Likewise.
20967 * util/grub.d/10_linux.in: Likewise.
20968 * util/grub.d/20_linux_xen.in: Likewise.
20969 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20971 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20973 * include/grub/file.h (not_easly_seekable): Rename to ...
20974 (not_easily_seekable): ... this. Update all users.
20976 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
20978 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
20981 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
20983 * util/grub-mkimage.c (generate_image): Refuse to create the images
20984 bigger than the actual flash (512K) in Loongson machines. 512K is also
20985 the biggest chip supported by them.
20987 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20989 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
20991 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
20993 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
20994 super_offset field.
20996 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20998 * util/grub-install.in: Ignore install device on platforms
20999 where it doesn't make sense. Always use UUIDs except on pc, efi and
21001 Reported by: Daniel Kahn Gillmor.
21003 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21005 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21007 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21009 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21010 (iterate_real): Don't rely on partition being non-NULL.
21012 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21014 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21015 supported platforms. Put a compile time assert for this rather than
21016 generate a warning with 32-bit shift.
21018 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21020 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21021 logical expression more readable.
21023 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21025 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21026 even if some elements have a name.
21027 Reported by: Alexander GQ Gerasiov.
21029 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21031 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21032 path unreadable if `grub-probe -t abstraction' fails, for example if
21033 memberlist fails on an LVM volume group.
21034 Reported by: Darius Jahandarie.
21036 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21038 * docs/grub.texi (Simple configuration): Document
21039 GRUB_PRELOAD_MODULES.
21041 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21043 * .bzrignore: Remove nonexistent grub-pbkdf2.
21045 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21047 * configure.ac: Bump version to 1.99~rc1.
21049 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21051 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21054 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21056 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21059 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21061 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21063 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21065 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21068 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21070 Fix compilation on cygwin.
21072 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21073 -R .drectve on cygwin.
21074 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21075 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21076 (COND_CYGWIN): New condition.
21077 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21078 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21079 not @TARGET_OBJ2ELF@.
21080 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21081 type to determine whether aux is to be used.
21083 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21085 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21086 realpath'ed device string.
21087 Handle floppy (somewhat).
21088 Issue error in unknown case rather than garbage.
21089 Reported by: Axel Beckert.
21091 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21093 * util/grub.d/00_header.in (load_video): Handle the case when no video
21095 Thanks to: Axel Beckert.
21097 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21099 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21100 variable. Fixes problem on big endian platforms.
21102 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21104 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21105 It doesn't work well there.
21107 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21109 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21111 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21112 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21115 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21117 Use alias->path rather than buggy "canon".
21119 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21120 (ofdisk_hash_add): New argument curcan. All users updated.
21122 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21124 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21126 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21128 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21129 loadmask before doing any calculations. Use correct type for offset.
21130 (grub_linux_load64): Likewise.
21132 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21134 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21136 (console_grub_equivalences_unshift): Likewise.
21137 Reported by: Daniel Dehennin.
21139 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21141 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21142 (set_env_limn_ro): Likewise.
21143 (GRUB_MOD_INIT): Likewise.
21144 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21145 ARRAY_SIZE while on it.
21146 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21147 * grub-core/normal/context.c (grub_env_export): Move from here ...
21148 * grub-core/kern/env.c (grub_env_export): ... here.
21149 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21151 * grub-core/kern/main.c (grub_main): Export root and prefix.
21152 * include/grub/env.h (grub_env_export): Export.
21153 Reported by: Seth Goldberg.
21155 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21157 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21158 Take into account space used by ELF sections and multiboot palette.
21159 Reported by: Grégoire Sutre.
21161 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21165 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21167 Pass more appropriate video id to Linux.
21169 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21170 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21172 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21173 shift params->lfb_size.
21174 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21176 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21178 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21180 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21182 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21183 separator and pass bootpath/devid even if only one of them is available.
21184 Reported by: Seth Goldberg.
21186 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21188 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21189 implementations bug on them.
21191 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21193 (filter_memory_map): Likewise.
21195 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21197 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21198 Reported by: nebuchadnezzar.
21200 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21202 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21203 Reported by: nebuchadnezzar.
21205 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21207 Submenu default support.
21209 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21210 auto_boot. All users updated.
21212 Handle chosen and default with submenus.
21213 (grub_menu_execute_with_fallback): Declared static.
21214 Don't notify failure if autobooted. Upper level does it.
21215 (menuentry_eq): New function.
21216 (get_entry_number): Use menuentry_eq.
21217 (show_menu): New parameter "autobooted". All users updated.
21218 (grub_show_menu): Likewise.
21219 * include/grub/normal.h (grub_show_menu): Likewise.
21220 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21221 (grub_menu_execute_with_fallback): Likewise.
21223 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21225 * util/grub-mklayout.c (usage): Update help text.
21227 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21229 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21231 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21233 * util/grub-menulst2cfg.c (main): Trim the line.
21235 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21237 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21238 (grub_machine_init): Don't check amount of low memory as reportedly
21239 INT 12h can be broken and if low memory is too low we wouldn't have
21240 gotten into grub_machine_init anyway.
21242 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21244 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21245 (grub_machine_mmap_iterate): Take low memory into account
21247 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21249 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21251 Reported by: TiCPU.
21253 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21255 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21258 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21260 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21261 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21263 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21265 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21266 openbsd and netbsd types being in part_bsd module.
21268 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21270 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21271 (_FILE_OFFSET_BITS): Likewise.
21272 Reported by: Seth Goldberg.
21274 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21276 * configure.ac: Check for libdevmapper header.
21278 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21280 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21282 (fzap_lookup): Likewise.
21283 (dnode_get): Likewise.
21284 (make_mdn): Likewise.
21285 (zfs_mount): Likewise.
21286 (fzap_iterate): Use temporary pointer to avoid aliasing.
21287 (grub_zfs_read): Likewise.
21288 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21289 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21290 pointers to avoid aliasing.
21291 (grub_cmd_xnu_kernel64): Likewise.
21292 (grub_xnu_load_driver): Likewise.
21294 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21296 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21298 (grub_cmd_terminal_output): Likewise.
21299 Reported and tested by: Grégoire Sutre.
21301 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21303 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21305 Reported and tested by: Grégoire Sutre.
21307 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21309 * configure.ac: Do CPU substitution even if it's specified explicitly.
21310 Reported and tested by: Alain Greppin.
21312 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21314 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21315 Reported and tested by: Alain Greppin.
21317 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21319 Satisfy some bison versions need for inttypes.h.
21321 * grub-core/lib/posix_wrap/inttypes.h: New file.
21322 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21323 (int16_t): Likewise.
21324 (int32_t): Likewise.
21325 (int64_t): Likewise.
21326 Reported and tested by: Alain Greppin.
21328 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21330 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21331 Silence spurious warning.
21332 Reported and tested by: Alain Greppin.
21334 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21336 * docs/grub.texi (Support automatic decompression): Update with xz
21337 decompression support.
21339 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21341 Improve loaders' kernel command line handling.
21343 * grub-core/lib/cmdline.c: New file.
21344 * include/grub/lib/cmdline.h: Likewise.
21345 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21346 grub_create_loader_cmdline to create kernel command line.
21347 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21348 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21349 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21350 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21351 (linux): Add lib/cmdline.c on common.
21353 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21355 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21356 inopos might be unaligned.
21358 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21360 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21361 endian transformations.
21362 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21363 Based on report by: Doug Nazar.
21365 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21367 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21368 array->members[i].start_sector.
21369 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21371 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21373 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21374 Reported and tested by: Grégoire Sutre.
21376 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21378 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21379 avoid causing test failures by clearing the screen.
21381 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21383 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21384 Fix prefix check to handle the case where dir ends with a slash
21385 (most significantly, "/" itself).
21386 Reported by: Michael Vogt.
21388 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21390 Run terminfo_cls on initing terminfo output to clear the screen and
21391 move the cursor to (0,0).
21393 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21394 Call grub_terminfo_output_init.
21395 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21396 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21397 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21399 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21401 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21404 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21406 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21409 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21411 The E820 type 5 is BADRAM, not EXEC_CODE.
21413 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21414 (GRUB_E820_BADRAM): New define.
21415 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21416 into reserved. Propagate BADRAM.
21417 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21418 (GRUB_E820_BADRAM): New define.
21420 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21422 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21423 Ignore the memory post-4G.
21424 (grub_relocator_firmware_alloc_region): Additional debug statement.
21426 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21428 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21430 Reported by: David Pravec.
21432 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21434 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21437 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21439 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21441 (grub_reed_solomon_recover): Likewise.
21443 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21445 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21447 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21449 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21452 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21454 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21455 descriptions of extract_legacy_entries_source and
21456 extract_legacy_entries_configfile.
21457 Reported by: Seung Soo, Ha.
21459 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21461 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21462 on devices that do not implement function 0.
21464 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21466 * grub-core/fs/hfsplus.c: Make parent unsigned.
21467 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21469 (grub_hfsplus_cmp_extkey): Likewise
21471 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21473 * util/grub-install.in: Correctly use bootloader_id and not
21474 GRUB_DISTRIBUTOR on efibootmgr line.
21476 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21478 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21480 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21482 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21483 Xen and reorder menu item wording to make it clearer that this entry
21484 will launch Xen. Print separate messages when loading Xen and
21487 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21489 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21490 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21491 loop in case of incorrect amiga partmap.
21493 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21495 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21496 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21499 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21501 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21503 Reported by: crocket
21505 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21507 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21509 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21511 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21513 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21515 (grub_cmd_xnu_kextdir): Likewise.
21516 (grub_cmd_xnu_splash): Likewise.
21518 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21520 Avoid using Reed-Solomon with 0 redundancy.
21522 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21523 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21525 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21526 (grub_reed_solomon_recover): Likewise.
21528 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21530 Don't use disk subsystem in freebsd_boot.
21532 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21533 (freebsd_biosdev): Likewise.
21534 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21535 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21537 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21539 Handling of files of unknown size is currently limited. They can't be
21540 used e.g. for initrd or modules. Moreover gzip handling of not
21541 easily seekable files is buggy. Disable unknown file size for now. May
21542 be inefficient but works.
21544 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21545 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21547 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21549 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21552 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21554 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21556 2010-12-25 Shea Levy <shlevy>
21558 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21560 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21562 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21563 Windows Server 2008.
21564 Reported by: Devin Giddings.
21566 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21568 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21569 writing an error message because of async power management.
21570 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21571 (grub_reboot): Likewise.
21573 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21575 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21576 keep unit tests from failing when they shouldn't.
21578 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21580 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21581 previous patch increased the size of the RS code by 20 bytes (at
21582 least with gcc-4.4), so increase this by 20 bytes to match.
21583 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21585 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21587 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21588 scratch area. Make sure to initialise chosen in standalone mode as
21589 well as non-standalone.
21590 Reported by: Robert Hooker and Andy Whitcroft.
21591 Tested by: Andy Whitcroft.
21593 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21595 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21596 constructing a new unescaped string and passing it to grub_xputs in
21597 one go, rather than passing characters to grub_printf one at a time.
21599 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21601 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21602 initialising utf16.
21604 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21606 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21607 comment. Add an extra layer of quotation, requiring the output of
21608 this function to be used in a printf format string.
21609 (gettext_printf): New function.
21610 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21611 Extract translatable strings from here-documents and use a temporary
21612 variable instead, so that xgettext can find them.
21613 * util/grub.d/10_kfreebsd.in: Likewise.
21614 * util/grub.d/10_linux.in: Likewise.
21615 * util/grub.d/20_linux_xen.in: Likewise.
21617 * po/grub.d.sed: New file.
21618 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21619 arguments. Set c-format flags on all strings extracted from
21620 util/grub.d/ (xgettext refuses to include these itself for strings
21621 it extracted from a shell file, but these really are c-format).
21623 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21625 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21626 Avoid next pointing to nowhere.
21628 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21630 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21631 rather than assuming than rootblock is exactly in the middle.
21632 (grub_affs_label): Likewise.
21634 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21636 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21637 reserved_first_sector to 0.
21638 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21639 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21640 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21642 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21644 Fix handling of UTF-16 UDF labels.
21646 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21647 (read_string): .. here.
21648 (grub_udf_label): Use read_string.
21650 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21652 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21653 editor under argument scope.
21654 Reported by: Jordan Uggla
21656 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21658 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21660 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21662 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21663 line, and other keys scroll an entire page (previous handling was
21664 for \r and \n to scroll a page and other keys to scroll two lines).
21666 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21668 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21669 Set ptrdest to correct get_physical_target_address rather than
21670 incorrect get_virtual_current_address.
21672 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21674 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21675 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21677 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21679 * .bzrignore: Ignore grub-core/rs_decoder.S.
21681 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21683 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21684 .mo/.mo.gz opening sequence to ...
21685 (grub_mofile_open_lang): ... here.
21686 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21687 * util/grub.d/00_header.in (grub_lang): Include country part of
21689 Reported by: Mario Limonciello.
21691 2010-12-09 Robert Millan <rmh@gnu.org>
21693 * NEWS: Document addition of ZFS support.
21695 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21697 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21698 rather than `/ 2', as the latter requires -Wa,--divide which would
21699 require bumping our minimum binutils version.
21701 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21703 * util/grub-script-check.c (main): Print script line number on
21706 2010-12-01 Robert Millan <rmh@gnu.org>
21708 * grub-core/fs/zfs/zfs.c: New file.
21709 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21710 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21711 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21712 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21714 * include/grub/zfs/dmu.h: Likewise.
21715 * include/grub/zfs/dmu_objset.h: Likewise.
21716 * include/grub/zfs/dnode.h: Likewise.
21717 * include/grub/zfs/dsl_dataset.h: Likewise.
21718 * include/grub/zfs/dsl_dir.h: Likewise.
21719 * include/grub/zfs/sa_impl.h: Likewise.
21720 * include/grub/zfs/spa.h: Likewise.
21721 * include/grub/zfs/uberblock_impl.h: Likewise.
21722 * include/grub/zfs/vdev_impl.h: Likewise.
21723 * include/grub/zfs/zap_impl.h: Likewise.
21724 * include/grub/zfs/zap_leaf.h: Likewise.
21725 * include/grub/zfs/zfs.h: Likewise.
21726 * include/grub/zfs/zfs_acl.h: Likewise.
21727 * include/grub/zfs/zfs_znode.h: Likewise.
21728 * include/grub/zfs/zil.h: Likewise.
21729 * include/grub/zfs/zio.h: Likewise.
21730 * include/grub/zfs/zio_checksum.h: Likewise.
21732 * Makefile.util.def: Build ZFS into libgrubmods.
21733 * grub-core/Makefile.core.def: Build zfs.mod.
21735 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21737 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21739 * grub-core/commands/wildcard.c (match_files): Likewise.
21741 2010-11-30 Robert Millan <rmh@gnu.org>
21743 * grub-core/loader/i386/bsd.c
21744 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21745 whether kernel is loaded using grub_loader_is_loaded(), rather
21746 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21747 certain error conditions.
21749 2010-11-30 Robert Millan <rmh@gnu.org>
21751 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21752 (grub_cmd_echo): Call grub_refresh() after printing a message.
21754 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21756 Avoid using tricks for initialising endian variables.
21758 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21760 (GRUB_MOD_INIT): Don't byte-swap.
21761 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21762 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21763 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21764 (grub_swap_bytes32_compile_time): Likewise.
21765 (grub_cpu_to_le32_compile_time): Likewise.
21766 (grub_cpu_to_le16_compile_time): Likewise.
21768 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21770 * util/grub-setup.c (setup): Stop recommending --force. People who
21771 understand the dangers of blocklists are able to find this option
21772 anyway and the ones who don't shouldn't use it anyway.
21774 2010-11-26 Robert Millan <rmh@gnu.org>
21776 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21779 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21781 Fix LVM-on-RAID probing.
21783 * util/grub-probe.c (probe): Remember which disk was detected as
21784 RAID (perhaps an LVM physical volume). Use that disk's raidname
21785 rather than that of the top-level disk.
21787 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21789 Fix cmdline argument quotes for setparams command of menuentry
21792 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21793 quotes for arguments.
21794 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21795 grub_strchrsub function instead.
21797 * include/grub/misc.h (grub_strchrsub): New function.
21799 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21801 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21802 effort by skipping "." and ".." entries up-front.
21803 Suggested by: Michael Lazarev.
21805 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21807 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21808 ldflags to ldadd, to fix link line ordering.
21809 (none_decompress): Likewise.
21811 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21813 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21815 (grub-emu-lite): Remove kern/emu/cache.S.
21817 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21819 * util/deviceiter.c (compare_devices): If the by-id link for a
21820 device couldn't be resolved, fall back to sorting by the by-id link
21821 rather than segfaulting.
21822 Reported and tested by: Daniel Mierswa.
21824 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21826 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21827 ldflags, to fix link line ordering.
21829 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21831 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21832 linkers are picky about this.
21834 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21836 * grub-core/Makefile.am (command.lst): Adjust sed expression
21837 ordering so that extended and priority commands aren't treated as
21840 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21842 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21843 Remove byte-swapping function calls, which are not valid in
21844 structure initialisers.
21845 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21847 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21848 grub_gpt_partition_type_bios_boot.
21850 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21852 Fix test program build on GNU/kFreeBSD.
21854 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21855 $(LIBNVPAIR)' library dependencies.
21857 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21859 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21861 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21863 * util/grub-install.in: Remove excessive quoting that broke
21864 installations to RAID devices.
21866 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21868 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21869 bootloader version instead of 0.
21871 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21873 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21876 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21878 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21879 retrieve the metadat sector if size isn't known.
21880 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21882 2010-11-18 Robert Millan <rmh@gnu.org>
21884 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21885 with grub_memcmp().
21887 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21889 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21891 Reported by: Jordan Uggla.
21893 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21895 Make better UTF compliant.
21897 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21898 sequences as incorrect.
21899 (grub_is_valid_utf8): Likewise.
21900 (grub_utf8_to_ucs4): Likewise.
21901 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21902 (grub_ucs4_to_utf8_alloc): Likewise.
21903 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21905 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21907 Make legacy_source behave like source.
21909 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21911 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21913 2010-11-16 Colin Watson <cjwatson@debian.org>
21915 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21916 (-Wunused implies -Wunused-parameter, but not vice versa).
21918 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21920 * configure.ac: Make error messages less confusing by testing for
21921 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21922 accepted, but produces a diagnostic if something else is wrong).
21924 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21926 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21927 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21929 (grub_keyboard_controller_init)
21930 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21931 read the initial state since controller isn't inited yet.
21933 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21935 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21936 allocate_regbeg may need to create new chunk header.
21938 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21940 Fix quoting in legacy parser.
21942 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21944 (grub_legacy_parse): Likewise.
21945 Reported by: Jordan Uggla.
21946 Tested by: Jordan Uggla.
21948 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21950 Don't add -lgcc on i386 and x86_64.
21952 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21953 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21954 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21956 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21958 * configure.ac: Add -Wno-trampolines when supported.
21960 2010-11-14 Modestas Vainius <modax@debian.org>
21962 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21965 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21967 Add generic logical block size support for UDF.
21969 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21970 (GRUB_UDF_BLKSZ): Removed.
21971 (struct grub_udf_data): New field "lbshift" to hold the logical block
21972 size of the file system in log2 format. All users updated.
21973 (sblocklist): Change type to unsigned.
21974 (grub_udf_mount): Change type of "sblklist" to unsigned.
21975 Move AVDP search before VRS recognition, because the latter requires
21976 knowledge of the logical block size, which is detected during the
21978 Detect and validate logical block size during AVDP search, adding
21979 support for block sizes 512, 1024 and 4096.
21980 Make VRS recognition independent of block size.
21982 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21984 Properly handle deleted files on UDF.
21986 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
21987 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
21990 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21992 Support reading files larger than 2 GiB.
21994 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21995 "offset" to grub_off_t.
21996 (grub_udf_read_file): Likewise for parameter "pos".
21998 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22000 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22002 (Simple configuration): Refer to Changes from GRUB Legacy about
22003 save_env availability.
22005 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22007 * util/grub-install.in: Ignore empty partition table detection
22008 instead of trying to include part_ module.
22010 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22012 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22013 LVM on RAID support.
22015 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22017 Properly define WORDS_BIGENDIAN in wrapped environments.
22019 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22021 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22023 Reported by: Manoel Rebelo Abranches.
22024 Tested by: Manoel Rebelo Abranches.
22026 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22028 * util/grub-mkconfig.in: Fix quoting.
22030 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22032 Support big ext2 files.
22034 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22035 (grub_ext2_read_block): Support triple indirect blocks.
22036 (grub_ext2_read_file): Use 64-bit types and read size_high.
22037 (grub_ext2_open): Read size_high.
22038 Reported by: Ximin Luo.
22039 Tested by: Manoel Rebelo Abranches.
22041 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22043 * util/grub-install.in: Handle filenames containing spaces.
22044 Reported by: Jordan Uggla.
22045 Tested by: Jordan Uggla.
22047 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22049 * util/grub-mkconfig.in (grub_script_check): New variable.
22050 Use grub_script_check instead of grub-script-check.
22051 Reported by: Barry Jackson.
22053 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22055 * docs/grub.texi (menu): Correct the order.
22056 Reported by: D. Hugh Redelmeier.
22058 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22060 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22063 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22065 * include/grub/elfload.h (grub_elf32_size): New parameter.
22067 Return maximum segments alignment.
22068 (grub_elf64_size): Likewise.
22069 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22070 Return maximum segments alignment.
22071 (grub_elf64_size): Likewise.
22072 * grub-core/loader/powerpc/ieee1275/linux.c:
22073 (grub_linux_claimmap_iterate): New function. Uses the
22074 "available" property in the "memory" node for memory allocation
22075 for kernel in the PowerPC loader.
22076 (grub_linux_load32): Correctly find linux entry point offset.
22077 (grub_linux_load64): Likewise.
22079 2010-11-07 Robert Millan <rmh@gnu.org>
22081 On mips-yeeloong, build with -march=loongson2f when this flag is
22082 available (GCC >= 4.4).
22083 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22085 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22086 or otherwise add -march=mips3.
22088 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22090 Suppress shell expansion on echo '*' and echo "*" like cases.
22091 Reported by: Jordan Uggla.
22093 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22094 string arguments before shell expansion.
22095 * tests/grub_cmd_echo.in: New testcases.
22097 2010-11-07 Robert Millan <rmh@gnu.org>
22099 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22102 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22104 * grub-core/kern/emu/hostdisk.c
22105 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22107 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22109 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22110 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22111 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22113 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22115 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22117 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22119 * util/grub-install.in: Replace useless recomendation to pass
22120 --modules with a recomendation to report a bug.
22122 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22124 Properly register serial terminfo.
22125 Reported by: Jordan Uggla
22127 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22129 (grub_serial_terminfo_output_template): Likewise.
22130 (grub_cmd_serial): Register "serial" with terminfo.
22131 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22132 grub_serial_terminfo_output.
22134 2010-11-05 Robert Millan <rmh@gnu.org>
22136 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22139 2010-11-05 Robert Millan <rmh@gnu.org>
22141 On Yeeloong, pass machine type information to Linux.
22143 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22144 (LOONGSON_MACHTYPE): New macro, set to
22145 "machtype=lemote-yeeloong-2f-8.9inches".
22146 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22147 additional argument to Linux.
22149 2010-11-04 Robert Millan <rmh@gnu.org>
22151 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22152 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22153 (its SATA disks are detected as slaveless IDE master drives on
22155 Reported by Carsten Aulbert.
22157 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22159 * util/bin2h.c (main): Fix spelling error in generated output.
22161 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22163 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22165 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22167 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22168 vga= option is supplied.
22170 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22172 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22173 * util/grub.d/10_kfreebsd.in: Likewise.
22174 * util/grub.d/10_linux.in: Likewise.
22175 * util/grub.d/20_linux_xen.in: Likewise.
22177 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22179 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22180 argument as an argument to no-argument option.
22182 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22184 * util/grub.d/10_linux.in: Add missing load_video with explicit
22185 GRUB_GFXPAYLOAD_LINUX.
22187 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22189 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22191 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22193 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22194 elements with invlid index.
22195 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22196 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22198 * include/grub/raid.h (grub_raid_member): New struct.
22199 (grub_raid_array): Transform devices and start_sector into usage of
22200 grub_raid_member. All users updated
22201 (allocated_devs): New member.
22203 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22205 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22208 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22210 NetBSD build fix for getline function conflict from gnulib.
22212 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22213 components that depend on gnulib headers.
22214 (libgrubmods.a): Renamed from earlier libgrub.a.
22215 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22217 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22219 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22220 install rather than creating a broken install.
22222 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22224 * util/grub-setup.c (argp): Remove misleading example of installing to
22227 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22229 * util/grub-setup.c (setup): Clarify the error message.
22231 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22233 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22235 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22237 * grub-core/kern/emu/misc.c
22238 (grub_make_system_path_relative_to_its_root)
22239 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22241 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22243 * grub-core/kern/emu/misc.c
22244 (grub_make_system_path_relative_to_its_root): Revert r2882.
22246 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22248 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22249 useless field head. All users updated.
22250 (free_subchunk): Correct handling of IN_REGION subchunk.
22252 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22254 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22255 (Supported kernels): Likewise.
22257 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22259 Make mktemp invocations portable.
22261 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22262 exit if mktemp fails.
22263 * tests/grub_script_blockarg.in: Likewise.
22264 * tests/partmap_test.in: Likewise.
22265 * tests/util/grub-shell-tester.in: Likewise.
22266 * tests/util/grub-shell.in: Likewise.
22267 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22268 * Makefile.am: Likewise, and chain shell commands with `&&'
22270 * util/grub-mkrescue.in: Use the same explicit template as above, and
22271 exit if mktemp fails.
22273 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22275 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22276 Linux kernel, reported by Dennis Schridde.
22278 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22280 * grub-core/normal/auth.c (grub_auth_check_authentication):
22281 Set-but-not-used variable removed.
22283 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22285 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22286 32-bit linux protocol.
22288 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22290 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22291 cursor shape for sanity.
22293 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22295 * docs/grub.texi (Installation): Document buggy BIOS install.
22297 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22299 * docs/grub.texi (Installation): Indent.
22301 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22303 * util/grub-setup.c (setup): New parameter allow_floppy.
22304 (arguments): New member allow_floppy.
22305 (argp_parser): Handle --allow-floppy.
22306 (main): Pass allow_floppy.
22307 * util/grub-install.in: New option --allow-floppy passed though to
22310 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22312 * util/grub-install.in: Handle partitionless disks.
22314 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22316 * util/grub-setup.c (setup): Don't clean blocklists before readability
22319 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22321 * docs/grub.texi (Installation): Document embedding zone. Remove
22322 obsolete grub-install example.
22324 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22326 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22327 Set-but-not-used variable ifdef'ed.
22328 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22329 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22331 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22332 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22333 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22334 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22335 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22336 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22337 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22338 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22339 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22340 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22341 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22344 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22346 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22347 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22350 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22352 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22353 synonym to _S5_. Needed for some DSDTs.
22355 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22357 Userspace ACPI parser debugging.
22359 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22360 headers and add relevant defines. Don't include standard headers.
22361 (main) [GRUB_DSDT_TEST]: New function.
22362 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22363 Don't declare functions.
22365 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22367 Remove dead grub_efi_mm_fini.
22369 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22370 (ALLOCATED_PAGES_SIZE): Likewise.
22371 (MAX_ALLOCATED_PAGES): Likewise.
22372 (allocated_pages): Likewise.
22373 (grub_efi_allocate_pages): Don't record allocated pages.
22374 (grub_efi_free_pages): Likewise.
22375 (grub_efi_mm_init): Likewise.
22376 (grub_efi_mm_fini): Removed.
22378 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22380 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22381 (grub_efi_mm_init): Take into account the memory map size increase.
22383 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22385 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22386 (serial_hw_put): Wait based on real time rather than port reads. Don't
22388 * include/grub/serial.h (grub_serial_port): New field broken.
22390 2010-10-16 Robert Millan <rmh@gnu.org>
22392 * grub-core/kern/emu/misc.c
22393 (grub_make_system_path_relative_to_its_root): Fix premature return
22394 when processing non-root ZFS filesystems.
22395 Reported by Sergio Talens-Oliag.
22397 2010-10-15 Robert Millan <rmh@gnu.org>
22399 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22400 guarantee compressed ones are processed first.
22402 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22404 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22405 grub_efiemu_autocore.
22407 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22409 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22411 (grub_console_getkey): Use correct jae opcode rather than ja.
22413 2010-10-12 Robert Millan <rmh@gnu.org>
22415 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22416 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22417 variable. All references updated.
22419 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22421 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22423 Correctly distinguish mdraid flavours.
22425 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22426 (insert_array): New argument raid.
22427 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22428 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22429 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22431 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22433 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22434 handling of special keys.
22436 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22438 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22439 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22441 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22443 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22444 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22446 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22447 Use right endpoint when querying descriptor.
22449 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22451 Clear out 0x80 color bit on EFI.
22453 Reported by: decoder and meta tech.
22455 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22456 (grub_console_setcolorstate): Clear out 0x80 bit.
22457 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22458 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22459 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22461 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22463 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22466 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22468 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22469 mo_file after freeing.
22471 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22473 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22475 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22477 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22480 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22482 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22485 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22487 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22489 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22490 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22491 and terminfo.h when needed.
22492 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22493 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22494 (terminfo): Enable only on terminfokernel.
22495 (extcmd): Likewise.
22496 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22497 * include/grub/lib/arg.h: Likewise.
22498 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22499 incorrect usage of ->.
22501 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22503 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22504 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22506 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22508 Fix coreboot compilation.
22510 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22511 Take VBE info into account even if only text is supported.
22512 (fill_vbe_info): Take into account the case when only VGA text
22514 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22515 on coreboot, multiboot and qemu.
22517 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22519 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22521 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22523 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22525 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22528 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22530 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22531 if they were BSD-style.
22533 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22535 * grub-core/boot/i386/pc/lnxboot.S: Replace
22536 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22537 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22539 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22541 Write embedding zone using Reed-Solomon.
22543 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22544 * grub-core/Makefile.am (rs_decoder.S): New target.
22545 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22546 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22547 (multiboot): Move to RS part.
22548 (post_reed_solomon): New label.
22549 (grub_boot_drive): Move to non-RS part since it's modified in memory
22551 Include rs_decoder.S.
22552 * grub-core/lib/reed_solomon.c: New file.
22553 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22555 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22556 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22557 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22558 * include/grub/partition.h (grub_partition_map): Change prototype of
22559 embed to allow returning additional sectors.
22560 * include/grub/reed_solomon.h: New file.
22561 * util/grub-setup.c (setup): Handle Reed-Solomon.
22563 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22565 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22566 i386 and x86-64 definedness tests.
22568 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22570 Fix generation of kernel_syms.lst
22572 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22575 2010-09-26 Robert Millan <rmh@gnu.org>
22577 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22579 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22580 the pool is an array of devices, iterate through it and return the
22581 first device that passes a stat() test (instead of blindly returning
22584 2010-09-26 Robert Millan <rmh@gnu.org>
22586 Build fixes for GNU/kFreeBSD.
22588 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22589 to programs that require ZFS conversion.
22590 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22591 kernels that don't have FLOPPY_MAJOR.
22593 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22595 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22597 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22599 Fix grub-emu build.
22601 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22602 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22603 mdraid09 and mdraid1x.
22605 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22607 Re-enable grub-extras.
22609 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22610 avoid confusing Automake. Run autogen only twice, once for the top
22611 level and once for grub-core. Add Makefile.util.def and
22612 Makefile.core.def from extra modules to the appropriate autogen
22613 invocations. If Makefile.common exists in an extra module, include
22614 it in both Makefile.util.am and grub-core/Makefile.core.am;
22615 similarly, include any Makefile.util.common file in Makefile.util.am
22616 and any Makefile.core.common file in grub-core/Makefile.core.am.
22617 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22618 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22619 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22620 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22622 * gentpl.py (gvar_add): Turn GVARS into a set.
22623 (global_variable_initializers): Sort global variables on output.
22624 (vars_init): New function.
22625 (first_time): Likewise.
22626 (library): Ensure that non-global variable initialisations are
22627 emitted before the first time we emit code for a library block.
22628 Append to variables rather than setting them. Only emit
22629 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22630 each conditional path.
22631 (program): installdir() emits an Autogen macro, so must be passed to
22632 var_add rather than gvar_add.
22634 (script): Likewise.
22635 (rules): New function, centralising handling for different target
22636 types. Set up Guile association lists for first_time and vars_init,
22637 and send most output to a diversion so that variable initialisations
22638 can be emitted first.
22639 (module_rules): Use new rules function.
22640 (kernel_rules): Likewise.
22641 (image_rules): Likewise.
22642 (library_rules): Likewise.
22643 (program_rules): Likewise.
22644 (script_rules): Likewise.
22645 (data_rules): Likewise.
22647 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22649 * .bzrignore: Add contrib and grub-core/contrib. Remove
22650 grub-core/Makefile.gcry.am.
22652 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22654 * grub-core/lib/LzFind.c: Add missing include.
22655 * grub-core/lib/LzmaEnc.c: Likewise.
22656 * grub-core/script/lexer.c: Likewise.
22657 * grub-core/script/yylex.l: Likewise.
22658 * util/grub-macho2img.c: Likewise.
22659 * util/grub-menulst2cfg.c: Likewise.
22660 * util/grub-mklayout.c: Likewise.
22661 * util/grub-mkpasswd-pbkdf2.c
22662 * util/grub-mkrelpath.c: Likewise.
22663 * util/resolve.c: Likewise.
22665 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22667 * Makefile.util.def (example_unit_test): Add
22668 grub-core/gnulib/libgnu.a.
22670 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22672 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22674 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22676 Support xz compression on yeeloong.
22678 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22679 * configure.ac: Check for LZMA.
22680 * grub-core/Makefile.core.def (xz_decompress): New target.
22681 (none_decompress): Likewise.
22682 * grub-core/boot/decompressor/minilib.c: New file.
22683 * grub-core/boot/decompressor/none.c: Likewise.
22684 * grub-core/boot/decompressor/xz.c: Likewise.
22685 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22686 * grub-core/kern/mips/cache_flush.S: Likewise.
22687 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22688 * grub-core/kern/mips/startup.S: Move first stage to ...
22689 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22691 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22692 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22693 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22694 Allocate statically.
22695 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22696 Allocate statically or use scratch. Don't check CRC32.
22697 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22698 Allocate statically. Don't check CRC32.
22699 * include/grub/decompressor.h: New file.
22700 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22702 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22703 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22704 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22705 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22706 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22707 * util/grub-mkimage.c (grub_compression_t): New type.
22708 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22709 (image_target_desc): New field default_compression.
22710 (image_targets): Adjust yeeloong targets.
22711 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22712 (compress_kernel): New parameter comp.
22713 (generate_image): Likewise. Handle new compression case.
22714 (options): New option --compression
22716 (main): Handle new option.
22718 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22720 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22722 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22724 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22725 typo in __i386__ conditional.
22727 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22729 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22732 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22734 Implement EFI and ACPI multiboot2 extensions.
22736 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22737 new tags as supported.
22738 (acpiv2_size): New function.
22739 (grub_multiboot_get_mbi_size): Take new tags into account.
22740 (grub_multiboot_make_mbi): Add new tags.
22741 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22743 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22745 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22746 Added missing configuration of USB device.
22748 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22750 * grub-core/normal/menu_entry.c (run): Make sure we always return
22753 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22755 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22756 NumberOfPages is UINT64 according to the UEFI specification, not
22757 UINTN. Fix printf format.
22759 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22761 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22762 `err' to grub_usb_err_t.
22763 Reported and tested by: KESHAV P.R.
22765 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22767 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22768 tpart non-const, so that we can assign to it. (Since this is a
22769 typedef, the constness refers to the pointer rather than what it
22772 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22774 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22775 $(top_srcdir)/grub-core/gnulib as well as
22776 $(top_builddir)/grub-core/gnulib.
22777 Reported by: KESHAV P.R.
22779 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22781 * util/grub-install.in: Fix the bootloader ID option to be
22782 consistently --bootloader-id, not --bootloader_id.
22783 Reported by: KESHAV P.R.
22785 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22787 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22788 check hash checksum." consistently translatable.
22790 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22792 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22795 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22797 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22798 (GRUB_MOD_INIT): Register sha1sum command.
22799 (GRUB_MOD_FINI): Unregister sha1sum command.
22801 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22803 Keep boot and grub directory names in sync with utils scripts
22805 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22806 * config.h.in: Add previous macros.
22807 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22808 * util/grub-install.in: Use $bootdir and $grubdir variables.
22810 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22812 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22813 convert partition names to disk names if the new `convert' parameter
22815 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22816 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22817 disk in its own right. This can happen with Xen disk images.
22819 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22821 * util/grub-editenv.c: Update strings to avoid warnings when generating
22823 * util/grub-setup.c: Likewise.
22825 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22827 * configure.ac: Change version to 1.99~beta0.
22829 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22831 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22833 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22835 * include/multiboot.h: Resynced with specification.
22836 * include/multiboot2.h: Likewise.
22838 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22840 Fix po directory handling.
22842 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22843 * grub-core/gnulib/Makefile.am: Import gettext module.
22844 * m4/gnulib-cache.m4: Likewise.
22845 * m4/gnulib-comp.m4: Likewise.
22846 * m4/gettext.m4: New file, from gnulib.
22847 * m4/glibc2.m4: Likewise.
22848 * m4/iconv.m4: Likewise.
22849 * m4/intdiv0.m4: Likewise.
22850 * m4/intl.m4: Likewise.
22851 * m4/intldir.m4: Likewise.
22852 * m4/intlmacosx.m4: Likewise.
22853 * m4/intmax.m4: Likewise.
22854 * m4/inttypes-pri.m4: Likewise.
22855 * m4/lcmessage.m4: Likewise.
22856 * m4/lib-ld.m4: Likewise.
22857 * m4/lib-link.m4: Likewise.
22858 * m4/lib-prefix.m4: Likewise.
22859 * m4/lock.m4: Likewise.
22860 * m4/nls.m4: Likewise.
22861 * m4/po.m4: Likewise.
22862 * m4/printf-posix.m4: Likewise.
22863 * m4/progtest.m4: Likewise.
22864 * m4/threadlib.m4: Likewise.
22865 * m4/uintmax_t.m4: Likewise.
22866 * m4/visibility.m4: Likewise.
22867 * po/Makefile.am: Remove.
22868 * po/Makefile.in.in: New file, from gettext.
22869 ($(DOMAIN).pot-update): Support POTFILES-shell.
22870 * po/Makevars: New file.
22871 * po/POTFILES-shell: Rename to ...
22872 * po/POTFILES-shell.in: ... this. Update.
22873 * po/POTFILES: Rename to ...
22874 * po/POTFILES.in: ... this. Update.
22875 * po/Rules-quot: New file, from gettext.
22876 * po/boldquot.sed: Likewise.
22877 * po/en@boldquot.header: Likewise.
22878 * po/en@quot.header: Likewise.
22879 * po/insert-header.sin: Likewise.
22880 * po/quot.sed: Likewise.
22881 * po/remove-potcdate.sin: Likewise.
22883 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22885 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22887 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22889 * util/grub.d/20_linux_xen.in: Use submenus.
22891 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22895 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22896 parameter submenu. All users updated.
22897 * grub-core/normal/main.c (free_menu): Rename to ...
22898 (grub_normal_free_menu): ... this. Made global.
22899 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22901 * grub-core/normal/menu_entry.c (screen): New field submenu.
22902 (make_screen): Set submenu.
22903 (run): Open new context if requested.
22904 * include/grub/menu.h (grub_menu_entry): New field submenu.
22905 * include/grub/normal.h (grub_normal_free_menu): New proto.
22907 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22909 Menu entries extractor.
22911 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22913 (GRUB_MOD_INIT): Register new variants.
22914 (GRUB_MOD_FINI): Unregister new variants.
22915 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22916 into grub_cmd_legacy_source.
22917 (grub_cmd_legacy_source): Implement extractor variants.
22918 (GRUB_MOD_INIT): Register new variants.
22919 (GRUB_MOD_FINI): Unregister new variants.
22920 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22922 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22923 search as an extractor.
22924 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22925 test as an extractor.
22926 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22928 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22929 (grub_env_new_context): New function.
22930 (grub_env_context_open): Likewise.
22931 (grub_env_extractor_open): Likewise.
22932 (grub_env_extractor_close): Likewise.
22933 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22934 grub_extractor_level.
22935 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22936 * include/grub/env.h (grub_env_extractor_open): New proto.
22937 (grub_env_extractor_close): Likewise.
22938 * include/grub/normal.h (grub_extractor_level): New external variable.
22940 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22942 Make cutmem accept a region specification.
22943 Suggested by: Samuel Thibault
22945 * grub-core/mmap/mmap.c (parsemem): New function.
22946 (grub_cmd_cutmem): Handle new arguments.
22948 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22950 New command cutmem.
22952 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22953 (GRUB_MOD_INIT): Register new command.
22954 (GRUB_MOD_FINI): Unregister new command.
22956 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22958 Support some annoying BSD and Minix subpartitions.
22960 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22961 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22962 Properly handle concatenation.
22963 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22964 * grub-core/normal/completion.c (iterate_partition): Likewise.
22965 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22966 contain partition. All users updated.
22967 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22969 (grub_openbsdlabel_partition_map): Likewise.
22970 (bsdlabel_partition_map_iterate): Rename to ..
22971 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22972 (bsdlabel_partition_map_iterate): New function.
22973 (netopenbsdlabel_partition_map_iterate): Likewise.
22974 (netbsdlabel_partition_map_iterate): Likewise.
22975 (openbsdlabel_partition_map_iterate): Likewise.
22976 (GRUB_MOD_INIT): Register new partmaps.
22977 (GRUB_MOD_FINI): Unregister new partmaps.
22978 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
22979 (grub_partition_msdos_iterate): ... this. All users updated.
22980 Don't support embedding other than in a minix partition.
22981 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
22983 * include/grub/partition.h (grub_partition): New field msdostype.
22984 * util/grub-install.in: Handle openbsd and netbsd types being in
22987 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22989 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
22991 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
22992 * grub-core/Makefile.core.def (mdraid): Renamed to ...
22993 (mdraid09): ... this.
22994 (mdraid1x): New module.
22995 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
22996 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
22998 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23000 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23003 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23005 * grub-core/commands/efi/lsefimmap.c: Correct header.
23008 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23010 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23011 as printf format strings; the translations might contain '%' which
23012 could cause a crash.
23014 * util/grub-fstest.c (argp_parser): Likewise.
23015 * util/grub-setup.c (argp_parser): Likewise.
23018 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23020 Use argp in grub-fstest.
23022 * util/grub-fstest.c: Don't include getopt.h.
23024 (root): New variable.
23025 (args_count): Likewise.
23027 (num_disks): Likewise.
23028 (images): Likewise.
23030 (debug_str): Likewise.
23032 (options): Transformed to argp.
23034 (main): Split argument parsing into ...
23035 (argp_parser): ... this. Changed to argp format.
23036 (argp): New variable.
23037 (main): Use argp_parse.
23039 2010-09-20 Tristan Gingold <gingold@free.fr>
23040 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23041 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23043 * grub-core/commands/efi/lsefimmap.c: New file.
23044 * grub-core/Makefile.core.def (lsefimmap): New module.
23045 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23047 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23049 Pause the execution (10s max) if any errors are displayed so the user
23050 has a chance to see them.
23052 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23053 (grub_print_error): Increment grub_err_printed_errors.
23054 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23055 execution if any errors were displayed.
23056 (show_menu): Remove old code for pause.
23057 * grub-core/normal/menu_entry.c (run): Likewise.
23058 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23060 (grub_normal_get_char_counter): Likewise.
23061 * include/grub/err.h (grub_err_printed_errors): New external variable.
23062 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23064 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23066 Support multiboot VBE info.
23068 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23069 Take VBE info into account.
23070 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23071 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23072 Call fill_vbe_info when appropriate.
23073 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23074 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23076 (grub_multiboot_get_mbi_size): Take new tags into account.
23077 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23078 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23079 Call fill_vbe_tag when appropriate.
23080 (grub_multiboot_make_mbi): Properly align tags.
23081 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23083 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23085 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23087 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23089 Suport manual terminal geometry specification.
23091 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23092 Save state in grub_ofconsole_terminfo_output.
23093 (grub_ofconsole_term): Use grub_terminfo_getwh.
23094 (grub_ofconsole_getwh): Removed.
23095 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23096 (grub_serial_term): Use grub_terminfo_getwh.
23097 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23098 (options): New struct.
23099 (OPTION_*): New enum.
23100 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23101 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23103 (grub_terminfo_getwh): New proto.
23104 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23106 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23108 Handle legacy "terminal" command.
23110 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23112 (legacy_commands): Add terminal and title.
23113 (grub_legacy_parse): Handle terminal. Simplify title handling.
23115 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23117 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23118 parameters overflow.
23120 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23122 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23125 * docs/grub.texi (Shell-like scripting): Document `!'.
23126 (Network): Simplify using new i386-pc-pxe format. Mention
23131 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23133 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23134 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23137 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23139 * grub-core/commands/efi/lsefisystab.c: Correct header.
23140 * grub-core/commands/efi/lssal.c: Likewise.
23141 * grub-core/commands/testload.c: Likewise.
23143 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23145 * util/grub-mkrescue.in: Add explicit root argument to --set to
23146 prevent the UUID being interpreted as an argument to --set (matches
23147 previous change to prepare_grub_to_access_device).
23149 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23151 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23152 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23153 the verbosity of later #ifs.
23154 (find_partition_start): Define this function on FreeBSD too.
23155 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23157 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23160 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23162 * util/grub-editenv.c: Use argp instead of getopt.
23164 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23166 * util/grub-setup.c: Use argp instead of getopt.
23168 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23170 Use gnulib-tool to create gnulib source files.
23172 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23173 grub-core/gnulib directories
23174 * .bzignore: Add **/.deps and autogenerated gnulib files
23175 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23176 of gnulib macros, add grub-core/gnulib/Makefile
23177 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23178 include m4 directory to aclocal.
23179 * Makefile.util.def: Remove direct compilation of gnulib source files
23180 and use the new grub-core/gnulib/libgnu.a.
23181 * build-aux/config.rpath: move config.rpath from top directory to
23183 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23185 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23186 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23187 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23189 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23192 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23194 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23195 grub-core/genmod.sh and grub-core/gensyminfo.sh
23197 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23199 Add a test for echo command options.
23201 * tests/grub_cmd_echo.in: New test.
23202 * Makefile.util.def: Rules for new test.
23204 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23206 Remove crc.mod and move crc command to hashsum.mod.
23207 Remove lib/crc.c - users updated to use gcrypt implementation.
23209 * grub-core/commands/crc.c: Removed.
23210 * grub-core/Makefile.core.def (crc): Module removed.
23211 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23212 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23213 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23214 * grub-core/lib/crc.c: Removed.
23215 * include/grub/lib/crc.h: Removed.
23216 * Makefile.util.def (crc): Remove lib/crc.c
23217 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23218 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23219 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23220 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23221 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23222 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23224 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23226 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23228 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23230 Split config.h for util and core.
23232 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23233 (ADDR32): Likewise.
23234 (DATA32): Likewise.
23235 (BSS_START_SYMBOL): Likewise.
23236 (END_SYMBOL): Likewise.
23237 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23238 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23239 * config.h.in: New file.
23240 * configure.ac: Use config-util.h as config define file.
23241 Rename MACHINE into GRUB_MACHINE. All users updated.
23242 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23244 (NESTED_FUNC_ATTR): Likewise.
23245 Substitue new variables.
23246 (COND_HAVE_ASM_USCORE): New conditional.
23247 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23248 (kernel_syms.lst): Use ASM_PREFIX.
23249 * grub-core/kern/emu/console.c: Include config-util.h.
23250 * grub-core/kern/emu/misc.c: Likewise.
23251 * grub-core/kern/emu/mm.c: Likewise.
23252 * include/grub/emu/misc.h: Likewise.
23253 * include/grub/libgcc.h: Likewise.
23255 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23257 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23259 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23260 Fix GRUB_TERM_KEY_* constants usage.
23261 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23263 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23265 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23267 * grub-core/bus/usb/uhci.c: Remove empty define.
23268 (grub_uhci_check_transfer): Add missing cast.
23269 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23271 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23273 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23275 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23277 * grub-core/Makefile.core.def (legacycfg): Add
23278 lib/i386/pc/vesa_modes_table.c on emu.
23280 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23282 Reduce number of temporary files generated by build system.
23284 * grub-core/gencmdlist.sh: Removed.
23285 * grub-core/genfslist.sh: Removed.
23286 * grub-core/genhandlerlist.sh: Removed.
23287 * grub-core/genmodsrc.sh: Removed.
23288 * grub-core/genpartmaplist.sh: Removed.
23289 * grub-core/genparttoollist.sh: Removed.
23290 * grub-core/gentermiinallist.sh: Removed.
23291 * grub-core/genvideolist.sh: Removed.
23293 * grub-core/genmod.sh.in: New file.
23294 * grub-core/gensyminfo.sh.in: New file.
23296 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23297 * conf/Makefile.extra-dist: Update with new files.
23298 * gentpl.py: Remove rules related to unnecessary temporary files.
23299 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23301 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23303 * grub-core/bus/usb/uhci.c: Remove empty #define.
23304 * grub-core/genmoddep.awk: Updated with new syminfo format.
23305 * util/bash-completion.d/Makefile.am: Add config.log to
23308 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23310 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23312 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23314 * util/grub-mkconfig.in: Check the config script for syntax errors
23317 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23318 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23320 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23322 * util/grub-install.in: Add EFI and IEEE1275 support.
23323 * util/i386/efi/grub-install.in: Removed.
23324 * util/ieee1275/grub-install.in: Likewise.
23326 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23328 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23329 (grub_cmd_cmosclean): Likewise.
23330 (GRUB_MOD_INIT): Register command cmosclean.
23331 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23332 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23334 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23335 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23336 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23338 Add keyboard layouts support.
23340 * Makefile.util.def (grub-mklayout): New file.
23341 (grub-kbdcomp): New script.
23342 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23343 Add keyboard_layouts.h.
23344 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23345 commands/boot.c on yeeloong.
23346 (keylayouts): New module.
23347 * grub-core/bus/usb/ohci.c
23348 * grub-core/bus/usb/uhci.c
23349 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23350 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23351 (attach_root_port): Likewise.
23352 (poll_nonroot_hub): Likewise.
23353 (grub_usb_poll_devices): Likewise.
23354 (detach_device): Close transfer.
23355 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23357 (grub_usb_bulk_setup_readwrite): Likewise.
23358 (grub_usb_bulk_finish_readwrite): Likewise.
23359 * grub-core/commands/keylayouts.c: New file.
23360 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23361 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23363 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23364 support scancode 2.
23365 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23366 * include/grub/keyboard_layouts.h: New file.
23367 * util/grub-mklayout.c: New file.
23368 * util/grub-kbdcomp.in: Likewise.
23370 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23372 Unify memory types.
23374 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23375 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23377 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23378 (grub_upper_mem): Likewise.
23379 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23380 * include/grub/memory.h (grub_memory_type_t): New enum.
23383 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23385 * grub-core/Makefile.core.def (lsapm): New module.
23386 * grub-core/commands/i386/pc/lsapm.c: New file.
23387 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23388 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23390 * include/grub/i386/pc/apm.h: New file.
23391 * include/multiboot.h (multiboot_apm_info): New struct.
23393 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23395 GRUB-legacy configuration file support.
23397 * Makefile.util.def (grub-menulst2cfg): New util.
23398 * docs/man/grub-menulst2cfg.h2m: New file.
23399 * grub-core/Makefile.core.def (legacycfg): New module.
23400 * grub-core/commands/legacycfg.c: New file.
23401 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23402 (grub_normal_add_menu_entry): ... this.
23403 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23404 (grub_normal_set_password): ...this.
23405 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23406 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23407 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23408 * grub-core/lib/legacy_parse.c: New file.
23409 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23410 * include/grub/i386/pc/vesa_modes_table.h: New file.
23411 * include/grub/legacy_parse.h: Likewise.
23412 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23413 * util/grub-menulst2cfg.c: New file.
23415 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23417 * grub-core/kern/emu/hostdisk.c
23418 (convert_system_partition_to_system_disk): Initialise node.
23420 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23422 * grub-core/kern/emu/hostdisk.c
23423 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23425 Reported and based on patch by: Modestas Vainius.
23427 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23429 Fix DM-RAID probing with recent versions of device-mapper udev
23432 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23433 canonicalise device paths under /dev/mapper/.
23434 (convert_system_partition_to_system_disk): Compare the
23435 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23436 path, since device nodes under /dev/mapper/ are often symlinks.
23438 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23440 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23442 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23444 * configure.ac: Avoid some annoying error messages if freetype-config
23445 program is not found.
23447 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23449 Support RAID on virtio devices, and others.
23451 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23453 [__MINGW32__] (grub_find_device): ... this.
23454 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23455 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23456 reasonable default if dir is NULL.
23457 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23459 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23460 (grub_guess_root_device): Update callers.
23461 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23463 * util/raid.c (grub_util_getdiskname): Remove.
23464 (grub_util_raid_getmembers): Use grub_find_device rather than
23465 grub_util_getdiskname.
23467 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23469 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23470 needing to be compiled with serial support.
23471 (ls): Indicate that multiple files are accepted.
23472 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23473 indicate that multiple files are accepted.
23475 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23477 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23478 libgrub_a_init.c, and util/bash-completion.d/grub.
23480 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23482 * util/grub-setup.c (setup): Fix incorrect container semantics.
23484 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23486 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23488 Reported by: J. Nick Terry
23490 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23492 Move embedding routines to partmap sources files.
23494 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23495 [GRUB_UTIL]: New variable.
23496 (gpt_partition_map_iterate): Set part.parent.
23497 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23498 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23499 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23501 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23502 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23503 (grub_partition_map) [GRUB_UTIL]: New field embed.
23504 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23505 (setup): Use ->embed.
23507 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23509 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23511 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23512 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23514 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23516 Add function to get completions from usage.
23518 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23519 completions from usage. Use LC_ALL=C to get options properly.
23521 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23523 * grub-core/gnulib/basename-lgpl.c: Imported.
23524 * grub-core/gnulib/basename.c: Likewise.
23525 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23526 * grub-core/gnulib/dirname.c: Likewise.
23527 * grub-core/gnulib/dirname.h: Likewise.
23528 * grub-core/gnulib/stripslash.c: Likewise.
23530 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23532 * grub-core/gnulib/error.c: Resynced.
23533 * grub-core/gnulib/getopt.c: Likewise.
23534 * grub-core/gnulib/getopt_int.h: Likewise.
23535 * grub-core/gnulib/regex.h: Likewise.
23536 * grub-core/gnulib/regex_internal.c: Likewise.
23537 * grub-core/gnulib/regex_internal.h: Likewise.
23539 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23541 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23542 CRC calculations and validity checks.
23543 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23546 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23548 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23550 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23552 Fix incorrect echo options handling.
23553 Reported by: Yves Blusseau.
23555 * include/grub/command.h (grub_command_flags_t): New flags
23556 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23557 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23558 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23560 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23562 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23564 (GRUB_COMMAND_FLAG_MENU): Likewise.
23565 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23566 (GRUB_COMMAND_FLAG_TITLE): Removed.
23567 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23568 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23569 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23570 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23571 (grub_command_flags_t): New enum. All users updated.
23573 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23575 Fix solaris compilation.
23577 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23578 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23579 (grub-emu-list): Likewise.
23581 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23583 Remove deprecated root command.
23585 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23588 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23590 * util/i386/pc/grub-setup.c: Merge this ...
23591 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23592 * util/grub-setup.c: ... into this.
23593 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23596 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23598 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23601 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23603 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23606 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23608 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23609 explicit root argument to set to prevent UUID to be interpreted as
23612 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23614 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23616 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23618 Don't export grub_gate_a20.
23620 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23621 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23623 (grub_gate_a20): ... this. All users updated.
23624 * include/grub/i386/pc/init.h: Removed. All users updated.
23626 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23628 Create euro.pf2 which supports most European languages.
23630 * Makefile.am (grubdata_DATA): Add euro.pf2.
23631 (euro.pf2): New target.
23632 (CLEANFILES): Add euro.pf2.
23634 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23636 * configure.ac: Disable emu-usb by default to prevent inadvertent
23639 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23641 Disable usbserial on grub-emu since our libusb code isn't good enough
23644 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23645 (usbserial_pl2303): Likewise.
23646 (usbserial_ftdi): Likewise.
23648 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23650 * include/grub/disk.h (grub_disk): Remove has_partitions.
23652 * disk/loopback.c (grub_loopback): Remove has_partitions.
23654 (options): Remove partitions. All users updated.
23655 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23656 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23657 actual partition table is found.
23659 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23661 Remove readability checks (too many false negatives).
23663 * util/grub-install.in: Remove readability checks.
23664 * util/grub-mkconfig.in: Likewise.
23665 * util/grub.d/10_hurd.in: Likewise.
23666 * util/grub.d/10_kfreebsd.in: Likewise.
23667 * util/grub.d/10_linux.in: Likewise.
23668 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23671 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23673 Enable acpi shutdown on all ACPI platforms.
23675 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23676 on coreboo, multiboot and EFI.
23677 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23678 (grub_acpi_halt): Likewise.
23679 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23680 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23681 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23682 * grub-core/lib/i386/halt.c (grub_halt)
23683 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23685 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23687 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23690 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23692 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23693 * grub-core/video/efi_uga.c: Likewise.
23695 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23697 Filter devaliases and never open same device twice.
23699 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23700 (last_ihandle): Likewise.
23701 (ofdisk_hash_ent): New member shortest.
23702 (ofdisk_hash_add): Add canonical path too.
23703 (scan): New function.
23704 (grub_ofdisk_iterate): Iterate over hashed entries.
23705 (compute_dev_path): Don't add :0.
23706 (grub_ofdisk_open): Don't really open the disk.
23707 (grub_ofdisk_close): Avoid closing unrelated disk.
23708 (grub_ofdisk_read): Implement reopen logic.
23709 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23711 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23714 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23718 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23719 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23720 right address. Add sparc64_ieee1275_ldflags.
23721 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23722 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23723 to grub_host_to_target_addr
23724 (load_image): Likewise.
23726 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23728 * grub-core/normal/completion.c (complete_file): Handle device
23730 Fix based on patch by Doug Nazar.
23732 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23734 grub-mknetdir script.
23736 * Makefile.util.def (grub-mknetdir): New module.
23737 * tests/util/grub-shell.in: Support boot=net
23738 * util/grub-mknetdir.in: New file.
23740 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23742 videoinfo on non-vbe.
23744 * grub-core/Makefile.core.def (vbeinfo): Removed.
23745 (vbetest): Removed.
23746 (videoinfo): New module.
23747 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23748 * grub-core/commands/i386/pc/vbetest.c: Removed.
23749 * grub-core/commands/videoinfo.c: New file.
23750 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23752 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23754 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23755 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23756 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23757 mode_number. New parameter mode. All users updated.
23758 (grub_video_gop_iterate): New function.
23759 (grub_video_efi_gop): New member iterate.
23760 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23761 (grub_vbe_set_video_mode): Remove setting useless fields.
23762 (vbe2videoinfo): New function.
23763 (grub_video_vbe_iterate): Likewise.
23764 (grub_video_vbe_setup): Use vbe2videoinfo.
23765 (grub_video_vbe_print_adapter_specific_info): New function.
23766 (grub_video_vbe_adapter): New fields iterate and
23767 print_adapter_specific_info.
23768 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23770 (grub_video_mode_info): New field mode_number.
23771 (grub_video_adapter): New fields iterate and
23772 print_adapter_specific_info.
23774 2010-09-13 Tristan Gingold <gingold@free.fr>
23775 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23776 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23778 * grub-core/commands/efi/lsefisystab.c: New file.
23779 * grub-core/commands/efi/lssal.c: Likewise.
23780 * grub-core/Makefile.core.def (lsacpi): New module.
23781 (lsefisystab): Likewise.
23782 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23783 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23784 (grub_efi_sal_system_table): New struct.
23785 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23786 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23787 (grub_efi_sal_system_table_platform_features): Likewise.
23788 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23789 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23790 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23791 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23793 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23795 Support explicit user claim that a device is BIOS-visible.
23797 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23798 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23799 * grub-core/kern/emu/hostdisk.c
23800 (convert_system_partition_to_system_disk): Support mdX.
23801 (find_system_device): New parameter add. All users updated.
23802 (grub_util_biosdisk_is_present): New function.
23803 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23806 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23808 Search hints support.
23810 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23813 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23815 Bash completion script for util commands
23817 * Makefile.am: Add util/bash-completion.d directory
23818 * configure.ac: Likewise.
23819 * util/bash-completion.d/Makefile.am: New file.
23820 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23822 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23824 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23825 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23826 Reported by: Yves Blusseau.
23828 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23830 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23831 partition size and offset.
23833 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23835 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23837 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23839 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23841 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23843 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23844 (grub_xvasprintf): Likewise.
23846 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23848 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23850 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23852 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23853 args ending with NULL.
23855 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23857 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23860 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23862 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23864 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23866 Shutdown using ACPI.
23868 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23869 * grub-core/commands/acpihalt.c: New file.
23870 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23871 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23872 (grub_acpi_halt): New proto.
23873 (GRUB_ACPI_SLP_EN): New const.
23874 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23875 (GRUB_ACPI_OPCODE_*): New enum.
23876 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23878 2010-09-11 Tristan Gingold <gingold@free.fr>
23879 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23880 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23882 * commands/lsacpi.c: New file.
23883 * grub-core/Makefile.core.def (lsacpi): New module.
23884 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23885 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23886 (grub_acpi_madt_entry_header): New struct.
23887 (grub_acpi_madt): Likewise.
23888 (grub_acpi_madt_entry_interrupt_override): Likewise.
23889 (grub_acpi_madt_entry_sapic): Likewise.
23890 (grub_acpi_madt_entry_lsapic): Likewise.
23891 (grub_acpi_madt_entry_platform_int_source): Likewise.
23892 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23893 (PRIuGRUB_UINT32_T): Likewise.
23894 (PRIxGRUB_UINT64_T): Likewise.
23896 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23898 Implement loading palette on ieee1275_fb.
23900 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23901 (have_setcolors): Likewise.
23902 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23903 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23904 (grub_video_ieee1275_set_palette): Implement.
23906 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23907 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23909 * util/grub-install.in (grub_partition): New variable.
23910 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23911 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23912 Fixes a bug reported by Yves Blusseau.
23914 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23918 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23919 =grub_cpu_flush_cache on all mips and not only yeeloong.
23920 * configure.ac (COND_mips): New conditional.
23921 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23923 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23924 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23925 [GRUB_LINKER_HAVE_INIT]: New function.
23926 (grub_emu_post_init): Likewise.
23927 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23928 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23929 * include/grub/cache.h (_mips): Include mips/cache.h.
23930 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23931 LVM and RAID prototypes.
23932 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23933 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23936 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23938 * util/grub-install.in: Don't try to verify core.img until after
23939 running grub-mkimage to create it.
23941 2010-09-10 Robert Millan <rmh@gnu.org>
23943 * util/grub.d/10_hurd.in: Add misc readability checks.
23944 * util/grub.d/10_kfreebsd.in: Likewise.
23945 * util/grub.d/10_linux.in: Likewise.
23947 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23949 * util/grub-install.in: ${imgext} won't be defined here until the
23950 install branch is merged. For the meantime, only verify core.img on
23951 i386-pc and sparc64-ieee1275 platforms.
23953 2010-09-10 Robert Millan <rmh@gnu.org>
23955 Solaris support in grub_find_zpool_from_dir(). Thanks
23956 Seth Goldberg for referring to getextmntent() facility.
23958 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23960 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23962 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23963 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23964 method for finding zpool name.
23966 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23968 grub-fstest needs the host and hostfs modules while other utilities
23969 actively require those modules to be absent, so grub-fstest needs
23970 its own initialisation and finalisation code.
23972 * Makefile.am (grub_fstest.pp): New target.
23973 (grub_fstest_init.lst): Likewise.
23974 (grub_fstest_init.c): Likewise.
23975 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
23977 2010-09-10 Robert Millan <rmh@gnu.org>
23979 * configure.ac: Check for `struct statfs.f_fstypename' and
23980 `struct statfs.f_mntfromname'.
23982 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
23983 kFreeBSD-specific code.
23985 2010-09-10 Robert Millan <rmh@gnu.org>
23987 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
23988 on ZFS. Now non-main filesystems are supported as / too.
23990 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
23992 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
23993 and grub-core/disk/host.c to ...
23994 (grub-fstest): ... here. Having the host disk implementation
23995 present confuses grub-probe and other utility programs.
23997 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
23998 when writing to a file, not when writing to stdout.
24000 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24002 * tests/partmap_test.in: New test for partitions.
24003 * Makefile.util.def: Rules for new test.
24005 2010-09-09 Robert Millan <rmh@gnu.org>
24007 * util/grub-probe.c (probe): Fix a pair of unhandled error
24010 2010-09-09 Robert Millan <rmh@gnu.org>
24012 Basic Btrfs support (detection and UUID).
24014 * grub-core/fs/btrfs.c: New file.
24015 * Makefile.util.def (library): Register btrfs.c.
24016 * grub-core/Makefile.core.def: Likewise.
24018 2010-09-08 Robert Millan <rmh@gnu.org>
24020 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24021 with (optional) parameters to specify device and relative path.
24022 * util/grub-install.in: Use is_path_readable_by_grub() to
24023 verify readability of a few critical files.
24024 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24025 verify readability of grub.cfg.new.
24027 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24029 Split minix.mod into minix.mod and minix2.mod.
24031 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24032 * grub-core/Makefile.core.def (minix2): New module.
24033 * grub-core/fs/minix.c: Use definitions instead of runtime version
24035 * grub-core/fs/minix2.c: New file.
24037 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24039 Add new --boot-directory option to replace --root-directory
24041 * util/grub-install.in: Add new --boot-directory option
24042 * util/grub-reboot.in: Likewise.
24043 * util/grub-set-default.in: Likewise.
24045 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24047 * util/grub-mkconfig.in: Use new variable.
24049 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24051 * configure.ac: Define some useful variables.
24053 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24055 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24056 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24057 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24058 Use terminfo and don't use cursor-on/cursor-off unless it's known
24060 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24061 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24063 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24065 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24066 starts with "(,", fill the drive containing the loaded image in
24067 between those two characters, but expect that a full partition
24068 specification including partition map names will follow.
24070 2010-09-08 Robert Millan <rmh@gnu.org>
24072 * configure.ac: Remove `--enable-grub-fstest' option.
24073 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24075 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24076 `grub-fstest' instead of `grub-probe' for readability verification.
24077 * util/grub-probe.c (probe): Remove readability verification kludge.
24079 2010-09-08 Robert Millan <rmh@gnu.org>
24081 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24082 initializing `GRUB_FS'.
24084 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24086 Not command (!) support to GRUB script.
24088 * tests/grub_script_not.in: New test.
24089 * Makefile.util.def: Rules for new test.
24091 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24092 ! command as a special case.
24093 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24095 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24097 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24100 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24102 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24104 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24106 * docs/grub.texi (Shell-like scripting): Documentation for break,
24107 continue, shift and return commands.
24109 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24111 Rename CD-ROM to cd on BIOS.
24113 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24115 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24117 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24119 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24120 * util/grub-probe.c (main): Likewise.
24121 * util/i386/pc/grub-setup.c (main): Likewise.
24122 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24123 Reported and debugged by: alexxy
24125 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24127 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24130 2010-09-05 Jo Shields <directhex@apebox.org>
24132 * util/grub.d/30_os-prober.in: Add missing classes.
24134 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24136 * docs/grub.texi (Theme file format): Document new position format.
24138 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24140 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24141 a table. Use @code instead of @verbatim.
24143 2010-09-05 Colin D Bennett <colin@gibibit.com>
24145 Gfxmenu documentation.
24147 * docs/grub.texi (Theme file format): New chapter.
24149 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24151 * grub-core/Makefile.core.def (xzio): New module.
24152 * grub-core/io/xzio.c: New file.
24153 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24154 * grub-core/lib/xzembed/xz_config.h: Likewise.
24155 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24156 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24157 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24158 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24159 * grub-core/lib/xzembed/xz_private.h: Likewise.
24160 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24161 * include/grub/file.h (grub_file_filter_id): New compression filter
24162 GRUB_FILE_FILTER_XZIO.
24164 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24166 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24167 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24170 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24172 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24173 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24175 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24177 Uncompressed checksum support.
24179 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24180 (check_list): New parameter uncompress.
24181 (grub_cmd_hashsum): Handle --uncompress.
24183 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24185 Reintroduce testload.
24187 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24189 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24190 (GRUB_MOD_INIT): New function.
24191 (GRUB_MOD_FINI): Likewise.
24192 * grub-core/Makefile.core.def (testload): New module.
24194 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24196 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24197 (uint8_t): New type.
24198 (uint16_t): Likewise.
24199 (uint32_t): Likewise.
24200 (uint64_t): Likewise.
24202 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24204 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24206 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24208 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24210 (grub_gzfile_open): Removed. All users updated.
24211 (GRUB_MOD_INIT): New function.
24212 (GRUB_MOD_FINI): Likewise.
24213 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24214 (grub_file_filters_enabled): Likewise.
24215 (grub_file_open): Handle filters.
24216 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24217 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24218 * include/grub/file.h (grub_file_filter_id_t): New type.
24219 (grub_file_filter_t): Likewise.
24220 (grub_file_filters_all): New extern variable.
24221 (grub_file_filters_enabled): Likewise.
24222 (grub_file_filter_register): New inline function.
24223 (grub_file_filter_unregister): Likewise.
24224 (grub_file_filter_disable): Likewise.
24225 (grub_file_filter_disable_compression): Likewise.
24226 * include/grub/gzio.h: Removed.
24228 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24230 Filename expansion support for wildcards in GRUB script.
24232 * tests/grub_script_expansion.in: New test.
24233 * Makefile.util.def: Rule for new test.
24235 * grub-core/commands/wildcard.c: New file, implements filename
24236 expansion support for GRUB script.
24237 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24238 * grub-core/script/argv.c: Cosmetic changes.
24239 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24240 Refactored to perform wildcard expansion on arguments.
24241 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24244 * tests/util/grub-shell.in: Fix quoting for read input.
24246 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24248 Support for updating environment variables with matched substrings
24251 * tests/grub_cmd_regexp.in: New test.
24252 * Makefile.util.def: Rule for new test.
24254 * grub-core/commands/regexp.c: New option -s to update environment
24255 variables with regexp matches.
24257 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24259 * include/grub/file.h (grub_file): New member not_easly_seekable.
24260 (grub_file_seekable): New inline function.
24261 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24263 (grub_gzio_open): Set not_easly_seekable.
24264 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24265 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24267 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24269 Support for options to appear multiple times on cmdline.
24271 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24272 * grub-core/commands/extcmd.c: Support for repeatable option.
24273 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24274 repeatable option support.
24276 Refactor menuentry into a regular command.
24278 * grub-core/commands/menuentry.c: New file, menuentry command
24280 * grub-core/Makefile.core.def: Rule update for normal.mod.
24281 * grub-core/normal/main.c: Moved menuentry creation to
24282 grub-core/commands/menuentry.c.
24283 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24284 (grub_menu_execute_entry_real): Removed.
24285 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24287 (grub_script_execute_menuentry): Removed.
24288 * grub-core/script/parser.y (menuentry): Removed.
24289 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24290 * grub-core/script/yylex.l (menuentry): Removed.
24291 * include/grub/menu.h (grub_menu_init): New prototype.
24292 (grub_menu_fini): New prototype.
24293 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24294 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24295 (grub_script_execute_sourcecode): New prototype.
24297 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24299 "return" command for GRUB script functions.
24301 * tests/grub_script_return.in: New test.
24302 * Makefile.util.def: Rules for new test.
24304 * grub-core/script/execute.c (grub_script_return): New function.
24305 * grub-core/script/main.c: Register/unregister return commaond.
24306 * include/grub/script_sh.h (grub_script_return): New prototype.
24308 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24310 "setparams" command to update positional parameters.
24312 * tests/grub_script_setparams.in: New test.
24313 * Makefile.util.def: Rules for new test.
24315 * grub-core/script/argv.c (grub_script_argv_make): New function.
24316 * grub-core/script/execute.c (replace_scope): New function.
24317 (grub_script_setparams): New function.
24318 * grub-core/script/lexer.c: Remove unused variables.
24319 * grub-core/script/main.c: Register/unregister setparams command.
24320 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24321 (grub_script_setparams): New prototype.
24323 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24325 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24328 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24330 Support for passing block of commands as an argument to extcmds.
24332 * Makefile.util.def: Rules for new test.
24333 * tests/grub_script_blockarg.in: New test.
24334 * grub-core/tests/test_blockarg.c: New file, block argument
24335 command used in the test.
24337 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24338 (grub_register_extcmd_prio): New function prototype.
24339 (grub_extcmd_dispatcher): New function prototype.
24340 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24342 * include/grub/script_sh.h (struct grub_script): New members
24343 `children', `next_siblings' and `refcnt' for block arguments and
24344 reference counting.
24345 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24346 (grub_script_arg): New member `script' for block argument.
24347 (grub_script_argv): New member `script' for block argument.
24348 (grub_parser_param): New member `scripts' for block argument.
24349 (grub_script_mem_free): New extern function prototype.
24350 (grub_script_ref): New function prototype.
24351 (grub_script_unref): New function prototype.
24353 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24354 extcmd form to support block arguments.
24355 * grub-core/script/argv.c: Block arguments support.
24356 * grub-core/script/execute.c: Likewise.
24357 * grub-core/script/lexer.c: Likewise.
24358 * grub-core/script/main.c: Likewise.
24359 * grub-core/script/script.c: Likewise.
24360 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24363 * grub-core/commands/acpi.c: Update extcmd implementations with
24364 grub_extcmd_context_t.
24365 * grub-core/commands/cat.c: Likewise.
24366 * grub-core/commands/echo.c: Likewise.
24367 * grub-core/commands/extcmd.c: Likewise.
24368 * grub-core/commands/hashsum.c: Likewise.
24369 * grub-core/commands/hdparm.c: Likewise.
24370 * grub-core/commands/help.c: Likewise.
24371 * grub-core/commands/hexdump.c: Likewise.
24372 * grub-core/commands/i386/cpuid.c: Likewise.
24373 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24374 * grub-core/commands/i386/pc/halt.c: Likewise.
24375 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24376 * grub-core/commands/iorw.c: Likewise.
24377 * grub-core/commands/keystatus.c: Likewise.
24378 * grub-core/commands/loadenv.c: Likewise.
24379 * grub-core/commands/ls.c: Likewise.
24380 * grub-core/commands/lspci.c: Likewise.
24381 * grub-core/commands/memrw.c: Likewise.
24382 * grub-core/commands/probe.c: Likewise.
24383 * grub-core/commands/search_wrap.c: Likewise.
24384 * grub-core/commands/setpci.c: Likewise.
24385 * grub-core/commands/sleep.c: Likewise.
24386 * grub-core/disk/loopback.c: Likewise.
24387 * grub-core/hello/hello.c: Likewise.
24388 * grub-core/loader/i386/bsd.c: Likewise.
24389 * grub-core/loader/xnu.c: Likewise.
24390 * grub-core/term/gfxterm.c: Likewise.
24391 * grub-core/term/serial.c: Likewise.
24392 * grub-core/tests/lib/functional_test.c: Likewise.
24394 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24396 Multi-line quoted strings support.
24398 * grub-core/script/lexer.c (append_newline): Removed.
24399 (grub_script_lexer_yywrap): Refactored.
24400 (grub_script_lexer_init): Refactored.
24401 * grub-core/script/yylex.l (yywrap): New function.
24402 (grub_lexer_resplit): New function.
24403 (grub_lexer_unput): New function.
24404 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24406 * tests/grub_script_echo1.in: Added few more testcases.
24408 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24410 * grub-core/kern/misc.c: Don't add abort alias in utils.
24411 Reported by: echoline.
24413 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24415 Add missing files into "make dist" tarball for other platforms.
24417 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24418 * conf/Makefile.common (dist_noinst_DATA): New variable.
24419 * conf/Makefile.extra-dist: Added missing make dist files.
24420 * grub-core/Makefile.core.def: Likewise.
24422 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24424 Compress grub_prefix.
24426 * grub-core/boot/i386/pc/lnxboot.S: Use
24427 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24428 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24429 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24430 GRUB_MACHINE_PREFIX_END. All users updated.
24431 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24432 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24434 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24435 * util/grub-mkimage.c (image_target_desc): Change data_end to
24436 prefix_end. All users updated.
24438 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24440 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24442 (grub_openbsd_boot): Likewise.
24443 (grub_netbsd_boot): Likewise.
24444 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24445 (grub_xnu_boot): Likewise.
24447 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24449 * configure.ac: Clean LIBS variable after tests.
24451 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24453 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24455 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24457 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24458 echo if libdevmapper will be used.
24460 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24462 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24463 constant for the same file.
24465 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24467 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24469 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24471 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24474 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24476 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24477 required by the boot protocol.
24479 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24480 ebp and edi members.
24481 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24482 state.ebp and state.edi.
24483 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24484 %ebp and %edi according to grub_relocator32_ebp and
24485 grub_relocator32_edi respectively.
24486 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24489 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24491 Add i386-pc-pxe image target.
24493 * util/grub-mkimage.c (image_target_desc): New enum value
24495 (image_targets): New target i386-pc-pxe.
24496 (generate_image): Handle i386-pc-pxe image.
24498 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24502 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24503 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24505 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24506 (grub_pxe_pxenv): Correct type.
24508 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24510 * NEWS: Document most of the important changes since 1.98.
24512 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24514 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24515 generated manual page) a little.
24517 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24519 * docs/grub.texi: Add myself as an author.
24521 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24523 * Makefile.util.def (libgrub.a): Add missing sunpc.
24524 Reported by: Seth Goldberg.
24526 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24528 Interrupt wrapping and code simplifications.
24530 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24531 x86_noieee1275 which are functionaly equivalent in this case.
24532 (grub-install): Make source on each platform explicit. Enable on
24534 * gentpl.py (x86_efi_pc): Removed group.
24535 (x86_noefi): Likewise.
24536 (i386_noefi): Likewise.
24537 (x86_noieee1275): Likewise.
24538 (i386_noieee1275): Likewise.
24539 (i386_noefi_noieee1275): Likewise.
24540 (i386_pc_qemu_coreboot): Likewise.
24541 (i386_coreboot_multiboot): Likewise.
24542 (i386_pc_coreboot_multiboot_qemu): Likewise.
24543 (x86_noefi_mips): Likewise.
24544 (noieee1275): Likewise.
24545 (ieee1275_mips): Likewise.
24546 (noemu_noieee1275): Likewise.
24549 (videoinkernel): Likewise.
24550 (videomodules): Likewise.
24551 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24552 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24553 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24554 include/grub/loader.h, include/grub/msdos_partition.h,
24555 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24556 include/grub/machine/console.h, include/grub/machine/vga.h,
24557 include/grub/machine/vbe.h, include/grub/machine/init.h,
24558 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24559 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24560 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24561 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24562 * grub-core/Makefile.core.def (kernel): Explicit the source for
24563 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24564 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24565 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24566 Use videoinkernel tag.
24567 (usb): Enable on all usb.
24568 (usbserial_common): Likewise.
24569 (usbserial_pl2303): Likewise.
24570 (usbserial_ftdi): Likewise.
24571 (uhci): Enable on all x86.
24572 (ohci): Enable on all pci.
24573 (cmostest): Enable on all CMOS.
24574 (acpi): Include commands/acpi.c on all platforms.
24575 (halt): Add relevant lib/*/halt.c.
24576 (hdparm): Enable on all pci.
24578 (usbtest): Enable on all usb.
24579 (ata): Enable on all pci.
24580 (ata_pthru): Likewise.
24581 (usbms): Enable on all usb.
24582 (usb_keyboard): Likewise.
24583 (font): Use tag videomodules.
24585 (datetime): Use tag cmos. Enable on all noemu.
24586 (mmap): Use tags common and x86.
24587 (gfxterm): Use tag videomodules.
24588 (bitmap): Likewise.
24589 (bitmap_scale): Likewise.
24590 (video_fb): Likewise.
24592 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24593 adjust padding accordingly. All users updated.
24594 (grub_ohci_transaction): Fix bad format specification.
24595 (GRUB_MOD_INIT): Add asserts for struct size.
24596 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24597 (grub_alloc_td): Likewise.
24598 (grub_free_queue): Likewise.
24599 (grub_uhci_transfer): Likewise.
24600 (grub_uhci_transaction): Fix bad format specification.
24601 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24602 (grub_usb_bulk_readwrite): Likewise.
24603 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24604 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24606 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24608 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24609 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24610 Transformed into C.
24611 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24612 Moved from here ...
24613 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24614 ... here. Transformed into C. Made static.
24615 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24616 Moved from here ...
24617 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24618 ... here. Transformed into C. Made static.
24619 * grub-core/kern/i386/pc/startup.S
24620 (grub_biosdisk_check_int13_extensions): Moved from here ...
24621 * grub-core/disk/i386/pc/biosdisk.c
24622 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24624 * grub-core/kern/i386/pc/startup.S
24625 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24626 * grub-core/disk/i386/pc/biosdisk.c
24627 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24628 Transformed into C. Made static.
24629 * grub-core/kern/i386/pc/startup.S
24630 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24631 * grub-core/disk/i386/pc/biosdisk.c
24632 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24633 Transformed into C. Made static.
24634 * grub-core/kern/i386/pc/startup.S
24635 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24636 * grub-core/disk/i386/pc/biosdisk.c
24637 (grub_biosdisk_get_diskinfo_standard): ... here.
24638 Transformed into C. Made static.
24639 * grub-core/kern/i386/pc/startup.S
24640 (grub_biosdisk_get_num_floppies): Moved from here ...
24641 * grub-core/disk/i386/pc/biosdisk.c
24642 (grub_biosdisk_get_num_floppies): ... here.
24643 Transformed into C. Made static.
24644 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24646 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24647 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24648 Transformed into C. Made static.
24649 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24650 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24651 Transformed into C. Made static.
24652 * grub-core/kern/i386/ieee1275/init.c: Removed.
24653 * grub-core/kern/i386/misc.S: Likewise.
24654 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24655 Splitted from here ...
24656 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24657 Transformed into C. Made static. All users updated.
24658 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24659 Transformed into C. Made static. All users updated.
24660 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24662 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24663 Transformed into C. Made static. All users updated.
24664 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24666 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24667 Transformed into C. Made static. All users updated.
24668 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24669 Removed (replaced by C version).
24670 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24672 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24673 Transformed into C. Made static.
24674 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24676 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24677 ... here. Transformed into C.
24678 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24680 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24681 ... here. Transformed into C.
24682 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24684 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24685 ... here. Transformed into C. Made static.
24686 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24688 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24689 ... here. Transformed into C.
24690 * grub-core/kern/i386/pc/startup.S
24691 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24692 * grub-core/video/i386/pc/vbe.c
24693 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24694 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24696 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24697 ... here. Transformed into C.
24698 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24700 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24701 ... here. Transformed into C.
24702 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24704 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24705 ... here. Transformed into C.
24706 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24708 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24709 ... here. Transformed into C.
24710 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24712 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24713 ... here. Transformed into C. Made static.
24714 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24716 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24717 ... here. Transformed into C. Made static.
24718 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24720 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24721 ... here. Transformed into C. Made static.
24722 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24723 pxe_rm_entry as third argument.
24724 (grub_bios_interrupt): New function.
24725 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24726 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24727 of calling grub_stop.
24728 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24729 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24730 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24731 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24732 * grub-core/lib/i386/halt.c: Moved from here ...
24733 * grub-core/lib/i386/halt.c: ... here.
24734 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24735 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24736 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24738 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24739 * include/grub/i386/coreboot/init.h: Removed.
24740 * include/grub/i386/multiboot/init.h: Likewise.
24741 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24742 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24743 * include/grub/i386/pc/int.h: New file.
24744 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24745 (grub_pxe_scan): Removed.
24746 (grub_pxe_call): Update prototype.
24747 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24749 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24750 * include/grub/i386/qemu/init.h: Removed.
24751 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24753 (grub_halt): Likewise.
24754 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24755 (grub_reboot): Likewise.
24756 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24757 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24758 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24760 2010-08-30 Robert Millan <rmh@gnu.org>
24762 * NEWS: Document addition of ZFS support in `grub-install' and
24765 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24767 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24770 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24772 Remove leftover embedding of font objects.
24774 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24775 * util/grub-install.in (font): Removed.
24776 * util/grub-mkimage.c (generate_image): Remove font support. All users
24779 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24781 Remove leftover embedding of font objects.
24783 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24784 * util/grub-install.in (font): Removed.
24785 * util/grub-mkimage.c (generate_image): Remove font support. All users
24788 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24790 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24791 Reported by: Ian Turner
24793 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24795 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24796 timeout to avoid indefinite boot stalling.
24798 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24800 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24801 (grub_env_write_color_highlight): Likewise.
24803 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24805 * grub-core/normal/term.c (print_more): Return to normal and not
24806 to standard state after printing "---MORE---".
24808 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24810 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24811 Mask out the bit 0x80 since it has other meaning that specifiing color.
24813 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24815 New relocator. Allows for more kernel support and more straightforward
24818 * Makefile.am (BOOTTARGET): New variable.
24819 (QEMU32): Likewise.
24820 (linux.init.x86_64): New target.
24821 (linux.init.i386): Likewise.
24822 (multiboot.elf): Likewise.
24823 (kfreebsd.elf): Likewise.
24824 (kfreebsd.aout): Likewise.
24825 (pc-chainloader.elf): Likewise.
24826 (pc-chainloader.bin): Likewise.
24827 (ntldr.elf): Likewise.
24828 (ntldr.bin): Likewise.
24829 (multiboot2.elf): Likewise.
24830 (kfreebsd.init.x86_64): Likewise.
24831 (kfreebsd.init.i386): Likewise.
24832 (knetbsd.init.i386): Likewise.
24833 (kopenbsd.init.i386): Likewise.
24834 (knetbsd.init.x86_64): Likewise.
24835 (kopenbsd.init.x86_64): Likewise.
24836 (linux-initramfs.i386): Likewise.
24837 (linux-initramfs.x86_64): Likewise.
24838 (kfreebsd-mfsroot.i386.img): Likewise.
24839 (knetbsd.image.i386): Likewise.
24840 (kopenbsd.image.i386): Likewise.
24841 (kopenbsd.image.x86_64): Likewise.
24842 (knetbsd.miniroot-image.i386.img): Likewise.
24843 (kfreebsd-mfsroot.x86_64.img): Likewise.
24844 (knetbsd.image.x86_64): Likewise.
24845 (knetbsd.miniroot-image.x86_64.img): Likewise.
24846 (kfreebsd-mfsroot.i386.gz): Likewise.
24847 (bootcheck-kfreebsd-i386): Likewise.
24848 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24849 (bootcheck-kfreebsd-x86_64): Likewise.
24850 (knetbsd.miniroot-image.i386.gz): Likewise.
24851 (bootcheck-knetbsd-i386): Likewise.
24852 (bootcheck-kopenbsd-i386): Likewise.
24853 (bootcheck-kopenbsd-x86_64): Likewise.
24854 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24855 (bootcheck-knetbsd-x86_64): Likewise.
24856 (bootcheck-linux-i386): Likewise.
24857 (bootcheck-linux-x86_64): Likewise.
24858 (bootcheck-linux16-i386): Likewise.
24859 (bootcheck-linux16-x86_64): Likewise.
24860 (bootcheck-multiboot): Likewise.
24861 (bootcheck-multiboot2): Likewise.
24862 (bootcheck-kfreebsd-aout): Likewise.
24863 (bootcheck-pc-chainloader): Likewise.
24864 (bootcheck-ntldr): Likewise.
24865 (CLEANFILES): Add new targets.
24866 (BOOTCHECKS): New variable.
24867 (.PHONY): Add bootchecks.
24868 (SUCCESSFUL_BOOT_STRING): New variable.
24869 (BOOTCHECK_TIMEOUT): Likewise.
24870 (bootcheck): New target
24871 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24872 * configure.ac: Correct efiemu excuse.
24873 * docs/grub.texi (Supported kernels): New chapter.
24874 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24875 include/grub/mm_private.h. Simplify inclusion of
24876 include/grub/boot.h, include/grub/loader.h
24877 and include/grub/msdos_partition.h
24878 (KERNEL_HEADER_FILES) [i386_coreboot]:
24879 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24880 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24881 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24882 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24883 include/grub/machine/loader.h.
24884 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24885 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24887 (pci.mod): Enable on i386-multiboot.
24888 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24889 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24891 (relocator.mod): Rewritten.
24892 (aout.mod): Enable on all x86.
24893 (bsd.mod): Likewise.
24894 (ntldr.mod): New module.
24895 (linux.mod): Use loader/i386/linux.c on all x86.
24896 (xnu.mod): Enable on all x86.
24897 (vga_text.mod): disable on EFI and QEMU.
24898 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24899 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24900 * grub-core/efiemu/loadcore.c: Likewise.
24901 * grub-core/efiemu/main.c: Likewise.
24902 (grub_efiemu_exit_boot_services): Removed.
24903 (grub_efiemu_finish_boot_services): Likewise.
24904 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24906 * grub-core/efiemu/i386/nocfgtables.c: New file.
24907 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24908 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24909 (grub_efi_finish_boot_services): Moved from here ...
24910 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24911 Fille finish memory map and related data.
24912 (finish_mmap_buf): New variable.
24913 (grub_efi_uintn_t finish_mmap_size): Likewise.
24914 (grub_efi_uintn_t finish_key): Likewise.
24915 (grub_efi_uintn_t finish_desc_size): Likewise.
24916 (grub_efi_uint32_t finish_desc_version): Likewise.
24917 (grub_efi_is_finished): Likewise.
24918 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24920 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24921 (grub_elf64_phdr_iterate): Likewise.
24922 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24923 (grub_os_area_size): Likewise.
24924 (grub_machine_init): Don't reserve os area.
24925 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24926 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24927 * grub-core/kern/i386/loader.S: Removed.
24928 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24929 (grub_os_area_size): Likewise.
24930 (grub_machine_init): Don't reserve os area.
24931 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24932 Don't call grub_dl_unload_all.
24933 Don't include loader.S.
24934 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24935 Declare the memory after _end as available.
24936 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24937 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24938 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24939 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24940 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24941 * include/grub/mm_private.h (grub_mm_header): ... here.
24942 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24943 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24944 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24945 (grub_mm_region): ..here. Removed addr. Added pre_size.
24947 * grub-core/kern/mm.c (base): Renamed to ...
24948 (grub_mm_base): ... this. Made global.
24949 (grub_real_malloc): Alloc from end of region.
24950 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24951 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24952 * grub-core/kern/powerpc/cache_flush.S: ... here.
24953 * grub-core/lib/efi/relocator.c: New file.
24954 * grub-core/lib/i386/relocator.c: Rewritten.
24955 * grub-core/lib/i386/relocator16.S: New file.
24956 * grub-core/lib/i386/relocator32.S: Likewise.
24957 * grub-core/lib/i386/relocator64.S: Likewise.
24958 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24959 * grub-core/lib/i386/relocator_common.S: New file.
24960 * grub-core/lib/ieee1275/relocator.c: Likewise.
24961 * grub-core/lib/mips/relocator.c: Rewritten.
24962 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24963 stylistic adjustments.
24964 * grub-core/lib/powerpc/relocator.c: New file.
24965 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24966 * grub-core/lib/relocator.c: Rewritten.
24967 * grub-core/lib/x86_64/relocator_asm.S: New file.
24968 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24969 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24970 (bsd_tag): New struct.
24971 (tags): New variable.
24972 (tags_last): Likewise.
24973 (netbsd_module): New struct.
24974 (netbsd_mods): New variable.
24975 (netbsd_mods_last): Likewise.
24976 (openbsd_opts): New parameter "serial".
24977 (OPENBSD_SERIAL_ARG): New definition.
24978 (netbsd_opts): New parameter "serial".
24979 (NETBSD_SERIAL_ARG): New definition.
24980 (grub_freebsd_add_meta): Reorganised into ...
24981 (grub_bsd_add_meta): ...this. All users updated.
24982 (grub_freebsd_add_mmap): Reorganised into ...
24983 (generate_e820_mmap): ...this...
24984 (grub_bsd_add_mmap): ...and this. All users updated.
24985 (grub_freebsd_list_modules): Use tags.
24986 (grub_netbsd_add_meta_module): New function.
24987 (grub_netbsd_list_modules): Likewise.
24988 (grub_freebsd_boot): Use relocator and finish EFI.
24989 (grub_openbsd_boot): Likewise.
24990 (grub_netbsd_setup_video): New function.
24991 (grub_netbsd_add_modules): Likewise.
24992 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
24994 (grub_bsd_unload): Unload tags.
24995 (grub_bsd_load_aout): Use relocator.
24996 (grub_bsd_elf32_size_hook): New function.
24997 (grub_bsd_elf32_hook): Use relocator.
24998 (grub_bsd_elf64_size_hook): New function.
24999 (grub_bsd_elf64_hook): Use relocator.
25000 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25001 (grub_bsd_load): Zero-out openbsd_ramdisk.
25002 (grub_bsd_load): Use relocator.
25003 (grub_cmd_openbsd): Support serial.
25004 (grub_cmd_netbsd): Support modules.
25005 (grub_cmd_freebsd_module): Use relocator.
25006 (grub_netbsd_module_load): New function.
25007 (grub_cmd_netbsd_module): Likewise.
25008 (grub_cmd_openbsd_ramdisk): Likewise.
25009 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25011 (GRUB_MOD_FINI): Unregister new commands.
25012 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25013 (grub_freebsd_load_elfmodule_obj): Use relocator.
25014 (grub_freebsd_load_elfmodule): Likewise.
25015 (grub_freebsd_load_elf_meta): Likewise.
25016 (grub_netbsd_load_elf_meta): New function.
25017 (grub_openbsd_find_ramdisk): Likewise.
25018 * grub-core/loader/i386/bsd_helper.S: Removed.
25019 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25020 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25021 * grub-core/loader/i386/efi/linux.c: Likewise.
25022 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25023 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25024 (DEFAULT_VIDEO_MODE): Likewise.
25025 (real_mode_target): New variable.
25026 (prot_mode_target): Likewise.
25027 (initrd_mem_target): Likewise.
25028 (relocator): Likewise.
25029 (efi_mmap_buf): Likewise.
25030 (efi_mmap_size): Likewise.
25031 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25032 (free_pages): Use relocator.
25033 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25034 (grub_linux_setup_video): Return error.
25035 (grub_linux_trampoline_start): Removed.
25036 (grub_linux_trampoline_end): Likewise.
25037 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25038 andd video parameters depending on firmware.
25039 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25040 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25041 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25042 (grub_cmd_initrd): Use relocator.
25043 * grub-core/loader/i386/linux_trampoline.S: Removed.
25044 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25045 (elf_sec_entsize): Likewise.
25046 (elf_sec_shstrndx): Likewise.
25047 (elf_sections): Likewise.
25048 (grub_multiboot_load): Use relocator.
25049 (grub_multiboot_get_mbi_size): Account for sections.
25050 (grub_multiboot_make_mbi): Use relocator and support sections.
25051 (grub_multiboot_add_elfsyms): New function.
25052 (grub_multiboot_free_mbi): Free sections.
25053 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25054 (grub_linux_real_target): Likewise.
25055 (grub_linux_real_chunk): Likewise.
25056 (grub_linux16_prot_size): Likewise.
25057 (grub_linux16_boot): Use relocator.
25058 (grub_linux_unload): Unload relocator.
25059 (grub_cmd_linux): Use relocator.
25060 (grub_cmd_initrd): Likewise.
25061 * grub-core/loader/i386/pc/ntldr.c: New file.
25062 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25063 Don't try to guess CPU frequency.
25064 (grub_xnu_set_video): Stretch bitmap.
25065 (grub_xnu_boot): Use relocator.
25066 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25067 (grub_linux_unload): Free relocator.
25068 (grub_linux_load32): Use relocator.
25069 (grub_linux_load64): Likewise.
25070 (grub_cmd_initrd): Likewise.
25071 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25072 (grub_multiboot_unload): Unload relocator.
25073 (grub_cmd_multiboot): Use relocator.
25074 (grub_cmd_module): Likewise.
25075 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25076 Use relocator and support sections.
25077 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25078 (elf_sec_entsize): Likewise.
25079 (elf_sec_shstrndx): Likewise.
25080 (elf_sections): Likewise.
25081 (grub_multiboot_load): Use relocator.
25082 (grub_multiboot_get_mbi_size): Account for sections.
25083 (grub_multiboot_make_mbi): Use relocator and support sections.
25084 (grub_multiboot_add_elfsyms): New function.
25085 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25086 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25087 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25088 Prototype changed. All users updated.
25089 (grub_xnu_align_heap): Simplified.
25090 (grub_xnu_writetree_toheap): Likewise.
25091 (grub_xnu_unload): Unload relocator.
25092 (grub_cmd_xnu_kernel): Use relocator.
25093 (grub_cmd_xnu_kernel64): Likewise.
25094 (grub_xnu_register_memory): Simplified.
25095 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25096 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25098 (grub_console_checkkey): Likewise.
25099 (grub_console_getkey): Likewise.
25100 (grub_console_getwh): Likewise.
25101 (grub_console_getxy): Likewise.
25102 (grub_console_gotoxy): Likewise.
25103 (grub_console_cls): Likewise.
25104 (grub_console_setcolorstate): Likewise.
25105 (grub_console_setcursor): Likewise.
25106 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25107 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25108 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25109 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25110 * grub-core/tests/boot/kernel-8086.S: Likewise.
25111 * grub-core/tests/boot/kernel-i386.S: Likewise.
25112 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25113 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25114 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25115 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25116 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25117 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25118 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25119 * grub-core/tests/boot/linux.cfg: Likewise.
25120 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25121 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25122 * grub-core/tests/boot/linux16.cfg: Likewise.
25123 * grub-core/tests/boot/multiboot.cfg: Likewise.
25124 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25125 * grub-core/tests/boot/ntldr.cfg: Likewise.
25126 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25127 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25128 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25130 * include/grub/dl.h (grub_dl_unload_all): Removed.
25131 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25132 (grub_efi_finish_boot_services): Change prototype.
25133 (grub_efi_is_finished): New variable.
25134 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25136 (grub_efiemu_finish_boot_services): Removed.
25137 (grub_machine_efiemu_init_tables): New prototype.
25138 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25139 (grub_elf64_phdr_iterate): Likewise.
25140 * include/grub/i386/bsd.h: Include relocator.h.
25141 (freebsd_tag_header): New struct.
25142 (grub_openbsd_bios_mmap): Removed.
25143 (grub_unix_real_boot): Removed.
25144 (grub_freebsd_load_elfmodule32): Changed prototype.
25145 (grub_freebsd_load_elfmodule_obj64): Likewise.
25146 (grub_freebsd_load_elf_meta32): Likewise.
25147 (grub_freebsd_load_elf_meta64): Likewise.
25148 (grub_freebsd_add_meta): Removed.
25149 (grub_netbsd_load_elf_meta32): New prototype.
25150 (grub_netbsd_load_elf_meta64): Likewise.
25151 (grub_bsd_add_meta): Likewise.
25152 (grub_openbsd_ramdisk_descriptor): New struct.
25153 (grub_openbsd_find_ramdisk32): New prototype.
25154 (grub_openbsd_find_ramdisk64): Likewise.
25155 * include/grub/i386/coreboot/loader.h: Removed.
25156 * include/grub/i386/efi/loader.h: Likewise.
25157 * include/grub/i386/ieee1275/loader.h: Likewise.
25158 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25160 * include/grub/i386/loader.h: Removed.
25161 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25163 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25164 (grub_phys_addr_t): New type.
25165 (grub_vtop): New inline function.
25166 (grub_map_memory): Likewise.
25167 (grub_unmap_memory): Likewise.
25168 * include/grub/i386/multiboot/loader.h: Removed.
25169 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25170 (NETBSD_BTINFO_CONSOLE): New definition.
25171 (NETBSD_BTINFO_SYMTAB): Likewise.
25172 (NETBSD_BTINFO_MODULES): Likewise.
25173 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25174 (grub_netbsd_bootinfo): New struct.
25175 (grub_netbsd_btinfo_common): Use explicit bitsize.
25176 (grub_netbsd_btinfo_mmap_entry): Removed.
25177 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25178 (grub_netbsd_btinfo_bootdisk): New struct.
25179 (grub_netbsd_btinfo_symtab): Likewise.
25180 (grub_netbsd_btinfo_serial): Likewise.
25181 (grub_netbsd_btinfo_modules): Likewise.
25182 (grub_netbsd_btinfo_framebuf): Likewise.
25183 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25184 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25186 (grub_openbsd_bootargs): Use explicit bitsize.
25187 (grub_openbsd_bootarg_console): New struct.
25188 (GRUB_OPENBSD_COM_MAJOR): New definition.
25189 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25190 * include/grub/i386/pc/efiemu.h: Removed.
25191 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25192 * include/grub/i386/qemu/loader.h: Removed.
25193 * include/grub/i386/relocator.h: Rewritten.
25194 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25195 * include/grub/mips/memory.h: New file.
25196 * include/grub/mips/multiboot.h: Rewritten.
25197 * include/grub/mips/relocator.h: Rewritten.
25198 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25199 (grub_vtop): New function.
25200 (grub_map_memory): Likewise.
25201 (grub_unmap_memory): Likewise.
25202 * include/grub/misc.h (ALIGN_DOWN): New definition.
25203 * include/grub/mm.h (grub_mm_check_real): New proto.
25204 (GRUB_MM_CHECK): New definition.
25205 * include/grub/mm_private.h: New file.
25206 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25207 (grub_multiboot_get_mbi_size): Removed.
25208 (grub_multiboot_make_mbi): Change prottype.
25209 (grub_multiboot_set_accepts_video): New proto.
25210 (grub_multiboot_add_elfsyms): Likewise.
25211 (grub_multiboot_payload_eip): New variable.
25212 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25214 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25216 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25217 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25218 * include/grub/powerpc/ieee1275/loader.h: Removed.
25219 * include/grub/powerpc/memory.h: New file.
25220 * include/grub/powerpc/relocator.h: Likewise.
25221 * include/grub/relocator.h: Likewise.
25222 * include/grub/relocator_private.h: Likewise.
25223 * include/grub/sparc64/ieee1275/loader.h: Removed.
25224 * include/grub/x86_64/memory.h: New file.
25225 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25226 (grub_xnu_heap_malloc): Likewise.
25227 (grub_xnu_heap_real_start): Removed.
25228 (grub_xnu_heap_start): Likewise.
25229 (grub_xnu_relocator): New variable.
25230 (grub_xnu_heap_target_start): Likewise.
25231 * tests/util/grub-shell.in: Support non-pc.
25232 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25234 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25236 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25238 (grub_bidi_logical_to_visual): Check that malloc succeded.
25239 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25241 (grub_xputs_normal): Likewise.
25243 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25245 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25248 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25250 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25252 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25254 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25256 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25258 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25261 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25263 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25265 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25267 * grub-core/normal/term.c (print_more): Fix a memory leak.
25268 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25269 (grub_xputs_normal): Likewise.
25271 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25273 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25274 the begining of the string
25276 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25278 * grub-core/script/script.c (grub_script_parse): Free parsed on
25281 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25283 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25286 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25288 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25291 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25293 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25294 (scroll_up): Fix a memory leak.
25296 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25298 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25301 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25303 Handle USB pendrives exposed as floppies.
25305 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25307 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25308 Check for partitions on all devices.
25310 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25312 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25313 (readkey): Likewise.
25315 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25317 Multiple variable names support to "export" command.
25319 * normal/context.c (grub_cmd_export): "export" command supports
25320 multiple variable names.
25322 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25324 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25325 --target=drive output to Mach device name.
25327 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25329 New Automake based build system for GRUB.
25331 * ABOUT-NLS: New file.
25332 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25333 in Makefile.util.def file.
25334 * Makefile.util.def: New file. Autogen build definitions file for
25336 * conf/Makefile.common: New file. Common variables for GRUB host
25337 utils and target modules.
25338 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25339 * docs/Makefile.am: New file. Automake file for docs.
25340 * gentpl.py: New file. Python script to generate Autogen
25342 * grub-core/Makefile.am: New file. GRUB target modules' rules
25343 that doesn't fit in Makefile.core.def file.
25344 * grub-core/Makefile.core.def: New file. Autogen build
25345 definitions file for GRUB target modules.
25346 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25347 specific setjmp.S file.
25348 * po/Makefile.am: New file.
25350 * .bzrignore: New ignores.
25351 * INSTALL: New requirements, without Ruby.
25352 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25353 * autogen.sh: Updated to invoke autogen as necessary.
25354 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25355 and defines for Automake conditionals.
25356 * geninit.sh: Refactoring.
25358 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25360 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25363 * include/grub/test.h: Fix functional test modules' naming.
25364 * grub-core/tests/example_functional_test.c: Fix test module name.
25366 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25367 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25368 * util/grub-editenv.c: Likewise.
25369 * util/grub-fstest.c: Likewise.
25370 * util/grub-mkdevicemap.c: Likewise.
25371 * util/grub-mkfont.c: Likewise.
25372 * util/grub-mkimage.c: Likewise.
25373 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25374 * util/grub-probe.c: Likewise.
25375 * util/grub-script-check.c: Likewise.
25376 * util/i386/pc/grub-setup.c: Likewise.
25377 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25379 * tests/util/grub-shell.in: Fix override directory path.
25380 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25381 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25383 * util/lvm.c: Update #includes.
25384 * util/raid.c: Likewise.
25385 * util/resolve.c: Likewise.
25386 * grub-core/bus/emu/pci.c: Likewise.
25387 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25388 * grub-core/lib/posix_wrap/string.h: Likewise.
25389 * grub-core/kern/emu/main.c: Likewise.
25391 * grub-core/gensymlist.sh: New file. Script for generating kernel
25393 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25395 * grub-core/gentrigtables.c: Fix unused variable warnings.
25397 * Makefile.in: Removed.
25398 * conf/any-emu.rmk: Removed.
25399 * conf/common.rmk: Removed.
25400 * conf/i386-coreboot.rmk: Removed.
25401 * conf/i386-efi.rmk: Removed.
25402 * conf/i386-ieee1275.rmk: Removed.
25403 * conf/i386-multiboot.rmk: Removed.
25404 * conf/i386-pc.rmk: Removed.
25405 * conf/i386-qemu.rmk: Removed.
25406 * conf/i386.rmk: Removed.
25407 * conf/mips-yeeloong.rmk: Removed.
25408 * conf/mips.rmk: Removed.
25409 * conf/powerpc-ieee1275.rmk: Removed.
25410 * conf/sparc64-ieee1275.rmk: Removed.
25411 * conf/tests.rmk: Removed.
25412 * conf/x86-efi.rmk: Removed.
25413 * conf/x86_64-efi.rmk: Removed.
25414 * gendistlist.sh: Removed.
25415 * geninitheader.sh: Removed.
25416 * genkernsyms.sh.in: Removed.
25417 * genmk.rb: Removed.
25418 * gensymlist.sh.in: Removed.
25419 * mkinstalldirs: Removed.
25421 * grub-core/boot: ... to here.
25423 * grub-core/bus: ... to here.
25424 * commands: Moved ...
25425 * grub-core/commands: ... to here.
25427 * grub-core/disk: ... to here.
25428 * efiemu: Moved ...
25429 * grub-core/efiemu: ... to here.
25431 * grub-core/font: ... to here.
25433 * grub-core/fs: ... to here.
25434 * gencmdlist.sh: Moved ...
25435 * grub-core/gencmdlist.sh: ... to here.
25436 * genemuinit.sh: Moved ...
25437 * grub-core/genemuinit.sh: ... to here.
25438 * genemuinitheader.sh: Moved ...
25439 * grub-core/genemuinitheader.sh: ... to here.
25440 * genfslist.sh: Moved ...
25441 * grub-core/genfslist.sh: ... to here.
25442 * genhandlerlist.sh: Moved ...
25443 * grub-core/genhandlerlist.sh: ... to here.
25444 * genmoddep.awk: Moved ...
25445 * grub-core/genmoddep.awk: ... to here.
25446 * genmodsrc.sh: Moved ...
25447 * grub-core/genmodsrc.sh: ... to here.
25448 * genpartmaplist.sh: Moved ...
25449 * grub-core/genpartmaplist.sh: ... to here.
25450 * genparttoollist.sh: Moved ...
25451 * grub-core/genparttoollist.sh: ... to here.
25452 * genterminallist.sh: Moved ...
25453 * grub-core/genterminallist.sh: ... to here.
25454 * gentrigtables.c: Moved ...
25455 * grub-core/gentrigtables.c: ... to here.
25456 * genvideolist.sh: Moved ...
25457 * grub-core/genvideolist.sh: ... to here.
25458 * gettext: Moved ...
25459 * grub-core/gettext: ... to here.
25460 * gfxmenu: Moved ...
25461 * grub-core/gfxmenu: ... to here.
25462 * gnulib: Moved ...
25463 * grub-core/gnulib: ... to here.
25465 * grub-core/hello: ... to here.
25467 * grub-core/hook: ... to here.
25469 * grub-core/io: ... to here.
25471 * grub-core/kern: ... to here.
25473 * grub-core/lib: ... to here.
25474 * loader: Moved ...
25475 * grub-core/loader: ... to here.
25477 * grub-core/mmap: ... to here.
25478 * normal: Moved ...
25479 * grub-core/normal: ... to here.
25480 * partmap: Moved ...
25481 * grub-core/partmap: ... to here.
25482 * parttool: Moved ...
25483 * grub-core/parttool: ... to here.
25484 * script: Moved ...
25485 * grub-core/script: ... to here.
25487 * grub-core/term: ... to here
25488 * tests/example_functional_test.c: Moved ...
25489 * grub-core/tests/example_functional_test.c: ... to here.
25490 * tests/lib/functional_test.c: Moved ...
25491 * grub-core/tests/lib/functional_test.c: ... to here.
25492 * tests/lib/test.c: Moved ...
25493 * grub-core/tests/lib/test.c: ... to here.
25495 * grub-core/video: ... to here.
25497 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25499 Replace --enable-grub-emu-modules with grub-emu-lite.
25501 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25504 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25505 * kern/emu/full.c: New file. For grub-emu specific initialization.
25506 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25507 * kern/emu/main.c: Call initialization function grub_emu_init.
25509 * Makefile.in: Include grub-emu-lite in install.
25510 * commands/parttool.c: Use grub_no_autoload to differentiate
25511 between grub-emu and grub-emu-lite.
25512 * include/grub/misc.h: New variable grub_no_autoload.
25514 * conf/any-emu.rmk: New rules for grub-emu-lite.
25515 * configure.ac: Remove --enable-grub-emu-modules.
25516 * genmk.rb: Cleanup unnecessary rules.
25517 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25519 * normal/main.c: Don't load list files on grub-emu-lite.
25520 * util/misc.c (grub_arch_sync_caches): Removed.
25522 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25524 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25525 grub-mkimage rather than grub-mkelfimage.
25526 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25528 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25530 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25531 a key after CapsLock or NumLock. It's just a qemu bug.
25533 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25535 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25536 needed by libusb wrapper.
25538 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25540 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25542 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25544 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25545 --nounzip is passed.
25547 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25549 USB hotunplugging and USB serial support.
25551 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25552 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25553 (grub_uhci_transfer): Respect timeout and set *actual.
25554 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25555 non-standard length.
25556 (grub_usb_device_attach): Autoload modules.
25557 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25558 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25559 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25561 (grub_usb_add_hub): Fill nports and children.
25562 (attach_root_port): Receive hub instead of controller.
25563 All users updated. Fill hub->devices.
25564 (grub_usb_root_hub): Allocate hub->devices.
25565 (detach_device): New function.
25566 (poll_nonroot_hub): Fill children and detach devices.
25567 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25568 actual arguments. All users updated.
25569 (grub_usb_bulk_read_extended): New function.
25570 * bus/usb/serial/common.c: New file.
25571 * bus/usb/serial/ftdi.c: Likewise.
25572 * bus/usb/serial/pl2303.c: Likewise.
25573 * commands/terminal.c (handle_command): Support wildcard.
25574 * commands/usbtest.c: Output "Unknown" instead of empty string.
25575 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25576 (usbserial_common_mod_SOURCES): New variable.
25577 (usbserial_common_mod_CFLAGS): Likewise.
25578 (usbserial_common_mod_LDFLAGS): Likewise.
25579 (pkglib_MODULES): Add usbserial_pl2303.mod.
25580 (usbserial_pl2303_mod_SOURCES): New variable.
25581 (usbserial_pl2303_mod_CFLAGS): Likewise.
25582 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25583 (pkglib_MODULES): Add usbserial_ftdi.mod.
25584 (usbserial_ftdi_mod_SOURCES): New variable.
25585 (usbserial_ftdi_mod_CFLAGS): Likewise.
25586 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25587 (pkglib_MODULES): Add serial.mod.
25588 (serial_mod_SOURCES): New variable.
25589 (serial_mod_CFLAGS): Likewise.
25590 (serial_mod_LDFLAGS): Likewise.
25591 * conf/i386-pc.rmk: Likewise.
25592 * conf/mips-yeeloong.rmk: Likewise.
25593 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25594 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25595 * disk/usbms.c (first_available_slot): New variable.
25596 (grub_usbms_attach): Don't reuse free slots due to potential cache
25598 * include/grub/serial.h: Moved to ..
25599 * include/grub/ns8250.h: ...this.
25600 * include/grub/serial.h: New file.
25601 * include/grub/term.h (grub_term_poll_usb): New variable.
25602 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25603 readkey. All users updated.
25604 (grub_terminfo_output_state): Pass term to put.
25605 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25606 (grub_usb_controller_dev): Add timeout and actual arguments to
25607 transfer. All users updated.
25608 (grub_usb_interface): New field detach_data.
25609 (grub_usb_device): New fields children and nports.
25610 (grub_usb_ep_type_t): New type.
25611 (grub_usb_get_ep_type): New function.
25612 (grub_usb_bulk_read_extended): Likewise.
25613 * include/grub/usbdesc.h (grub_usb_desc): New type.
25614 * include/grub/usbserial.h: New file.
25615 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25616 * kern/term.c (grub_term_poll_usb): New variable.
25617 (grub_getkey): Call grub_term_poll_usb if set.
25618 (grub_checkkey): Likewise.
25619 (grub_getkeystatus): Likewise.
25620 * term/serial.c: Moved controller-specific parts to ...
25621 * term/ns8250.c: ... here.
25622 * term/serial.c: Mostly rewritten.
25623 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25626 2010-08-20 Robert Millan <rmh@gnu.org>
25628 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25629 a separate module and maybe other interesting combinations.
25631 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25632 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25633 (kfreebsd_entry): Add generic filesystem module load routine.
25634 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25636 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25638 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25639 "numcenter" (I misunderstood the purpose of this entry).
25640 * docs/grub.texi (sendkey): Likewise.
25642 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25644 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25645 status flag options; simply omitting the option is equivalent and
25646 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25647 (keysym_table): Rename "num5numlock" to "numlock".
25648 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25649 can uniformly say that only the last of multiple `sendkey'
25650 invocations has any effect.
25651 * docs/grub.texi (sendkey): New section.
25653 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25655 * commands/i386/pc/sendkey.c (options): Fix three typos.
25657 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25659 Implement sendkey support.
25661 * commands/i386/pc/sendkey.c: New file.
25662 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25663 (sendkey_mod_SOURCES): New variable.
25664 (sendkey_mod_CFLAGS): Likewise.
25665 (sendkey_mod_LDFLAGS): Likewise.
25667 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25669 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25670 fix warnings from Autoconf.
25672 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25674 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25675 to avoid false positives with some assemblers that output things
25676 like "someprefix_func" as part of their output.
25678 2010-08-15 Robert Millan <rmh@gnu.org>
25680 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25682 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25683 grub_get_libzfs_handle() errors.
25685 2010-08-14 Robert Millan <rmh@gnu.org>
25687 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25688 filesystem is not ZFS.
25690 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25692 Fix for misspelled color names defaulting to black/black (bug
25693 reported by Doug Nazar)
25695 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25696 status to prototype.
25697 * normal/color.c (grub_parse_color_name_pair): Return failure
25699 (grub_env_write_color_normal): Ignore bad color names.
25700 (grub_env_write_color_highlight): Likewise.
25701 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25703 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25705 "shift" command support to GRUB script.
25707 * include/grub/script_sh.h (grub_script_shift): New prototype.
25708 * script/execute.c (grub_script_shift): New function.
25709 * script/main.c (grub_script_init): Register shift command.
25710 (grub_script_fini): Unregister shift command.
25711 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25713 * tests/grub_script_shift.in: New testcase.
25714 * conf/tests.rmk: Rules for new testcase.
25716 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25718 "continue" command support to GRUB script.
25720 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25721 (grub_script_break): Continue support.
25722 * script/main.c (grub_script_init): Register continue command.
25723 (grub_script_fini): Unregister continue command.
25725 * tests/grub_script_continue.in: New testcase.
25726 * conf/tests.rmk: Rules for new testcase.
25728 2010-08-12 BVK Chaitanya <bvk@dbook>
25730 "break" command support to GRUB script.
25732 * conf/common.rmk: Rule updates to grub-script-check.
25733 * include/grub/misc.h (grub_min): New function.
25734 * include/grub/script_sh.h (grub_script_init): New prototype.
25735 (grub_script_fini): New prototype.
25736 (grub_script_break): New prototype.
25737 * script/main.c (grub_script_init): New function.
25738 (grub_script_fini): New function.
25739 * script/execute.c (grub_script_break): New function.
25740 * normal/main.c: Calls to grub_script_{init,fini}.
25741 * util/grub-script-check.c (grub_script_break): New function.
25743 * tests/grub_script_break.in: New testcase.
25744 * conf/tests.rmk: Rules for new test case.
25746 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25748 Function parameters support to GRUB script.
25750 * script/yylex.l (VARIABLE): Regular expression update.
25751 * script/function.c (grub_script_function_call): Moved ...
25752 * script/execute.c (grub_script_function_call): ... to here.
25753 (grub_script_execute_arglist_to_argv): Removed.
25754 (grub_script_arglist_to_argv): New function.
25755 * script/argv.c: New file.
25756 (grub_script_argv_free): New function.
25757 (grub_script_argv_next): Likewise.
25758 (grub_script_argv_append): Likewise.
25759 (grub_script_argv_split_append): Likewise.
25760 * include/grub/script_sh.h (grub_script_argv): New struct.
25761 (grub_script_argv_free): New function.
25762 (grub_script_argv_next): Likewise.
25763 (grub_script_argv_append): Likewise.
25764 (grub_script_argv_split_append): Likewise.
25766 * conf/common.rmk (normal.mod): New source script/argv.c.
25768 * tests/grub_script_echo1.in: More tests.
25769 * tests/grub_script_vars1.in: Likewise.
25770 * tests/grub_script_functions.in: New test case.
25771 * conf/tests.rmk: Rules for new testcase.
25773 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25775 Remove grub_script_cmdblock struct.
25777 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25778 * script/parser.y: Likewise.
25779 * script/execute.c: Rename cmdblock suffix to cmdlist.
25780 * script/script.c: Likewise.
25781 * util/grub-script-check.c: Likewise.
25783 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25785 * .bzrignore: add grub-macho2img
25787 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25789 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25791 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25793 Remove the dump of sm712 initialisation sequence.
25795 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25796 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25797 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25798 (GRUB_VGA_CR_*): Added many registers.
25799 (GRUB_VGA_SR_*): Likewise.
25800 (GRUB_VGA_GR_*): Likewise.
25801 (grub_vga_write_arx): New function.
25802 (grub_video_hw_config): New struct.
25803 (grub_vga_set_geometry): New function.
25804 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25805 GRUB_PCI_CLASS_SUBCLASS_VGA.
25806 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25807 * video/sm712.c (grub_sm712_write_reg): New function
25808 (grub_sm712_read_reg): Likewise.
25809 (grub_sm712_sr_write): Likewise.
25810 (grub_sm712_gr_write): Likewise.
25811 (grub_sm712_cr_write): Likewise.
25812 (grub_sm712_write_arx): Likewise.
25813 (grub_sm712_cr_shadow_write): Likewise.
25814 (grub_sm712_write_dda_lookup): Likewise.
25815 (grub_video_sm712_setup): Initialise the video rather then
25816 blindly replay the dump.
25817 (main) [TEST]: Add a routine to be able to compile as standalone for
25819 * video/sm712_init.c (sm712_init): Removed.
25820 (sm712_sr_seq1): New array.
25821 (sm712_sr_seq2): Likewise.
25823 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25825 * include/grub/vga.h: Add missing grub/pci.h include.
25827 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25829 * util/grub-macho2img.c (main): fix typo
25831 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25833 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25834 (grub_vga_gr_read): Likewise.
25835 (grub_vga_cr_write): Likewise.
25836 (grub_vga_cr_read): Likewise.
25837 (grub_vga_sr_write): Likewise.
25838 (grub_vga_sr_read): Likewise.
25839 (grub_vga_palette_read): Likewise.
25840 (grub_vga_palette_write): Likewise.
25841 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25842 (grub_sm712_sr_read): New function.
25843 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25844 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25846 2010-08-09 Robert Millan <rmh@gnu.org>
25848 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25849 out unused variables on non-ZFS build.
25851 2010-08-08 Robert Millan <rmh@gnu.org>
25853 Fix path generation for sub-filesystems in ZFS.
25855 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25858 2010-08-08 Robert Millan <rmh@gnu.org>
25860 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25862 2010-08-08 Robert Millan <rmh@gnu.org>
25864 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25865 exist, issue a proper error message (rely on `ls' for translated
25868 2010-08-08 Robert Millan <rmh@gnu.org>
25870 Fix grub-probe invocation.
25872 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25874 2010-08-04 Robert Millan <rmh@gnu.org>
25876 * configure.ac: Remove checks for getfsstat() and getmntany().
25877 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25878 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25879 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25880 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25881 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25883 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25884 via find_mount_point_from_dir() and getfsstat() / getmntany().
25886 2010-08-04 Robert Millan <rmh@gnu.org>
25888 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25889 (grub_find_zpool_from_mount_point): Merge into ...
25890 (grub_find_zpool_from_dir): ... this.
25891 * kern/emu/misc.c: Likewise.
25894 (grub_make_system_path_relative_to_its_root): Replace
25895 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25896 with grub_find_zpool_from_dir().
25897 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25899 2010-08-04 Robert Millan <rmh@gnu.org>
25901 Support OpenSolaris in ZFS device resolution.
25903 * configure.ac: Check for getmntany().
25904 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25905 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25908 2010-08-03 Robert Millan <rmh@gnu.org>
25910 Fix grub-emu build.
25912 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25913 * include/grub/emu/misc.h: ... here.
25915 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25916 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25918 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25919 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25920 (grub_get_libzfs_handle): Move to ...
25921 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25922 (grub_get_libzfs_handle): ... here.
25924 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25926 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25927 as command name case.
25929 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25931 * disk/raid.c (insert_array): Select unique numbers for named arrays
25932 as well, for use as keys in the disk cache.
25934 2010-08-01 Robert Millan <rmh@gnu.org>
25936 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25937 kFreeBSD device name, except on ZFS where the filesystem label is
25939 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25940 `/boot/zfs/zpool.cache'.
25941 Set mountfrom kernel variable using ${kfreebsd_device}.
25943 2010-08-01 Robert Millan <rmh@gnu.org>
25945 Make it even harder to use uninitialized `libzfs_handle' (and
25946 make the interface a bit simpler).
25948 * include/grub/util/misc.h (grub_util_init_libzfs)
25949 (libzfs_handle): Remove.
25950 (grub_get_libzfs_handle): New prototype.
25952 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25954 (grub_util_init_libzfs): Remove.
25955 (grub_get_libzfs_handle): New function.
25957 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25958 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25959 accessing `libzfs_handle' directly.
25961 2010-08-01 Robert Millan <rmh@gnu.org>
25963 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25964 (grub_find_zpool_from_mount_point): New function prototypes.
25966 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25967 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25969 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25970 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25971 `static' attribute.
25973 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25974 finding zpool from mount point into ...
25975 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25977 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25978 requested path is part of a ZFS pool, use
25979 grub_find_zpool_from_mount_point() to detect its filesystem name,
25980 and generate a path with `/fsname@path' syntax.
25982 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25984 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
25985 (void) rather than () so that this is a proper prototype.
25987 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25989 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
25991 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25993 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
25994 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
25996 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25998 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26000 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26002 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26004 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26006 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26007 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26008 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26009 disable gfxpayload.
26010 (Shell-like scripting): Add real content.
26011 (Serial terminal): Suggest `terminal_input serial; terminal_output
26012 serial' rather than putting the two commands on separate lines,
26013 since console input will be inoperative after the first command.
26014 (menuentry): Document --class, --users, and --hotkey options.
26015 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26016 Vladimir Serbinenko).
26018 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26019 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26021 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26023 2010-08-01 Robert Millan <rmh@gnu.org>
26025 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26026 (grub_find_zpool_from_mount_point): New function prototypes.
26028 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26029 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26031 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26032 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26033 `static' attribute.
26035 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26036 finding zpool from mount point into ...
26037 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26039 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26040 requested path is part of a ZFS pool, use
26041 grub_find_zpool_from_mount_point() to detect its filesystem name,
26042 and generate a path with `/fsname@path' syntax.
26044 2010-08-01 Robert Millan <rmh@gnu.org>
26046 Prevent accidental use of uninitialized libzfs_handle.
26048 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26049 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26050 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26052 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26054 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26055 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26057 2010-08-01 Robert Millan <rmh@gnu.org>
26059 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26061 2010-07-31 Robert Millan <rmh@gnu.org>
26063 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26065 2010-07-31 Robert Millan <rmh@gnu.org>
26067 * kern/emu/misc.c: Add missing license header.
26069 2010-07-31 Robert Millan <rmh@gnu.org>
26071 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26073 * include/grub/util/libnvpair.h: Include `<config.h>'.
26074 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26075 declaring libnvpair prototypes ourselves.
26076 * include/grub/util/libzfs.h: Include `<config.h>'.
26077 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26078 declaring libzfs prototypes ourselves.
26080 (libzfs_handle): Moved to ...
26081 * include/grub/util/misc.h (libzfs_handle): ... here.
26082 Include `<grub/util/libzfs.h>'.
26084 2010-07-30 Robert Millan <rmh@gnu.org>
26086 * include/grub/emu/misc.h: Add missing license header.
26088 2010-07-30 Robert Millan <rmh@gnu.org>
26090 Enable `grub-probe -t device' resolution on ZFS.
26092 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26093 * include/grub/util/libnvpair.h: New file.
26094 * include/grub/util/libzfs.h: New file.
26096 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26097 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26098 `<grub/util/libnvpair.h>'.
26099 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26101 (find_mount_point_from_dir): New static function.
26102 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26104 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26105 find_root_device_from_libzfs() before ressorting to find_root_device().
26107 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26109 * util/misc.c: Include `<grub/util/libzfs.h>'.
26110 (grub_util_init_libzfs): New function.
26111 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26112 [HAVE_LIBZFS] (fini_libzfs): New static function.
26113 (grub_util_init_libzfs): New function.
26114 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26116 2010-07-30 Robert Millan <rmh@gnu.org>
26118 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26119 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26120 `warn_unused_result' attribute.
26121 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26122 (grub_xasprintf, grub_xvasprintf): Likewise.
26123 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26125 2010-07-29 Robert Millan <rmh@gnu.org>
26127 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26128 (probe): Handle `PRINT_FS_LABEL'.
26129 (main): Handle `-t fs_label'.
26131 2010-07-29 Robert Millan <rmh@gnu.org>
26133 * configure.ac: Remove grub-mkisofs checks.
26135 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26137 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26138 Reported by: Lennart Sorensen.
26140 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26142 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26143 prior to terminal_input/terminal_output separation. It's been over 1.5
26144 years and those versions weren't widely deployed.
26146 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26148 * disk/raid.c (insert_array): Don't count named arrays when looking
26149 for unused array numbers.
26150 Reported and tested by: Michael Guntsche.
26152 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26154 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26155 implementation of this so that grub-emu links again, with a note
26156 that this should support hotplugging in the future.
26158 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26160 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26162 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26164 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26166 (grub_loopback_close): Remove empty function.
26167 (grub_loopback_dev): Remove close method.
26169 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26171 Disable EFI cursor when the EFI console becomes inactive.
26173 * term/efi/console.c (grub_efi_console_init): New function.
26174 (grub_efi_console_fini): New function.
26175 (grub_console_term_output): Register init and fini methods.
26177 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26179 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26182 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26184 * disk/loopback.c (grub_loopback): Replace filename with file.
26185 (delete_loopback): Handle new semantics.
26186 (grub_cmd_loopback): Likewise.
26187 (grub_loopback_iterate): Likewise.
26188 (grub_loopback_close): Likewise.
26190 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26192 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26194 Reported by: Tito Keitel.
26196 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26198 * docs/grub.texi (Naming convention): Document new naming convention.
26200 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26201 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26203 Generate device.map in something closer to the old ordering.
26205 * util/deviceiter.c (struct device): New declaration.
26206 (compare_file_names): Rename to ...
26207 (compare_devices): ... this. Sort by kernel name in preference to
26208 the stable by-id name, but keep the latter as a fallback comparison.
26209 Update header comment.
26210 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26211 of `struct device' rather than of plain file names.
26213 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26215 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26218 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26220 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26222 (setv1table): Likewise.
26224 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26226 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26227 removing the homehost if present.
26228 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26229 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26230 removing the homehost if present.
26231 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26233 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26235 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26236 parameter. Set its pointer target to 0.
26237 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26238 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26239 `data_offset' value from the superblock for 1.x metadata.
26240 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26241 data on the device.
26242 (insert_array): Record the start sector of data on the device.
26243 (grub_raid_register): Pass start_sector parameters to
26244 grub_raid_list->detect and insert_array.
26245 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26247 (struct grub_raid): Add start_sector parameter to `detect'.
26249 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26250 __attribute__ ((packed)), leaving a comment.
26251 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26252 (grub_mdraid_detect_09): ... here and ...
26253 (grub_mdraid_detect_1x): ... here.
26255 2010-07-20 Peter Henn <peter.henn@web.de>
26257 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26258 chunk size and disk size, which are already given as sector counts
26259 as distinct from the 0.90 units. Fetch the correct device number
26260 from the role table instead of using the table index.
26262 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26264 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26265 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26266 (WriteMostly1): New macro.
26267 Set array->name to NULL for metadata format 0.90. Add support for
26268 metadata 1.x. Fix some comments.
26269 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26271 * util/getroot.c (grub_util_get_grub_dev): Add support for
26272 /dev/md/name style devices.
26274 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26276 * .bzrignore: Ignore 20_linux_xen.
26278 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26280 * util/import_unicode.py: Remove unnecessary imports.
26282 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26284 Hotplugging and USB hub support.
26286 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26287 (grub_ohci): Likewise.
26288 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26289 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26290 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26291 (GRUB_OHCI_CTRL_EDS): Likewise.
26292 (GRUB_OHCI_BULK_EDS): Likewise.
26293 (GRUB_OHCI_TDS): Likewise.
26294 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26295 (grub_ohci_ed_phys2virt): New function.
26296 (grub_ohci_virt_to_phys): Likewise.
26297 (grub_ohci_td_phys2virt): Likewise.
26298 (grub_ohci_td_virt2phys): Likewise.
26299 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26301 (grub_ohci_find_ed): New function.
26302 (grub_ohci_alloc_td): Likewise.
26303 (grub_ohci_free_td): Likewise.
26304 (grub_ohci_free_tds): Likewise.
26305 (grub_ohci_transfer): Use previously allocated memory.
26306 (grub_ohci_portstatus): Reset status changed bit.
26307 (grub_ohci_detect_dev): Supply status changed.
26308 (grub_ohci_fini_hw): Free memory.
26309 (grub_ohci_restore_hw): Reallocate memory.
26310 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26311 Reset status change.
26312 (grub_uhci_detect_dev): Supply status_change.
26313 * bus/usb/usb.c (attach_hooks): New var.
26314 (grub_usb_device_attach): New function.
26315 (grub_usb_register_attach_hook_class): Likewise.
26316 (grub_usb_unregister_attach_hook_class): Likewise.
26317 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26318 (grub_usb_add_hub): Reset connection changed bit.
26319 (attach_root_port): New function.
26320 (grub_usb_root_hub): Likewise.
26321 (poll_nonroot_hub): Likewise.
26322 (grub_usb_poll_devices): Likewise.
26323 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26324 * disk/usbms.c (grub_usbms_open): Use device hooks.
26325 (grub_usbms_iterate) :Poll devices.
26326 (grub_usbms_finddevs): Split into ...
26327 (grub_usbms_attach): ... this ...
26328 (grub_usbms_attach): ... and this.
26329 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26331 (grub_usb_interface): New fields attached and detach_hook.
26332 (grub_usb_attach_hook_class): New type.
26333 (grub_usb_attach_desc): New struct.
26334 (grub_usb_register_attach_hook_class): New function.
26335 (grub_usb_unregister_attach_hook_class): Likewise.
26336 (grub_usb_poll_devices): Likewise.
26337 (grub_usb_device_attach): Likewise.
26338 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26339 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26341 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26343 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26344 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26345 delta determination style. Works with most NetBSD partitions too.
26347 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26349 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26350 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26352 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26354 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26356 2010-07-14 Anton Blanchard <anton@samba.org>
26358 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26361 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26363 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26365 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26367 * kern/partition.c (grub_partition_check_containment): New function to
26368 check that a partition is physically contained in a parent. Since
26369 offsets are relative (and non-negative), this reduces to checking that
26370 the partition ends before its parent.
26371 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26372 (grub_partition_iterate): Likewise.
26373 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26375 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26376 partitions that start before their parent, and add debug printfs.
26378 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26380 * Makefile.in (.SUFFIX): Spell correctly, as ...
26381 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26382 bare module name without `.mod', e.g. `test') tried to invoke a
26385 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26387 * README: Point to the Info manual.
26389 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26391 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26392 2nd superblock position from partition size.
26394 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26396 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26397 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26398 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26401 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26403 Restructure SCSI .id handling.
26404 Reported and tested by: Aleš Nesrsta.
26406 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26407 (grub_atapi_dev): Changed .name to "ata". New field .id.
26408 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26409 (grub_usbms_dev): New field .id.
26410 * disk/scsi.c (grub_scsi_iterate): Generate name.
26411 (grub_scsi_open): Parse name.
26412 * include/grub/scsi.h (grub_make_scsi_id): New function.
26413 (grub_scsi_dev): Change iterate and open to number instead of naming
26414 busses. All users updated.
26415 (grub_scsi): Remove name. Add .bus.
26417 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26419 * commands/help.c (grub_cmd_help): Fix a typo.
26421 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26423 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26424 Reported and tested by: Colin Watson.
26426 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26428 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26431 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26433 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26435 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26437 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26440 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26442 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26443 and disk/raid6_recover.c.
26444 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26445 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26447 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26449 * term/gfxterm.c (repaint_schedulded): Rename to ...
26450 (repaint_scheduled): ... this. Update all callers.
26451 (repaint_was_schedulded): Rename to ...
26452 (repaint_was_scheduled): ... this. Update all callers.
26454 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26456 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26457 which we expect to be handled by upper layers.
26459 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26461 * bus/usb/usbhub.c: #include time.h header.
26463 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26465 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26466 entry_name also for entries without stat blocks (e.g. ".."); fixes
26467 corruption of the first entry in a directory.
26469 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26471 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26472 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26473 doesn't work otherwise.
26475 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26477 * docs/grub.texi (Features): Update list of supported file systems.
26478 (GNU/Linux): Update for GRUB 2.
26479 (Serial terminal): Remove mention of --disable-serial, which was a
26480 GRUB Legacy configure option. Update instructions to use
26481 `terminal_input' and `terminal_output' rather than `terminal'.
26482 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26483 configuration' and `Installing GRUB using grub-install'.
26484 (Menu entry editor): Update for GRUB 2.
26485 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26486 Document new -a, -u, and -v options.
26487 (initrd): New section.
26488 (initrd16): New section.
26489 (linux): New section.
26490 (linux16): New section.
26491 (search): The `var' argument to `--set' is optional.
26492 (GRUB only offers a rescue shell): Go into a little more detail on
26495 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26497 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26499 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26501 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26502 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26504 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26506 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26507 install_prefix, in line with install_dos_part and install_bsd_part.
26508 Add new prefix variable, which is copied to install_prefix after
26509 comparing core.img in memory with the one read from disk in the
26510 no-embedding case, and use that rather than overwriting
26511 install_prefix immediately when installing to a partition.
26512 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26515 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26517 * configure.ac: Avoid == in test command, it's not portable.
26518 * util/grub.d/30_os-prober.in: Likewise.
26520 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26522 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26524 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26526 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26527 multiple (top-level) partmaps.
26529 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26531 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26532 Reported by: Tino Keitel.
26534 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26536 Bidi and diacritics support.
26538 * Makefile.in (widthspec.bin): New target.
26539 (widthspec.h): Likewise.
26540 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26541 * autogen.sh: Generate unidata.c.
26542 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26543 * commands/ls.c (grub_ls_list_devices): Likewise.
26544 (grub_ls_list_files): Likewise.
26545 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26546 (grub_mini_cmd_lsmod): Likewise.
26547 * commands/read.c: Likewise.
26548 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26549 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26550 * lib/arg.c (grub_arg_show_help): Likewise.
26551 * lib/crypto.c (grub_password_get): Likewise.
26552 * normal/auth.c (grub_username_get): Likewise.
26553 * normal/misc.c (grub_normal_print_device_info): Likewise.
26554 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26555 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26556 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26557 (normal/charset.c_DEPENDENCIES): New variable.
26558 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26559 (pkglib_MODULES): Remove charset.mod.
26560 (charset_mod_SOURCES): Removed.
26561 (charset_mod_CFLAGS): Likewise.
26562 (charset_mod_LDFLAGS): Likewise.
26563 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26564 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26566 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26567 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26568 (kernel_img_HEADERS): Add terminfo.h.
26569 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26570 Fill ->font. Reverse ascii bitmaps.
26571 (grub_font_get_xheight): New function.
26572 * font/font.c (grub_font_get_string_width): Moved from here ...
26573 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26574 * font/font.c (grub_font_draw_string): Moved from here ...
26575 * gfxmenu/font.c (grub_font_draw_string): ... here.
26576 * font/font.c (grub_font_dup_glyph): New function.
26577 (grub_font_blit_glyph): Likewise.
26578 (grub_font_blit_glyph_mirror): Likewise.
26579 (blit_comb): Likewise.
26580 (grub_font_construct_dry_run): Likewise.
26581 (grub_font_get_constructed_device_width): Likewise.
26582 (grub_font_construct_glyph): Likewise.
26583 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26584 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26585 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26586 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26587 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26588 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26589 (grub_font_get_xheight): New proto.
26590 (grub_font_get_constructed_device_width): Likewise.
26591 (grub_font_construct_glyph): Likewise.
26592 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26593 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26594 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26595 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26596 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26597 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26598 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26599 (grub_console_getcharwidth): Likewise.
26600 * include/grub/misc.h (grub_xputs): New proto.
26601 (grub_puts): Inlined.
26602 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26603 (grub_normal_get_line_counter): Removed.
26604 (grub_install_newline_hook): Likewise.
26605 (grub_normal_get_char_counter): New proto.
26606 (grub_normal_reset_more): Likewise.
26607 (grub_xputs_normal): Likewise.
26608 * include/grub/powerpc/ieee1275/console.h: Removed.
26609 * include/grub/sparc64/ieee1275/console.h: Likewise.
26610 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26611 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26612 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26613 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26614 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26615 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26616 (grub_term_input): Pass reference to self. All users updated.
26617 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26618 Pass reference to self. New fields normal_color, highlight_color and
26619 data. All users updated.
26620 (grub_putchar): Removed.
26621 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26622 (grub_unicode_estimate_width): New function.
26623 (grub_term_getcharwidth): Add defaults.
26624 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26625 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26626 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26627 (grub_cls): Remove EXPORT_FUNC.
26628 (grub_setcolorstate): Inline.
26629 (grub_newline_hook): Removed.
26630 * include/grub/terminfo.h: Rewritten. All users updated.
26631 * include/grub/unicode.h: New file.
26632 * include/grub/video.h (grub_video_signed_rect): New type.
26633 * kern/emu/console.c (grub_console_highlight_color): Removed.
26634 (grub_console_normal_color): Likewise.
26635 (grub_console_standard_color): Made static.
26636 (grub_ncurses_putchar): Remove mapping.
26637 (grub_ncurses_getcharwidth): Removed.
26638 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26639 (grub_ncurses_setcolor): Removed.
26640 (grub_ncurses_getcolor): Likewise.
26641 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26642 (grub_console_putchar): ... this.
26643 (grub_console_putchar): Handle argument difference.
26644 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26645 console_init_early and console_init_lately.
26646 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26647 * kern/misc.c (grub_puts): Removed.
26648 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26649 (grub_vsnprintf_real): Remove str = NULL support.
26650 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26651 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26652 * kern/term.c (grub_putcode): Renamed to ...
26653 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26654 (grub_putchar): Removed.
26655 (grub_xputs_dumb): New function.
26656 (grub_xputs): New variable.
26657 * lib/charset.c: Move from here ...
26658 * normal/charset.c: ... to here.
26659 (grub_ucs4_to_utf8): New function.
26660 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26661 (join_types): New variable.
26662 (unpack_join): New function.
26663 (bidi_types): New variable.
26664 (unpack_bidi): New function.
26665 (get_bidi_type): Likewise.
26666 (get_join_type): Likewise.
26667 (is_mirrored): Likewise.
26668 (grub_unicode_get_comb_type): Likewise.
26669 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26670 (is_type_after): Likewise.
26671 (grub_unicode_aglomerate_comb): Likewise.
26672 (bidi_line_wrap): Likewise.
26673 (grub_bidi_line_logical_to_visual): Likewise.
26674 (grub_bidi_logical_to_visual): Likewise.
26675 (grub_unicode_mirror_code): Likewise.
26676 (grub_unicode_shape_code): Likewise.
26677 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26678 Don't use grub_putchar.
26679 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26680 (grub_normal_reader_init): Likewise.
26681 (grub_xputs_saved): New variable.
26682 (GRUB_MOD_INIT): Set grub_xputs.
26683 (GRUB_MOD_FINI): Restore grub_xputs.
26684 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26685 (menu_init): Avoid printing gfxmenu error.
26686 (show_menu): Use grub_normal_get_char_counter.
26687 * normal/menu_entry.c (update_screen): Fix out-of-array.
26688 (complete): Avoid NULL dereferencing.
26689 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26690 * normal/menu_text.c (print_spaces): Removed.
26691 (grub_print_ucs4): Likewise.
26692 (grub_print_message_indented): Use grub_print_ucs4.
26693 (print_message): Use grub_putcode.
26694 (print_entry): Hanlde diacritics.
26695 * normal/term.c (term_state): New type.
26696 (grub_more_lines): Removed.
26697 (term_states): New variable.
26698 (grub_normal_line_counter): Renamed to ..
26699 (grub_normal_char_counter): ...this. All users updated.
26700 (grub_normal_get_line_counter): Renamed to ...
26701 (grub_normal_get_char_counter): ... this.
26702 (grub_normal_reset_more): New function.
26703 (process_newline): Removed.
26704 (print_more): New function.
26705 (grub_install_newline_hook): Removed.
26706 (map_code): New function.
26707 (grub_puts_terminal): Use grub_print_ucs4.
26708 (putglyph): New function.
26709 (putcode_real): Likewise.
26710 (grub_putcode): Use putcode_real.
26711 (get_maxwidth): New function.
26712 (get_startwidth): Likewise.
26713 (print_ucs4_terminal): Likewise.
26714 (find_term_state): Likewise.
26715 (put_glyphs_terminal): Likewise.
26716 (print_backlog): Likewise.
26717 (print_ucs4_real): Likewise.
26718 (grub_print_ucs4): Likewise.
26719 (grub_xputs_normal): Likewise.
26720 * term/efi/console.c (grub_console_putchar): Output diacritics.
26721 (grub_console_getcharwidth): Removed.
26722 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26723 * term/gfxterm.c (clear_char): Free chars.
26724 (scroll_up): Avoid leaking memory.
26725 (grub_gfxterm_putchar): Support diacritics.
26726 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26727 * term/i386/pc/console.c (grub_console_term_output): Declare as
26728 GRUB_TERM_CODE_TYPE_VGA.
26729 * term/i386/pc/vga.c (grub_vga_term): Declare as
26730 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26731 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26732 GRUB_TERM_CODE_TYPE_VGA.
26733 * term/i386/vga_common.c (map_char): Removed.
26734 (grub_console_putchar): Likewise.
26735 (grub_console_getcharwidth): Likewise.
26736 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26737 (colors): Reordered to match terminfo.
26738 (grub_ofconsole_normal_color): Removed.
26739 (grub_ofconsole_writeesc): Likewise.
26740 (grub_ofconsole_highlight_color): Likewise.
26741 (grub_ofconsole_getcharwidth): Likewise.
26742 (grub_ofconsole_setcolorstate): Likewise.
26743 (grub_ofconsole_setcolor): Likewise.
26744 (grub_ofconsole_getcolor): Likewise.
26745 (grub_ofconsole_readkey): Renamed to ...
26746 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26748 (grub_ofconsole_checkkey): Removed.
26749 (grub_ofconsole_getkey): Likewise.
26750 (grub_ofconsole_getxy): Likewise.
26751 (grub_ofconsole_gotoxy): Likewise.
26752 (grub_ofconsole_cls): Likewise.
26753 (grub_ofconsole_refresh): Likewise.
26754 (grub_ofconsole_terminfo_input): New struct.
26755 (grub_ofconsole_terminfo_output): Likewise.
26756 (grub_ofconsole_term_input): Use terminfo.
26757 (grub_ofconsole_term_output): Likewise.
26758 (grub_console_init): Split into ...
26759 (grub_console_init_early): ...this and ...
26760 (grub_console_init_lately): ...this. Use terminfo.
26761 (grub_ofconsole_putchar): Renamed to ...
26762 (put): ... this. Remove mapping.
26763 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26764 * term/serial.c: Simplify using terminfo.
26767 (keep_track): Likewise.
26768 (registered): Likewise.
26769 (input_buf): Likewise.
26770 (npending): Likewise.
26771 (serial_translate_key_sequence): Likewise.
26772 (fill_input_buf): Likewise.
26773 (grub_serial_checkkey): Likewise.
26774 (grub_serial_getkey): Likewise.
26775 (grub_serial_getxy): Likewise.
26776 (grub_serial_gotoxy): Likewise.
26777 (grub_serial_putchar): Likewise.
26778 (grub_serial_cls): Likewise.
26779 (grub_serial_setcolorstate): Likewise.
26780 (grub_serial_setcursor): Likewise.
26781 (serial_hw_init): Use serial_hw_fetch.
26782 (grub_serial_terminfo_input): New variable.
26783 (grub_serial_terminfo_output): Likewise.
26784 (grub_serial_term_input): Use terminfo.
26785 (grub_serial_term_output): Likewise.
26786 * term/terminfo.c (putstr): Use put.
26787 (grub_terminfo_all_free): New function
26788 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26789 (grub_terminfo_output_register): New function.
26790 (grub_terminfo_output_unregister): Likewise.
26791 (grub_terminfo_getxy): Likewise.
26792 (grub_terminfo_readkey): Likewise.
26793 (grub_terminfo_checkkey): Likewise.
26794 (grub_terminfo_getkey): Likewise.
26795 (grub_terminfo_input_init): Likewise.
26796 (print_terminfo): Likewise.
26797 (grub_cmd_terminfo): Handle encoding.
26798 (grub_terminfo_gotoxy): Track position.
26799 (grub_terminfo_cls): Likewise.
26800 (grub_terminfo_putchar): Likewise.
26801 (grub_terminfo_setcolorstate): Handle colors
26802 (grub_terminfo_cursor_on): This ...
26803 (grub_terminfo_cursor_off): ... and this merged into ...
26804 (grub_terminfo_setcursor): ... this.
26805 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26806 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26807 * unicode/BidiMirroring.txt: Likewise.
26808 * unicode/UnicodeData.txt: Likewise.
26809 * unicode/COPYING: Likewise.
26810 * util/grub-editenv.c (grub_putchar): Removed.
26811 (grub_xputs_real): New function.
26812 (grub_xputs): New variable.
26813 * util/grub-fstest.c (grub_putchar): Removed.
26814 (grub_xputs_real): New function.
26815 (grub_xputs): New variable.
26816 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26817 (grub_xputs_real): New function.
26818 (grub_xputs): New variable.
26819 * util/grub-probe.c (grub_putchar): Removed.
26820 (grub_xputs_real): New function.
26821 (grub_xputs): New variable.
26822 * util/grub-script-check.c (grub_putchar): Removed.
26823 (grub_xputs_real): New function.
26824 (grub_xputs): New variable.
26825 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26826 (grub_xputs_real): New function.
26827 (grub_xputs): New variable.
26828 * util/import_unicode.py: New file.
26829 * util/grub-mkfont.c (ft_errmsgs): New array.
26830 (grub_glyph_info): Make bitmap a pointer.
26831 (file_formats): New type WIDTH_SPEC.
26832 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26833 (options): Add width-spec.
26835 (add_char): Renamed to ...
26836 (add_glyph): ... this.
26837 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26838 (glyph_replace): New type.
26839 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26840 (add_char): New function.
26841 (add_subst): Likewise.
26842 (process_cursive): Likewise.
26843 (add_font): Handle GSUB.
26844 (write_font_width_spec): New function.
26845 (main): Sort glyphs.
26846 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26847 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26848 * kern/term.c (grub_cls): Moved from here...
26849 * normal/term.c (grub_cls): ... here.
26851 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26853 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26854 suitable for using within the format argument of printf when
26855 converting grub_size_t.
26856 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26857 "x" to convert grub_size_t arguments.
26859 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26861 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26863 (list_get_minimal_size): Take selection box into account.
26865 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26867 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26870 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26872 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26873 devices when iterating over /dev/disk/by-id; they will be handled
26874 later if appropriate, which they aren't always (e.g. LVM).
26876 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26878 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26879 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26881 (grub_halt): Likewise.
26882 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26884 (grub_halt): Don't return, even if all of shut-down, power-off, and
26887 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26889 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26890 arguments, not three.
26892 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26894 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26895 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26896 LVM-on-RAID is handled correctly.
26898 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26900 * docs/grub.texi (Changes from GRUB Legacy): New section.
26901 (Future): Fix typo.
26903 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26905 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26906 grub.d/README accidentally ends up executable for one reason or
26907 another. Ignore it.
26909 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26911 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26912 (gpt_partition_map_iterate): Support non-512B sectors.
26914 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26916 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26917 Tested by: Seth Goldberg.
26919 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26921 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26922 Properly align mbi.
26923 Reported by: Seth Goldberg.
26925 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26927 * util/grub-mkrescue.in: Avoid module duplication.
26929 2010-07-01 Sean Finney <seanius@seanius.net>
26931 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26933 2010-07-01 Sean Finney <seanius@seanius.net>
26935 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26937 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26939 * disk/lvm.c (grub_lvm_checkvalue): New function.
26940 (grub_lvm_check_flag): Likewise.
26942 2010-07-01 Robert Millan <rmh@gnu.org>
26944 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26945 Support 'p' as partition separator on kernel of FreeBSD (used
26947 (grub_util_biosdisk_get_grub_dev): Likewise.
26949 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26951 Yeeloong firmware port.
26953 * boot/mips/yeeloong/fwstart.S: New file.
26954 * bus/cs5536.c (gpiodump): New const.
26955 (set_io_space): New function.
26956 (set_iod): Likewise.
26957 (set_p2d): Likewise.
26958 (grub_cs5536_init_geode): Likewise.
26959 * commands/mips/yeeloong/lsspd.c: New file.
26960 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26961 (serial_mod_SOURCES): New variable.
26962 (serial_mod_CFLAGS): Likewise.
26963 (serial_mod_LDFLAGS): Likewise.
26964 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26965 term/terminfo.c and term/tparm.c.
26966 (pkglib_IMAGES): Add fwstart.img.
26967 (fwstart_img_SOURCES): New variable.
26968 (fwstart_img_CFLAGS): Likewise.
26969 (fwstart_img_ASFLAGS): Likewise.
26970 (fwstart_img_LDFLAGS): Likewise.
26971 (fwstart_img_FORMAT): Likewise.
26972 (pkglib_MODULES): Add lsspd.mod.
26973 (lsspd_mod_SOURCES): New variable.
26974 (lsspd_mod_CFLAGS): Likewise.
26975 (lsspd_mod_LDFLAGS): Likewise.
26976 (pkglib_MODULES): Add halt.mod.
26977 (halt_mod_SOURCES): New variable.
26978 (halt_mod_CFLAGS): Likewise.
26979 (halt_mod_LDFLAGS): Likewise.
26980 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
26981 (serial_mod_SOURCES): Removed.
26982 (serial_mod_CFLAGS): Likewise.
26983 (serial_mod_LDFLAGS): Likewise.
26984 * disk/ata.c (check_device): New function.
26985 (grub_ata_device_initialize): Use check_device.
26986 (grub_ata_iterate): Recheck devices.
26987 (grub_ata_open): Likewise.
26988 (grub_atapi_iterate): Likewise.
26989 (grub_atapi_open): Likewise.
26990 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
26991 (GRUB_ATA_CH1_PORT1): Likewise.
26992 (GRUB_ATA_CH0_PORT2): Likewise.
26993 (GRUB_ATA_CH1_PORT2): Likewise.
26994 * include/grub/mips/loongson.h: New file.
26995 * include/grub/mips/yeeloong/ec.h: Likewise.
26996 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
26997 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
26998 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
26999 * include/grub/misc.h (grub_halt): Declare as noreturn.
27000 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27001 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27002 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27003 (UART_ENABLE_DTRRTS): Likewise.
27004 (UART_ENABLE_MODEM): Removed.
27005 (UART_ENABLE_OUT2): New const.
27006 * include/grub/term.h (grub_term_register_input_active): New function.
27007 (grub_term_register_output_active): Likewise.
27008 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27010 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27011 (init_pci): New function.
27012 (grub_machine_init): Execute platform init when firmware. Init serial.
27013 (grub_halt): Implement.
27014 (grub_exit): Likewise.
27015 (grub_reboot): Likewise.
27016 * term/serial.c (serial_hw_init): Update macros.
27017 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27018 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27019 (image_targets): New target mipsel-yeeloong-flash.
27020 (generate_image): Support IMAGE_YEELOONG_FLASH.
27021 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27022 (grub_video_sm712_setup): Init card.
27023 (grub_video_sm712_set_palette): Removed.
27024 * video/sm712_init.c: New file.
27026 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27028 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27029 PATH when running help2man and then run it on the unadorned
27030 executable names, rather than passing $(builddir)/* paths to
27031 help2man. This avoids the build directory ending up in generated
27034 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27036 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27037 to avoid accidents when debugging with 'sh -x'.
27038 * util/grub-mkrescue.in: Likewise.
27039 * util/grub.d/00_header.in: Likewise.
27040 * util/grub.d/10_hurd.in: Likewise.
27041 * util/grub.d/10_kfreebsd.in: Likewise.
27042 * util/grub.d/10_linux.in: Likewise.
27043 * util/grub.d/10_netbsd.in: Likewise.
27044 * util/grub.d/10_windows.in: Likewise.
27045 * util/grub.d/20_linux_xen.in: Likewise.
27046 * util/grub.d/30_os-prober.in: Likewise.
27047 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27049 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27051 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27052 last character in the buffer.
27053 Reported by: Vladimir Serbinenko.
27055 2010-06-29 Robert Millan <rmh@gnu.org>
27057 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27058 (Command-line and menu entry commands): Document `badram' command.
27060 2010-06-28 Robert Millan <rmh@gnu.org>
27062 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27063 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27064 command using ${GRUB_BADRAM} as parameter.
27066 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27068 * docs/grub.texi (Device map): New section.
27069 (Themes): New section (stub).
27070 * Makefile.in (docs/grub.info): The info documentation now builds
27071 without errors. Make sure it stays that way.
27073 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27075 Use normal parser for menu entries.
27076 Reported by: Thomas Frauendorfer
27078 * include/grub/parser.h (grub_parser_execute): Don't export.
27079 * normal/menu.c (grub_menu_execute_entry_real): New function.
27080 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27082 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27084 * docs/grub.texi (Embedded configuration): New section (replacing
27085 old "Preset Menu" stub).
27086 (Images): New section.
27087 (configfile): Note that any menu entries defined in `file' are shown
27090 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27092 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27094 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27096 * util/grub-install.in: Add --debug-image= option.
27098 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27100 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27103 * util/deviceiter.c (check_device): Rename to ...
27104 (check_device_readable_unique): ... this. Update all callers.
27105 Maintain and check a list of which devices (by canonicalized name)
27106 have already been seen.
27107 (clear_seen_devices): New function.
27108 (compare_file_names) [__linux__]: New function.
27109 (grub_util_iterate_devices): Clear the list of seen devices on exit
27110 and (just in case) on entry.
27111 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27112 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27113 seen-devices list, superseded by general code in check_device.
27115 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27117 * commands/cat.c (options): New variable.
27118 (grub_cmd_cat): Parse options. If the --dos option is given, print
27119 DOS-style "\r\n" line endings as simple newlines (Debian bug
27121 (GRUB_MOD_INIT): Use extcmd.
27122 (GRUB_MOD_FINI): Likewise.
27123 * docs/grub.texi (cat): Document --dos.
27125 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27127 XEN with Linux grub-mkconfig support.
27129 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27130 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27131 GRUB_CMDLINE_XEN_DEFAULT.
27132 * util/grub.d/20_linux_xen.in: New file.
27134 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27136 Initialise VGA video on qemu ourselves.
27138 * boot/i386/qemu/boot.S: Don't call 0xc000.
27139 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27140 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27141 (kernel_img_HEADERS): Add pci.h.
27142 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27143 * configure.ac: Force unifont on qemu and yeeloong.
27144 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27145 (grub_vga_palette_write): Use correct register.
27146 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27147 Call grub_qemu_init_cirrus.
27148 * kern/i386/qemu/init.c: New file.
27149 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27151 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27153 2010-06-26 Pavel Roskin <proski@gnu.org>
27155 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27158 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27160 * docs/grub.texi (Simple configuration): Explain that
27161 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27162 set to `true' to disable their respective recovery entries, not
27165 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27167 Make the `source' command slightly faster.
27169 * normal/main.c (grub_normal_execute): Don't re-read list files when
27172 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27174 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27175 field position and mask size to red fields from mode_info, not
27177 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27178 Remove redundant tag->common.framebuffer_type assignment.
27179 Reported by: Seth Goldberg.
27181 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27183 Sync up other versions of the Linux loader with Robert Millan's
27184 change of 2010-01-09, "Make loader output a bit more user-friendly".
27186 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27188 (grub_cmd_linux): Likewise.
27189 (grub_cmd_initrd): Likewise.
27190 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27191 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27193 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27195 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27196 larger than MEMORY_MAP_SIZE.
27198 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27200 Fix parallel build.
27202 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27204 * script/parser.y: #include grub_script.tab.h header.
27206 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27208 Support >3GiB and <16MiB RAM in i386-qemu.
27210 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27211 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27212 (grub_lower_mem): Removed.
27213 (grub_upper_mem): Likewise.
27214 (mem_size): Made static.
27215 (above_4g): New variable.
27216 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27217 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27220 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27222 Cirrus 5446 and Bochs video cards support.
27224 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27226 (video_cirrus_mod_SOURCES): New variable.
27227 (video_cirrus_mod_CFLAGS): Likewise.
27228 (video_cirrus_mod_LDFLAGS): Likewise.
27229 (video_bochs_mod_SOURCES): Likewise.
27230 (video_bochs_mod_CFLAGS): Likewise.
27231 (video_bochs_mod_LDFLAGS): Likewise.
27232 * include/grub/vga.h: New file.
27233 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27234 (grub_video_fb_set_page_t): New type.
27235 (grub_video_fb_setup): New prototype.
27236 (grub_video_fb_swap_buffers): Likewise.
27237 (grub_video_fb_get_info_and_fini): Likewise.
27238 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27239 (CRTC_DATA_PORT): Likewise.
27240 (CRTC_CURSOR): Likewise.
27241 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27242 (CRTC_CURSOR_ADDR_LOW): Likewise.
27243 (CRTC_CURSOR_DISABLE): Likewise.
27244 (update_cursor): Use grub_vga_cr_write.
27245 (grub_vga_text_setcursor): Likewise.
27246 * video/bochs.c: New file.
27247 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27248 (palette): Likewise.
27249 (palette_size): Likewise.
27250 (framebuffer): New variable.
27251 (grub_video_fb_init): Use 'framebuffer'.
27252 (grub_video_fb_fini): Likewise.
27253 (grub_video_fb_get_info): Likewise.
27254 (grub_video_fb_get_palette): Likewise.
27255 (grub_video_fb_set_palette): Likewise.
27256 (grub_video_fb_set_viewport): Likewise.
27257 (grub_video_fb_get_viewport): Likewise.
27258 (grub_video_fb_map_color): Likewise.
27259 (grub_video_fb_map_rgb): Likewise.
27260 (grub_video_fb_map_rgba): Likewise.
27261 (grub_video_fb_unmap_color): Likewise.
27262 (grub_video_fb_unmap_color_int): Likewise.
27263 (grub_video_fb_fill_rect): Likewise.
27264 (grub_video_fb_blit_bitmap): Likewise.
27265 (grub_video_fb_blit_render_target): Likewise.
27266 (grub_video_fb_scroll): Likewise.
27267 (grub_video_fb_create_render_target): Likewise.
27268 (grub_video_fb_doublebuf_blit_init): Likewise.
27269 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27270 (doublebuf_pageflipping_update_screen): New function.
27271 (doublebuf_pageflipping_init): Likewise.
27272 (grub_video_fb_setup): Likewise.
27273 (grub_video_fb_swap_buffers): Likewise.
27274 (grub_video_fb_get_info_and_fini): Likewise.
27275 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27277 (doublebuf_pageflipping_commit): Restructured into ...
27278 (doublebuf_pageflipping_set_page): ... this.
27279 (doublebuf_pageflipping_update_screen): Removed.
27280 (doublebuf_pageflipping_init): Likewise.
27281 (double_buffering_init): Likewise.
27282 (grub_video_vbe_setup): Use grub_video_fb_setup.
27283 (grub_video_vbe_swap_buffers): Removed.
27284 (grub_video_vbe_set_active_render_target): Likewise.
27285 (grub_video_vbe_get_active_render_target): Likewise.
27286 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27287 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27288 grub_video_fb_set_active_render_target and
27289 grub_video_fb_get_active_render_target.
27290 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27291 (SEQUENCER_DATA_PORT): Likewise.
27292 (MAP_MASK_REGISTER): Likewise.
27293 (CRTC_ADDR_PORT): Likewise.
27294 (CRTC_DATA_PORT): Likewise.
27295 (START_ADDR_HIGH_REGISTER): Likewise.
27296 (START_ADDR_LOW_REGISTER): Likewise.
27297 (GRAPHICS_ADDR_PORT): Likewise.
27298 (GRAPHICS_DATA_PORT): Likewise.
27299 (READ_MAP_REGISTER): Likewise.
27300 (INPUT_STATUS1_REGISTER): Likewise.
27301 (INPUT_STATUS1_VERTR_BIT): Likewise.
27302 (get_map_mask): Use grub_vga_sr_read.
27303 (set_map_mask): Use grub_vga_sr_write.
27304 (set_read_map): Use grub_vga_gr_write.
27305 (set_start_address): Use grub_vga_cr_write.
27306 * video/sm712.c (framebuffer): Remove leftover fields.
27308 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27310 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27311 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27312 instead. Replace the gfxterm backend check with a check that
27313 ${GRUB_PREFIX}/video.lst is non-empty.
27314 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27316 (load_video): New generated function. Call it before loading
27317 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27318 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27319 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27320 * docs/grub.texi (Simple configuration): Document
27321 GRUB_VIDEO_BACKEND.
27323 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27325 Use video functions in linux and xnu loaders.
27327 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27328 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27329 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27330 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27331 loader/i386/pc/linux.c.
27332 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27333 (find_line_len): Removed.
27334 (find_framebuf): Likewise.
27335 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27336 * loader/i386/efi/xnu.c: Removed.
27337 * loader/i386/pc/xnu.c: Moved from here...
27338 * loader/i386/xnu.c: ...here.
27340 Enable priorities in video drivers.
27342 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27343 (grub_video_adapter): New field prio.
27344 (grub_video_register): Respect prio when inserting.
27345 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27346 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27347 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27348 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27349 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27350 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27351 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27355 * include/grub/video.h (grub_video_driver_id_t): New value
27356 GRUB_VIDEO_DRIVER_SDL.
27357 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27359 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27361 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27362 argument to printf.
27363 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27365 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27367 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27368 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27370 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27372 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27373 directly, and recommend grub-install instead.
27374 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27376 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27378 Fix i386-pc prefix handling with nested partitions (Debian bug
27379 #585068). Note that the case where the core image is booted using
27380 multiboot and relocated from its original location still requires
27383 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27384 with "(,", fill the boot drive in between those two characters, but
27385 expect that a full partition specification including partition map
27387 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27388 specified, write a prefix without the drive name but including a
27389 full partition specification.
27391 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27393 * util/grub-mkconfig.in: Ignore non-option arguments, for
27394 compatibility with older versions (before 2010-06-12) which did the
27395 same. In particular, this makes it easier to ship an update-grub
27396 wrapper which is compatible with that used with GRUB Legacy (Debian
27399 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27401 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27402 for manual page generation.
27404 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27406 * po/POTFILES: Remove leftover commands/handler.c.
27408 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27410 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27411 left this script non-functional.
27413 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27415 * docs/man/grub-emu.h2m: New file.
27417 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27419 * docs/grub.texi (Commands): Document reduced command set in rescue
27421 (cpuid): New section.
27423 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27425 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27426 new partition naming style.
27427 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27429 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27431 Add "-o grub.iso" like cmdline options support.
27433 * util/grub-install.in: Improve cmdline option parsing.
27434 * util/grub-mkconfig.in: Likewise.
27435 * util/grub-mkrescue.in: Likewise.
27436 * util/grub-reboot.in: Likewise.
27437 * util/grub-set-default.in: Likewise.
27438 * util/i386/efi/grub-install.in: Likewise.
27439 * util/ieee1275/grub-install.in: Likewise.
27440 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27442 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27444 * .bzrignore: Ignore 41_custom.
27446 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27448 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27450 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27452 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27453 prototype declarations.
27455 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27456 generating fs, partmap, and video lists.
27457 * include/grub/fs.h (grub_fs_register): Omit prototype if
27458 GRUB_LST_GENERATOR is defined.
27459 * include/grub/partition.h (grub_partition_map_register): Likewise.
27460 * include/grub/video.h (grub_video_register): Likewise.
27462 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27464 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27466 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27468 * util/grub-mkrescue.in: Support --xorriso argument.
27470 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27472 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27473 Suggested by: Thomas Schmitt.
27475 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27477 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27478 Suggested by: Thomas Schmitt.
27480 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27482 custom.cfg support.
27484 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27485 * util/grub.d/41_custom.in: New file.
27487 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27489 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27490 been merged back into normal.
27492 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27494 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27495 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27497 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27499 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27500 when generating manual pages.
27501 * docs/man/grub-bin2h.h2m: New file.
27502 * docs/man/grub-editenv.h2m: New file.
27503 * docs/man/grub-fstest.h2m: New file.
27504 * docs/man/grub-install.h2m: New file.
27505 * docs/man/grub-macho2img.h2m: New file.
27506 * docs/man/grub-mkconfig.h2m: New file.
27507 * docs/man/grub-mkdevicemap.h2m: New file.
27508 * docs/man/grub-mkfont.h2m: New file.
27509 * docs/man/grub-mkimage.h2m: New file.
27510 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27511 * docs/man/grub-mkrelpath.h2m: New file.
27512 * docs/man/grub-mkrescue.h2m: New file.
27513 * docs/man/grub-ofpathname.h2m: New file.
27514 * docs/man/grub-pe2elf.h2m: New file.
27515 * docs/man/grub-probe.h2m: New file.
27516 * docs/man/grub-reboot.h2m: New file.
27517 * docs/man/grub-script-check.h2m: New file.
27518 * docs/man/grub-set-default.h2m: New file.
27519 * docs/man/grub-setup.h2m: New file.
27521 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27523 Use FOR_* macros instead of *_iterate whenever possible.
27525 * commands/handler.c: Removed.
27526 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27527 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27528 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27529 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27530 (grub_probe_SOURCES): Remove kern/parser.c.
27531 (util/grub-script-check.c_DEPENDENCIES): Removed.
27532 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27533 and grub_script_check_init.c.
27534 (grub_script_check_init.lst): Removed.
27535 (grub_script_check_init.h): Likewise.
27536 (grub_script_check_init.c): Likewise.
27537 (pkglib_MODULES): Remove handler.mod and sh.mod.
27538 (handler_mod_SOURCES): Removed.
27539 (handler_mod_CFLAGS): Likewise.
27540 (handler_mod_LDFLAGS): Likewise.
27541 (normal_mod_SOURCES): Remove normal/handler.c.
27542 Add script/main.c, script/script.c, script/execute.c,
27543 script/function.c, script/lexer.c, grub_script.tab.c
27544 and grub_script.yy.c.
27545 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27546 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27547 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27548 (grub_setup_SOURCES): Remove kern/parser.c.
27549 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27550 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27551 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27552 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27553 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27554 (grub_setup_SOURCES): Remove kern/parser.c.
27555 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27556 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27557 * include/grub/command.h (grub_command_iterate): Removed.
27558 (FOR_COMMANDS): New macro.
27559 * include/grub/dl.h (grub_dl): New member next.
27560 (grub_dl_iterate): Removed.
27561 (grub_dl_head): New variable declaration.
27562 (FOR_DL_MODULES): New macro.
27563 * include/grub/fs.h: Include list.h.
27564 (grub_fs): Make next first element.
27565 (grub_fs_list): New variable declaration.
27566 (grub_fs_register): Make inline.
27567 (grub_fs_unregister): Likewise.
27568 (grub_fs_iterate): Removed.
27569 (FOR_FILESYSTEMS): New macro.
27570 * include/grub/handler.h: Removed.
27571 * include/grub/list.h (grub_list_hook_t): Removed.
27572 (grub_list_test_t): Likewise.
27573 (grub_list_pop): Likewise.
27574 (grub_list_iterate): Likewise.
27575 (grub_list_insert): Likewise.
27576 (FOR_LIST_ELEMENTS): New macro.
27577 * include/grub/parser.h (grub_parser_class): Removed.
27578 (grub_parser_register): Likewise.
27579 (grub_parser_unregister): Likewise.
27580 (grub_parser_get_current): Likewise.
27581 (grub_parser_set_current): Likewise.
27582 (grub_register_rescue_parser): Likewise.
27583 (grub_rescue_parse_line): New function.
27584 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27585 * include/grub/script_sh.h (grub_script_function_list): New variable
27587 (FOR_SCRIPT_FUNCTIONS): New macro.
27588 (grub_script_function_iterate): Removed.
27589 (grub_normal_parse_line): New prototype.
27590 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27591 (FOR_DISABLED_TERM_INPUTS): Likewise.
27592 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27593 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27594 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27596 (grub_video_register): Inline.
27597 (grub_video_unregister): Likewise.
27598 (grub_video_adapter_list): New variable declaration.
27599 (grub_video_iterate): Removed.
27600 (FOR_VIDEO_ADAPTERS): New macro.
27601 * kern/dl.c (grub_dl_list): Removed. All users updated.
27602 (grub_dl_iterate): Removed.
27603 * kern/fs.c (grub_fs_list): Make global.
27604 (grub_fs_register): Removed.
27605 (grub_fs_unregister): Likewise.
27606 (grub_fs_iterate): Likewise.
27607 * kern/handler.c: Removed.
27608 * kern/list.c (grub_list_pop): Removed.
27609 (grub_list_iterate): Likewise.
27610 (grub_list_insert): Likewise.
27611 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27612 (grub_prio_list_insert): Don't use grub_list_insert.
27613 * kern/main.c (grub_register_rescue_parser): Don't call
27614 grub_register_rescue_parser.
27615 * kern/parser.c (grub_parser_class): Removed.
27616 (grub_parser_execute): Use grub_rescue_parse_line.
27617 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27618 (grub_rescue_parser): Removed.
27619 (grub_register_rescue_parser): Likewise.
27620 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27621 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27622 (grub_auth_check_authentication): Likewise.
27623 * normal/completion.c (iterate_command): Removed.
27624 (grub_normal_do_completion): Use FOR_COMMANDS.
27625 * normal/handler.c: Removed.
27626 * normal/main.c (read_config_file): Remove parser changing.
27627 (grub_normal_execute): Don't call read_handler_list.
27628 (grub_normal_read_line_real): Statically allocate prompt.
27629 (grub_cmdline_run): Use grub_normal_parse_line.
27630 (GRUB_MOD_FINI): Don't call free_handler_list.
27631 * normal/menu_entry.c (run): Likewise.
27632 * script/function.c (grub_script_function_list): Make global.
27633 (grub_script_function_iterate): Removed.
27634 * script/main.c (grub_normal_parse_line): Make global.
27635 (grub_sh_parser): Removed.
27636 (GRUB_MOD_INIT): Likewise.
27637 (GRUB_MOD_FINI): Likewise.
27638 * tests/lib/functional_test.c (grub_functional_test): Use
27640 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27641 (grub_test_run): Use FOR_LIST_ELEMENTS.
27642 * tests/lib/unit_test.c (main): Likewise.
27643 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27645 * util/grub-fstest.c (grub_term_input_class): Removed.
27646 (grub_term_output_class): Likewise.
27647 * util/grub-probe.c: Likewise.
27648 * util/i386/pc/grub-setup.c: Likewise.
27649 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27650 * util/grub-script-check.c (main): Don't call grub_init_all and
27652 * video/video.c (grub_video_adapter_list): Make global.
27653 (grub_video_register): Removed.
27654 (grub_video_unregister): Likewise.
27655 (grub_video_iterate): Likewise.
27657 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27659 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27660 reported by Henrique Ferreiro.
27662 2010-06-09 Robert Millan <rmh@gnu.org>
27664 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27665 ones, when both are available.
27667 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27669 Make --version uniform and avoid hard-coded program name.
27671 * util/grub-mkimage.c (main): Use `program_name' instead of
27673 * util/i386/pc/grub-setup.c (main): Likewise.
27674 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27675 * util/grub-install.in: Save the basename of $0 in $self, and use the
27676 latter in informational messages. Use the same format for --version
27677 as the binary programs.
27678 * util/grub-mkconfig.in: Likewise.
27679 * util/grub-mkrescue.in: Likewise.
27680 * util/grub-reboot.in: Likewise.
27681 * util/grub-set-default.in: Likewise.
27682 * util/i386/efi/grub-install.in: Likewise.
27683 * util/ieee1275/grub-install.in: Likewise.
27684 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27686 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27688 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27689 embedding area. Use <= instead of == when checking for non-emptiness.
27691 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27693 * configure.ac: Add `.' to the directories searched for unifont.
27695 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27697 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27700 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27702 * docs/grub.texi (History): Expand to cover GRUB 2.
27703 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27704 commands, not `terminal'.
27705 (serial): Likewise.
27706 (terminal_input): New section.
27707 (terminal_output): New section.
27708 (uppermem): New section (stub).
27709 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27711 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27713 * docs/grub.texi (Security): Menu entries are unrestricted by
27714 default, not restricted to superusers as I had previously thought.
27715 Reword to account for this.
27717 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27719 * kern/emu/misc.c (device_mapper_null_log): New function.
27720 (grub_device_mapper_supported): New function.
27721 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27723 * kern/emu/hostdisk.c (find_partition_start): Check whether
27724 device-mapper is supported before trying to use it.
27725 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27727 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27729 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27730 (File name syntax): Likewise.
27731 (help): --all is no longer supported in GRUB 2. Be more precise
27732 about pattern matching.
27734 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27736 * normal/completion.c (grub_normal_do_completion): When completing
27737 arguments to "set" and the current word contains an equals sign,
27738 skip to after the equals sign before starting completion.
27740 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27742 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27744 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27746 * docs/grub.texi (Network): New section.
27747 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27748 `(nd)' as in GRUB Legacy.
27749 (pxe_unload): New section.
27751 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27753 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27754 in the rescue shell, so recommend using `set' instead. Thanks,
27757 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27759 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27760 (password): New section.
27761 (password_pbkdf2): New section.
27762 (search): New section.
27763 (Security): New section.
27764 (Troubleshooting): New section, currently very incomplete.
27765 (Invoking grub-mkpasswd-pbkdf2): New section.
27766 (Internals): New section, currently very incomplete.
27768 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27770 * util/grub.d/00_header.in: Add some more quoting (of
27771 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27773 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27775 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27777 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27778 to `count', fixing variable shadowing that broke the -c option.
27780 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27782 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27783 in case they contain spaces.
27785 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27787 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27788 "part_" to partmap module names, in line with grub-install.
27789 Reported by: Jindřich Makovička (Debian bug #584426).
27791 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27793 * util/grub-mkimage.c: Make target-related error messages slightly
27794 more helpful; -O talks about "format". Explicitly point to the use
27795 of -O if no target is specified.
27796 Reported by: Didier Raboud (Debian bug #584415).
27798 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27800 * INSTALL: Document several build requirements for optional features
27801 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27803 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27805 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27806 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27807 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27809 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27811 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27812 Thanks to Jordan Uggla for spotting this.
27814 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27816 Finally make USB usable.
27818 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27819 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27820 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27821 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27822 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27823 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27824 (GRUB_OHCI_FSMPS): Likewise.
27825 (GRUB_OHCI_PERIODIC_START): Likewise.
27826 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27827 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27828 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27829 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27830 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27831 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27832 (grub_ohci_transaction): Likewise.
27833 (grub_ohci_transfer): Improve condition detection algorithms.
27834 Handle toggle property. Program the transactions correctly.
27835 Improve error handling. Various important fixups.
27836 (grub_ohci_portstatus): Put register writes in right order.
27837 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27838 (grub_uhci_transfer): Don't show "failed" message on success.
27839 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27841 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27842 determine its size.
27843 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27844 before initialization is completed. Use IN direction for empty
27845 transfers. Use last_trans and compute toggle.
27846 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27847 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27848 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27849 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27850 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27851 (grub_usb_device): Increase toggle to 256.
27852 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27853 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27854 GRUB_USBMS_SUBCLASS_SFF8070.
27855 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27856 (grub_scsi_inquiry): New member page and alloc_length.
27857 (grub_scsi_request_sense): New structure.
27858 (grub_scsi_request_sense_data): Likewise.
27859 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27861 * disk/scsi.c (grub_scsi_request_sense): New function.
27862 (grub_scsi_test_unit_ready): Likewise.
27863 (grub_scsi_inquiry): Fill new fields.
27864 (grub_scsi_read_capacity): Likewise.
27865 (grub_scsi_read10): Add request sense at the end.
27866 (grub_scsi_read12): Likewise.
27867 (grub_scsi_write10): Likewise.
27868 (grub_scsi_write12): Likewise.
27869 (grub_scsi_open): Add Test Unit Ready.
27870 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27871 Support additional subclasses. Con't clear halt yet. Activate the
27872 proper config. Calculate LUNs correctly.
27873 (grub_usbms_transfer): Various important fixups.
27875 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27877 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27878 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27879 (grub_ohci_fini_hw): New function.
27880 (grub_ohci_restore_hw): Likewise.
27881 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27882 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27883 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27885 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27887 Dedicated DMA allocations.
27889 * bus/pci.c (grub_memalign_dma32): New function
27890 (grub_dma_free): Likewise.
27891 (grub_dma_get_virt): Likewise.
27892 (grub_dma_get_phys): Likewise.
27893 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27894 (grub_ohci_pci_iter): Use dma32_alloc.
27895 (grub_ohci_transfer): Likewise.
27896 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27897 (grub_usb_bulk_readwrite): Likewise.
27898 * include/grub/pci.h: Add declarations.
27900 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27904 * bus/cs5536.c: New file.
27905 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27906 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27907 (cs5536_mod_SOURCES): New variable.
27908 (cs5536_mod_CFLAGS): Likewise.
27909 (cs5536_mod_LDFLAGS): Likewise.
27910 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27912 (kernel_img_SOURCES): Add bus/cs5536.c.
27913 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27915 (usb_mod_SOURCES): New variable.
27916 (usb_mod_CFLAGS): New variable.
27917 (usb_mod_LDFLAGS): New variable.
27918 (usbtest_mod_SOURCES): New variable.
27919 (usbtest_mod_CFLAGS): New variable.
27920 (usbtest_mod_LDFLAGS): New variable.
27921 (ohci_mod_SOURCES): New variable.
27922 (ohci_mod_CFLAGS): New variable.
27923 (ohci_mod_LDFLAGS): New variable.
27924 (usbms_mod_SOURCES): New variable.
27925 (usbms_mod_CFLAGS): New variable.
27926 (usbms_mod_LDFLAGS): New variable.
27927 (usb_keyboard_mod_SOURCES): New variable.
27928 (usb_keyboard_mod_CFLAGS): New variable.
27929 (usb_keyboard_mod_LDFLAGS): New variable.
27930 * include/grub/smbus.h: New file.
27931 * include/grub/cs5536.h: New file.
27933 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27935 * util/grub.d/00_header.in: Add safety check to make sure that
27936 ${locale_dir} exists before trying to probe it.
27938 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27940 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27941 per the GNU Coding Standards; this is now too obscure to be worth
27944 (chainloader): Remove cross-reference to `SCO UnixWare'.
27946 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27948 * docs/grub.texi (Chain-loading): New section.
27949 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27950 adjusted for GRUB 2.
27951 (SCO UnixWare): Likewise.
27953 (chainloader): Add reference to `Block list syntax'.
27954 (drivemap): New section.
27955 (parttool): New section.
27957 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27959 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27961 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27962 (Installing GRUB using grub-install): Remove reference to the grub
27963 shell; mention `grub-mkimage' and `grub-setup' instead.
27964 (Invoking grub-install): Likewise.
27965 (Interface): Add reference to `Menu entry editor'.
27966 (serial): Remove `--device' option.
27968 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27970 * docs/grub.texi (Configuration): New section, documenting
27971 configuration file generation using grub-mkconfig. I've left a slot
27972 for documenting the full shell scripting format but have not yet
27973 started on writing that up.
27974 (Invoking grub-mkconfig): New section.
27976 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27978 * docs/grub.texi (direntry): Remove grub-terminfo reference.
27979 (GNU GRUB manual): Likewise.
27980 (General commands): Update description of `terminfo' for GRUB 2.
27982 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27984 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
27985 (GRUB_MOD_INIT): Fix capitalisation.
27986 * docs/grub.texi (Command-line and menu entry commands): Document
27987 gettext and gptsync commands.
27989 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27991 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
27992 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
27994 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
27996 Add btrfs probing support, currently only in the single-device case.
27998 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28000 (grub_guess_root_device): Call find_root_device_from_mountinfo
28001 before looking in /dev.
28003 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28005 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28006 GRUB_DISK_SIZE_UNKNOWN.
28007 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28009 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28011 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28012 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28013 corrupted or not synced properly.
28015 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28017 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28018 Reported by: Seth Goldberg.
28020 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28022 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28024 Reported by: Seth Goldberg.
28026 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28028 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28029 Reported by: Seth Goldberg.
28031 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28033 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28034 64-bit address as signed on MIPS.
28036 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28038 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28039 to the empty string.
28041 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28043 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28045 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28046 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28047 * kern/misc.c (__enable_execute_stack): Disable on
28050 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28052 Make grub-probe work with symbolic links under /dev/mapper as well
28053 as with real block devices. The Linux world seems to be (at best)
28054 in transition here, and GRUB shouldn't get caught in the middle.
28056 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28059 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28061 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28062 input files (in which case exit zero).
28064 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28066 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28067 return NULL for various reasons even if it has a maximum-length
28068 buffer: for example, there might be a symlink loop, or the path
28069 might exceed PATH_MAX. If this happens, return NULL.
28071 2010-05-27 Robert Millan <rmh@gnu.org>
28073 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28074 partmap module to handle cross-partmap setups.
28075 Reported by Orestes Mas. Gràcies!
28077 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28079 * util/grub-mkrescue.in: Initialise override_dir rather than
28080 assuming that it's unset or empty in the environment.
28082 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28084 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28085 variable index into p_index to suppress a warning with -Wshadow.
28087 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28089 * INSTALL: Added flex >= 2.5.35 requirement.
28091 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28093 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28095 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28099 * commands/i386/cmostest.c: New file.
28100 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28101 (cmostest_mod_SOURCES): New variable.
28102 (cmostest_mod_CFLAGS): Likewise.
28103 (cmostest_mod_LDFLAGS): Likewise.
28104 * conf/i386-pc.rmk: Likewise.
28105 * docs/grub.texi (Vendor power-on keys): New section.
28106 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28107 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28108 and GRUB_BUTTON_CMOS_ADDRESS.
28109 * util/grub.d/00_header.in: Handle powering-on by separate button.
28111 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28113 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28114 Removed drawing_scrollbar argument. All users updated
28116 Reported by Jo Shields
28118 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28120 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28121 buffer since gfxterm handles double repaint.
28123 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28125 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28126 * term/gfxterm.c (real_scroll): Likewise.
28128 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28130 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28131 before calling BIOS.
28133 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28135 * include/grub/i18n.h: Always enable grub_gettext.
28137 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28139 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28140 partition naming style.
28142 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28144 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28145 not the first option.
28147 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28149 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28151 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28153 * util/misc.c: Move inclusion of <limits.h> to ...
28154 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28156 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28158 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28159 Fix merge error in NetBSD code.
28160 (find_partition_start) [__NetBSD__]: Likewise.
28162 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28164 Fix grub-mkrescue usage unit testing.
28166 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28168 2010-05-18 Christian Franke <franke@computer.org>
28170 * util/grub.d/10_windows.in: Use path names instead of
28171 drive letters to prevent warning from Cygwin 1.7.
28172 Add drivemap command to menuentry if needed.
28174 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28176 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28177 gnumach and gnumach.gz.
28179 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28181 * include/grub/i18n.h (gettext): Inline instead of using #define.
28182 (grub_gettext): Likewise.
28185 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28187 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28188 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28189 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28190 (main): Add a slash after pkglibdirroot.
28192 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28194 * util/grub-install.in: Add missing "in" keyword.
28196 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28198 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28199 Reported by: Seth Goldberg.
28201 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28203 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28205 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28207 * configure.ac: Check for Linux device-mapper support.
28209 * util/hostdisk.c (device_is_mapped): New function.
28210 (find_partition_start): New function, partly broken out from
28211 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28212 device-mapper support added.
28213 (linux_find_partition): Use find_partition_start.
28214 (convert_system_partition_to_system_disk): Add `st' argument.
28215 Support Linux /dev/mapper/* devices if device-mapper support is
28216 available; only DM-RAID devices are understood at present.
28217 (find_system_device): Add `st' argument. Pass it to
28218 convert_system_partition_to_system_disk.
28219 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28220 find_system_device and convert_system_partition_to_system_disk. Use
28221 find_partition_start.
28223 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28224 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28225 * util/deviceiter.c [__linux__]: Define MINOR.
28226 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28227 * util/mkdevicemap.c (grub_putchar): New function.
28228 (grub_getkey): New function.
28229 (grub_refresh): New function.
28230 (main): Set debug=all if -v -v is used.
28232 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28234 Fix build with non-GNU libcs.
28236 * util/misc.c (canonicalize_file_name): Move to ...
28237 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28238 grub_make_system_path_relative_to_its_root.
28240 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28242 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28243 we handle finding grub-mkimage. Default to finding grub-mkimage in
28244 ${bindir} with program_transform_name applied, and provide a
28245 --grub-mkimage option to override this.
28247 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28249 Remove grub-mkisofs.
28251 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28252 (grub_mkisofs_SOURCES): Removed.
28253 (grub_mkisofs_CFLAGS): Removed.
28254 * util/mkisofs/defaults.h: Removed.
28255 * util/mkisofs/eltorito.c: Likewise.
28256 * util/mkisofs/exclude.h: Likewise.
28257 * util/mkisofs/hash.c: Likewise.
28258 * util/mkisofs/include/: Likewise.
28259 * util/mkisofs/include/fctldefs.h: Likewise.
28260 * util/mkisofs/include/mconfig.h: Likewise.
28261 * util/mkisofs/include/prototyp.h: Likewise.
28262 * util/mkisofs/include/statdefs.h: Likewise.
28263 * util/mkisofs/iso9660.h: Likewise.
28264 * util/mkisofs/joliet.c: Likewise.
28265 * util/mkisofs/match.c: Likewise.
28266 * util/mkisofs/match.h: Likewise.
28267 * util/mkisofs/mkisofs.c: Likewise.
28268 * util/mkisofs/mkisofs.h: Likewise.
28269 * util/mkisofs/msdos_partition.h: Likewise.
28270 * util/mkisofs/multi.c: Likewise.
28271 * util/mkisofs/name.c: Likewise.
28272 * util/mkisofs/rock.c: Likewise.
28273 * util/mkisofs/tree.c: Likewise.
28274 * util/mkisofs/write.c: Likewise.
28276 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28278 Unify grub-mkimage accross platforms.
28280 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28281 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28282 (grub_mkelfimage_SOURCES): Removed.
28283 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28284 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28285 (bin_UTILITIES): Add grub-mkimage.
28286 (grub_mkimage_SOURCES): New variable.
28287 (kernel_img_HEADERS): Remove machine/kernel.h.
28288 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28289 (pkglib_PROGRAMS): Add kernel.img.
28290 (kernel_img_HEADERS): Add machine/kernel.h.
28291 (kernel_img_FORMAT): Removed.
28292 (bin_UTILITIES): Remove grub-mkimage.
28293 (grub_mkimage_SOURCES): Removed.
28294 (grub_mkimage_CFLAGS): Likewise.
28295 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28296 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28297 (pkglib_PROGRAMS): Add kernel.img.
28298 (bin_UTILITIES): Remove grub-mkimage.
28299 (grub_mkimage_SOURCES): Removed.
28300 (grub_mkimage_CFLAGS): Likewise.
28301 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28302 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28303 (pkglib_PROGRAMS): Add kernel.img.
28304 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28305 (pkglib_PROGRAMS): Add kernel.img.
28306 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28307 (grub_mkimage_SOURCES): Removed.
28308 (grub_mkimage_CFLAGS): Likewise.
28309 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28310 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28311 (pkglib_PROGRAMS): Add kernel.img.
28312 (bin_UTILITIES): Remove grub-mkimage.
28313 (grub_mkimage_SOURCES): Removed.
28314 (grub_mkimage_CFLAGS): Likewise.
28315 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28316 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28317 (grub_mkimage_SOURCES): Removed.
28318 (grub_mkimage_CFLAGS): Likewise.
28319 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28320 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28321 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28322 (grub_pe32_optional_header): ... this.
28323 (grub_pe64_optional_header): ... and this. All users updated.
28324 (GRUB_PE32_PE32_MAGIC): Split into ..
28325 (GRUB_PE32_PE32_MAGIC): .. this.
28326 (GRUB_PE32_PE64_MAGIC): .. and this.
28327 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28328 * include/grub/elf.h (PT_GNU_STACK): New definition.
28329 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28330 * include/grub/i386/efi/kernel.h: Likewise.
28331 * include/grub/i386/kernel.h: Likewise.
28332 * include/grub/i386/pc/kernel.h: Likewise.
28333 * include/grub/i386/qemu/boot.h: Likewise.
28334 * include/grub/mips/kernel.h: Likewise.
28335 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28336 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28337 * include/grub/powerpc/kernel.h: Likewise.
28338 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28339 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28340 * include/grub/sparc64/kernel.h: Likewise.
28341 * include/grub/x86_64/efi/kernel.h: Likewise.
28342 * include/grub/x86_64/kernel.h: Likewise.
28343 * include/grub/offsets.h: New file.
28344 * include/grub/kernel.h (grub_module_info): Split into ...
28345 (grub_module_info32): ... this.
28346 (grub_module_info64): ... and this.
28347 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28348 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28349 (grub_boot_blocklist): Moved from here ...
28350 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28351 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28352 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28353 * include/grub/types.h (grub_target_to_host16): Removed.
28354 (grub_target_to_host32): Likewise.
28355 (grub_target_to_host64): Likewise.
28356 (grub_host_to_target16): Likewise.
28357 (grub_host_to_target32): Likewise.
28358 (grub_host_to_target64): Likewise.
28359 (grub_host_to_target_addr): Likewise.
28361 Support grub-mkrescue for efi, coreboot and qemu.
28363 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28364 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28365 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28366 * util/grub-mkrawimage.c: Moved from here ...
28367 * util/grub-mkimage.c: ... here. All users updated.
28368 (ALIGN_ADDR): Use image_target.
28369 (TARGET_NO_FIELD): New const.
28370 (image_target_desc): New type.
28371 (image_targets): New array.
28372 (grub_target_to_host64): Use image_target.
28373 (grub_target_to_host32): Likewise.
28374 (grub_target_to_host16): Likewise.
28375 (grub_host_to_target64): Likewise.
28376 (grub_host_to_target32): Likewise.
28377 (grub_host_to_target16): Likewise.
28378 (grub_host_to_target_addr): Likewise.
28379 (generate_image): Handle multiimage.
28380 (main): Require -O parameter. All users updated.
28381 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28382 util/efi/grub-mkimage.c
28383 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28384 New option --rom-directory.
28386 * util/i386/efi/grub-mkimage.c: Removed.
28387 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28388 (grub_target_to_host32): Likewise.
28389 (grub_target_to_host64): Likewise.
28390 (grub_host_to_target16): Likewise.
28391 (grub_host_to_target32): Likewise.
28392 (grub_host_to_target64): Likewise.
28393 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28394 (grub_target_to_host32): Likewise.
28395 (grub_target_to_host64): Likewise.
28396 (grub_host_to_target16): Likewise.
28397 (grub_host_to_target32): Likewise.
28398 (grub_host_to_target64): Likewise.
28400 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28402 Source tree is reorganized for emu build.
28404 * include/grub/util/console.h: Move from here...
28405 * include/grub/emu/console.h: ...to here.
28406 * include/grub/util/getroot.h: Move from here...
28407 * include/grub/emu/getroot.h: ...to here.
28408 * include/grub/util/hostdisk.h: Move from here...
28409 * include/grub/emu/hostdisk.h: ...to here.
28410 * util/console.c: Move from here...
28411 * kern/emu/console.c: ...to here.
28412 * util/getroot.c: Move from here...
28413 * kern/emu/getroot.c: ...to here.
28414 * util/grub-emu.c: Move from here...
28415 * kern/emu/main.c: ...to here.
28416 * util/hostdisk.c: Move from here...
28417 * kern/emu/hostdisk.c: ...to here.
28418 * util/hostfs.c: Move from here...
28419 * kern/emu/hostfs.c: ...to here.
28420 * util/mm.c: Move from here...
28421 * kern/emu/mm.c: ...to here.
28422 * util/pci.c: Move from here...
28423 * bus/emu/pci.c: ...to here.
28424 * util/sdl.c: Move from here...
28425 * video/emu/sdl.c: ...to here.
28426 * util/time.c: Move from here...
28427 * kern/emu/time.c: ...to here.
28428 * util/usb.c: Move from here...
28429 * bus/usb/emu/usb.c: ...to here.
28431 * include/grub/emu/misc.h: New header for grub-emu functions.
28432 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28434 * conf/any-emu.rmk: Rule updates for above renames.
28435 * conf/common.rmk: Likewise.
28436 * conf/i386-pc.rmk: Likewise.
28437 * conf/i386-qemu.rmk: Likewise.
28438 * conf/mips.rmk: Likewise.
28439 * conf/sparc64-ieee1275.rmk: Likewise.
28440 * conf/x86-efi.rmk: Likewise.
28442 * disk/lvm.h: #include updates for above renames.
28443 * util/grub-mkrelpath.c: Likewise.
28444 * util/grub-probe.c: Likewise.
28445 * util/i386/pc/grub-setup.c: Likewise.
28446 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28447 * kern/emu/console.c: Likewise.
28448 * kern/emu/getroot.c: Likewise.
28449 * kern/emu/hostdisk.c: Likewise.
28450 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28452 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28453 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28454 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28455 * util/misc.c: Remove grub-emu functions.
28457 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28460 Reported by: Thorsten Grützmacher.
28462 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28464 (circprog_set_property): Register and unregister timeout hook.
28465 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28466 (label_destroy): Free template. and unregister hook.
28467 (label_set_state): New function.
28468 (label_set_property): Handle templates and hooks.
28469 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28471 (progress_bar_set_property): Register and unregister timeout hook.
28472 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28473 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28474 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28475 (update_timeout_visit): Removed.
28476 (update_timeouts): New function.
28477 (redraw_timeouts): Likewise.
28478 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28479 (grub_gfxmenu_clear_timeout): Likewise.
28480 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28481 (grub_gfxmenu_timeout_notify): Likewise.
28482 (grub_gfxmenu_timeout_notifications): New external variable.
28483 (grub_gfxmenu_timeout_register): New function.
28484 (grub_gfxmenu_timeout_unregister): Likewise.
28486 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28488 Transform (broken) vga terminal into (working) vga video driver.
28490 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28491 video/i386/pc/vga.c.
28492 * include/grub/video.h (grub_video_driver_id):
28493 Add GRUB_VIDEO_DRIVER_VGA.
28494 * term/i386/pc/vga.c: Renamed to ...
28495 * video/i386/pc/vga.c: ...this
28496 (DEBUG_VGA): Removed.
28497 (CHAR_WIDTH): Likewise.
28498 (CHAR_HEIGHT): Likewise.
28499 (TEXT_WIDTH): Likewise.
28500 (TEXT_HEIGHT): Likewise.
28501 (DEFAULT_FG_COLOR): Likewise.
28502 (DEFAULT_BG_COLOR): Likewise.
28503 (colored_char): Likewise.
28506 (cursor_state): Likewise.
28507 (fg_color): Likewise.
28508 (bg_color): Likewise.
28509 (text_buf): Likewise.
28512 (framebuffer): New variable.
28513 (set_read_map): Disabled.
28514 (setup): New variable.
28515 (is_target): Likewise.
28516 (grub_vga_mod_init): Likewise.
28517 (grub_vga_mod_fini): Likewise.
28518 (check_vga_mem): Likewise.
28519 (write_char): Likewise.
28520 (write_cursor): Likewise.
28521 (scroll_up): Likewise.
28522 (grub_vga_putchar): Likewise.
28523 (grub_vga_getcharwidth): Likewise.
28524 (grub_vga_getwh): Likewise.
28525 (grub_vga_getxy): Likewise.
28526 (grub_vga_gotoxy): Likewise.
28527 (grub_vga_cls): Likewise.
28528 (grub_vga_setcolorstate): Likewise.
28529 (grub_vga_setcursor): Likewise.
28530 (grub_video_vga_init): New function.
28531 (grub_video_vga_setup): Likewise.
28532 (grub_video_vga_fini): Likewise.
28533 (update_target): Likewise.
28534 (grub_video_vga_blit_bitmap): Likewise.
28535 (grub_video_vga_blit_render_target): Likewise.
28536 (grub_video_vga_set_active_render_target): Likewise.
28537 (grub_video_vga_get_active_render_target): Likewise.
28538 (grub_video_vga_swap_buffers): Likewise.
28539 (grub_video_vga_set_palette): Likewise.
28540 (grub_video_vga_get_info_and_fini): Likewise.
28541 (grub_vga_term): Removed.
28542 (grub_video_vga_adapter): New variable.
28543 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28544 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28546 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28548 * video/readers/jpeg.c: Indented.
28550 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28552 Various jpeg cleanups.
28554 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28555 (grub_jpeg_decode_quan_table): Use sizeof.
28556 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28558 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28560 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28561 tables. Ignore non-last ac bit.
28562 (grub_jpeg_decode_quan_table): Likewise.
28564 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28566 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28567 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28568 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28569 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28570 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28571 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28573 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28575 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28578 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28580 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28582 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28584 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28587 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28589 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28592 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28594 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28597 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28599 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28601 2010-05-01 Christian Franke <franke@computer.org>
28603 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28604 Remove broken Cygwin path conversion.
28605 * util/misc.c: [__CYGWIN__] Add include and define.
28606 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28608 (make_system_path_relative_to_its_root): Simplify loop, replace early
28610 [__CYGWIN__] Add conversion to win32 path.
28611 Include "/" case in trailing slash removal.
28613 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28615 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28616 Reported by: Seth Goldberg
28618 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28620 * commands/help.c (grub_cmd_help): Fix a typo.
28621 Reported by: Seth Goldberg
28623 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28625 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28627 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28628 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28629 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28630 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28631 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28632 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28633 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28634 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28635 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28636 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28637 * normal/context.c (GRUB_MOD_INIT): Likewise.
28638 * normal/main.c (GRUB_MOD_INIT): Likewise.
28639 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28640 * term/serial.c (GRUB_MOD_INIT): Likewise.
28641 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28643 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28645 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28648 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28650 * commands/iorw.c: New file.
28651 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28652 (iorw_mod_SOURCES): New variable.
28653 (iorw_mod_CFLAGS): Likewise.
28654 (iorw_mod_LDFLAGS): Likewise.
28656 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28660 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28661 * normal/main.c (hotkey_aliases): New variable.
28662 (grub_normal_add_menu_entry): Parse "--hotkey".
28663 * normal/menu_text.c (run_menu): Handle hotkeys.
28665 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28667 * kern/i386/coreboot/init.c (grub_machine_init): Call
28668 grub_machine_mmap_init on qemu.
28670 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28672 * boot/i386/qemu/boot.S: Add a missing .code16.
28674 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28676 Use LBIO on coreboot.
28678 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28679 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28680 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28682 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28683 grub_machine_mmap_init on coreboot.
28684 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28685 GRUB_LINUXBIOS_MEMBER_LINK.
28686 (grub_machine_mmap_iterate): Fix declaration.
28687 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28689 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28691 Split coreboot and multiboot ports.
28693 * conf/i386-multiboot.rmk: New file.
28694 * configure.ac: Add multiboot port.
28695 * include/grub/i386/multiboot/boot.h: New file.
28696 * include/grub/i386/multiboot/console.h: Likewise.
28697 * include/grub/i386/multiboot/init.h: Likewise.
28698 * include/grub/i386/multiboot/kernel.h: Likewise.
28699 * include/grub/i386/multiboot/loader.h: Likewise.
28700 * include/grub/i386/multiboot/memory.h: Likewise.
28701 * include/grub/i386/multiboot/serial.h: Likewise.
28702 * include/grub/i386/multiboot/time.h: Likewise.
28703 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28704 * loader/multiboot.c: Likewise.
28705 * loader/multiboot_mbi2.c: Likewise.
28706 * util/grub-mkrescue.in: Generate multiboot rescue.
28708 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28710 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28712 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28714 Merge handling of input and output terminals. Fix a hang.
28716 * commands/terminal.c (abstract_terminal): New struct.
28717 (handle_command): New function. Based on grub_cmd_terminal_input.
28718 (grub_cmd_terminal_input): Use handle_command.
28719 (grub_cmd_terminal_output): Use handle_command.
28721 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28723 Fix comment handling.
28725 * tests/grub_script_comments.in: New testcase.
28726 * conf/tests.rmk: Rules for new testcase.
28727 * script/yylex.l: Updated flex rules.
28729 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28731 * docs/grub.texi (play): Document that zero pitches produce rests.
28732 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28735 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28737 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28740 2010-04-26 Christian Franke <franke@computer.org>
28742 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28743 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28744 (grub_get_prefix): Remove function.
28745 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28746 make_system_path_relative_to_its_root ().
28747 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28749 2010-04-24 Christian Franke <franke@computer.org>
28751 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28752 (kernel_img_LDFLAGS): Remove -static-libgcc.
28754 2010-04-24 Christian Franke <franke@computer.org>
28756 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28757 and CHECK_END_SYMBOL if grub-emu is built.
28758 Unset TARGET_OBJ2ELF if grub-emu is built
28759 without module support.
28761 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28765 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28766 (grub_fstest_SOURCES): Likewise.
28767 (pkglib_MODULES): Add nilfs2.mod.
28768 (nilfs2_mod_SOURCES): New variable.
28769 (nilfs2_mod_CFLAGS): Likewise.
28770 (nilfs2_mod_LDFLAGS): Likewise.
28771 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28772 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28773 * fs/nilfs2.c: New file.
28775 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28777 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28780 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28782 Add grub-mkconfig support for NetBSD.
28784 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28785 * util/grub-mkconfig.in: export new NetBSD specific variables.
28786 * po/POTFILES-shell: added 10_netbsd.in.
28787 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28789 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28791 Fix emu build with grub-emu-pci and grub-emu-modules.
28793 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28795 * include/grub/libpciaccess.h: New file.
28796 * conf/any-emu.rmk: Update kernel headers for emu build.
28798 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28800 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28802 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28804 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28806 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28808 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28809 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28810 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28811 util/ieee1275/ofpath.c.
28812 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28813 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28814 * include/grub/sparc64/ieee1275/boot.h
28815 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28816 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28817 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28818 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28820 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28821 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28822 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28825 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28827 * util/grub-mkconfig.in: Corrected two == equality tests.
28828 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28829 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28830 expect a number appended to it.
28831 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28832 expects a number appended to it.
28834 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28836 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28838 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28840 * util/hostdisk.c (make_device_name): Change to new partition naming.
28842 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28844 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28846 2010-04-17 Christian Franke <franke@computer.org>
28848 * Makefile.in: Add missing localedir setting.
28850 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28852 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28853 mistake in r2156. Noticed by Anthony Fok.
28855 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28857 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28859 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28861 Fix a spurious, uninitialized variable warning.
28863 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28864 Initialize variable, shdr.
28865 (grub_freebsd_load_elfmodule): Likewise.
28866 (grub_freebsd_load_elf_meta): Likewise.
28868 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28870 Fix for escaped dollar in double quoted strings.
28872 * script/yylex.l: Updated flex rules.
28873 * conf/tests.rmk: Rule for new testcase.
28874 * tests/grub_script_dollar.in: New testcase.
28876 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28877 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28879 Enclose all translated strings in grub.cfg in single quotes, and
28880 escape them appropriately (Ubuntu bug #552921).
28882 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28883 * util/grub.d/10_hurd.in: Use it.
28884 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28885 * util/grub.d/10_linux.in (linux_entry): Likewise.
28887 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28889 Fix cygwin compilation.
28891 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28892 * include/grub/misc.h (__register_frame_info)
28893 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28894 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28895 * kern/misc.c (__register_frame_info)
28896 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28897 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28899 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28901 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28903 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28905 Unify libgcc processing.
28907 * Makefile.in (kernel_img_LDFLAGS): New variable.
28908 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28909 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28911 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28912 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28913 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28914 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28915 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28916 overwriting. Remove -lgcc and -static-libgcc
28917 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28918 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28919 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28920 (kernel_img_LDFLAGS): Append instead of overwriting.
28921 Remove -lgcc and -static-libgcc
28922 * conf/sparc64-ieee1275.rmk: Likewise.
28923 * include/grub/powerpc/libgcc.h: Move to ...
28924 * include/grub/libgcc.h: .. this.
28925 * include/grub/libgcc.h: Don't export most of the function on x86.
28926 (__bswapsi2): New export.
28927 (__bswapdi2): Likewise.
28928 * include/grub/mips/libgcc.h: Removed.
28929 * include/grub/sparc64/libgcc.h: Likewise.
28931 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28933 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28934 disk_info_msg (conflicts with gettexting into languages with cases).
28936 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28938 Add grub-probe support for NetBSD.
28940 * util/getroot.c (find_root_device): Convert block device to
28941 character device on NetBSD.
28942 * util/probe.c (probe): Require character device on NetBSD.
28943 * util/hostdisk.c: NetBSD specific headers.
28944 (configure_device_driver): new function to tune device driver
28945 parameters (currently only for NetBSD floppy driver).
28946 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28947 via disklabel ioctl).
28948 (open_device): call configure_device_driver on NetBSD.
28949 (convert_system_partition_to_system_disk): NetBSD specific code.
28950 (device_is_wholedisk): Likewise.
28951 (grub_util_biosdisk_get_grub_dev): Likewise.
28952 (make_device_name): Fixed a typo in bsd_part_str.
28953 * configure.ac: check for opendisk() and getrawpartition() on
28954 NetBSD and set LIBUTIL.
28955 * Makefile.in: add LIBUTIL to LIBS.
28957 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28961 * util/grub-script-check.c: Better help message.
28963 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28967 * configure.ac: Flex version check.
28968 * conf/common.rmk: Add -Wno-error to sh.mod.
28969 * script/yylex.l: Remove all #pragma.
28971 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28973 * include/grub/util/misc.h (canonicalise_file_name): Add missing
28975 Reported by: Seth Goldberg.
28977 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28979 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
28980 Rename "module" to "module2".
28981 Reported by: Seth Goldberg.
28983 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28985 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
28987 Reported by: Seth Goldberg.
28989 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28991 * lib/posix_wrap/locale.h: Add missing file.
28992 Reported by: Seth Goldberg.
28994 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28996 grub-emu module load support.
28998 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
28999 NO_DYNAMIC_MODULES switched to this.
29000 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29001 (CFLAGS): Likewise.
29002 * conf/any-emu.rmk: Generate symlist.
29003 (kernel_img_HEADERS): Add util/datetime.h.
29004 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29005 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29006 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29007 kern/$(target_cpu)/cache.S.
29008 * configure.ac (grub-emu-modules): New option.
29009 * genmk.rb: Handle multiple source lists.
29010 * include/grub/sdl.h: New file.
29011 * include/grub/libusb.h: Likewise.
29012 * util/grub-emu.c (main): Hanle (host) root.
29013 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29014 GRUB_ERR_UNKNOWN_DEVICE.
29015 * util/misc.c: Move mm functions to ...
29016 * util/mm.c: ... here. All users updated.
29018 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29020 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29021 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29023 (maintainer-clean): Remove libgcrypt-grub.
29025 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29027 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29029 2010-04-09 EFI Coder <eficoder@hotmail.com>
29031 * normal/menu_text.c (print_message): Clean up the message and show
29032 the Fn information when on EFI
29033 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29035 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29037 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29039 * normal/crypto.c (read_crypto_list): Likewise.
29040 * normal/dyncmd.c (read_command_list): Likewise.
29041 * normal/term.c (read_terminal_list): Likewise.
29042 * normal/main.c (read_lists): Use explicit prefix.
29043 (read_lists_hook): Use read_lists.
29044 (grub_normal_execute): Likewise.
29046 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29048 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29049 Reported by: Thomas Schmitt.
29050 Add -no-emul-boot to grub-mkisofs parameters.
29052 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29054 * font/font.c: Indented.
29056 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29058 Elif support to GRUB script (by Deepak Vankadaru).
29060 * tests/grub_script_if.in: New testcase.
29061 * conf/tests.rmk: Rule for new testcase.
29062 * script/parser.y: Grammar rules for elif.
29064 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29066 While and until loops support to GRUB script.
29068 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29069 (grub_script_create_cmdwhile): New function prototype.
29070 (grub_script_execute_cmdwhile): New function prototype.
29071 * script/execute.c (grub_script_execute_cmdwhile): New function.
29072 * script/parser.y (command): New commands.
29073 (whilecmd): New grammar rule.
29074 (untilcmd): New grammar rule.
29075 * script/script.c (grub_script_create_cmdwhile): New function.
29076 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29079 * tests/grub_script_while1.in: New testcase.
29080 * conf/tests.rmk: Rule for new testcase.
29082 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29084 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29087 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29089 GRUB_BACKGROUND support.
29091 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29092 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29094 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29096 Load fonts and modules for gfxmenu in grub-mkconfig.
29097 Idea by: Mario Vazquez
29099 * util/grub.d/00_header.in: Load pf2 and image modules.
29101 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29103 grub-mkconfig multiple terminal support.
29105 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29106 * util/grub.d/00_header.in: Likewise.
29108 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29110 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29111 we use cd $(srcdir).
29113 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29115 * util/grub.d/10_linux.in: Only use the first word of
29116 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29117 spaces in GRUB_DISTRIBUTOR.
29118 * util/grub.d/10_kfreebsd.in: Likewise.
29119 * util/grub.d/10_hurd.in: Likewise.
29121 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29123 Fix unit testing framework for Qemu 0.12.
29125 * tests/util/grub-shell.in: Remove -serial stdio option.
29127 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29129 POSIX header file wrappers.
29131 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29133 * lib/posix_wrap/ctype.h: Likewise.
29134 * lib/posix_wrap/errno.h: Likewise.
29135 * lib/posix_wrap/langinfo.h: Likewise.
29136 * lib/posix_wrap/limits.h: Likewise.
29137 * lib/posix_wrap/localcharset.h: Likewise.
29138 * lib/posix_wrap/stdint.h: Likewise.
29139 * lib/posix_wrap/stdio.h: Likewise.
29140 * lib/posix_wrap/stdlib.h: Likewise.
29141 * lib/posix_wrap/string.h: Likewise.
29142 * lib/posix_wrap/sys/types.h: Likewise.
29143 * lib/posix_wrap/unistd.h: Likewise.
29144 * lib/posix_wrap/wchar.h: Likewise.
29145 * lib/posix_wrap/wctype.h: Likewise.
29146 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29147 (grub_script.yy.h): Likewise.
29148 * script/yylex.l: Remove POSIX emulation #defines.
29149 * Makefile.in (POSIX_CFLAGS): New variable.
29150 (GNULIB_UTIL_CFLAGS): Likewise.
29154 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29155 (regexp_mod_SOURCES): New variable.
29156 (regexp_mod_CFLAGS): Likewise.
29157 (regexp_mod_LDFLAGS): Likewise.
29158 * commands/regexp.c: New file.
29159 * gnulib/regcomp.c: New file. Imported from gnulib.
29160 * gnulib/regex.c: Likewise.
29161 * gnulib/regex_internal.c: Likewise.
29162 * gnulib/regex_internal.h: Likewise.
29163 * gnulib/regexec.c: Likewise.
29164 * gnulib/regex.h: Likewise.
29166 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29168 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29169 unsupported video mode types.
29171 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29173 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29175 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29177 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29178 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29180 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29182 Remove unused grub_vga_get_font.
29184 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29185 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29187 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29189 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29190 * include/grub/misc.h: Likewise.
29192 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29194 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29195 for which failure is fatal.
29197 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29199 * util/grub-install.in: Use mkdir -p to create grub directory.
29200 * util/i386/efi/grub-install.in: Likewise.
29201 * util/ieee1275/grub-install.in: Likewise.
29203 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29205 * Makefile.in (LEX): new variable.
29207 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29209 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29210 `=' and added double quotes on operands of this equality test.
29212 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29214 * Makefile.in (uninstall): Remove a leftover debug echo.
29215 Reported by: Grégoire Sutre
29217 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29219 MIPS multiboot2 support.
29221 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29222 (multiboot2_mod_SOURCES): New variable.
29223 (multiboot2_mod_CFLAGS): Likewise.
29224 (multiboot2_mod_LDFLAGS): Likewise.
29225 (multiboot2_mod_ASFLAGS): Likewise.
29226 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29228 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29229 (MULTIBOOT_MBI_REGISTER): Likewise.
29230 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29231 (MULTIBOOT_ELF32_MACHINE): Likewise.
29232 (MULTIBOOT_ELF64_MACHINE): Likewise.
29233 * include/grub/mips/multiboot.h: New file.
29234 * include/grub/video.h (grub_video_driver_id): New type
29235 GRUB_VIDEO_DRIVER_SM712.
29236 (grub_video_get_info_and_fini): Export.
29237 (grub_video_get_palette): Likewise.
29238 (grub_video_get_driver_id): Likewise.
29239 * include/multiboot2.h: Resynced with spec.
29240 * loader/i386/multiboot.c: Moved from here ...
29241 * loader/multiboot.c: ... here. All users updated.
29242 (grub_multiboot_boot): Use platform-specific macros.
29243 * loader/i386/multiboot_elfxx.c: Moved from here ...
29244 * loader/multiboot_elfxx.c: ... here. All users updated.
29245 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29246 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29247 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29249 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29251 Import gnulib argp module.
29253 * gnulib/argp-ba.c: New file.
29254 * gnulib/argp-eexst.c: Likewise.
29255 * gnulib/argp-fmtstream.c: Likewise.
29256 * gnulib/argp-fmtstream.h: Likewise.
29257 * gnulib/argp-fs-xinl.c: Likewise.
29258 * gnulib/argp-help.c: Likewise.
29259 * gnulib/argp-namefrob.h: Likewise.
29260 * gnulib/argp-parse.c: Likewise.
29261 * gnulib/argp-pin.c: Likewise.
29262 * gnulib/argp-pv.c: Likewise.
29263 * gnulib/argp-pvh.c: Likewise.
29264 * gnulib/argp-version-etc.c: Likewise.
29265 * gnulib/argp-version-etc.h: Likewise.
29266 * gnulib/argp-xinl.c: Likewise.
29267 * gnulib/argp.h: Likewise.
29269 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29271 * kern/device.c (grub_device_iterate): Clear errors after failed
29274 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29276 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29277 returned by firmware.
29279 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29281 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29282 compilation on coreboot and qemu
29284 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29286 * include/multiboot2.h: Resync with spec.
29288 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29290 Multiboot2 tag support
29292 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29293 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29294 Remove loader/multiboot_loader.c.
29295 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29296 (grub_multiboot2_real_boot): Likewise.
29297 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29298 (grub_get_multiboot_mmap_count): New proto.
29299 (grub_fill_multiboot_mmap): Likewise.
29300 (grub_multiboot_set_video_mode): Likewise.
29301 (grub_multiboot_set_console): Likewise.
29302 (grub_multiboot_load): Likewise.
29303 (grub_multiboot_load_elf): Likewise.
29304 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29305 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29306 * include/multiboot.h: Resynced with specification.
29307 * include/multiboot2.h: Resynced with specification.
29308 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29309 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29310 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29311 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29313 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29314 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29315 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29317 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29319 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29320 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29322 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29323 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29324 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29326 * loader/i386/multiboot_mbi2.c: New file.
29328 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29330 Resync with gnulib.
29332 * Makefile.in (GNULIB_CFLAGS): New variable.
29333 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29334 (grub_script_check_CFLAGS): New variable.
29335 * gnulib/alloca.h: Resync with gnulib.
29336 * gnulib/error.c: Likewise.
29337 * gnulib/error.h: Likewise.
29338 * gnulib/fnmatch.c: Likewise.
29339 * gnulib/fnmatch_loop.c: Likewise.
29340 * gnulib/getdelim.c: Likewise.
29341 * gnulib/getline.c: Likewise.
29342 * gnulib/getopt.c: Likewise.
29343 * gnulib/getopt1.c: Likewise.
29344 * gnulib/getopt_int.h: Likewise.
29345 * gnulib/gettext.h: Likewise.
29346 * gnulib/progname.c: Likewise.
29347 * gnulib/progname.h: Likewise.
29349 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29351 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29352 which is the case with --disabled-nls.
29354 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29355 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29356 * util/misc.c: Likewise.
29357 * util/mkisofs/mkisofs.c: Likewise.
29358 * util/mkisofs/mkisofs.h: Likewise.
29360 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29362 Simplify Apple CC support.
29364 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29365 Add 0 byte at the end not to have a symbol with empty target.
29366 * mmap/i386/pc/mmap_helper.S: Likewise.
29367 * genmk.rb: Ignore errors 2030 and 2050.
29368 * kern/i386/pc/startup.S: Use LOCAL when possible.
29370 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29372 Testcase and the fix for final semicolon on cmdline.
29374 * tests/grub_script_final_semicolon.in: New testcase.
29375 * conf/tests.rmk: Rules for the new testcase.
29376 * script/parser.y: Grammar fix.
29378 2010-03-26 BVK Chaitanya <bvk@localhost>
29380 Blank lines testcase for GRUB script.
29382 * tests/grub_script_blanklines.in: New testcase.
29383 * conf/tests.rmk: Rules for the new testcase.
29385 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29387 Don't use __FILE__.
29389 * genmk.rb: Add -DGRUB_FILE to all C targets.
29390 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29391 * include/grub/list.h: Likewise.
29392 * include/grub/misc.h: Likewise.
29393 * include/grub/mm.h: Likewise.
29394 * include/grub/test.h: Likewise.
29395 * kern/mm.c: Likewise.
29396 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29398 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29400 Sunpc partitions support.
29402 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29403 (grub_fstest_SOURCES): Likewise.
29404 (pkglib_MODULES): Add part_sunpc.mod.
29405 (part_sunpc_mod_SOURCES): New variable.
29406 (part_sunpc_mod_CFLAGS): Likewise.
29407 (part_sunpc_mod_LDFLAGS): Likewise.
29408 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29409 * partmap/sunpc.c: New file.
29411 2010-03-26 BVK Chaitanya <bvk@localhost>
29413 For loop support to GRUB script.
29415 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29416 (grub_script_create_cmdfor): New function prototype.
29417 (grub_script_execute_cmdfor): New function prototype.
29418 * script/execute.c (grub_script_execute_cmdfor): New function.
29419 * script/parser.y (command): New for command.
29420 (forcmd): New grammar rule.
29421 * script/script.c (grub_script_create_cmdfor): New function.
29422 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29424 * tests/grub_script_for1.in: New testcase.
29425 * conf/tests.rmk: Rules for new testcase.
29427 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29431 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29432 'partition' is NULL, grub_partition_get_start already does that.
29433 * commands/loadenv.c (check_blocklists): Likewise.
29434 (write_blocklists): Likewise.
29435 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29436 (grub_fstest_SOURCES): Likewise.
29437 (pkglib_MODULES): Add part_bsd.mod.
29438 (part_bsd_mod_SOURCES): New variable.
29439 (part_bsd_mod_CFLAGS): Likewise.
29440 (part_bsd_mod_LDFLAGS): Likewise.
29441 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29442 (grub_emu_SOURCES): Likewise.
29443 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29444 * include/grub/bsdlabel.h: New file.
29445 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29447 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29448 (grub_partition_map_list): New variable.
29449 (grub_partition_map_register): Inline.
29450 (grub_partition_map_unregister): Likewise.
29451 (FOR_PARTITION_MAPS): New macro.
29452 (grub_partition_map_iterate): Removed.
29453 (grub_partition_get_start): Handle nested partitions.
29454 * include/grub/msdos_partition.h: Remove bsd-related entries.
29455 (grub_pc_partition): Remove.
29456 * kern/disk.c (grub_disk_close): Free partition data.
29457 (grub_disk_adjust_range): Handle nested partitions.
29458 * kern/partition.c (grub_partition_map_probe): New function.
29459 (grub_partition_probe): Parse name to number, handle subpartitions.
29460 (get_partmap): New function.
29461 (grub_partition_iterate): Handle subpartitions.
29462 (grub_partition_get_name): Likewise.
29463 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29464 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29465 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29466 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29468 (acorn_partition_map_probe): Remove.
29469 (acorn_partition_map_get_name): Likewise.
29470 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29472 Set 'index' to 0 since there can be only one partition entry per sector.
29473 (amiga_partition_map_probe): Remove.
29474 (amiga_partition_map_get_name): Likewise.
29475 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29477 Set 'offset' and 'index' to real positions of partitions.
29478 (apple_partition_map_probe): Remove.
29479 (apple_partition_map_get_name): Likewise.
29480 * partmap/bsdlabel.c: New file.
29481 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29483 Allocate 'data' so it can be correctly freed.
29484 Set 'index' to offset inside sector.
29485 (gpt_partition_map_probe): Remove.
29486 (gpt_partition_map_get_name): Likewise.
29487 * partmap/msdos.c (grub_partition_parse): Remove.
29488 (pc_partition_map_iterate): Don't force raw access.
29490 Make 'ext_offset' a local variable.
29491 (pc_partition_map_probe): Remove.
29492 (pc_partition_map_get_name): Remove.
29493 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29495 (sun_partition_map_probe): Remove.
29496 (sun_partition_map_get_name): Likewise.
29497 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29498 (grub_pcpart_type): Likewise.
29499 * util/hostdisk.c (open_device): Handle new numbering scheme.
29500 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29501 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29502 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29503 * util/grub-install.in: Insert all subpartition modules.
29504 * util/ieee1275/grub-install.in: Likewise.
29506 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29508 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29511 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29513 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29515 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29517 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29518 match where 'make install' puts them.
29519 * util/i386/efi/grub-install.in: Likewise.
29521 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29523 * .bzrignore: Add gentrigtables, grub-script-check,
29524 grub_script_check_init.c, grub_script_check_init.h, and
29527 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29529 * kern/parser.c: Indented.
29531 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29533 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29535 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29537 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29538 alpha_mask_size == 0 case.
29540 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29542 GRUB shell lexer and parser improvements.
29544 * conf/any-emu.rmk: Build rule updates.
29545 * conf/common.rmk: Likewise.
29546 * conf/i386-coreboot.rmk: Likewise.
29547 * conf/i386-efi.rmk: Likewise.
29548 * conf/i386-ieee1275.rmk: Likewise.
29549 * conf/i386-pc.rmk: Likewise.
29550 * conf/powerpc-ieee1275.rmk: Likewise.
29551 * conf/x86_64-efi.rmk: Likewise.
29553 * configure.ac: Configure check for flex.
29555 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29557 (grub_lexer_param): Struct member updates.
29558 (grub_parser_param): Likewise.
29559 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29560 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29561 (grub_script_lexer_init): Prototype update.
29562 (grub_script_lexer_record_start): Likewise.
29563 (grub_script_lexer_record_stop): Likewise.
29564 (grub_script_lexer_yywrap): New function prototype.
29565 (grub_script_lexer_fini): Likewise.
29566 (grub_script_execute_argument_to_string): Removed by...
29567 (grub_script_execute_argument_to_argv): ...better version.
29569 * script/execute.c (ROUND_UPTO): New macro.
29570 (grub_script_execute_cmdline): Out of memory fixes.
29571 (grub_script_execute_menuentry): Likewise.
29572 (grub_script_execute_argument_to_string): Removed. Update all
29574 (grub_script_execute_argument_to_argv): ...better version.
29575 * script/function.c (grub_script_function_create): Use
29576 grub_script_execute_argument_to_argv instead of
29577 grub_script_execute_argument_to_string.
29579 * script/lexer.c (check_varstate): Removed.
29580 (check_textstate): Removed.
29581 (grub_script_lexer_record_start): Likewise.
29582 (grub_script_lexer_record_stop): Likewise.
29583 (recordchar): Replaced with...
29584 (grub_script_lexer_record): ...new function.
29585 (nextchar): Removed.
29586 (grub_script_lexer_init): Rewritten.
29587 (grub_script_yylex): Rewritten.
29588 (append_newline): New function.
29589 (grub_script_lexer_yywrap): New function.
29590 (grub_script_lexer_fini): New function.
29591 (grub_script_yyerror): Sets error flag.
29593 * script/yylex.l: New file.
29594 (grub_lexer_yyfree): Wrapper for flex yyffre.
29595 (grub_lexer_yyalloc): Likewise.
29596 (grub_lexer_yyrealloc): Likewise.
29597 * script/parser.y: Refactored.
29599 * script/script.c (grub_script_arg_add): Out of memory fixes.
29600 (grub_script_add_arglist): Likewise.
29601 (grub_script_create_cmdline): Likewise.
29602 (grub_script_create_cmdmenu): Likewise.
29603 (grub_script_add_cmd): Likewise.
29604 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29605 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29608 * tests/grub_script_echo1.in: New testcase.
29609 * tests/grub_script_vars1.in: New testcase.
29610 * tests/grub_script_echo_keywords.in: New testcase.
29612 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29614 Remove some redundancy in build system.
29616 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29617 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29618 (TARGET_LDFLAGS): Add -nostdlib.
29619 (TARGET_IMG_LDFLAGS): Likewise.
29620 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29621 anything since mmap isn't available.
29622 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29624 (pkglib_MODULES): Remove reboot.mod.
29625 (reboot_mod_SOURCES): Removed.
29626 (reboot_mod_CFLAGS): Likewise.
29627 (reboot_mod_LDFLAGS): Likewise.
29628 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29629 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29630 (DEFSYMFILES): Add kernel_syms.lst.
29631 (kernel_img_HEADERS): Add common headers.
29632 (symlist.c): New target.
29633 (kernel_syms.lst): Likewise.
29634 (pkglib_MODULES): Add memdisk.mod.
29635 (memdisk_mod_SOURCES): New variable.
29636 (memdisk_mod_CFLAGS): Likewise.
29637 (memdisk_mod_LDFLAGS): Likewise.
29638 (pkglib_MODULES): Add reboot.mod.
29639 (reboot_mod_SOURCES): New variable.
29640 (reboot_mod_CFLAGS): Likewise.
29641 (reboot_mod_LDFLAGS): Likewise.
29642 (pkglib_MODULES): Add date.mod.
29643 (date_mod_SOURCES): New variable.
29644 (date_mod_CFLAGS): Likewise.
29645 (date_mod_LDFLAGS): Likewise.
29646 (pkglib_MODULES): Add datehook.mod.
29647 (datehook_mod_SOURCES): New variable.
29648 (datehook_mod_CFLAGS): Likewise.
29649 (datehook_mod_LDFLAGS): Likewise.
29650 (pkglib_MODULES): Add lsmmap.mod.
29651 (lsmmap_mod_SOURCES): New variable.
29652 (lsmmap_mod_CFLAGS): Likewise.
29653 (lsmmap_mod_LDFLAGS): Likewise.
29654 (pkglib_MODULES): Add boot.mod.
29655 (boot_mod_SOURCES): New variable.
29656 (boot_mod_CFLAGS): Likewise.
29657 (boot_mod_LDFLAGS): Likewise.
29658 * conf/i386-coreboot.rmk: Removed redundant parts.
29659 * conf/i386-ieee1275.rmk: Likewise.
29660 * conf/i386-pc.rmk: Likewise.
29661 * conf/mips-yeeloong.rmk: Likewise.
29662 * conf/mips.rmk: Likewise.
29663 * conf/powerpc-ieee1275.rmk: Likewise.
29664 * conf/sparc64-ieee1275.rmk: Likewise.
29665 * conf/x86_64-efi.rmk: Likewise.
29666 * conf/i386-coreboot.rmk: Moved qemu parts ..
29667 * conf/i386-qemu.rmk: ... here
29668 * conf/i386-efi.rmk: Moved common parts to...
29669 * conf/x86-efi.rmk: ... here.
29670 * conf/i386.rmk: Added modules common to all x86 variants.
29671 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29672 * disk/memdisk.c: Remove grub/machine/kernel.h.
29673 * gensymlist.sh.in: Include symbol.h.
29674 * hook/datehook.c: Correct module name.
29675 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29676 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29677 * include/grub/i386/efi/serial.h: New file.
29678 * include/grub/x86_64/efi/serial.h: Likewise.
29679 * util/time.c: Likewise.
29680 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29682 2010-03-14 Colin King <colin.king@ubuntu.com>
29683 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29685 Shrink the pre-partition-table part of boot.img by eight bytes.
29687 * boot/i386/pc/boot.S (ERR): New macro.
29688 (chs_mode): Use ERR.
29689 (geometry_error): Likewise.
29690 (hd_probe_error): Remove. This is only used once, so we wrwite
29692 (read_error): Instead of printing read_error_string, just set up
29693 %si and fall through to ...
29694 (error_message): ... this new function, also used by ERR.
29696 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29698 Speed up consecutive hostdisk operations on the same device.
29700 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29701 (grub_util_biosdisk_open): Initialise disk->data.
29702 (struct linux_partition_cache): New structure.
29703 (linux_find_partition): Cache partition start positions; these are
29704 expensive to compute on every read and write.
29705 (open_device): Cache open file descriptor in disk->data, so that we
29706 don't have to reopen it and flush the buffer cache for consecutive
29707 operations on the same device.
29708 (grub_util_biosdisk_close): New function.
29709 (grub_util_biosdisk_dev): Set `close' member.
29711 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29712 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29713 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29714 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29715 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29717 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29719 Compile parts of grub-emu as modules.
29721 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29722 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29723 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29724 (all-local): Add $(GRUB_EMU).
29725 (install-local): Install $(GRUB_EMU).
29726 (uninstall): Uninstall $(GRUB_EMU).
29727 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29728 * kern/dl.c: Likewise.
29729 * commands/sleep.c: Not include machine/time.h.
29730 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29731 (COMMON_CFLAGS): Likewise.
29732 (sbin_UTILITIES): Remove grub-emu.
29733 (grub_emu_SOURCES): Removed.
29734 (kernel_img_RELOCATABLE): New variable.
29735 (pkglib_PROGRAMS): Add kernel.img.
29736 (kernel_img_SOURCES): New variable
29737 (kernel_img_CFLAGS): Likewise.
29738 (kernel_img_LDFLAGS): Likewise.
29739 (TARGET_NO_STRIP): Likewise.
29740 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29741 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29742 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29743 (grub-emu): New target.
29744 (GRUB_EMU): New variable.
29745 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29746 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29747 * loader/xnu.c: Likewise.
29748 * include/grub/pci.h: Likewise.
29749 * genemuinit.sh: New file.
29750 * genemuinitheader.sh: Likewise.
29751 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29752 Support TARGET_NO_DYNAMIC_MODULES.
29753 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29754 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29755 * disk/loopback.c: Likewise.
29756 * font/font_cmd.c: Likewise.
29757 * partmap/acorn.c: Likewise.
29758 * partmap/amiga.c: Likewise.
29759 * partmap/apple.c: Likewise.
29760 * partmap/gpt.c: Likewise.
29761 * partmap/msdos.c: Likewise.
29762 * partmap/sun.c: Likewise.
29763 * parttool/msdospart.c: Likewise.
29764 * term/gfxterm.c: Likewise.
29765 * video/bitmap.c: Likewise.
29766 * video/readers/jpeg.c: Likewise.
29767 * video/readers/png.c: Likewise.
29768 * video/readers/tga.c: Likewise.
29769 * video/video.c: Likewise.
29770 * util/grub-emu.c (read_command_list): Removed.
29771 (main): Don't call util_init_nls.
29772 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29773 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29775 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29777 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29778 date.mod, datehook.mod.
29779 (datetime_mod_SOURCES): New variable.
29780 (datetime_mod_CFLAGS): Likewise.
29781 (datetime_mod_LDFLAGS): Likewise.
29782 (date_mod_SOURCES): Likewise.
29783 (date_mod_CFLAGS): Likewise.
29784 (date_mod_LDFLAGS): Likewise.
29785 (datehook_mod_SOURCES): Likewise.
29786 (datehook_mod_CFLAGS): Likewise.
29787 (datehook_mod_LDFLAGS): Likewise.
29788 * conf/sparc64-ieee1275.rmk: Likewise.
29789 * lib/ieee1275/datetime.c: New file.
29791 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29793 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29794 (ieee1275_fb_mod_SOURCES): New variable.
29795 (ieee1275_fb_mod_CFLAGS): Likewise.
29796 (ieee1275_fb_mod_LDFLAGS): Likewise.
29797 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29799 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29800 (HEAP_MAX_ADDR): Likewise.
29801 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29803 Correct stop condition.
29804 (grub_ieee1275_devices_iterate): New function.
29805 * video/ieee1275.c: New file.
29807 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29809 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29811 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29813 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29814 SCRATCH_PAD_DISKBOOT as scratch.
29815 (bootit): Pass Openfirmware pointer in %o4.
29816 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29818 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29819 with util/grub-mkrawimage.c.
29820 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29821 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29822 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29823 (grub_aout_load) [GRUB_UTIL]: Likewise.
29824 * include/grub/kernel.h (grub_modules_get_end): New proto.
29825 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29826 (SCRATCH_PAD_BOOT): New definition.
29827 (SCRATCH_PAD_DISKBOOT): Likewise.
29828 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29829 * include/grub/sparc64/ieee1275/ieee1275.h
29830 (grub_ieee1275_original_stack): New variable
29831 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29833 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29834 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29835 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29836 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29837 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29838 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29839 (grub_platform_image_format_t): New type.
29840 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29841 * kern/main.c (grub_modules_get_end)
29842 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29843 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29844 (codestart): Switch stacks.
29845 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29847 (grub_heap_init): Use grub_modules_get_end.
29848 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29850 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29852 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29854 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29856 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29858 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29860 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29863 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29865 * genmoddep.awk: Output all missing symbols and not only first.
29867 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29869 * NEWS: Put the date of 1.98 release.
29871 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29873 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29876 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29878 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29879 completition in the middle of string.
29881 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29883 * util/grub-mkrescue.in: Use mktemp with explicit template.
29885 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29887 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29889 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29891 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29894 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29896 Fix FreeBSD compilation.
29898 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29899 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29901 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29903 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29905 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29907 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29909 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29911 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29913 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29915 Support relative image path in theme file.
29917 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29918 (image_set_property): Handle theme_dir and relative path.
29920 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29922 * configure.ac: Alias amd64 to x86_64.
29924 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29926 * NEWS: mention multiboot on EFI.
29928 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29930 * kern/main.c (grub_load_modules): Handle errors from init functions of
29933 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29935 * normal/autofs.c (autoload_fs_module): Handle errors.
29937 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29939 Disable linux.mod on qemu-mips since it's not functional and leads
29940 to compilation failure.
29942 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29943 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29944 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29945 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29946 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29947 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29948 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29949 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29950 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29951 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29952 Reported by: BVK Chaitanya
29954 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29956 * INSTALL: Add gettext as a dependency and add qemu to a new section
29957 "Prerequisites for make-check".
29959 2010-03-04 Christian Franke <franke@computer.org>
29961 * util/grub-pe2elf.c: Add missing include "progname.h".
29963 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29965 * normal/crypto.c (read_crypto_list): Fix a typo.
29966 Reported by: Seth Goldberg.
29968 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29970 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29971 Reported by: Seth Goldberg.
29973 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29975 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
29978 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29980 * genmk.rb: Remove terminal*.lst in make clean.
29981 Reported by: Seth Goldberg.
29983 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29985 * util/i386/efi/grub-install.in: Copy gettext files.
29987 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29989 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
29991 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29993 Wait for user entry basing on presence of output rather than on errors.
29995 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
29996 (grub_install_newline_hook): Likewise.
29997 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
29998 * normal/menu.c (show_menu): Check line_counter to determine presence
30000 * normal/term.c (grub_normal_line_counter): New variable.
30001 (grub_normal_get_line_counter): New function.
30002 (grub_install_newline_hook): Likewise.
30004 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30006 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30008 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30010 * configure.ac: Update version to 1.98.
30012 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30014 * util/grub.d/10_linux.in (linux_entry): Don't default to
30015 gfxpayload=keep if Linux doesn't support video handover.
30017 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30019 Don't compile video modules on yeeloong since video subsystem is part
30022 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30023 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30024 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30025 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30026 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30027 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30028 * include/grub/bitmap_scale.h: Likewise.
30029 * include/grub/bufio.h: Likewise.
30030 * include/grub/font.h: Likewise.
30031 * include/grub/gfxterm.h: Likewise.
30032 * include/grub/video.h: Likewise.
30033 * include/grub/vbe.h: Don't include video_fb.h.
30034 * video/i386/pc/vbe.c: Include video_fb.h.
30035 * commands/i386/pc/vbetest.c: Include video.h.
30037 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30039 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30040 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30041 default entry if GRUB_SAVEDEFAULT=true. This allows using
30042 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30043 saving a new default on every boot.
30045 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30047 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30048 * normal/term.c (read_terminal_list): Likewise.
30049 * normal/main.c (grub_normal_init_page): Likewise.
30050 (grub_normal_read_line_real): Likewise.
30052 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30054 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30056 Reported by: Seth Goldberg.
30058 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30060 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30061 duplicate declaration of `start'.
30063 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30065 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30067 Reported by: Georgy Buranov
30069 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30071 * util/grub-mkrawimage.c (usage): Change string formatting to
30074 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30076 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30079 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30081 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30082 Reported by: Michael Suchanek.
30084 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30086 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30087 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30089 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30091 Remove any reference to non-free fonts.
30093 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30094 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30095 uses non-free components.
30096 * font/font.c (grub_font_get_name): Remove example name.
30097 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30098 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30099 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30100 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30102 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30104 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30106 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30108 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30110 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30112 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30114 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30116 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30118 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30120 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30121 * docs/grub.texi (Command-line and menu entry commands): Document play
30124 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30126 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30127 parse arguments as inline tempo and notes. Move code for playing notes
30129 (play): ... new function.
30131 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30133 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30134 grub_uint16_t instead of short.
30135 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30136 disk from little endian to cpu endianness.
30138 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30140 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30141 GRUB_TICKS_PER_SECOND instead of 120.
30143 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30145 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30146 escape sequence after \e.
30148 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30150 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30151 non-ASCII characters.
30153 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30155 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30156 set root in single quotes to prevent \, from being unescaped.
30158 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30160 Prevent unknown commands from stopping menuentry execution.
30162 * script/execute.c (grub_script_execute_cmdline): Print error after
30165 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30167 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30168 Reported by: Pavel Pisa.
30170 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30172 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30174 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30176 Merge grub_ieee1275_map_physical into grub_map and rename to
30179 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30180 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30182 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30183 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30185 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30187 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30189 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30190 opening and not after.
30192 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30194 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30197 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30199 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30200 (alloc_phys): Use ALIGN_UP instead of align_addr.
30202 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30204 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30206 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30208 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30210 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30212 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30215 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30217 Fix over-4GiB seek on sparc64.
30219 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30220 Replace pos_i and pos_lo with pos. All users updated.
30221 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30223 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30225 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30228 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30230 * util/grub-mkrawimage.c (main): Call set_program_name.
30232 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30234 Properly align 64-bit targets.
30236 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30237 (generate_image): Use ALIGN_ADDR.
30239 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30241 Properly create cross-endian images.
30243 * include/grub/types.h (grub_host_to_target_addr): New macro
30244 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30246 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30248 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30250 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30252 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30254 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30255 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30256 (grub_linux_boot): Divide by 64K when on VESA.
30258 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30260 Support GRUB_GFXPAYLOAD_LINUX.
30262 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30263 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30265 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30267 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30268 to show messages instead of discarding them.
30269 Process errors after executing command and not before. Keep old method
30272 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30274 * configure.ac: Check for ft2build.h.
30276 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30278 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30280 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30282 * genkernsyms.sh.in: Use TARGET_CC.
30284 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30288 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30290 * include/grub/multiboot2.h: Remove leftover file.
30291 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30292 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30294 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30296 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30298 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30300 Fix warnings in grub-emu when compiling with maximum warning options.
30302 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30303 (grub_arch_modules_addr): Return 0 and not NULL.
30304 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30305 (xstrdup): Use newstr instead of dup.
30306 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30307 of disk to dsk to avoid shadowing.
30308 (find_free_slot): Fix prototype.
30309 * util/getroot.c (grub_util_is_dmraid): Make static.
30310 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30311 Add missing prototype.
30312 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30314 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30316 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30319 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30321 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30324 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30326 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30327 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30328 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30329 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30330 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30331 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30333 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30335 * include/grub/err.h (grub_err_printf): Don't export.
30337 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30339 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30341 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30343 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30344 * kern/misc.c (grub_gettext_dummy): Make static.
30346 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30348 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30350 * kern/term.c (grub_putchar): Likewise.
30352 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30354 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30355 buggy hook call and memory leak.
30357 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30359 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30361 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30363 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30365 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30367 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30369 Return grub_errno on allocation error.
30371 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30373 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30375 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30377 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30378 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30380 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30382 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30384 (grub_pxefs_open): Likewise.
30386 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30388 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30389 * util/grub.d/10_kfreebsd.in: Likewise.
30390 * util/grub.d/10_linux.in: Likewise.
30392 2010-02-06 Colin D Bennett <colin@gibibit.com>
30394 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30395 (gfxmenu_mod_SOURCES): New variable.
30396 (gfxmenu_mod_CFLAGS): Likewise.
30397 (gfxmenu_mod_LDFLAGS): Likewise.
30398 * include/grub/term.h (grub_term_set_current_output): Declare
30400 * docs/gfxmenu-theme-example.txt: New file.
30401 * gfxmenu/gfxmenu.c: Likewise.
30402 * gfxmenu/gui_box.c: Likewise.
30403 * gfxmenu/gui_canvas.c: Likewise.
30404 * gfxmenu/gui_circular_progress.c: Likewise.
30405 * gfxmenu/gui_image.c: Likewise.
30406 * gfxmenu/gui_label.c: Likewise.
30407 * gfxmenu/gui_list.c: Likewise.
30408 * gfxmenu/gui_progress_bar.c: Likewise.
30409 * gfxmenu/gui_string_util.c: Likewise.
30410 * gfxmenu/gui_util.c: Likewise.
30411 * gfxmenu/icon_manager.c: Likewise.
30412 * gfxmenu/model.c: Likewise.
30413 * gfxmenu/named_colors.c: Likewise.
30414 * gfxmenu/theme_loader.c: Likewise.
30415 * gfxmenu/view.c: Likewise.
30416 * gfxmenu/widget-box.c: Likewise.
30417 * include/grub/gfxmenu_model.h: Likewise.
30418 * include/grub/gfxmenu_view.h: Likewise.
30419 * include/grub/gfxwidgets.h: Likewise.
30420 * include/grub/gui.h: Likewise.
30421 * include/grub/gui_string_util.h: Likewise.
30422 * include/grub/icon_manager.h: Likewise.
30424 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30426 Agglomerate scrolling in gfxterm.
30428 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30429 (grub_virtual_screen_setup): Initialise 'total_screen'.
30430 (write_char): Split to ...
30431 (paint_char): ... this ...
30432 (write_char): ... and this.
30433 (paint_char): Handle delayed scrolling.
30434 (draw_cursor): Likewise.
30435 (scroll_up): Split to ...
30436 (real_scroll): ... this ...
30437 (scroll_up): ... and this.
30438 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30440 (grub_gfxterm_refresh): Call real_scroll.
30442 2010-02-06 Colin D Bennett <colin@gibibit.com>
30444 * include/grub/misc.h (grub_iscntrl): New inline function.
30445 (grub_isalnum): Likewise.
30446 (grub_strtol): Likewise.
30448 2010-02-06 Colin D Bennett <colin@gibibit.com>
30450 * normal/menu_text.c (get_entry_number): Move from here ...
30451 * normal/menu.c (get_entry_number): ... moved here.
30452 * include/grub/menu.h (grub_menu_get_default_entry_index):
30454 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30455 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30456 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30457 (grub_menu_viewer_should_return): Likewise.
30458 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30459 * normal/menu_text.c (run_menu): Enable menu switching.
30460 * normal/menu_viewer.c (should_return): New variable.
30461 (menu_viewer_changed): Likewise.
30462 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30463 (grub_menu_viewer_should_return): New function.
30464 (menuviewer_write_hook): Likewise.
30465 (grub_menu_viewer_init): Likewise.
30467 2010-02-06 Colin D Bennet <colin@gibibit.com>
30468 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30470 Support for gfxterm in a window.
30472 * include/grub/gfxterm.h: New file.
30473 * include/grub/video.h (struct grub_video_rect): New declaration.
30474 (grub_video_rect_t): Likewise.
30475 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30476 (refcount): New variable.
30477 (render_target): Likewise.
30478 (window): Likewise.
30479 (repaint_callback): Likewise.
30480 (grub_virtual_screen_setup): Use 'render_target'.
30481 (init_window): New function.
30482 (grub_gfxterm_init_window): Likewise.
30483 (grub_gfxterm_init): Check reference counter.
30485 (destroy_window): New function.
30486 (grub_gfxterm_destroy_window): Likewise.
30487 (grub_gfxterm_fini): Check reference counter.
30488 Use destroy_window.
30489 (redraw_screen_rect): Restore viewport.
30490 Use 'render_target' and 'window'.
30491 Call 'repaint_callback'.
30492 (write_char): Use 'render_target'.
30493 (draw_cursor): Likewise.
30494 (scroll_up): Restore viewport.
30495 Use 'render_target' and 'window'.
30496 Call 'repaint_callback'.
30497 (grub_gfxterm_cls): Likewise.
30498 (grub_gfxterm_refresh): Use 'window'.
30499 (grub_gfxterm_set_repaint_callback): New function.
30500 (grub_gfxterm_background_image_cmd): Use 'window'.
30501 (grub_gfxterm_get_term): New function.
30502 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30504 2010-02-06 Colin D Bennett <colin@gibibit.com>
30506 Bitmap scaling support.
30508 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30509 (bitmap_scale_mod_SOURCES): New variable.
30510 (bitmap_scale_mod_CFLAGS): Likewise.
30511 (bitmap_scale_mod_LDFLAGS): Likewise.
30512 * include/grub/bitmap_scale.h: New file.
30513 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30514 (background_image_cmd_options): New variable.
30515 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30516 (cmd): Rename and change type to ...
30517 (background_image_cmd_handle): ... this. All users updated.
30518 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30519 * video/bitmap_scale.c: New file.
30521 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30525 * Makefile.in (LIBSDL): New variable.
30526 (enable_grub_emu_sdl): Likewise.
30527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30528 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30529 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30530 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30531 * util/sdl.c: New file.
30533 2010-02-06 Colin D Bennett <colin@gibibit.com>
30534 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30536 Double buffering support.
30538 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30539 * include/grub/video.h: Update comment.
30540 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30542 (grub_video_fb_doublebuf_blit_init): New prototype.
30543 * term/gfxterm.c (scroll_up): Support double buffering.
30544 (grub_gfxterm_refresh): Likewise.
30545 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30546 (grub_video_fb_doublebuf_blit_init): Likewise.
30547 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30548 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30549 'displayed_page', 'render_page' and 'update_screen'.
30550 (grub_video_vbe_fini): Free offscreen buffer.
30551 (doublebuf_pageflipping_commit): New function.
30552 (doublebuf_pageflipping_update_screen): Likewise.
30553 (doublebuf_pageflipping_init): Likewise.
30554 (double_buffering_init): Likewise.
30555 (grub_video_vbe_setup): Enable doublebuffering.
30556 (grub_video_vbe_swap_buffers): Implement.
30557 (grub_video_vbe_set_active_render_target): Handle double buffering.
30558 (grub_video_vbe_get_active_render_target): Likewise.
30559 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30560 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30561 (grub_video_vbe_enable_double_buffering): Likewise.
30562 (grub_video_vbe_swap_buffers): Use update_screen.
30563 (grub_video_set_mode): Use double buffering.
30565 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30567 * maintainance/gentrigtables.py: Remove.
30568 * lib/trig.c: Likewise.
30570 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30572 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30574 (trigtables.c): New rule.
30575 (gentrigtables): Likewise.
30576 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30578 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30580 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30583 2010-02-06 Colin D Bennet <colin@gibibit.com>
30585 Trigonometry support.
30587 * include/grub/trig.h: New file.
30588 * lib/trig.c: Likewise.
30589 * maintainance/gentrigtables.py: Likewise.
30590 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30591 (trig_mod_SOURCES): New variable.
30592 (trig_mod_CFLAGS): Likewise.
30593 (trig_mod_LDFLAGS): Likewise.
30595 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30597 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30600 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30602 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30605 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30607 * util/hostdisk.c (open_device): Don't use partition device when reading
30608 before the partition.
30609 (grub_util_biosdisk_read): Don't read from partition and before the
30610 partition in single operation.
30611 (grub_util_biosdisk_write): Don't write to partition and before the
30612 partition in single operation.
30614 2010-02-03 Torsten Landschoff <torsten@debian.org>
30616 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30619 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30621 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30623 (grub_biosdisk_write): Refuse to write to CDROM.
30625 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30627 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30629 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30631 * font/font.c (find_glyph): Check that bmp_idx is available before
30633 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30634 with (font == NULL).
30636 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30638 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30640 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30642 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30643 * util/grub-script-check.c (getline): Fix empty lines case.
30645 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30647 * Makefile.in (check): Exit with fail status when one of the tests
30649 * tests/example_functional_test.c (example_test): Fix reversed assert.
30650 * tests/example_unit_test.c (example_test): Likewise.
30652 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30654 * util/grub.d/10_linux.in: This script does not use any of the
30655 contents of gettext.sh, only the external command `gettext', so stop
30656 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30657 the same prefix as GRUB.)
30658 * util/grub.d/10_kfreebsd.in: Likewise.
30660 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30662 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30665 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30667 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30670 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30672 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30673 having a 4KiB and not 32KiB buffer size.
30675 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30677 * util/hostfs.c: Include `<errno.h>'.
30678 (grub_hostfs_read): Handle errors from fseeko() and fread().
30680 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30682 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30683 loop when using read hooks on files whose size isn't sector-aligned.
30685 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30687 Remove unused parameter.
30689 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30690 (grub_iso9660_open): Remove initialization of `data->length'.
30692 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30694 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30695 memleak conditions.
30697 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30699 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30700 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30702 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30704 * util/bin2h.c (usage): Fix warning (space after backslash).
30706 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30708 * font/font.c: Include `grub/fontformat.h.
30709 Remove font file format constants.
30710 (grub_font_load): Use the new macros.
30711 * include/grub/fontformat.h: New file.
30712 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30713 (write_font_pf2): Use the new macros.
30715 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30717 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30720 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30722 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30724 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30725 (_start): Macroify `0x7F'.
30727 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30728 (make_install_device): Use "(pxe)" as fallback prefix when booting
30731 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30733 * configure.ac: Reset LIBS after check for libgcc symbols.
30735 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30737 * util/hostdisk.c (open_device): Add trailing newline to debug
30740 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30742 * configure.ac: Check for `limits.h'.
30743 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30745 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30747 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30748 capitalize error strings.
30750 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30752 * util/grub.d/10_hurd.in: Add a recovery mode.
30754 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30756 * configure.ac: Check for libgcc symbols with -nostdlib.
30758 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30760 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30762 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30764 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30765 stack since heap may be unavailable at that point.
30766 (grub_ofconsole_gotoxy): Likewise.
30768 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30770 * configure.ac: Check for _restgpr_14_x.
30771 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30772 and _savegpr_* prototypes.
30774 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30776 Use generic grub_reboot() for i386-efi.
30778 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30779 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30780 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30782 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30784 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30785 presence of "prefix" variable as it breaks when normal.mod is
30788 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30790 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30791 stack since heap is unavailable at that point.
30793 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30795 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30796 (grub_freebsd_bootinfo): Rewritten.
30797 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30799 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30801 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30803 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30805 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30808 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30810 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30811 around for handling "/" to the correct fix. Fix a memory leak. Use
30812 xstrdup instead of strdup.
30814 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30816 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30818 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30820 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30822 * font/font.c (struct grub_font): New member 'bmp_idx'.
30823 (font_init): Initialise 'bmp_idx'.
30824 (load_font_index): Fill 'bmp_idx'.
30825 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30827 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30829 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30832 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30834 Move context handling out of the kernel.
30836 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30837 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30838 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30839 * conf/i386-efi.rmk: Likewise.
30840 * conf/i386-ieee1275.rmk: Likewise.
30841 * conf/i386-pc.rmk: Likewise.
30842 * conf/powerpc-ieee1275.rmk: Likewise.
30843 * conf/sparc64-ieee1275.rmk: Likewise.
30844 * conf/x86_64-efi.rmk: Likewise.
30845 * include/grub/env.h: Include grub/menu.h.
30846 (grub_env_var_type): Removed.
30847 (grub_env_var): Replaced field 'type' with 'global'.
30848 (grub_env_find): New prototype.
30849 (grub_env_context_open): Remove EXPORT_FUNC.
30850 (grub_env_context_close): Likewise.
30851 (grub_env_export): Likewise.
30852 (grub_env_set_data_slot): Removed.
30853 (grub_env_get_data_slot): Likewise.
30854 (grub_env_unset_data_slot): Likewise.
30855 (grub_env_unset_menu): New prototype.
30856 (grub_env_set_menu): Likewise.
30857 (grub_env_get_menu): Likewise.
30858 * include/grub/env_private.h: New file.
30859 * include/grub/normal.h (grub_context_init): New prototype.
30860 (grub_context_fini): Likewise.
30861 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30862 * normal/context.c (grub_cmd_export): ... to here.
30863 * kern/env.c: Include env_private.h.
30864 (HASHSZ): Moved to include/grub/env_private.h.
30865 (grub_env_context): Likewise.
30866 (grub_env_sorted_var): Likewise.
30867 (current_context): Renamed from this ...
30868 (grub_current_context): ...to this. 'static' removed. All users updated.
30869 (grub_env_find): Removed 'static'.
30870 (grub_env_context_open): Moved to normal/context.c.
30871 (grub_env_context_close): Likewise.
30872 (grub_env_export): Likewise.
30873 (mangle_data_slot_name): Removed.
30874 (grub_env_set_data_slot): Likewise.
30875 (grub_env_get_data_slot): Likewise.
30876 (grub_env_unset_data_slot): Likewise.
30877 * kern/main.c (grub_set_root_dev): Don't export root.
30878 It will be done later.
30879 (grub_main): Don't export prefix.
30880 It will be done later.
30881 * normal/context.c: New file.
30882 * normal/main.c (free_menu): Use grub_env_unset_menu.
30883 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30884 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30885 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30886 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30888 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30892 * commands/setpci.c: New file.
30893 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30894 (setpci_mod_SOURCES): New variable.
30895 (setpci_mod_CFLAGS): Likewise.
30896 (setpci_mod_LDFLAGS): Likewise.
30898 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30900 Byte-addressable PCI configuration space.
30902 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30904 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30905 GRUB_PCI_REG_CACHELINE.
30906 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30907 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30908 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30909 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30910 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30911 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30912 grub_pci_make_address.
30913 (lock_rom_area): Likewise.
30914 * commands/lspci.c (grub_lspci_iter): Use macroses
30915 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30916 of grub_pci_make_address.
30917 * disk/ata.c (grub_ata_pciinit): Likewise.
30918 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30919 (GRUB_PCI_REG_VENDOR): Likewise.
30920 (GRUB_PCI_REG_DEVICE): Likewise.
30921 (GRUB_PCI_REG_COMMAND): Likewise.
30922 (GRUB_PCI_REG_STATUS): Likewise.
30923 (GRUB_PCI_REG_REVISION): Likewise.
30924 (GRUB_PCI_REG_CLASS): Likewise.
30925 (GRUB_PCI_REG_CACHELINE): Likewise.
30926 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30927 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30928 (GRUB_PCI_REG_BIST): Likewise.
30929 (GRUB_PCI_REG_ADDRESSES): Likewise.
30930 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30931 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30932 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30933 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30934 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30935 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30936 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30937 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30938 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30939 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30940 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30941 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30942 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30943 (GRUB_PCI_REG_MIN_GNT): Likewise.
30944 (GRUB_PCI_REG_MAX_LAT): Likewise.
30945 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30946 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30947 * video/efi_uga.c (find_framebuf): Likewise.
30948 * video/sm712.c (grub_video_sm712_setup): Likewise.
30949 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30952 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30954 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30955 can be reliably determined to be supported.
30957 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30959 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30960 that VESA is supported.
30961 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30964 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30966 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30968 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30970 * util/misc.c (make_system_path_relative_to_its_root): Work around
30971 special-casing of "/", as previous incarnation of this routine did.
30973 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30975 Fix any-emu compilation.
30977 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
30978 * grub_bin2h_SOURCES: New variable.
30980 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30982 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
30984 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30986 * util/grub.d/00_header.in: Fix handling of locale_dir.
30988 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30990 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
30991 as possible unifont location (Gentoo).
30992 Reported by: Alexander Brüning
30994 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30996 Don't try to generate lists for kernel.img.
30998 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
30999 (pkglib_MODULES): Remove kernel.img.
31000 (kernel_img_EXPORTS): Removed.
31001 (kernel_img_RELOCATABLE): New variable.
31002 * conf/x86_64-efi.rmk: Likewise.
31003 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31005 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31007 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31008 grub_xasprintf or grub_snprintf.
31009 (grub_vsprintf): Likewise.
31010 (grub_snprintf): New proto.
31011 (grub_vsnprintf): Likewise.
31012 (grub_xasprintf): Likewise.
31013 (grub_xvasprintf): Likewise.
31014 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31015 (grub_sprintf): Removed.
31016 (grub_vsnprintf): New function.
31017 (grub_snprintf): Likewise.
31018 (grub_xvasprintf): Likewise.
31019 (grub_xasprintf): Likewise.
31020 (grub_vsprintf): Renamed to ...
31021 (grub_vsnprintf_real): ...this. New argument max_len.
31023 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31025 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31026 fix grub-script-check warning.
31028 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31030 * include/grub/font.h (grub_font_load): Fix prototype.
31032 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31034 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31036 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31038 * include/grub/x86_64/at_keyboard.h: New file.
31040 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31042 * loader/mips/linux.c: Include missing grub/i18n.h.
31044 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31046 * normal/menu.c (notify_execution_failure): Clarify error message.
31048 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31050 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31051 return value (and revert all return statements). Update users.
31053 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31055 * kern/device.c (grub_device_iterate): Allocate new part_ent
31056 structure based on sizeof (*p) rather than sizeof (p->next), to
31057 account for structure padding.
31059 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31060 disk is NULL, which might happen for LVM physical volumes with no
31063 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31065 * loader/mips/linux.c (grub_cmd_initrd)
31066 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31068 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31070 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31071 (grub_video_video_init, grub_video_bitmap_init)
31072 (grub_font_manager_init, grub_term_gfxterm_init)
31073 (grub_at_keyboard_init): New extern declarations.
31074 (grub_machine_init): Initialize gfxterm and at_keyboard.
31076 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31078 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31079 `gfxterm.mod' into core image.
31081 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31082 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31083 (kernel_img_FORMAT): Copy to ...
31085 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31086 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31087 (kernel_img_FORMAT): ... here, and ...
31089 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31090 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31091 (kernel_img_FORMAT): ... here.
31093 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31094 and input (at_keyboard) terminals in kernel.
31095 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31097 (pkglib_MODULES): Remove `pci.mod'.
31098 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31099 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31100 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31101 (at_keyboard_mod_LDFLAGS): Remove variables.
31103 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31105 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31107 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31109 * include/grub/mips/libgcc.h: Only export symbols for functions
31110 that libgcc provides.
31112 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31116 * bus/bonito.c: New file.
31117 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31118 GRUB_PCI_NUM_DEVICES.
31119 * term/i386/pc/serial.c: Move to ...
31120 * term/serial.c: ... here. All users updated.
31121 * util/i386/pc/grub-mkimage.c: Move to ...
31122 * util/grub-mkrawimage.c: ... here. All users updated.
31123 * term/i386/pc/at_keyboard.c: Move to ...
31124 * term/at_keyboard.c: ... here. All users updated.
31125 * conf/mips-qemu-mips.rmk: New file.
31126 * conf/mips-yeeloong.rmk: Likewise.
31127 * conf/mips.rmk: Likewise.
31128 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31130 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31132 (grub_ata_pciinit): Support CS5536.
31133 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31134 * font/font_cmd.c (loadfont_command): Open file before passing it to
31136 (pseudo_file_read): New function.
31137 (pseudo_file_close): Likewise.
31138 (pseudo_fs): New structure.
31139 (load_font_module): New function.
31140 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31141 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31142 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31143 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31144 * include/grub/i386/at_keyboard.h: Split into ...
31145 * include/grub/at_keyboard.h: ... this ...
31146 * include/grub/i386/at_keyboard.h: ... and this.
31147 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31149 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31151 (grub_elf64_size): Likewise.
31152 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31154 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31155 * include/grub/i386/coreboot/serial.h: Rewritten.
31156 * include/grub/i386/ieee1275/serial.h: Include
31157 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31158 * include/grub/i386/pc/serial.h: Moved from here ...
31159 * include/grub/serial.h: ... to here. All users updated.
31160 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31161 (GRUB_PCI_NUM_BUS): Likewise.
31162 (GRUB_PCI_NUM_DEVICES): Likewise.
31163 (grub_pci_device_map_range): Add missing volatile keyword.
31164 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31165 * include/grub/mips/at_keyboard.h: New file.
31166 * include/grub/mips/cache.h: Likewise.
31167 * include/grub/mips/io.h: Likewise.
31168 * include/grub/mips/kernel.h: Likewise.
31169 * include/grub/mips/libgcc.h: Likewise.
31170 * include/grub/mips/pci.h: Likewise.
31171 * include/grub/mips/qemu-mips/boot.h: Likewise.
31172 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31173 * include/grub/mips/qemu-mips/loader.h: Likewise.
31174 * include/grub/mips/qemu-mips/memory.h: Likewise.
31175 * include/grub/mips/qemu-mips/serial.h: Likewise.
31176 * include/grub/mips/qemu-mips/time.h: Likewise.
31177 * include/grub/mips/relocator.h: Likewise.
31178 * include/grub/mips/time.h: Likewise.
31179 * include/grub/mips/types.h: Likewise.
31180 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31181 * include/grub/mips/yeeloong/boot.h: Likewise.
31182 * include/grub/mips/yeeloong/kernel.h: Likewise.
31183 * include/grub/mips/yeeloong/loader.h: Likewise.
31184 * include/grub/mips/yeeloong/memory.h: Likewise.
31185 * include/grub/mips/yeeloong/pci.h: Likewise.
31186 * include/grub/mips/yeeloong/serial.h: Likewise.
31187 * include/grub/mips/yeeloong/time.h: Likewise.
31188 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31189 * kern/elf.c (grub_elf32_size): New parameter. All users
31191 (grub_elf64_size): Likewise.
31192 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31193 Load modules before saying "Welcome to GRUB!".
31194 Call grub_refresh after saying "Welcome to GRUB!".
31195 * kern/mips/cache.S: New file.
31196 * kern/mips/cache_flush.S: Likewise.
31197 * kern/mips/dl.c: Likewise.
31198 * kern/mips/init.c: Likewise.
31199 * kern/mips/qemu-mips/init.c: Likewise.
31200 * kern/mips/startup.S: Likewise.
31201 * kern/mips/yeeloong/init.c: Likewise.
31202 * kern/term.c (grub_putcode): Handle NULL terminal.
31203 (grub_getcharwidth): Likewise.
31204 (grub_getkey): Likewise.
31205 (grub_checkkey): Likewise.
31206 (grub_getkeystatus): Likewise.
31207 (grub_getxy): Likewise.
31208 (grub_getwh): Likewise.
31209 (grub_gotoxy): Likewise.
31210 (grub_cls): Likewise.
31211 (grub_setcolorstate): Likewise.
31212 (grub_setcolor): Likewise.
31213 (grub_getcolor): Likewise.
31214 (grub_refresh): Likewise.
31215 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31216 (write_jump): Add hatch nop.
31217 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31218 * lib/mips/setjmp.S: New file.
31219 * loader/mips/linux.c: Likewise.
31220 * term/i386/pc/at_keyboard.c: Move from here ...
31221 * term/at_keyboard.c: ... to here.
31222 * term/i386/pc/serial.c: Moved from here ...
31223 * term/serial.c: ... to here. All users updated.
31224 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31225 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31226 (serial_translate_key_sequence): Avoid deadlock.
31227 (grub_serial_getkey): Handle backspace.
31228 (grub_serial_putchar): Fix newline handling.
31229 * util/i386/pc/grub-mkimage.c: Move from here ...
31230 * util/grub-mkrawimage.c: ... to here. All users updated.
31231 (generate_image): New parameters 'font_path' and 'format'.
31232 Support embedding font.
31233 Use grub_host_to_target* instead of grub_cpu_to_le*.
31234 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31235 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31236 (options): New option "--font".
31238 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31239 (main): Handle "--font".
31240 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31241 (grub_virtual_screen_setup): Set bg_color_display.
31242 (redraw_screen_rect): Use bg_color_display instead of incorrect
31244 (grub_gfxterm_cls): Likewise.
31245 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31246 Support embedding config file.
31247 (add_segments): Likewise.
31248 (options): New option "--config".
31249 (main): Handle "--config".
31250 * video/sm712.c: New file.
31252 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31254 Fix parallel builds.
31256 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31257 font.c depend on ascii.h).
31259 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31261 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31263 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31265 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31266 By default: disabled.
31267 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31270 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31272 * font/font.c: Update copyright years.
31273 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31275 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31277 * font/font.c: Include `ascii.h'.
31278 (ASCII_BITMAP_SIZE): New macro.
31279 (ascii_font_glyph): Define.
31280 (ascii_glyph_lookup): New function.
31281 (grub_font_get_string_width): Change comment. If glyph not found, use
31282 ascii_glyph_lookup.
31283 (grub_font_get_glyph_with_fallback): If glyph not available returns
31284 ascii_glyph_lookup.
31285 * util/grub-mkfont.c (file_formats): New enum.
31286 (options): Add `ascii-bitmaps' new option.
31287 (usage): Add `asii-bitmaps' new option.
31288 (write_font_ascii_bitmap): New function.
31289 (write_font): Rename to ...
31290 (write_font_p2): ... this. Remove print_glyphs call.
31291 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31292 used. Call print_glyphs.
31293 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31295 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31297 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31298 (grub_bin2h_SOURCES): New variable.
31299 * util/bin2h.c: New file.
31301 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31303 * include/multiboot.h: Resynced with spec.
31304 * include/multiboot2.h: Likewise.
31305 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31306 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31308 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31310 * include/grub/term.h (grub_term_register_input,
31311 grub_term_register_output): Check return of terminal init()
31312 routines, and abort if errors are raised.
31314 * commands/terminal.c: Update copyright year.
31316 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31318 * commands/terminal.c (grub_cmd_terminal_input)
31319 (grub_cmd_terminal_output): Check return of terminal init()
31320 routines, and abort if errors are raised.
31322 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31324 * include/grub/i386/bsd.h: Fix include pathes.
31326 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31328 Add missing *BSD copyright headers.
31330 * include/grub/aout.h: Add BSD licence.
31331 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31332 * include/grub/i386/freebsd_linker.h: ... here,
31333 * include/grub/i386/freebsd_reboot.h: ... here,
31334 * include/grub/i386/netbsd_bootinfo.h: ... here,
31335 * include/grub/i386/netbsd_reboot.h: ... here,
31336 * include/grub/i386/openbsd_bootarg.h: ... here,
31337 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31338 licence to each file.
31340 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31342 * acinclude.m4: Remove `nop' assembly instruction; it's not
31343 implemented by all architectures.
31345 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31347 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31348 ELILO. This is no longer necessary.
31350 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31352 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31354 * util/grub-script-check.c: grub-script-check tool.
31355 * conf/common.rmk: Make rules for grub-script-check.
31357 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31359 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31360 spotting it back in 2008. Shame on me for forgetting he did.
31362 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31364 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31366 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31367 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31368 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31369 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31370 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31371 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31373 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31375 * include/grub/test.h: Add license header.
31376 * tests/example_functional_test.c: Likewise.
31377 * tests/example_unit_test.c: Likewise.
31378 * tests/lib/functional_test.c: Likewise.
31379 * tests/lib/test.c: Likewise.
31380 * tests/lib/unit_test.c: Likewise.
31382 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31384 Use flag-based instead of hook-based video mode selection and "auto"
31387 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31388 (grub_video_set_mode): Changed prototype. All users updated.
31389 (grub_video_check_mode_flag): New inline function.
31390 * video/video.c (parse_modespec): New function.
31391 (grub_video_set_mode): Parse flags and keywords.
31393 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31395 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31398 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31400 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31402 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31404 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31406 * util/grub-emu.c (usage): Likewise.
31407 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31408 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31409 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31410 * util/i386/pc/grub-setup.c (usage): Likewise.
31412 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31414 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31416 (grub_util_info): Likewise.
31417 (grub_util_error): Likewise.
31418 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31419 and/or new lines in `grub_util_warna', `grub_util_info',
31420 `grub_util_error' calls.
31421 * util/getroot.c: Likewise.
31422 * util/grub-editenv.c: Likewise.
31423 * util/grub-emu.c: Likewise.
31424 * util/grub-fstest.c: Likewise.
31425 * util/grub-mkdevicemap.c: Likewise.
31426 * util/grub-mkfont.c: Likewise.
31427 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31428 * util/grub-mkrelpath.c: Likewise.
31429 * util/grub-pe2elf.c: Likewise.
31430 * util/grub-probe.c: Likewise.
31431 * util/hostdisk.c: Likewise.
31432 * util/i386/efi/grub-mkimage.c: Likewise.
31433 * util/i386/pc/grub-mkimage.c: Likewise.
31434 * util/i386/pc/grub-setup.c: Likewise.
31435 * util/ieee1275/ofpath.c: Likewise.
31436 * util/mkisofs/eltorito.c: Likewise.
31437 * util/mkisofs/rock.c: Likewise.
31438 * util/mkisofs/write.c: Likewise.
31439 * util/raid.c: Likewise.
31440 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31441 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31443 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31445 Enable multiboot on non-pc.
31447 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31448 multiboot.mod and multiboot2.mod to ...
31449 * conf/i386.rmk (pkglib_MODULES): ... here.
31450 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31452 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31453 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31455 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31456 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31458 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31459 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31461 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31462 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31464 (ata_mod_SOURCES): Removed.
31465 (ata_mod_CFLAGS): Likewise.
31466 (ata_mod_LDFLAGS): Likewise.
31467 (relocator_mod_SOURCES): Removed.
31468 (relocator_mod_CFLAGS): Likewise.
31469 (relocator_mod_ASFLAGS): Likewise.
31470 (relocator_mod_LDFLAGS): Likewise.
31472 * include/grub/x86_64/multiboot.h: New file.
31473 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31476 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31478 Video multiboot support.
31480 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31482 * include/multiboot.h: Resynced with multiboot specification.
31483 * include/multiboot2.h: Likewise.
31484 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31485 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31486 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31487 (HAS_VGA_TEXT): Likewise.
31488 (accepts_video): New variable.
31489 (grub_multiboot_set_accepts_video): New function.
31490 (grub_multiboot_get_mbi_size): Account for video structures.
31491 (set_video_mode): New function.
31492 (retrieve_video_parameters): Likewise.
31493 (grub_multiboot_make_mbi): Fill video fields.
31495 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31499 * include/grub/video.h (grub_video_driver_id): New type.
31500 (grub_video_adapter): New member 'id'. All users updated.
31501 (grub_video_get_driver_id): New proto.
31502 * video/video.c (grub_video_get_driver_id): New function.
31504 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31506 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31509 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31511 * normal/cmdline.c (print_completion): Gettextizze.
31513 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31515 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31517 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31519 * gettext/gettext.c (grub_gettext_translate): Push and pop
31521 (grub_gettext_delete_list): Change comment style.
31522 * kern/err.c (grub_error): Gettextizze.
31523 (grub_fatal): Gettextizze.
31525 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31527 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31528 (grub_linux16_real_boot): ... this.
31529 * kern/i386/loader.S: Likewise.
31530 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31531 (grub_linux16_boot): New function. Switches to text mode and calls
31532 grub_linux16_real_boot().
31534 * loader/i386/bsd.c: Include `<grub/video.h>'.
31535 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31536 text mode before calling grub_unix_real_boot().
31538 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31539 (grub_multiboot_boot): Switch to text mode before calling
31540 grub_relocator32_boot().
31542 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31543 (grub_chainloader_boot): Switch to text mode before calling
31544 grub_chainloader_real_boot().
31546 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31547 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31549 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31552 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31553 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31555 * util/grub.d/00_header.in: Define a "savedefault" function for use
31557 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31559 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31560 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31562 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31563 saved_entry if boot_once is unset.
31564 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31565 previous saved entry (i.e. grub-reboot).
31567 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31569 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31571 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31573 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31575 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31577 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31579 * util/grub-reboot.in: Fix --version output.
31580 * util/grub-set-default.in: Likewise.
31582 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31584 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31587 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31589 * util/grub.d/00_header.in: Quote the value assigned to `default',
31590 in case it contains spaces.
31592 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31594 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31595 `save_default_entry' call from the macosx case to the linux case.
31597 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31598 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31600 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31601 in `chosen' environment variable.
31602 * normal/menu_text.c (get_entry_number): Check if the variable
31603 matches the title of a menu entry.
31604 (run_menu): Pass menu to get_entry_number.
31606 * util/grub-reboot.in: New file.
31607 * util/grub-set-default.in: New file.
31608 * conf/common.rmk (grub-reboot): New utility.
31609 (grub-set-default): New utility.
31611 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31612 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31613 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31614 move it to `saved_entry' for the next boot. Load environment on
31616 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31617 * util/grub.d/10_hurd.in: Likewise.
31618 * util/grub.d/10_linux.in (linux_entry): Likewise.
31619 * util/grub.d/10_windows.in: Likewise.
31620 * util/grub.d/30_os-prober.in: Likewise.
31622 * util/grub-install.in: Create environment block.
31623 * util/i386/efi/grub-install.in: Likewise.
31624 * util/ieee1275/grub-install.in: Likewise.
31625 * util/sparc64/ieee1275/grub-install.in: Likewise.
31627 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31629 Unit testing framework for GRUB.
31631 * Makefile.in: Test framework build rules for 'make check'.
31632 * conf/tests.rmk: Build rules for individual tests and framework.
31634 * include/grub/test.h: Header file for whitebox tests.
31635 * tests/lib/functional_test.c: Framework support for whitebox
31637 * tests/lib/test.c: Common whitebox testing code for unit and
31639 * tests/lib/unit_test.c: Framework support for whitebox unit
31642 * tests/util/grub-shell-tester.in: Support utility for grub-script
31644 * tests/util/grub-shell.in: Utility to execute grub-script
31645 commands in a Qemu instance.
31647 * tests/example_functional_test.c: Example whitebox functional
31649 * tests/example_grub_script_test.in: Example grub-script test.
31650 * tests/example_scripted_test.in: Example scripted test.
31651 * tests/example_unit_test.c: Example whitebox unit test.
31653 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31655 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31656 Add loader/i386/multiboot_mbi.c.
31657 (multiboot2_mod_SOURCES): Likewise.
31658 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31659 (multiboot2_mod_SOURCES): Likewise.
31660 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31661 (grub_multiboot_make_mbi): Likewise.
31662 (grub_multiboot_free_mbi): Likewise.
31663 (grub_multiboot_init_mbi): Likewise.
31664 (grub_multiboot_add_module): Likewise.
31665 (grub_multiboot_set_bootdev): Likewise.
31666 * loader/i386/multiboot.c (mbi): Removed.
31667 (mbi_dest): Likewise.
31668 (alloc_mbi): New variable.
31669 (grub_multiboot_payload_size): Removed. All users updated.
31670 (grub_multiboot_pure_size): New variable.
31671 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31672 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31673 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31674 (grub_fill_multiboot_mmap): Likewise.
31675 (grub_multiboot_get_bootdev): Likewise.
31676 (grub_multiboot): Use multiboot_mbi functions.
31677 * loader/i386/multiboot_mbi.c: New file.
31679 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31681 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31682 it would result in module crash.
31684 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31686 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31687 (grub_ofconsole_getwh): Split to ...
31688 (grub_ofconsole_getwh): ... this.
31689 (grub_ofconsole_dimensions): ...and this.
31690 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31692 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31694 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31696 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31698 * loader/i386/pc/multiboot2.c: Removed stalled file.
31700 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31702 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31703 Reported by: Grégoire Sutre
31705 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31707 * util/misc.c (canonicalize_file_name): New function.
31708 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31709 instead of realpath().
31711 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31713 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31714 and make it clearer that it's optional. Based on confusion
31717 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31719 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31720 in premature implicit newline.
31722 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31724 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31725 which resulted in garbled command line at the end of screen.
31727 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31729 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31730 initialization with similar approach as with other Linux loaders.
31732 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31734 Fix i386-ieee1275 build.
31736 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31737 and grub_term_height() for video_{width,height} initialization.
31739 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31741 Fix grub-emu build.
31743 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31745 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31746 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31748 Support for multiple terminals.
31750 * Makefile.in (pkglib_DATA): terminal.lst.
31751 (terminal.lst): New target.
31752 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31753 (GRUB_MOD_INIT(handler)): Likewise.
31754 (GRUB_MOD_FINI(handler)): Likewise.
31755 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31756 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31757 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31758 (grub_cmd_sleep): Use grub_term_save_pos.
31759 * commands/terminal.c: New file.
31760 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31761 commands/terminal.c and lib/charset.c.
31762 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31763 (pkglib_MODULES): Add terminal.mod.
31764 (terminal_mod_SOURCES): New variable.
31765 (terminal_mod_CFLAGS): Likewise.
31766 (terminal_mod_LDFLAGS): Likewise.
31767 * genhandlerlist.sh: Don't handle terminals.
31768 * genmk.rb: Generate terminal-*.lst.
31769 * genterminallist.sh: New file.
31770 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31771 (grub_is_valid_utf8): Likewise.
31772 (grub_utf8_to_ucs4_alloc): Likewise.
31773 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31774 (grub_menu_register_viewer): Changed argument.
31775 (grub_menu_try_text): New proto.
31776 (grub_gfxmenu_try_hook): New declaration.
31777 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31778 (grub_menu_init_page): Additional argument term.
31779 (grub_normal_init_page): Likewise.
31780 (grub_cmdline_get): Arguments simplified.
31781 (grub_utf8_to_ucs4_alloc): Removed.
31782 (grub_print_ucs4): Additional argument term.
31783 (grub_getstringwidth): Likewise.
31784 (grub_print_message_indented): Likewise.
31785 (grub_menu_text_register_instances): New proto.
31786 (grub_show_menu): Likewise.
31787 (read_terminal_list): Likewise.
31788 (grub_set_more): Likewise.
31789 * include/grub/parser.h: Include handler.h.
31790 * include/grub/reader.h: Rewritten.
31791 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31792 (GRUB_TERM_WIDTH): Changed to function.
31793 (GRUB_TERM_HEIGHT): Likewise.
31794 (GRUB_TERM_BORDER_WIDTH): Likewise.
31795 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31796 (GRUB_TERM_NUM_ENTRIES): Likewise.
31797 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31798 (GRUB_TERM_CURSOR_X): Likewise.
31799 (grub_term_input_class): Likewise.
31800 (grub_term_output_class): Likewise.
31801 (grub_term_outputs_disabled): New declaration.
31802 (grub_term_inputs_disabled): Likewise.
31803 (grub_term_outputs): Likewise.
31804 (grub_term_inputs): Likewise.
31805 (grub_term_register_input): Rewritten.
31806 (grub_term_register_output): Likewise.
31807 (grub_term_unregister_input): Likewise.
31808 (grub_term_unregister_output): Likewise.
31809 (FOR_ACTIVE_TERM_INPUTS): New macro.
31810 (FOR_DISABLED_TERM_INPUTS): Likewise.
31811 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31812 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31813 * include/grub/terminfo.h: Add oterm argument to all protypes.
31814 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31815 Use grub_rescue_run.
31816 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31818 * kern/reader.c: Removed. All users updated.
31819 * kern/rescue_reader.c (grub_rescue_init): Removed.
31820 (grub_rescue_reader): Likewise.
31821 (grub_register_rescue_reader): Likewise.
31822 (grub_rescue_run): New function based on kern/reader.c.
31823 * kern/term.c: Adapted for multiterm.
31824 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31825 (grub_is_valid_utf8): Likewise.
31826 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31827 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31829 * loader/i386/linux.c (grub_linux_boot): Likewise.
31830 * normal/auth.c (grub_username_get): New function.
31831 (grub_auth_check_authentication): Use grub_username_get.
31832 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31833 * normal/color.c: Adapt for multiterm.
31834 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31835 (grub_normal_init_page): Additional argument term.
31836 (read_lists): Call read_terminal_lists.
31837 (grub_enter_normal_mode): Call grub_cmdline_run.
31838 Handle grub_normal_exit_level.
31839 (grub_cmd_normal): Make reentrant.
31840 (grub_cmd_normal_exit): New function.
31841 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31842 * normal/menu.c: Adapt for multiterm.
31843 * normal/menu_entry.c: Likewise.
31844 * normal/menu_text.c: Likewise.
31845 * normal/menu_viewer.c: Removed. All users updated.
31846 * normal/term.c: New file.
31847 * util/console.c: Change order of includes to workaround a bug in
31849 * term/terminfo.c: New argument oterm on all exported functions.
31851 * util/grub-editenv.c (grub_term_input_class): Removed.
31852 (grub_term_output_class): Likewise.
31854 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31856 Make loader output a bit more user-friendly.
31858 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31859 is being loaded. Likewise for the Hurd.
31861 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31862 that kernel of FreeBSD ${version} is being loaded.
31864 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31866 (grub_cmd_initrd): Likewise.
31867 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31868 that Linux ${version} is being loaded. Likewise for initrd.
31870 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31872 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31874 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31876 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31877 (GRUB_MOD_INIT): Gettextizze.
31878 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31879 (GRUB_MOD_INIT): Gettextizze.
31880 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31881 (grub_cmd_linux): Capitalise Linux.
31882 (GRUB_MOD_INIT): Gettextizze.
31883 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31884 (grub_cmd_linux): Capitalise Linux.
31885 (GRUB_MOD_INIT): Gettextizze.
31886 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31887 (grub_cmd_linux): Capitalise Linux.
31888 (GRUB_MOD_INIT): Gettextizze.
31889 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31890 (GRUB_MOD_INIT): Gettextizze.
31891 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31892 (grub_cmd_linux): Capitalise Linux.
31893 (GRUB_MOD_INIT): Gettextizze.
31894 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31895 (grub_cpu_xnu_init): Gettextizze.
31896 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31897 (GRUB_MOD_INIT): Gettextizze.
31898 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31899 (GRUB_MOD_INIT): Gettextizze.
31900 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31901 (grub_linux_load64): Capitalise Linux.
31902 (GRUB_MOD_INIT): Gettextizze.
31903 * loader/xnu.c: Include `<grub/i18n.h>'.
31904 (GRUB_MOD_INIT): Gettextizze.
31905 * po/POTFILES: Add `loader/efi/appleloader.c',
31906 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31907 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31908 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31909 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31910 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31911 and `loader/xnu.c'.
31913 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31915 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31917 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31919 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31920 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31921 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31923 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31925 Reset Multiboot 2 support. New loader implements the draft in
31926 /branches/multiboot2 and shares as much code as possible with the
31927 production Multiboot 1 implementation.
31929 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31930 * loader/multiboot2.c: Likewise.
31931 * loader/i386/multiboot_helper.S: Likewise.
31932 * include/multiboot2.h: Replace with latest version from the draft
31933 in /branches/multiboot2.
31935 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31936 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31937 and `loader/multiboot2.c'.
31938 (pkglib_MODULES): Add `multiboot2.mod'.
31939 (multiboot2_mod_SOURCES): New variable.
31940 (multiboot2_mod_LDFLAGS): Likewise.
31941 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31943 * conf/i386-pc.rmk: Likewise.
31945 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31946 (multiboot_mod_SOURCES): Remove variable.
31947 (multiboot_mod_LDFLAGS): Likewise.
31948 (multiboot_mod_CFLAGS): Likewise.
31950 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31951 `<multiboot2.h>' instead of `<multiboot.h>'.
31952 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31953 (MULTIBOOT_HEADER_MAGIC): New macros.
31955 * loader/multiboot_loader.c (module_version_status): Remove variable.
31956 (find_multi_boot2_header): Remove function.
31957 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31958 logic. Always check for the Multiboot version we're compiling for.
31959 (grub_cmd_module_loader): Likewise.
31960 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31961 command instead of `multiboot'.
31963 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31965 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31966 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31969 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31970 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31972 Fix breakage introduced with previous commit.
31974 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
31976 * normal/handler.c (read_handler_list): Revert part of previous commit
31977 affecting this file.
31978 * normal/main.c (read_lists): Move read_handler_list() call back to ...
31979 (grub_normal_execute): ... here.
31981 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31983 Merge prefix-redefinition-fix branch.
31985 * normal/autofs.c (read_fs_list): Make function capable of being
31986 run multiple times, gracefuly replacing the previous data
31988 * normal/dyncmd.c (read_command_list): Likewise.
31989 * normal/handler.c (read_handler_list): Likewise.
31990 * normal/main.c (read_lists): New function. Calls all the
31991 list reading functions.
31992 (grub_normal_execute): Use read_lists() instead of calling all
31993 list reading functions explicitly. Register read_lists() as a
31994 variable hook attached to ${prefix}.
31996 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31998 Merge crypto branch.
32000 * Makefile.in (pkglib_DATA): Add crypto.lst.
32001 (crypto.lst): New target.
32002 * commands/hashsum.c: New file.
32003 * commands/password.c (check_password): Use grub_crypto_memcmp.
32004 * commands/password_pbkdf2.c: New file.
32005 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32006 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32007 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32008 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32009 -I$(srcdir)/lib/libgcrypt_wrap.
32010 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32011 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32012 password_pbkdf2.mod.
32013 (crypto_mod_SOURCES): New variable.
32014 (crypto_mod_CFLAGS): Likewise.
32015 (crypto_mod_LDFLAGS): Likewise.
32016 (hashsum_mod_SOURCES): New variable.
32017 (hashsum_mod_CFLAGS): Likewise.
32018 (hashsum_mod_LDFLAGS): Likewise.
32019 (pbkdf2_mod_SOURCES): New variable.
32020 (pbkdf2_mod_CFLAGS): Likewise.
32021 (pbkdf2_mod_LDFLAGS): Likewise.
32022 (password_pbkdf2_mod_SOURCES): New variable.
32023 (password_pbkdf2_mod_CFLAGS): Likewise.
32024 (password_pbkdf2_mod_LDFLAGS): Likewise.
32025 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32026 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32027 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32028 Include conf/gcry.rmk.
32029 * include/grub/auth.h: Rewritten.
32030 * include/grub/crypto.h: New file.
32031 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32032 * include/grub/normal.h (read_crypto_list): New prototype.
32033 * lib/crypto.c: New file.
32034 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32035 * lib/pbkdf2.c: Likewise.
32036 * normal/auth.c (grub_auth_strcmp): Removed.
32037 (grub_iswordseparator): Likewise.
32038 (grub_auth_strword): Likewise.
32039 (is_authenticated): Use grub_strword.
32040 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32041 and grub_strword. Pass entered password to authentication callback.
32042 * normal/crypto.c: New file.
32043 * normal/main.c: Call read_crypto_list.
32044 * util/grub-mkpasswd-pbkdf2.c: New file.
32045 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32047 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32049 Fix descent and ascent calculation.
32051 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32052 (options): New option "asce".
32054 (add_char): Ignore invalid glyphs for descent calculation.
32055 Calculate ascent from actual content.
32056 (print_glyphs): Use 'asce'.
32057 (write_font): Likewise. Allow ascent override.
32058 (main): Handle "asce" option.
32060 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32062 * kern/err.c: Include `<grub/i18n.h>'.
32063 (grub_print_error): Add full stop. Gettextizze.
32064 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32065 (grub_bsd_load_elf): Capitalise ELF.
32066 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32067 (grub_cmd_freebsd_module): Likewise.
32068 (grub_cmd_freebsd_module_elf): Likewise.
32069 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32071 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32073 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32074 * commands/search_file.c (HELP_MESSAGE): New macro.
32075 * commands/search_label.c (HELP_MESSAGE): Likewise.
32076 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32077 * po/POTFILES: Add `commands/search_file.c',
32078 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32079 `commands/search.c'.
32081 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32083 * config.rpath: Update from Gnulib.
32085 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32087 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32089 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32091 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32093 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32095 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32096 arguments to fread so that we get a return value in bytes, rather
32097 than something that will normally be rounded down to 0.
32098 Adjust error handling to avoid producing garbage when size_t is not
32099 the same size as long long.
32101 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32103 * util/mkisofs/write.c (padblock_write): Check return value of
32106 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32108 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32111 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32113 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32115 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32116 instead of manual alignment.
32117 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32118 verbose). Avoid attempts to read past end of the device
32119 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32120 but GRUB_DISK_CACHE_SIZE may exceed that).
32122 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32124 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32125 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32128 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32130 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32132 (grub_efi_piwg_device_path): New structure
32133 (grub_efi_piwg_device_path_t): New type.
32134 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32135 (devpath_1): Transform to a structure. All users updated.
32136 (devpath_2): Likewise.
32137 (devpath_3): Likewise.
32138 (devpath_4): Likewise.
32139 (devpath_5): Likewise.
32141 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32143 * loader/efi/appleloader.c: Restored. Update all users.
32145 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32147 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32149 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32150 (struct boot_blocklist): Move from here ...
32151 * include/grub/i386/pc/boot.h [ASM_FILE]
32152 (struct grub_boot_blocklist): ... to here. Update all users.
32153 (setup): Only initialize `start' member of `first_block'
32154 structure. Add assert() calls to verify the other members.
32156 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32157 (generate_image): Fix broken blocklist length initialization.
32158 Add assert() call to verify blocklist `segment' field.
32160 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32162 * loader/efi/appleloader.c: Remove. Update all users.
32164 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32166 * boot/i386/pc/boot.S: Update copyright year.
32167 * boot/i386/pc/cdboot.S: Likewise.
32168 * boot/i386/pc/diskboot.S: Likewise.
32169 * boot/i386/pc/lnxboot.S: Likewise.
32170 * boot/i386/pc/pxeboot.S: Likewise.
32171 * bus/pci.c: Likewise.
32172 * commands/cmp.c: Likewise.
32173 * commands/help.c: Likewise.
32174 * commands/hexdump.c: Likewise.
32175 * commands/i386/pc/halt.c: Likewise.
32176 * commands/i386/pc/play.c: Likewise.
32177 * commands/i386/pc/vbeinfo.c: Likewise.
32178 * commands/ls.c: Likewise.
32179 * commands/test.c: Likewise.
32180 * disk/dmraid_nvidia.c: Likewise.
32181 * disk/i386/pc/biosdisk.c: Likewise.
32182 * disk/ieee1275/nand.c: Likewise.
32183 * disk/ieee1275/ofdisk.c: Likewise.
32184 * disk/lvm.c: Likewise.
32185 * disk/raid.c: Likewise.
32186 * disk/raid6_recover.c: Likewise.
32187 * disk/scsi.c: Likewise.
32188 * fs/affs.c: Likewise.
32189 * fs/cpio.c: Likewise.
32190 * fs/ext2.c: Likewise.
32191 * fs/hfs.c: Likewise.
32192 * fs/iso9660.c: Likewise.
32193 * fs/ntfs.c: Likewise.
32194 * fs/sfs.c: Likewise.
32195 * fs/udf.c: Likewise.
32196 * fs/ufs.c: Likewise.
32197 * fs/xfs.c: Likewise.
32198 * gencmdlist.sh: Likewise.
32199 * genmk.rb: Likewise.
32200 * include/grub/disk.h: Likewise.
32201 * include/grub/efi/api.h: Likewise.
32202 * include/grub/efi/efi.h: Likewise.
32203 * include/grub/efi/pe32.h: Likewise.
32204 * include/grub/elf.h: Likewise.
32205 * include/grub/fs.h: Likewise.
32206 * include/grub/i386/at_keyboard.h: Likewise.
32207 * include/grub/i386/pc/memory.h: Likewise.
32208 * include/grub/i386/pc/vbe.h: Likewise.
32209 * include/grub/i386/pci.h: Likewise.
32210 * include/grub/i386/tsc.h: Likewise.
32211 * include/grub/ieee1275/ieee1275.h: Likewise.
32212 * include/grub/ntfs.h: Likewise.
32213 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32214 * include/grub/sparc64/libgcc.h: Likewise.
32215 * include/grub/symbol.h: Likewise.
32216 * include/grub/types.h: Likewise.
32217 * include/multiboot2.h: Likewise.
32218 * io/gzio.c: Likewise.
32219 * kern/device.c: Likewise.
32220 * kern/disk.c: Likewise.
32221 * kern/efi/efi.c: Likewise.
32222 * kern/efi/mm.c: Likewise.
32223 * kern/elf.c: Likewise.
32224 * kern/file.c: Likewise.
32225 * kern/i386/dl.c: Likewise.
32226 * kern/i386/pc/init.c: Likewise.
32227 * kern/i386/pc/startup.S: Likewise.
32228 * kern/ieee1275/ieee1275.c: Likewise.
32229 * kern/ieee1275/init.c: Likewise.
32230 * kern/main.c: Likewise.
32231 * kern/mm.c: Likewise.
32232 * kern/powerpc/dl.c: Likewise.
32233 * kern/sparc64/dl.c: Likewise.
32234 * kern/x86_64/dl.c: Likewise.
32235 * lib/hexdump.c: Likewise.
32236 * loader/efi/appleloader.c: Likewise.
32237 * loader/i386/ieee1275/linux.c: Likewise.
32238 * loader/i386/pc/chainloader.c: Likewise.
32239 * loader/i386/pc/linux.c: Likewise.
32240 * loader/i386/pc/multiboot2.c: Likewise.
32241 * loader/ieee1275/multiboot2.c: Likewise.
32242 * loader/multiboot2.c: Likewise.
32243 * loader/multiboot_loader.c: Likewise.
32244 * loader/powerpc/ieee1275/linux.c: Likewise.
32245 * normal/completion.c: Likewise.
32246 * normal/menu_entry.c: Likewise.
32247 * partmap/apple.c: Likewise.
32248 * util/grub.d/10_hurd.in: Likewise.
32249 * util/hostfs.c: Likewise.
32250 * video/readers/png.c: Likewise.
32252 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32254 * include/grub/misc.h (GNUC_PREREQ): New macro.
32255 (ATTRIBUTE_ERROR): New macro.
32256 * include/grub/list.h (grub_bad_type_cast_real): Use
32259 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32261 * normal/menu_text.c (print_message): Change messages.
32263 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32265 * normal/menu_entry.c (store_completion): Gettextizze.
32267 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32269 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32271 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32273 * po/POTFILES: Sort correctly.
32275 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32277 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32278 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32279 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32281 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32282 summary. Gettextizze the strings.
32283 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32284 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32285 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32287 (GRUB_MOD_INIT): Remove command name from summary.
32288 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32290 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32291 * term/i386/pc/serial.c (options): Add full stops.
32292 (GRUB_MOD_INIT): Remove command name from the summary.
32294 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32296 * commands/acpi.c: Gettextizze help strings and/or options. Include
32297 `grub/i18n.h' if needed.
32298 * commands/blocklist.c: Likewise.
32299 * commands/boot.c: Likewise.
32300 * commands/cat.c: Likewise.
32301 * commands/cmp.c: Likewise.
32302 * commands/configfile.c: Likewise.
32303 * commands/crc.c: Likewise.
32304 * commands/date.c: Likewise.
32305 * commands/echo.c: Likewise.
32306 * commands/efi/fixvideo.c: Likewise.
32307 * commands/efi/loadbios.c: Likewise.
32308 * commands/gptsync.c: Likewise.
32309 * commands/halt.c: Likewise.
32310 * commands/handler.c: Likewise.
32311 * commands/hdparm.c: Likewise.
32312 * commands/hexdump.c: Likewise.
32313 * commands/i386/cpuid.c: Likewise.
32314 * commands/i386/pc/drivemap.c: Likewise.
32315 * commands/i386/pc/halt.c: Likewise.
32316 * commands/i386/pc/pxecmd.c: Likewise.
32317 * commands/i386/pc/vbeinfo.c: Likewise.
32318 * commands/i386/pc/vbetest.c: Likewise.
32319 * commands/ieee1275/suspend.c: Likewise.
32320 * commands/keystatus.c: Likewise.
32321 * commands/loadenv.c: Likewise.
32322 * commands/ls.c: Likewise.
32323 * commands/lsmmap.c: Likewise.
32324 * commands/lspci.c: Likewise.
32325 * commands/memrw.c: Likewise.
32326 * commands/minicmd.c: Likewise.
32327 * commands/parttool.c: Likewise.
32328 * commands/password.c: Likewise.
32329 * commands/probe.c: Likewise.
32330 * commands/read.c: Likewise.
32331 * commands/reboot.c: Likewise.
32332 * commands/search.c: Likewise.
32333 * commands/sleep.c: Likewise.
32334 * commands/test.c: Likewise.
32335 * commands/true.c: Likewise.
32336 * commands/usbtest.c: Likewise.
32337 * commands/videotest.c: Likewise.
32338 * commands/xnu_uuid.c: Likewise.
32339 * disk/loopback.c: Likewise.
32340 * hello/hello.c: Likewise.
32341 * loader/i386/bsd.c: Likewise.
32342 * term/i386/pc/serial.c: Likewise.
32343 * po/POTFILES: Add new files.
32345 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32347 * term/i386/pc/at_keyboard.c
32348 (keyboard_controller_wait_untill_ready): Rename to ...
32349 (keyboard_controller_wait_until_ready): ... this. Update all users.
32351 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32353 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32354 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32355 string using string width.
32356 * normal/menu_text.c (grub_print_message_indented): Use
32357 grub_print_spaces and not print_spaces.
32358 (print_timeout): Likewise.
32359 (print_spaces): Move to...
32360 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32362 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32364 Import from Gnulib.
32366 * gnulib/getdelim.c: New file.
32367 * gnulib/getline.c: Likewise.
32369 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32371 * include/grub/list.h (grub_assert_fail): Removed.
32372 (grub_bad_type_cast_real): New function.
32373 (grub_bad_type_cast): New macro.
32374 (GRUB_AS_LIST): Use grub_bad_type_cast.
32375 (GRUB_AS_LIST_P): Likewise.
32376 (GRUB_AS_NAMED_LIST): Likewise.
32377 (GRUB_AS_NAMED_LIST_P): Likewise.
32378 (GRUB_AS_PRIO_LIST): Likewise.
32379 (GRUB_AS_PRIO_LIST_P): Likewise.
32380 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32382 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32384 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32387 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32389 * configure.ac: Check for TARGET_CFLAGS initialization before we
32390 initialize it ourselves (sigh).
32391 Move a few modifications to TARGET_CFLAGS to be unconditional
32392 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32395 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32396 * term/i386/pc/at_keyboard.c
32397 (keyboard_controller_wait_untill_ready): Likewise.
32398 (keyboard_controller_led): Rename `led_status' paramter to avoid
32401 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32403 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32406 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32408 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32410 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32412 * normal/menu_text.c (grub_print_message_indented): Prevent
32413 past-the-end-of-array dereference.
32415 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32417 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32418 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32420 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32422 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32423 * normal/main.c (grub_normal_read_line): Remove a space from the
32426 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32428 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32429 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32430 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32431 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32432 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32433 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32434 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32436 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32438 * video/readers/jpeg.c (cmd): Declare.
32439 (grub_cmd_jpegtest): Use `grub_command_t' type.
32440 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32442 (GRUB_MOD_FINI): Use `cmd' to unregister.
32443 * video/readers/png.c (cmd): Declare.
32444 (grub_cmd_pngtest): Use `grub_command_t' type.
32445 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32447 (GRUB_MOD_FINI): Use `cmd' to unregister.
32448 * video/readers/tga.c (cmd): Declare.
32449 (grub_cmd_tgatest): Use `grub_command_t' type.
32450 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32452 (GRUB_MOD_FINI): Use `cmd' to unregister.
32454 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32456 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32458 * kern/corecmd.c (grub_register_core_commands): Likewise.
32459 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32460 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32461 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32462 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32463 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32464 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32465 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32466 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32467 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32468 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32469 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32470 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32471 * normal/handler.c (insert_handler): Likewise.
32472 * normal/main.c (GRUB_MOD_INIT): Likewise.
32473 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32475 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32477 * commands/help.c (grub_cmd_help): Print the command name before the
32479 (GRUB_MOD_INIT): Remove command name from the summary.
32480 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32482 * lib/arg.c (find_long): Print the command name before the summary.
32483 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32485 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32486 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32487 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32488 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32489 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32490 * commands/date.c (GRUB_MOD_INIT): Likewise.
32491 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32492 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32493 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32494 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32495 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32496 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32497 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32498 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32499 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32500 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32501 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32502 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32503 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32504 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32505 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32506 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32507 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32508 * commands/password.c (GRUB_MOD_INIT): Likewise.
32509 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32510 * commands/read.c (GRUB_MOD_INIT): Likewise.
32511 * commands/search.c (GRUB_MOD_INIT): Likewise.
32512 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32513 * commands/test.c (GRUB_MOD_INIT): Likewise.
32514 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32515 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32516 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32517 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32518 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32519 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32520 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32521 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32522 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32523 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32524 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32525 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32526 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32527 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32529 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32531 Use search command for preliminar UUID search.
32533 * commands/search.c: Split into ...
32534 * commands/search_wrap.c: ...this
32535 * commands/search.c: ...and this.
32536 * commands/search_file.c: New file.
32537 * commands/search_label.c: New file.
32538 * commands/search_uuid.c: New file.
32539 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32540 Add commands/search_wrap.c, commands/search_file.c,
32541 commands/search_label.c and commands/search_uuid.c.
32542 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32543 (search_mod_SOURCES): Set to commands/search_wrap.c.
32544 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32546 (search_fs_file_mod_SOURCES): New variable.
32547 (search_fs_file_mod_CFLAGS): Likewise.
32548 (search_fs_file_mod_LDFLAGS): Likewise.
32549 (search_label_mod_SOURCES): Likewise.
32550 (search_label_mod_CFLAGS): Likewise.
32551 (search_label_mod_LDFLAGS): Likewise.
32552 (search_fs_uuid_mod_SOURCES): New variable.
32553 (search_fs_uuid_mod_CFLAGS): Likewise.
32554 (search_fs_uuid_mod_LDFLAGS): Likewise.
32555 (fs_file_mod_SOURCES): Removed.
32556 (fs_file_mod_CFLAGS): Likewise.
32557 (fs_file_mod_LDFLAGS): Likewise.
32558 (fs_uuid_mod_SOURCES): Removed.
32559 (fs_uuid_mod_CFLAGS): Likewise.
32560 (fs_uuid_mod_LDFLAGS): Likewise.
32561 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32562 Set to util/grub-install.in.
32563 * disk/fs_file.c: Removed.
32564 * disk/fs_uuid.c: Likewise.
32565 * include/grub/search.h: New file.
32566 * util/grub-install.in: Handle sparc64.
32567 Create and use load.cfg.
32568 * util/sparc64/ieee1275/grub-install.in: Removed.
32570 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32572 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32573 Ignore return status if CF is cleared.
32574 (grub_biosdisk_get_diskinfo_standard): Likewise.
32576 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32578 * term/i386/pc/at_keyboard.c
32579 (keyboard_controller_wait_untill_ready): New function.
32580 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32581 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32582 for keyboard polling, rather than duplicate the same loop. This
32583 saves a few bytes in code size.
32585 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32587 Support for (pxe[:server[:gateway]]) syntax and
32588 use environment variable for PXE.
32590 * commands/i386/pc/pxecmd.c (options): Removed.
32591 (print_ip): Removed.
32592 (grub_cmd_pxe): Removed
32593 (grub_cmd_pxe_unload): New function.
32594 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32595 (grub_pxe_your_ip): Made static.
32596 (grub_pxe_default_server_ip): Likewise.
32597 (grub_pxe_default_gateway_ip): Likewise.
32598 (grub_pxe_blksize): Likewise.
32599 (parse_ip): New function.
32600 (grub_pxe_open): Support server and gateway specification.
32601 (grub_pxe_close): Free disk->data.
32602 (grub_pxefs_open): Use disk->data.
32603 (grub_pxefs_read): Likewise.
32604 (grub_env_write_readonly): New function.
32605 (set_mac_env): Likewise.
32606 (set_env_limn_ro): Likewise.
32607 (parse_dhcp_vendor): Likewise.
32608 (grub_pxe_detect): Set the environment variables.
32609 (set_ip_env): New function.
32610 (write_ip_env): Likewise.
32611 (grub_env_write_pxe_default_server): Likewise.
32612 (grub_env_write_pxe_default_gateway): Likewise.
32613 (grub_env_write_pxe_blocksize): Likewise.
32614 (GRUB_MOD_INIT(pxe)): Set environment variables.
32615 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32616 (grub_pxe_mac_addr_t): ... this. All users updated.
32617 (grub_pxe_your_ip): Removed.
32618 (grub_pxe_server_ip): Likewise.
32619 (grub_pxe_gateway_ip): Likewise.
32620 (grub_pxe_blksize): Likewise.
32622 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32624 * commands/help.c: Include `<grub/i18n.h>'.
32625 (grub_cmd_help): Gettextizze.
32626 (GRUB_MOD_INIT): Likewise.
32627 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32628 (GRUB_MOD_INIT): Gettextizze.
32629 * commands/search.c: Include `<grub/i18n.h>'.
32630 (options): Gettextizze.
32631 (GRUB_MOD_INIT): Gettextizze.
32632 * lib/arg.c: Include `<grub/i18n.h>'.
32633 (help_options): Gettextizze.
32634 (find_long): Likewise.
32635 (grub_arg_show_help): Likewise.
32636 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32637 (read_command_list): Gettextizze.
32638 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32639 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32641 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32643 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32644 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32645 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32646 (led_status): New variable.
32647 (keyboard_controller_led): New function.
32648 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32649 update led status for caps lock, num lock and scroll lock.
32651 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32653 * util/hostdisk.c (open_device): Fix a comment.
32655 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32657 * util/grub-install.in (host_os): New variable.
32658 * util/i386/efi/grub-install.in (host_os): Likewise.
32660 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32662 * util/mkisofs/write.c (padblock_write): Abort when given an
32663 excedingly large embed image, instead of silently truncating it.
32665 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32667 * include/multiboot.h: Indentation fixes.
32669 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32671 * include/multiboot.h (struct multiboot_aout_symbol_table)
32672 (struct multiboot_elf_section_header_table): New structure
32673 declarations (stolen from GRUB Legacy).
32674 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32677 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32678 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32681 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32683 * include/multiboot.h: Make comments src2texi-friendly.
32685 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32687 For consistency with [multiboot]/docs/boot.S.
32689 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32690 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32691 (MULTIBOOT_MAGIC2): Rename from this ...
32692 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32694 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32696 * include/multiboot.h: Remove `<grub/types.h>'.
32697 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32698 types. Update all users.
32700 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32702 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32703 `couldn't' and `can not' by `cannot'.
32704 * commands/i386/pc/drivemap.c: Likewise.
32705 * disk/ata.c: Likewise.
32706 * disk/ieee1275/nand.c: Likewise.
32707 * fs/affs.c: Likewise.
32708 * fs/fat.c: Likewise.
32709 * fs/hfs.c: Likewise.
32710 * fs/hfsplus.c: Likewise.
32711 * fs/iso9660.c: Likewise.
32712 * fs/jfs.c: Likewise.
32713 * fs/minix.c: Likewise.
32714 * fs/reiserfs.c: Likewise.
32715 * fs/sfs.c: Likewise.
32716 * fs/udf.c: Likewise.
32717 * fs/ufs.c: Likewise.
32718 * fs/xfs.c: Likewise.
32719 * loader/powerpc/ieee1275/linux.c: Likewise.
32720 * loader/sparc64/ieee1275/linux.c: Likewise.
32721 * util/grub-probe.c: Likewise.
32722 * util/misc.c: Likewise.
32724 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32726 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32728 * commands/acpi.c: Likewise.
32729 * commands/blocklist.c: Likewise.
32730 * commands/efi/loadbios.c: Likewise.
32731 * commands/i386/pc/drivemap.c: Likewise.
32732 * commands/loadenv.c: Likewise.
32733 * commands/memrw.c: Likewise.
32734 * commands/password.c: Likewise.
32735 * commands/videotest.c: Likewise.
32736 * disk/ata.c: Likewise.
32737 * disk/ata_pthru.c: Likewise.
32738 * disk/dmraid_nvidia.c: Likewise.
32739 * disk/ieee1275/nand.c: Likewise.
32740 * disk/ieee1275/ofdisk.c: Likewise.
32741 * disk/loopback.c: Likewise.
32742 * disk/lvm.c: Likewise.
32743 * disk/mdraid_linux.c: Likewise.
32744 * disk/raid.c: Likewise.
32745 * disk/raid6_recover.c: Likewise.
32746 * disk/scsi.c: Likewise.
32747 * efiemu/main.c: Likewise.
32748 * efiemu/mm.c: Likewise.
32749 * efiemu/pnvram.c: Likewise.
32750 * efiemu/symbols.c: Likewise.
32751 * font/font.c: Likewise.
32752 * fs/cpio.c: Likewise.
32753 * fs/hfsplus.c: Likewise.
32754 * fs/iso9660.c: Likewise.
32755 * fs/jfs.c: Likewise.
32756 * fs/minix.c: Likewise.
32757 * fs/ntfs.c: Likewise.
32758 * fs/ntfscomp.c: Likewise.
32759 * fs/reiserfs.c: Likewise.
32760 * fs/ufs.c: Likewise.
32761 * fs/xfs.c: Likewise.
32762 * gettext/gettext.c: Likewise.
32763 * include/grub/auth.h: Likewise.
32764 * kern/elf.c: Likewise.
32765 * kern/file.c: Likewise.
32766 * kern/ieee1275/init.c: Likewise.
32767 * kern/ieee1275/mmap.c: Likewise.
32768 * kern/ieee1275/openfw.c: Likewise.
32769 * kern/powerpc/dl.c: Likewise.
32770 * kern/sparc64/dl.c: Likewise.
32771 * lib/arg.c: Likewise.
32772 * loader/i386/bsd.c: Likewise.
32773 * loader/i386/bsdXX.c: Likewise.
32774 * loader/i386/efi/linux.c: Likewise.
32775 * loader/i386/efi/xnu.c: Likewise.
32776 * loader/i386/ieee1275/linux.c: Likewise.
32777 * loader/i386/linux.c: Likewise.
32778 * loader/i386/multiboot.c: Likewise.
32779 * loader/i386/pc/linux.c: Likewise.
32780 * loader/i386/pc/multiboot2.c: Likewise.
32781 * loader/i386/xnu.c: Likewise.
32782 * loader/ieee1275/multiboot2.c: Likewise.
32783 * loader/macho.c: Likewise.
32784 * loader/machoXX.c: Likewise.
32785 * loader/multiboot2.c: Likewise.
32786 * loader/multiboot_loader.c: Likewise.
32787 * loader/powerpc/ieee1275/linux.c: Likewise.
32788 * loader/sparc64/ieee1275/linux.c: Likewise.
32789 * loader/xnu.c: Likewise.
32790 * loader/xnu_resume.c: Likewise.
32791 * mmap/i386/pc/mmap.c: Likewise.
32792 * normal/menu_viewer.c: Likewise.
32793 * partmap/acorn.c: Likewise.
32794 * partmap/amiga.c: Likewise.
32795 * partmap/apple.c: Likewise.
32796 * script/lexer.c: Likewise.
32797 * term/gfxterm.c: Likewise.
32798 * term/i386/pc/serial.c: Likewise.
32799 * term/i386/pc/vga.c: Likewise.
32800 * term/ieee1275/ofconsole.c: Likewise.
32801 * term/terminfo.c: Likewise.
32802 * video/bitmap.c: Likewise.
32803 * video/efi_gop.c: Likewise.
32804 * video/efi_uga.c: Likewise.
32805 * video/fb/video_fb.c: Likewise.
32806 * video/i386/pc/vbe.c: Likewise.
32807 * video/readers/tga.c: Likewise.
32808 * video/video.c: Likewise.
32810 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32812 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32813 * commands/lspci.c: Likewise.
32814 * commands/probe.c: Likewise.
32815 * commands/xnu_uuid.c: Likewise.
32816 * conf/i386-coreboot.rmk: Likewise.
32817 * conf/i386-efi.rmk: Likewise.
32818 * conf/i386-ieee1275.rmk: Likewise.
32819 * conf/i386-pc.rmk: Likewise.
32820 * conf/powerpc-ieee1275.rmk: Likewise.
32821 * conf/sparc64-ieee1275.rmk: Likewise.
32822 * conf/x86_64-efi.rmk: Likewise.
32823 * fs/i386/pc/pxe.c: Likewise.
32824 * gettext/gettext.c: Likewise.
32825 * include/grub/efi/graphics_output.h: Likewise.
32826 * include/grub/i386/pc/memory.h: Likewise.
32827 * kern/env.c: Likewise.
32828 * kern/i386/qemu/startup.S: Likewise.
32829 * lib/i386/pc/biosnum.c: Likewise.
32830 * lib/i386/relocator.c: Likewise.
32831 * lib/i386/relocator_asm.S: Likewise.
32832 * lib/relocator.c: Likewise.
32833 * loader/i386/bsd.c: Likewise.
32834 * loader/i386/multiboot.c: Likewise.
32835 * loader/i386/pc/chainloader.c: Likewise.
32836 * loader/i386/xnu.c: Likewise.
32837 * loader/xnu.c: Likewise.
32838 * normal/main.c: Likewise.
32839 * normal/menu_text.c: Likewise.
32840 * util/getroot.c: Likewise.
32841 * util/grub-mkconfig_lib.in: Likewise.
32842 * util/grub.d/00_header.in: Likewise.
32843 * util/i386/pc/grub-mkimage.c: Likewise.
32844 * util/mkisofs/eltorito.c: Likewise.
32845 * util/mkisofs/exclude.h: Likewise.
32846 * util/mkisofs/hash.c: Likewise.
32847 * util/mkisofs/iso9660.h: Likewise.
32848 * util/mkisofs/joliet.c: Likewise.
32849 * util/mkisofs/mkisofs.c: Likewise.
32850 * util/mkisofs/mkisofs.h: Likewise.
32851 * util/mkisofs/multi.c: Likewise.
32852 * util/mkisofs/name.c: Likewise.
32853 * util/mkisofs/rock.c: Likewise.
32854 * util/mkisofs/tree.c: Likewise.
32855 * util/mkisofs/write.c: Likewise.
32856 * video/efi_gop.c: Likewise.
32858 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32860 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32863 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32865 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32866 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32868 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32870 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32871 (GRUB_MOD_INIT(memrw)): Update help line.
32873 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32875 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32876 Use grub_extcmd_t. All users updated.
32877 (options): New variable.
32878 (grub_cmd_read): Restructure for readability. Support "-v" option.
32879 (grub_cmd_write): Restructure for readability.
32881 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32883 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32885 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32887 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32888 with the actual contents of the correspondending make variable.
32889 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32890 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32891 specifying `*.lst' and `efiemu??.o'
32893 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32895 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32896 after function name.
32897 Noticed by Rene Engelhard <rene@debian.org>.
32899 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32901 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32902 (options): New variable.
32903 (iospace): Likewise.
32904 (grub_lspci_iter): List IO spaces if "-i" was given.
32905 (grub_cmd_lspci): Parse options.
32906 (GRUB_MOD_INIT(lspci)): Use extcmd.
32907 (GRUB_MOD_FINI(lspci)): Likewise.
32909 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32911 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32912 `function' keyword.
32913 Patch by Tony Mancill <tmancill@debian.org>.
32915 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32917 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32918 (grub_uhci_portstatus): Likewise.
32919 (grub_uhci_portstatus): Add necessary delay.
32920 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32922 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32924 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32925 (GRUB_MOD_INIT): Likewise.
32926 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32927 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32928 * commands/echo.c (options): Fix capitalizations and/or full stops.
32929 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32930 (enable_rom_area): Likewise.
32931 (GRUB_MOD_INIT): Likewise.
32932 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32933 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32934 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32935 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32936 * commands/hexdump.c (options): Likewise.
32937 * commands/i386/cpuid.c (options): Likewise.
32938 (GRUB_MOD_INIT): Likewise.
32939 * commands/i386/pc/drivemap.c (options): Likewise.
32940 (GRUB_MOD_INIT): Likewise.
32941 * commands/i386/pc/halt (options): Likewise.
32942 (GRUB_MOD_INIT): Likewise.
32943 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32944 * commands/i386/pc/pxecmd.c (options): Likewise.
32945 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32946 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32947 * commands/keystatus.c (options): Likewise.
32948 (GRUB_MOD_INIT): Likewise.
32949 * commands/loadenv.c (options): Likewise.
32950 * commands/ls.c (options): Likewise.
32951 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32952 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32953 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32954 * commands/parttool.c (helpmsg): Likewise.
32955 * commands/probe.c (options): Likewise.
32956 * commands/read.c (GRUB_MOD_INIT): Likewise.
32957 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32958 * commands/search.c (options): Likewise.
32959 * commands/sleep.c (options): Likewise.
32960 * commands/test.c (GRUB_MOD_INIT): Likewise.
32961 * commands/true.c (GRUB_MOD_INIT): Likewise.
32962 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32963 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32964 * lib/arg.c (help_options): Likewise.
32965 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32967 * po/POTFILES: Add `commands/loadenv.c'.
32969 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32971 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32972 instead of specifying them explicit.
32974 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32976 * NEWS: Add grub-probe support for GNU/Hurd.
32978 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32980 * NEWS: gettext was added after 1.97.
32982 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32984 * util/mkisofs/msdos_partition.h: New file (based on
32985 include/grub/msdos_partition.h).
32986 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
32987 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
32988 (ld_options, main): Recognize --protective-msdos-label.
32989 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
32990 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
32991 (padblock_write): If `use_protective_msdos_label' is set, patch a
32992 protective DOS-style label in the output image.
32994 * util/grub-mkrescue.in: Use --protective-msdos-label.
32996 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32998 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33001 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33003 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33005 (ld_options, main): Recognize `--embedded-boot'.
33006 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33008 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33009 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33010 (padblock_write): Likewise. Rewrite to support embedded boot image.
33012 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33013 for BIOS-based disk boot instead of only ElTorito.
33015 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33017 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33018 build (not needed for bootstrap).
33020 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33022 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33023 from i386-pc build (not needed for bootstrap).
33024 Rewrite a pair of strings.
33026 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33028 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33030 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33032 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33034 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33036 * kern/env.c (grub_env_context_open): Mark exported variable for
33039 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33041 * kern/env.c (grub_env_export): Create nonexistent variables before
33044 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33046 * include/grub/auth.h: Include `<grub/i18n.h>'.
33047 (GRUB_GET_PASSWORD): Gettextizze string.
33048 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33050 (grub_utf8_to_ucs4_alloc): Fix indentation.
33051 (grub_print_ucs4): Likewise.
33052 (grub_getstringwidth): Likewise.
33053 (print_message_indented): New declaration.
33054 * normal/auth.c: Include `<grub/i18n.h>'.
33055 (grub_auth_check_authentication): Gettexttize string.
33056 * normal/cmdline.c: Include `<grub/i18n.h>'.
33057 (grub_cmdline_get): Gettextizze.
33058 * normal/color.c: Include `<grub/i18n.h>'.
33059 (grub_parse_color_name_pair): Gettexttize strings.
33060 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33061 string (use `print_message_indented').
33062 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33063 `include/grub/normal.h'.
33064 (print_message_indented): Renamed to ...
33065 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33066 used in normal/main.c).
33067 (print_message): Use `grub_print_message_indented' instead of
33068 `print_message_indented'.
33069 (print_timeout): Likewise.
33070 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33071 (grub_normal_print_device_info): Gettexttize strings.
33072 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33074 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33076 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33077 of arguments. Return number of tokens and not arguments. All users
33080 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33082 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33083 non-MSDOS paritions.
33085 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33087 * include/grub/types.h (UNUSED): Removed since it conflicts with
33088 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33089 Reported by Grégoire Sutre.
33091 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33093 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33094 (grub_print_ucs4_alloc): Likewise.
33095 (grub_getstringwidth): Likewise.
33096 * normal/main.c (grub_normal_init_page): Gettextize version string.
33097 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33098 (getstringwidth): Renamed to ...
33099 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33100 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33101 (grub_print_ucs4): Remove `static' qualifer (now used in
33103 * po/POTFILES: Add normal/main.c.
33105 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33107 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33108 (print_message_indented): Add `margin_left' and `margin_right'
33110 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33112 (print_timeout): Use `print_message_indented' to print the message.
33113 Deletes `second_stage' parameter.
33114 (run_menu): Update `print_timeout' calls.
33116 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33118 Fix console palette on OpenFirmware.
33120 * term/ieee1275/ofconsole.c (MAX): Removed.
33121 (colors): Redone based on VGA palette.
33122 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33123 colors are supported.
33124 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33126 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33128 Fix potential EfiEmu double prepare.
33130 * efiemu/main.c (prepared): New variable
33131 (grub_efiemu_unload): Set prepare to '0'.
33132 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33134 set_virtual_address_map support.
33136 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33138 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33140 (grub_efiemu_crc32): Likewise.
33141 (grub_efiemu_crc64): Likewise.
33142 (grub_efiemu_set_virtual_address_map): Likewise.
33143 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33145 (grub_autoefi_set_virtual_address_map): Likewise.
33146 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33147 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33148 Restructure flow to accomodate it.
33149 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33150 (grub_efiemu_crc): Recompute CRC32.
33151 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33152 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33153 * efiemu/symbols.c (relocated_handle): New variable.
33154 (grub_efiemu_free_syms): Free relocated_handle.
33155 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33156 (grub_efiemu_write_sym_markers): New function.
33157 (grub_efiemu_set_virtual_address_map): Likewise.
33159 Newer XNU parameters.
33161 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33162 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33163 (grub_xnu_fill_devicetree): New prototype.
33164 (grub_xnu_heap_real_start): New variable.
33165 * loader/xnu.c (get_name_ptr): New function.
33166 (grub_xnu_load_driver): Fill namelen and name.
33168 64-bit xnu support.
33170 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33171 and 'loader/macho64.c'.
33172 * conf/i386-pc.rmk: Likewise.
33173 * conf/x86_64-efi.rmk: Likewise.
33174 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33175 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33176 * include/grub/macho.h (grub_macho_segment64): New structure.
33177 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33178 (grub_macho_size32): ... to this.
33179 (grub_macho32_get_entry_point): Renamed from ...
33180 (grub_macho_get_entry_point32): ... to this.
33181 (grub_macho_contains_macho64): New prototype.
33182 (grub_macho_size64): Likewise.
33183 (grub_macho_get_entry_point64): Likewise.
33184 (grub_macho32_load): Renamed from ...
33185 (grub_macho_load32): ... to this.
33186 (grub_macho32_filesize): Renamed from ...
33187 (grub_macho_filesize32): ... to this.
33188 (grub_macho32_readfile): Renamed from ...
33189 (grub_macho_readfile32): ... to this.
33190 (grub_macho_filesize64): New prototype.
33191 (grub_macho_readfile64): Likewise.
33192 (grub_macho_parse32): Likewise.
33193 (grub_macho_parse64): Likewise.
33194 * loader/macho.c: Split into ...
33195 * loader/machoXX.c: ... and this. Replace 32 with XX.
33196 * loader/macho32.c: New file.
33197 * loader/macho64.c: Likewise.
33198 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33199 (grub_cmd_xnu_kernel): Make 32-bit only.
33200 (grub_cmd_xnu_kernel64): New function.
33201 (grub_xnu_load_driver): Support Mach-O 64.
33202 (grub_cmd_xnu_mkext): Likewise.
33203 * util/grub.d/30_os-prober.in (osx_entry): New function.
33204 Generate entries for 64-bit boot too.
33206 Eliminate ad-hoc tree format in XNU and EfiEmu.
33208 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33209 * efiemu/pnvram.c: Rewritten to use environment variables.
33212 Inline utf16_to_utf8.
33214 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33215 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33217 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33219 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33220 * commands/usbtest.c (grub_usb_get_string): ... move here.
33221 (usb_print_str): Fix error handling.
33222 * include/grub/usb.h (grub_usb_get_string): Remove.
33224 UTF-8 to UTF-16 transformation.
33226 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33227 (charset_mod_SOURCES): New variable.
33228 (charset_mod_CFLAGS): Likewise.
33229 (charset_mod_LDFLAGS): Likewise.
33230 * include/grub/utf.h: New file.
33231 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33233 Support for device properties.
33235 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33236 (grub_xnu_devprop_device_header): Likewise.
33237 (grub_xnu_devprop_device_descriptor): Likewise.
33238 (grub_xnu_devprop_add_device): New prototype.
33239 (grub_xnu_devprop_remove_device): Likewise.
33240 (grub_xnu_devprop_remove_property): Likewise.
33241 (grub_xnu_devprop_add_property_utf8): Likewise.
33242 (grub_xnu_devprop_add_property_utf16): Likewise.
33243 (grub_cpu_xnu_init): Likewise.
33244 (grub_cpu_xnu_fini): Likewise.
33245 (grub_cpu_xnu_unload): Likewise.
33246 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33247 (property_descriptor): Likewise.
33248 (devices): New variable.
33249 (grub_xnu_devprop_remove_property): New function.
33250 (grub_xnu_devprop_add_device): Likewise.
33251 (grub_xnu_devprop_remove_device): Likewise.
33252 (grub_xnu_devprop_add_property): Likewise.
33253 (grub_xnu_devprop_add_property_utf8): Likewise.
33254 (grub_xnu_devprop_add_property_utf16): Likewise.
33255 (hextoval): Likewise.
33256 (grub_cpu_xnu_fill_devprop): Likewise.
33257 (grub_cmd_devprop_load): Likewise.
33258 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33259 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33260 (cmd_devprop_load): New variable.
33261 (grub_cpu_xnu_init): New function.
33262 (grub_cpu_xnu_fini): Likewise.
33263 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33264 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33265 (grub_cmd_xnu_devtree): Likewise.
33266 (hextoval): New function.
33267 (unescape): Likewise.
33268 (grub_xnu_fill_devicetree): Likewise.
33270 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33271 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33273 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33275 Workaround for broken ATI VBE.
33277 * video/i386/pc/vbe.c (last_set_mode): New variable.
33278 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33279 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33280 (grub_video_vbe_setup): Don't check for reserved flag.
33282 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33284 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33285 the `find' command.
33287 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33289 UUID support for HFS.
33291 * fs/hfs.c (grub_hfs_uuid): New function.
33292 (grub_hfs_fs): New value .uuid.
33293 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33295 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33297 Fix a segfault with parsing unknown long options.
33299 * util/grub-mkrelpath.c (options): Zero terminate it.
33301 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33303 * include/grub/misc.h (grub_puts): New declaration.
33304 (grub_puts_): Likewise.
33305 * kern/misc.c (grub_puts): New definition.
33306 (grub_puts_): Likewise.
33308 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33310 * util/grub-probe.c (probe): Improve error message.
33312 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33314 * loader/i386/multiboot_elfxx.c
33315 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33318 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33320 Relocator framework
33322 * loader/i386/xnu_helper.S: Removed. All users updated.
33323 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33324 (relocator_mod_SOURCES): New variable.
33325 (relocator_mod_CFLAGS): Likewise.
33326 (relocator_mod_LDFLAGS): Likewise.
33327 (relocator_mod_ASFLAGS): Likewise.
33328 * conf/x86_64.rmk: Likewise.
33329 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33330 (grub_multiboot_payload_entry_offset): Likewise.
33331 (grub_multiboot_forward_relocator): Likewise.
33332 (grub_multiboot_forward_relocator_end): Likewise.
33333 (grub_multiboot_backward_relocator): Likewise.
33334 (grub_multiboot_backward_relocator_end): Likewise.
33335 (grub_multiboot_payload_eip): New variable.
33336 (grub_multiboot_payload_orig): Likewise.
33337 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33338 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33339 * include/grub/i386/memory.h
33340 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33341 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33342 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33343 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33344 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33345 * include/grub/i386/relocator.h: New file.
33346 * include/grub/x86_64/relocator.h: Likewise.
33347 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33348 (XNU_RELOCATOR): New macro.
33349 (grub_xnu_launcher_start): Remove.
33350 (grub_xnu_launcher_end): Likewise.
33351 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33352 (grub_xnu_heap_real_start): Remove.
33353 (grub_xnu_heap_start): Change to void *. All users updated.
33354 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33355 * lib/i386/relocator.c: New file.
33356 * lib/i386/relocator_asm.S: Likewise.
33357 * lib/i386/relocator_backward.S: Likewise.
33358 * lib/mips/relocator.c: Likewise.
33359 * lib/mips/relocator_asm.S: Likewise.
33360 * lib/relocator.c: Likewise.
33361 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33363 (playground): Likewise.
33364 (grub_multiboot_payload_orig): New variable.
33365 (grub_multiboot_payload_dest): Likewise.
33366 (grub_multiboot_payload_size): Likewise.
33367 (grub_multiboot_payload_eip): Likewise.
33368 (grub_multiboot_payload_esp): Likewise.
33369 (grub_multiboot_boot): Use grub_relocator32_boot.
33370 (grub_multiboot_unload): Free relocators.
33371 (grub_multiboot): Setup stack. Use relocators.
33372 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33373 (grub_multiboot_load_elfXX): Use relocators.
33374 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33375 (grub_multiboot_payload_size): Likewise.
33376 (grub_multiboot_payload_dest): Likewise.
33377 (grub_multiboot_payload_entry_offset): Likewise.
33378 (grub_multiboot_forward_relocator): Likewise.
33379 (grub_multiboot_backward_relocator): Likewise.
33380 (grub_multiboot_real_boot): Likewise.
33381 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33382 (grub_xnu_entry_point): Likewise.
33383 (grub_xnu_arg1): Likewise.
33384 (grub_xnu_stack): Likewise.
33385 (grub_xnu_launch): Removed.
33386 (grub_xnu_boot_resume): New function.
33387 (grub_xnu_boot): Use relocators.
33388 * loader/i386/xnu_helper.S: Removed.
33389 * loader/xnu.c (grub_xnu_heap_start): New variable.
33390 (grub_xnu_heap_size): Likewise.
33391 (grub_xnu_heap_malloc): Use relocators.
33392 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33394 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33396 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33399 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33401 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33402 GRUB_ERR_NONE before calling grub_env_set.
33404 2009-12-12 Robert Millan <rmh@aybabtu.com>
33406 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33407 * genmk.rb (video): New variable.
33408 (CLEANFILES, VIDEOFILES): Add #{video}.
33409 (#{video}): New target rule.
33410 * genvideolist.sh: New file.
33411 * Makefile.in (pkglib_DATA): Add video.lst.
33412 (video.lst): New target rule.
33413 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33415 * util/grub.d/30_os-prober.in: Replace `vbe' with
33416 ${GRUB_VIDEO_BACKEND}.
33418 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33420 * THANKS: Add David Miller.
33422 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33424 libpciaccess support.
33426 * Makefile.in (LIBPCIACCESS): New variable.
33427 (enable_grub_emu_pci): Likewise.
33428 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33429 util/pci.c and commands/lspci.c.
33430 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33431 * configure.ac (grub-emu-pci): New option.
33432 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33433 (grub_pci_device_unmap_range): Likewise.
33434 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33435 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33436 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33437 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33438 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33439 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33440 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33441 * include/grub/pciutils.h: New file.
33442 * util/pci.c: Likewise.
33444 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33446 * util/misc.c: Don't include <errno.h> twice.
33448 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33450 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33451 name in an error message.
33452 (grub_biosdisk_rw): Likewise.
33454 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33456 Eliminate NTFS 4Gib barrier.
33458 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33459 (read_run_data): Likewise.
33460 (grub_ntfs_read_run_list): Likewise.
33461 (grub_ntfs_read_block): Likewise.
33462 (grub_ntfs_iterate_dir): Likewise.
33463 (read_mft): Likewise.
33464 (read_data): Likewise.
33466 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33467 to avoid 64-bit division
33468 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33469 (grub_ntfs_rlst): Use grub_disk_addr_t.
33471 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33473 Eliminate grub-fstest 4Gib barrier.
33475 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33476 (read_file): Fix error reporting.
33478 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33480 Eliminate hexdump 4Gib barrier.
33482 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33483 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33485 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33487 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33490 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33492 Remove miscellaneous files in distclean target.
33494 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33496 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33498 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33499 if they're already set. This resolves the conflict between my
33500 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33501 fixing the --grub-probe option again.
33502 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33503 change on 2009-10-06, so that we now once again source
33504 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33506 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33508 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33509 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33510 `util/devicemap.c'.
33512 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33514 * include/grub/misc.h (grub_printf_): New declaration.
33515 * kern/misc.c (grub_printf_): New definition.
33516 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33517 instead of `grub_printf' and `_'.
33518 * normal/menu_entry.c (store_completion): Likewise.
33520 (grub_menu_entry_run): Likewise.
33521 * normal/menu_text.c (grub_wait_after_message): Likewise.
33522 (notify_booting): Likewise.
33523 (notify_fallback): Likewise.
33524 (notify_execution_failure): Likewise.
33526 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33528 * configure.ac: Check for vasprintf.
33529 * util/misc.c (asprintf): Move allocation from here ...
33530 (vasprintf): ... to here. New function.
33531 (xasprintf): New function.
33532 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33534 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33535 * util/grub-mkfont.c (write_font): Likewise.
33536 * util/grub-probe.c (probe): Likewise.
33537 * util/hostdisk.c (make_device_name): Likewise.
33539 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33541 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33542 anything even prefixed with 'cdrom' as a cdrom.
33544 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33546 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33549 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33551 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33552 grub_gettext_msg_list.
33553 (grub_gettext_gettranslation_from_position): Return const char *
33555 (grub_gettext_translate): Add the translated strings into a list,
33556 returns from the list if existing there.
33557 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33558 (grub_gettext_delete_list): Delete the list.
33559 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33560 lang environment variable is changed.
33561 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33563 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33565 Rename kernel.mod to kernel.img.
33567 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33568 (kernel_mod_EXPORTS): Rename to ...
33569 (kernel_img_EXPORTS): ... this.
33570 (kernel_mod_SOURCES): Rename to ...
33571 (kernel_img_SOURCES): ... this.
33572 (kernel_mod_HEADERS): Rename to ...
33573 (kernel_img_HEADERS): ... this. All users updated.
33574 (kernel_mod_CFLAGS): Rename to ...
33575 (kernel_img_CFLAGS): ... this.
33576 (kernel_mod_ASFLAGS): Rename to ...
33577 (kernel_img_ASFLAGS): ... this.
33578 (kernel_mod_LDFLAGS): Rename to ...
33579 (kernel_img_LDFLAGS): ... this.
33580 * conf/x86_64-efi.rmk: Likewise.
33581 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33582 (read_kernel_image): ... this. All users updated.
33583 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33585 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33587 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33588 (print_spaces): New function.
33589 (grub_print_ucs4): New function.
33590 (getstringwidth): New function.
33591 (print_message_indented): New function.
33592 (print_message): Gettexttize strings using print_message_indented.
33593 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33595 (get_entry_number): Gettextize and uses dynamic terminal width.
33596 (notify_booting, notify_fallback, notify_execution_failure):
33598 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33601 (grub_menu_entry_run): Likewise.
33602 * PO/POTFILES: Add normal/menu_entry.c.
33604 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33606 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33608 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33610 * util/grub-install.in: Install gettext .mo files.
33611 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33613 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33615 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33618 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33620 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33621 non-firmware-dependant one in realmode.S takes precedence.
33623 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33625 * commands/halt.c: Replace misc arch-specific headers with
33627 * commands/reboot.c: Likewise.
33628 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33630 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33631 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33632 (kernel_img_SOURCES): ... to here.
33634 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33635 * include/grub/i386/pc/init.h: Likewise.
33636 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33637 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33639 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33641 * include/grub/i386/halt.h: Remove.
33642 * include/grub/i386/reboot.h: Likewise.
33644 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33646 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33648 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33649 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33650 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33652 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33653 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33654 (usage): Add missing comma in printf.
33656 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33658 Use the same reboot approach on i386 coreboot and qemu as we do on
33661 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33662 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33663 * kern/i386/reboot.c: Remove.
33664 * include/grub/i386/reboot.h (grub_reboot): Export function.
33665 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33666 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33667 0xf000:0xfff0 instead of 0xffff:0x0000.
33668 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33669 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33671 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33673 Fix $srcdir != $objdir build.
33675 * Makefile.in (po/%.po): Rewrite as ...
33676 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33678 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33680 Fix GNU/Hurd grub-install crash.
33681 * util/grub-probe.c (probe): Try to access `path' only when it is not
33684 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33686 Correct module naming.
33688 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33689 (GRUB_MOD_INIT(efi_uga)): ... to this
33690 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33691 (GRUB_MOD_FINI(efi_uga)): ... to this
33692 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33693 (GRUB_MOD_INIT(efi_gop)): ... to this
33694 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33695 (GRUB_MOD_FINI(efi_gop)): ... to this
33697 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33699 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33701 (usage): Translate `arg' strings using gettext().
33702 Thanks to Jordi Mallach for the suggestion.
33704 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33706 GOP support. Based on patch from Bean
33707 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33709 * video/efi_gop.c: New file.
33710 * include/grub/efi/graphics_output.h: Likewise.
33711 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33712 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33714 * conf/x86_64-efi.rmk: Likewise.
33716 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33718 Rename efi_fb to efi_uga.
33720 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33722 (efi_fb_mod_SOURCES): Rename this ...
33723 (efi_uga_mod_SOURCES): ... to this.
33724 (efi_fb_mod_CFLAGS): Rename this ...
33725 (efi_uga_mod_CFLAGS): ... to this.
33726 (efi_fb_mod_LDFLAGS): Rename this ...
33727 (efi_uga_mod_LDFLAGS): ... to this.
33728 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33730 (efi_fb_mod_SOURCES): Rename this ...
33731 (efi_uga_mod_SOURCES): ... to this.
33732 (efi_fb_mod_CFLAGS): Rename this ...
33733 (efi_uga_mod_CFLAGS): ... to this.
33734 (efi_fb_mod_LDFLAGS): Rename this ...
33735 (efi_uga_mod_LDFLAGS): ... to this.
33736 * video/efi_fb.c: Move this ...
33737 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33739 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33741 * po/README: New file. Explain our PO file workflow.
33743 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33745 * po/ChangeLog: Remove. Move relevant entries back to ...
33746 * ChangeLog: ... here.
33747 * po/ca.po: Remove (now handled by TLP).
33748 * po/id.po: Likewise.
33749 * po/zh_CN.po: Likewise.
33750 * Makefile.in (LINGUAS): Initialize in a way that supports
33753 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33755 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33756 reliing on po/LINGUAS.
33757 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33758 (po/%.po): ... this.
33760 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33762 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33763 (main): Use `program_name' instead of nonexistent `progname'.
33765 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33767 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33768 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33770 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33772 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33774 * conf/i386-efi.rmk: Likewise.
33775 * conf/i386-ieee1275.rmk: Likewise.
33776 * conf/powerpc-ieee1275.rmk: Likewise.
33777 * conf/sparc64-ieee1275.rmk: Likewise.
33778 * conf/x86_64-efi.rmk: Likewise.
33780 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33782 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33784 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33786 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33788 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33790 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33791 (grub_mkdevicemap_SOURCES): New variable.
33792 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33793 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33794 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33795 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33796 (grub_mkdevicemap_SOURCES): Remove.
33797 * conf/i386-efi.rmk: Likewise.
33798 * conf/i386-ieee1275.rmk: Likewise.
33799 * conf/i386-pc.rmk: Likewise.
33800 * conf/powerpc-ieee1275.rmk: Likewise.
33801 * conf/sparc64-ieee1275.rmk: Likewise.
33802 * conf/x86_64-efi.rmk: Likewise.
33803 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33804 (usage): Fix strings to use `program_name'.
33805 (main): Initialize gettext.
33806 * util/grub-editenv.c: Likewise.
33807 * util/grub-emu.c: Likewise.
33808 * util/grub-fstest.c: Likewise.
33809 * util/grub-mkdevicemap.c: Likewise.
33810 * util/grub-mkfont.c: Likewise.
33811 * util/grub-mkrelpath.c: Likewise.
33812 * util/grub-pe2elf.c: Likewise.
33813 * util/grub-probe.c: Likewise.
33814 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33815 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33816 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33818 * util/misc.c: Include `"progname.h"'.
33819 (progname): Remove variable.
33820 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33822 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33824 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33825 printf and print a newline after the menuentry header line.
33826 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33828 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33830 autoconf >= 2.60 support $(localedir).
33832 * INSTALL: Note that autoconf 2.60 is required.
33833 * configure.ac (AC_PREREQ): Bump to 2.60.
33834 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33835 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33837 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33839 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33842 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33844 * normal/main.c (grub_normal_read_line): Fix off-by-one
33847 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33849 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33850 "parser.grub" in grub_command_execute() call.
33852 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33854 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33855 * conf/i386-efi.rmk: Likewise.
33856 * conf/i386-ieee1275.rmk: Likewise.
33857 * conf/i386-pc.rmk: Likewise.
33858 * conf/powerpc-ieee1275.rmk: Likewise.
33859 * conf/sparc64-ieee1275.rmk: Likewise.
33860 * conf/x86_64-efi.rmk: Likewise.
33861 * gettext/gettex.c: Include <grub/i18n.h>.
33862 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33864 * include/grub/i18n.h: ... to here
33865 * include/grub/i18n.h: ... to here.
33866 * kern/misc.c: Include <grub/i18n.h>
33867 (grub_gettext_dummy): Move above user.
33869 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33871 * util/Makefile.in (install-local): Convert a `for' into a normal
33874 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33876 * autogen.sh: Add automake call.
33877 * config.guess: Remove.
33878 * config.sub: Likewise.
33879 * install-sh: Likewise.
33881 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33883 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33885 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33887 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33888 function to a normal shell `for'.
33890 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33892 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33894 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33896 * util/grub-mkrelpath.c: New file.
33897 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33898 (grub_mkrelpath_SOURCES): New variable.
33899 * include/grub/util/misc.h: New function prototype.
33900 * util/misc.c (make_system_path_relative_to_its_root): New function.
33902 * util/grub-mkconfig_lib.in (bindir): New variable.
33903 (grub_mkrelpath): Likewise.
33904 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33906 * util/probe.c (probe): Make the file path relative to its root.
33907 Change a info message to use the GRUB path. Enable again the
33908 check if we can read the file with GRUB facilities.
33910 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33913 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33915 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33918 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33920 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33923 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33925 * util/getroot.c (grub_util_is_dmraid): New function.
33926 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33927 devices as normal ones, not as LVM.
33929 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33931 * conf/common.rmk: Add grub-gettext_lib target and updates
33932 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33934 * gettext/gettext.c: New file. (Reads mo files).
33935 * include/grub/file.h (grub_file_pread): New prototype.
33936 * include/grub/i18n.h (_): New prototype.
33937 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33939 * kern/misc.c (grub_gettext_dummy): New function.
33940 * normal/menu_text.c: Include <grub/i18n.h>.
33941 * normal/menu_text.c (print_timeout): Gettexttize string.
33942 * normal/menu_text.c (print_message): Gettexttize string.
33943 * po/POTFILES: Add `normal/menu_text.c'.
33944 * po/ca.po: Add new translations.
33945 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33946 gettext module and defines locale_dir and lang in grub.cfg.
33947 * NEWS: Add gettext support.
33949 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33951 * util/hostdisk.c: Include `<grub/i18n.h>'.
33952 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33953 (make_device_name): Rewrite using asprintf.
33954 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33955 (find_system_device): If a device is not found, generate one just
33956 by reusing the OS path name.
33957 (read_device_map): Make it permissible for device.map not to exist.
33959 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33961 * script/sh/execute.c: Move from here ...
33962 * script/execute.c: ... to here. Update all users.
33963 * script/sh/function.c: Move from here ...
33964 * script/function.c: ... to here. Update all users.
33965 * script/sh/lexer.c: Move from here ...
33966 * script/lexer.c: ... to here. Update all users.
33967 * script/sh/main.c: Move from here ...
33968 * script/main.c: ... to here. Update all users.
33969 * script/sh/parser.y: Move from here ...
33970 * script/parser.y: ... to here. Update all users.
33971 * script/sh/script.c: Move from here ...
33972 * script/script.c: ... to here. Update all users.
33974 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33976 * configure.ac: Detect all `emu' platforms. Define
33977 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
33978 --enable-grub-emu logic. Disable include/grub/machine
33979 symlink on `emu' platforms.
33981 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
33982 * gensymlist.sh.in: Likewise.
33984 * include/grub/i386/coreboot/machine.h: Remove file.
33985 * include/grub/i386/efi/machine.h: Likewise.
33986 * include/grub/i386/ieee1275/machine.h: Likewise.
33987 * include/grub/i386/pc/machine.h: Likewise.
33988 * include/grub/i386/qemu/machine.h: Likewise.
33989 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33990 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33991 * include/grub/x86_64/efi/machine.h: Likewise.
33993 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
33994 * commands/halt.c: Likewise.
33995 * commands/reboot.c: Likewise.
33996 * include/grub/autoefi.h: Likewise.
33997 * include/grub/i386/at_keyboard.h: Likewise.
33998 * include/grub/i386/kernel.h: Likewise.
33999 * include/grub/i386/loader.h: Likewise.
34000 * include/grub/i386/pc/memory.h: Likewise.
34001 * kern/dl.c: Likewise.
34002 * kern/i386/coreboot/init.c: Likewise.
34003 * loader/i386/bsd.c: Likewise.
34004 * loader/i386/linux.c: Likewise.
34005 * loader/multiboot_loader.c: Likewise.
34006 * term/i386/pc/serial.c: Likewise.
34007 * term/usb_keyboard.c: Likewise.
34009 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34010 `<grub/machine/machine.h>'
34011 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34012 * util/misc.c: Remove `<grub/machine/machine.h>' and
34013 `<grub/machine/time.h>'.
34015 * Makefile.in (enable_grub_emu): Remove variable.
34016 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34018 * conf/any-emu.rmk: New file.
34019 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34020 (grub_emu_init.c): Move from here ...
34021 * conf/any-emu.rmk: ... to here.
34023 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34024 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34025 * conf/any-emu.rmk: ... to here.
34027 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34029 * include/grub/parser.h (grub_parser_register): Document need
34030 of `name' parameter.
34031 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34032 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34035 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34037 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34039 * include/grub/i18n.h (N_): New macro.
34040 * util/mkisofs/mkisofs.h: Likewise.
34041 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34043 (usage): Use gettext() to translate help strings when printing them.
34045 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34047 Based on patch from Bean
34048 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34050 * video/efi_fb.c: New file.
34051 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34052 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34054 * conf/x86_64-efi.rmk: Likewise.
34056 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34058 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34059 * util/i386/pc/grub-setup.c: Likewise.
34061 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34063 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34065 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34066 file_get_storage_info to implement grub_guess_root_device.
34068 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34070 * Makefile.in (target): Use make's builtin $(shell) function
34071 instead of calling directly $(SHELL) to create the locale directories,
34072 inside the $(foreach) function.
34074 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34076 * util/grub-mkrescue.in: Print an error and usage if output option
34077 has not been given.
34079 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34081 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34082 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34083 root and /boot are on different devices.
34085 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34087 Fix build for srcdir != objdir.
34089 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34090 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34092 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34093 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34094 reference for input.
34096 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34098 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34099 or hardlinking it). Remove -J option, Joliet is not compatible with
34100 multiple source directories.
34102 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34103 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34105 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34106 (process_input_dir): New function. Process an arbitrary input
34108 Misc adjustments to support both "override mode" and system-wide mode.
34110 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34112 * configure.ac (UNIFONT_BDF): Rename to ...
34113 (FONT_SOURCE): ... this. Update all users.
34115 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34117 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34118 to the list of unifont files to look for.
34120 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34122 Patch from Joe Auricchio <jauricchio@gmail.com>
34123 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34124 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34125 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34127 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34129 * Makefile.in (install-local): Add a missing backslash.
34131 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34133 * include/grub/x86_64/io.h: New file.
34135 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34137 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34138 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34139 Include `"progname.h"'.
34140 (main): Initialize gettext.
34141 * util/i386/pc/grub-setup.c: Gettexttize.
34142 * util/i386/pc/grub-mkimage.c: Likewise.
34144 * Makefile.in (po/*.po): Redefine as ...
34145 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34147 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34149 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34151 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34152 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34153 (program_name): Remove.
34154 (main): Initialize gettext support.
34155 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34156 Include `<libintl.h>'.
34159 * util/mkisofs/eltorito.c: Gettexttize.
34160 * util/mkisofs/joliet.c: Likewise.
34161 * util/mkisofs/mkisofs.c: Likewise.
34162 * util/mkisofs/multi.c: Likewise.
34163 * util/mkisofs/rock.c: Likewise.
34164 * util/mkisofs/tree.c: Likewise.
34165 * util/mkisofs/write.c: Likewise.
34167 * po/POTFILES: Update with new files.
34169 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34171 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34172 * util/mkisofs/iso9660.h: Likewise.
34173 * util/mkisofs/joliet.c: Likewise.
34174 * util/mkisofs/mkisofs.c: Likewise.
34175 * util/mkisofs/mkisofs.h: Likewise.
34176 * util/mkisofs/rock.c: Likewise.
34177 * util/mkisofs/tree.c: Likewise.
34178 * util/mkisofs/write.c: Likewise.
34180 * util/mkisofs/eltorito.c (rcsid): Remove.
34181 * util/mkisofs/hash.c: Likewise.
34182 * util/mkisofs/joliet.c: Likewise.
34183 * util/mkisofs/name.c: Likewise.
34184 * util/mkisofs/rock.c: Likewise.
34185 * util/mkisofs/tree.c: Likewise.
34186 * util/mkisofs/write.c: Likewise.
34188 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34190 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34191 instead of static allocation.
34192 * util/mkisofs/match.h: Likewise.
34194 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34196 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34197 and `util/grub.d/10_linux.in'.
34198 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34199 translatable Shell files.
34201 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34203 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34205 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34207 * INSTALL: Document Automake is needed for bootstrap.
34208 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34209 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34210 Add gettext initialization.
34211 (kfreebsd_entry): Make menuentry output translatable.
34213 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34215 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34216 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34217 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34218 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34219 (LINGUAS): Auto-generate using `po/LINGUAS'.
34220 * po/LINGUAS: New file.
34222 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34224 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34226 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34227 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34228 bindtextdomain() calls for gettext initialization.
34230 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34232 * gnulib/progname.c: New file (imported from Gnulib).
34233 * gnulib/progname.h: Likewise.
34234 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34235 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34236 (usage): Replace `progname' with `program_name'.
34237 (main): Use set_program_name() for program name initialization.
34239 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34241 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34243 * Makefile.in (CPPFLAGS): ... to here.
34245 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34247 * aclocal.m4: Move from here ...
34248 * acinclude.m4: ... to here.
34249 * autogen.sh: Add call to `aclocal'.
34250 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34252 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34254 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34255 (LINGUAS): New variable.
34256 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34257 (install-local): Install MO files.
34258 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34259 * include/grub/i18n.h: New file.
34260 * po/POTFILES: New file.
34261 * po/ca.po: New file.
34262 * util/grub.d/10_linux.in (bindir): New variable.
34263 Add gettext initialization.
34264 (linux_entry): Make menuentry output translatable.
34265 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34266 (usage): Make --help output translatable.
34267 (main): Initialize gettext.
34269 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34271 * import_gcry.py: New file (written by Vladimir with minor
34273 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34275 * INSTALL: Document that Python is required for bootstrap.
34277 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34279 Import ciphers from libgcrypt 1.4.4.
34281 * lib/libgcrypt/cipher/ChangeLog
34282 * lib/libgcrypt/cipher/ac.c
34283 * lib/libgcrypt/cipher/arcfour.c
34284 * lib/libgcrypt/cipher/bithelp.h
34285 * lib/libgcrypt/cipher/blowfish.c
34286 * lib/libgcrypt/cipher/camellia-glue.c
34287 * lib/libgcrypt/cipher/camellia.c
34288 * lib/libgcrypt/cipher/camellia.h
34289 * lib/libgcrypt/cipher/cast5.c
34290 * lib/libgcrypt/cipher/cipher.c
34291 * lib/libgcrypt/cipher/crc.c
34292 * lib/libgcrypt/cipher/des.c
34293 * lib/libgcrypt/cipher/dsa.c
34294 * lib/libgcrypt/cipher/ecc.c
34295 * lib/libgcrypt/cipher/elgamal.c
34296 * lib/libgcrypt/cipher/hash-common.c
34297 * lib/libgcrypt/cipher/hash-common.h
34298 * lib/libgcrypt/cipher/hmac-tests.c
34299 * lib/libgcrypt/cipher/md.c
34300 * lib/libgcrypt/cipher/md4.c
34301 * lib/libgcrypt/cipher/md5.c
34302 * lib/libgcrypt/cipher/primegen.c
34303 * lib/libgcrypt/cipher/pubkey.c
34304 * lib/libgcrypt/cipher/rfc2268.c
34305 * lib/libgcrypt/cipher/rijndael-tables.h
34306 * lib/libgcrypt/cipher/rijndael.c
34307 * lib/libgcrypt/cipher/rmd.h
34308 * lib/libgcrypt/cipher/rmd160.c
34309 * lib/libgcrypt/cipher/rsa.c
34310 * lib/libgcrypt/cipher/seed.c
34311 * lib/libgcrypt/cipher/serpent.c
34312 * lib/libgcrypt/cipher/sha1.c
34313 * lib/libgcrypt/cipher/sha256.c
34314 * lib/libgcrypt/cipher/sha512.c
34315 * lib/libgcrypt/cipher/tiger.c
34316 * lib/libgcrypt/cipher/twofish.c
34317 * lib/libgcrypt/cipher/whirlpool.c
34319 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34321 Fix build for systems without error().
34323 * gnulib/error.c: New file (imported from Gnulib).
34324 * gnulib/error.h: Likewise.
34325 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34326 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34327 (this variable is now used by error()).
34329 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34331 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34332 instead of relying that char is signed.
34334 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34336 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34337 blocksize different from specified.
34338 (grub_pxefs_read): Likewise.
34340 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34342 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34344 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34345 (grub_ata_readwrite): Likewise. Update 2 format strings.
34346 (grub_atapi_read): Likewise.
34348 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34349 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34350 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34351 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34352 (ata_mod_LDFLAGS): Move from here ...
34353 * conf/i386.rmk: ... to here ...
34354 * conf/x86_64-efi.rmk: ... and here.
34355 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34356 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34358 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34360 Relicense multiboot.h, with RMS' blessing.
34362 * include/multiboot.h: Change to X11 license.
34364 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34366 Support --version in grub-mkisofs.
34368 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34369 (OPTION_VERSION): New macro.
34370 (ld_options): Recognize --version.
34371 (usage): Move `program_name' from here ...
34372 (program_name): ... to here. Add `static' qualifier.
34373 (main): Recognize `OPTION_VERSION'.
34375 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34377 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34378 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34380 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34382 Fix help2man generation for mkisofs.
34384 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34385 (usage): Send output to stdout (rather than stderr).
34387 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34389 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34390 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34391 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34392 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34393 (bin_SCRIPTS): Add `grub-mkfloppy'.
34394 (grub_mkfloppy_SOURCES): New variable.
34396 * util/grub-mkrescue.in: New file.
34397 * util/i386/pc/grub-mkfloppy.in: New file.
34399 * util/i386/coreboot/grub-mkrescue.in: Remove.
34400 * util/i386/pc/grub-mkrescue.in: Remove.
34402 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34404 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34406 * include/multiboot.h (struct multiboot_header): ... to here. Update
34408 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34410 * include/multiboot.h (struct multiboot_info): ... to here. Update
34412 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34414 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34416 * include/grub/multiboot.h (struct grub_mod_list): Move
34418 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34421 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34423 * include/multiboot2.h (multiboot_word): Rename from this ...
34424 (multiboot2_word): ... to this. Update all users.
34425 (multiboot_header): Rename from this ...
34426 (multiboot2_header): ... to this. Update all users.
34427 (multiboot_tag_header): Rename from this ...
34428 (multiboot2_tag_header): ... to this. Update all users.
34429 (multiboot_tag_start): Rename from this ...
34430 (multiboot2_tag_start): ... to this. Update all users.
34431 (multiboot_tag_name): Rename from this ...
34432 (multiboot2_tag_name): ... to this. Update all users.
34433 (multiboot_tag_module): Rename from this ...
34434 (multiboot2_tag_module): ... to this. Update all users.
34435 (multiboot_tag_memory): Rename from this ...
34436 (multiboot2_tag_memory): ... to this. Update all users.
34437 (multiboot_tag_unused): Rename from this ...
34438 (multiboot2_tag_unused): ... to this. Update all users.
34439 (multiboot_tag_end): Rename from this ...
34440 (multiboot2_tag_end): ... to this. Update all users.
34442 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34444 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34445 this platform we should support Multiboot1 first.
34447 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34448 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34449 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34451 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34453 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34454 of write calls (converting them to fwrite() if they aren't already).
34455 (get_torito_desc): Likewise.
34456 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34458 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34460 * util/i386/pc/grub-install.in: Move from here ...
34461 * util/grub-install.in: ... to here. Update all users.
34463 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34465 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34467 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34469 Support for El Torito without floppy emulation.
34471 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34472 (init_boot_catalog): Improve error handling.
34473 (get_torito_desc): Don't use floppy emulation unless requested by
34474 user. Patch boot information table when requested via
34475 `-boot-info-table'.
34476 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34477 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34478 (use_boot_info_table): New variables.
34479 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34480 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34481 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34482 `--eltorito-emul-floppy'.
34483 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34484 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34485 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34486 (use_boot_info_table, get_731): New prototypes.
34487 * util/mkisofs/write.c (get_731): New function.
34489 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34491 Fix the generation of the man page.
34493 * util/pc/i386/grub-install.in: Source
34494 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34496 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34498 Large file support for grub-mkisofs.
34500 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34501 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34502 (session_start): Upgrade type to `uint64_t'. Update all users.
34503 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34504 (struct directory_entry): Upgrade type of `starting_block' and
34505 `size' to `uint64_t'. Update all users.
34506 (struct deferred): Remove unused structure.
34507 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34509 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34510 file is larger than `UINT32_MAX'.
34511 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34512 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34514 (struct deferred_write): Upgrade type of `extent' and `size' to
34515 `uint64_t'. Update all users.
34516 (last_extent_written): Upgrade type to `uint64_t'. Update all
34518 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34519 Update all users. Upgrade type of `remain' to `int64_t' and
34520 `use' to `size_t'. Use error() to handle fread() errors.
34521 (write_files): Rely on write_one_file() rather than calling
34522 xfwrite() directly.
34524 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34526 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34528 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34530 * util/mkisofs/fnmatch.c: Remove.
34531 * util/mkisofs/getopt1.c: Likewise.
34532 * util/mkisofs/getopt.c: Likewise.
34533 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34534 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34535 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34536 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34537 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34539 * configure.ac: Detect `mingw32msvc' host_os.
34540 Check for lstat(), getuid() and getgid().
34542 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34543 instances of `u_char' with `uint8_t'.
34545 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34546 [!HAVE_GETUID] (getuid): New function (stub).
34547 [!HAVE_GETGID] (getgid): Likewise.
34548 [!HAVE_LSTAT] (lstat): Likewise.
34549 [!S_IROTH] (S_IROTH): New macro (dummy).
34550 [!S_IRGRP] (S_IRGRP): Likewise.
34552 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34554 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34555 conditional expression).
34557 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34559 Import from Gnulib.
34561 * gnulib/fnmatch.c: New file.
34562 * gnulib/fnmatch.h: Likewise.
34563 * gnulib/fnmatch_loop.c: Likewise.
34564 * gnulib/getopt.c: Likewise.
34565 * gnulib/getopt.h: Likewise.
34566 * gnulib/getopt1.c: Likewise.
34567 * gnulib/getopt_int.h: Likewise.
34568 * gnulib/gettext.h: Likewise.
34570 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34572 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34573 * normal/handler.c (read_handler_list): Likewise.
34575 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34579 * kern/command.c (grub_register_command_prio): Use
34580 grub_zalloc() instead of explicitly zeroing data.
34581 * kern/list.c: Include `<grub/mm.h>'.
34582 (grub_named_list_find): Replace `0' with `NULL'.
34583 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34584 (fs_module_list): Change type to `grub_named_list_t'. Update all
34586 * normal/dyncmd.c (read_command_list): Add space between function
34587 call and parenthesis.
34588 * normal/handler.c (read_handler_list): Likewise.
34590 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34592 * normal/auth.c (punishment_delay): Moved from here ...
34593 (grub_auth_strcmp): ... to here (inside function).
34595 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34597 * include/grub/list.h (struct grub_named_list): Remove `const'
34598 qualifier from `name'.
34599 (struct grub_prio_list): Likewise.
34601 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34603 * normal/auth.c: Include `<grub/time.h>'.
34604 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34606 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34608 * normal/auth.c (punishment_delay): New variable.
34609 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34610 (grub_auth_check_authentication): Punish failed login attempts with
34611 an incremental (2^N) delay.
34613 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34615 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34616 path with $(srcdir).
34618 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34620 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34622 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34624 * util/i386/coreboot/grub-mkrescue.in: New file.
34625 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34628 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34629 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34630 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34632 * util/mkisofs/defaults.h: New file.
34633 * util/mkisofs/eltorito.c: Likewise.
34634 * util/mkisofs/exclude.h: Likewise.
34635 * util/mkisofs/fnmatch.c: Likewise.
34636 * util/mkisofs/getopt.c: Likewise.
34637 * util/mkisofs/getopt1.c: Likewise.
34638 * util/mkisofs/hash.c: Likewise.
34639 * util/mkisofs/include/fctldefs.h: Likewise.
34640 * util/mkisofs/include/mconfig.h: Likewise.
34641 * util/mkisofs/include/prototyp.h: Likewise.
34642 * util/mkisofs/include/statdefs.h: Likewise.
34643 * util/mkisofs/iso9660.h: Likewise.
34644 * util/mkisofs/joliet.c: Likewise.
34645 * util/mkisofs/match.c: Likewise.
34646 * util/mkisofs/match.h: Likewise.
34647 * util/mkisofs/mkisofs.c: Likewise.
34648 * util/mkisofs/mkisofs.h: Likewise.
34649 * util/mkisofs/multi.c: Likewise.
34650 * util/mkisofs/name.c: Likewise.
34651 * util/mkisofs/rock.c: Likewise.
34652 * util/mkisofs/tree.c: Likewise.
34653 * util/mkisofs/write.c: Likewise.
34655 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34657 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34660 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34662 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34663 `grub-mkimage' (and use $0 when possible).
34665 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34667 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34668 error message for excessively large memory map.
34670 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34672 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34675 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34677 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34678 message for coreboot users.
34680 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34682 Fix build with GNU gold.
34684 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34685 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34686 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34688 * aclocal.m4: Likewise.
34690 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34692 * configure.ac (AC_PREREQ): Bump to 2.59d.
34693 * INSTALL: Make it more clear when Autoconf and Ruby are
34694 needed and when to run `./autogen.sh'.
34696 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34698 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34701 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34703 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34705 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34707 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34708 giving it to GNU Mach.
34710 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34712 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34713 GNU partition number to get internal GRUB partition number.
34715 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34717 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34718 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34720 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34722 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34723 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34726 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34728 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34730 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34734 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34735 `-isystem=$(srcdir)/include'.
34737 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34739 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34740 checked (grub-install doesn't currently rely on it).
34742 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34746 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34747 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34748 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34749 * conf/i386-ieee1275.rmk: Likewise.
34750 * conf/i386-pc.rmk: Likewise.
34751 * conf/powerpc-ieee1275.rmk: Likewise.
34752 * conf/sparc64-ieee1275.rmk: Likewise.
34753 * conf/x86_64-efi.rmk: Likewise.
34755 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34757 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34759 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34761 * include/grub/misc.h: Stop checking for APPLE_CC.
34763 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34765 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34766 doesn't cause an infinite call loop.
34768 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34770 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34773 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34775 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34777 * Makefile.in: Likewise.
34779 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34781 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34783 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34785 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34787 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34789 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34791 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34793 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34795 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34797 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34799 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34800 in $(MAKEINFO) invocation. This makes it clear in output that
34801 errors are being ignored.
34803 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34805 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34807 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34808 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34809 * conf/i386-ieee1275.rmk: Likewise.
34810 * conf/i386-pc.rmk: Likewise.
34811 * conf/powerpc-ieee1275.rmk: Likewise.
34812 * conf/sparc64-ieee1275.rmk: Likewise.
34813 * conf/x86_64-efi.rmk: Likewise.
34815 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34817 * util/grub-editenv.c (main): If only a command is given, use
34818 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34819 (usage): FILENAME is now optional and has a default.
34821 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34823 Improve grub-mkconfig performance when there are several menu
34824 entries on a single filesystem.
34826 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34827 prepare_grub_to_access_device.
34828 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34829 * util/grub.d/30_os-prober.in: Likewise.
34831 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34833 * util/grub.d/10_freebsd.in: Remove.
34834 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34835 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34837 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34839 * docs/grub.cfg: Fix example usage of *BSD loaders.
34841 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34843 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34844 grub_util_error() call.
34846 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34848 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34849 `reserved_first_sector' member.
34850 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34851 `reserved_first_sector' to 1.
34852 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34853 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34854 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34855 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34856 filesystems which begin at first sector.
34857 (options): New option --skip-fs-probe.
34858 (main): Handle --skip-fs-probe and pass it to setup().
34860 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34862 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34863 (memset): Fix function prototype.
34865 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34866 2009-10-25 Vasily Averin <vvs@parallels.com>
34868 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34869 `dirent.direntlen == 0'.
34871 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34873 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34875 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34877 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34879 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34880 `__trampoline_setup' and `__ucmpdi2'.
34881 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34882 that libgcc provides.
34884 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34886 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34887 * include/grub/sparc64/libgcc.h (memset): Likewise.
34888 * include/grub/misc.h (memset, memcmp): New function prototypes.
34890 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34892 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34894 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34896 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34898 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34899 * docs/grub.cfg: Compensate for recent change in multiboot
34900 loader (since 2009-08-14 it won't pass filename to payload).
34901 * util/grub.d/10_hurd.in: Likewise.
34903 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34905 * config.guess: Update to latest version from config git
34907 * config.sub: Likewise.
34909 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34911 Fix build on sparc64.
34913 * configure.ac: Perform checks for libgcc symbols before
34914 adding `-nostdlib' to LDFLAGS.
34916 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34918 Let user specify OpenBSD root device.
34920 * loader/i386/bsd.c (openbsd_root): New variable.
34921 (openbsd_opts): New option 'root'.
34922 (OPENBSD_ROOT_ARG): New macro.
34923 (grub_openbsd_boot): Use 'openbsd_root'.
34924 (grub_cmd_openbsd): Fill 'openbsd_root'.
34926 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34928 * NEWS: Misc adjustments.
34930 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34932 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34934 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34936 * configure.ac: Bump version to 1.97.
34938 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34940 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34941 -mno-3dnow on x86 architectures. Some toolchains enable these
34942 features by default, but they rely on registers that aren't enabled
34943 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34945 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34947 Make entry text a bit more readable.
34949 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34951 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34953 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34955 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34957 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34960 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34962 * configure.ac: Add missing dollar.
34964 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34966 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34968 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34969 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34971 * include/grub/sparc64/libgcc.h: Likewise. Use
34972 preprocessor conditionals.
34974 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34976 * conf/common.rmk (grub-dumpbios): Remove rule.
34977 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
34978 * util/grub-dumpbios.in: Remove file.
34980 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34982 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
34983 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
34985 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
34986 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
34989 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
34990 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
34991 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
34992 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
34995 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
34997 * term/tparm.c: Switch to GPLv3.
34999 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35001 * include/grub/i386/cpuid.h: Add header protection.
35003 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35005 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35007 * include/grub/i386/cpuid.h: New file.
35008 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35009 (has_longmode): Rename to ...
35010 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35011 `static' attribute.
35012 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35013 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35014 on a CPU that doesn't implement AMD64 instruction set.
35016 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35018 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35019 that version.texi is rebuilt on version number changes.
35021 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35023 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35026 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35028 * util/i386/pc/grub-install.in: Source
35029 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35030 that the --grub-probe option will work.
35031 * util/sparc64/ieee1275/grub-install.in: Likewise.
35033 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35035 * configure.ac: Bump version to 1.97~beta4.
35037 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35039 Resync grub-mkdevicemap in x86_64-efi.
35041 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35042 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35043 `util/devicemap.c'.
35045 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35047 * util/grub-editenv.c (create_envblk_file): Write new block with a
35048 .new suffix and then rename it into place, to ensure atomic
35051 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35053 Do not automatically install headers.
35055 * Makefile.in (include_DATA): Remove. Update all users.
35057 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35059 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35060 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35062 * util/osdetect.lua: Remove.
35063 * script/lua/lauxlib.c: Likewise.
35064 * script/lua/ldebug.c: Likewise.
35065 * script/lua/grub_main.c: Likewise.
35066 * script/lua/lauxlib.h: Likewise.
35067 * script/lua/ldebug.h: Likewise.
35068 * script/lua/ltablib.c: Likewise.
35069 * script/lua/liolib.c: Likewise.
35070 * script/lua/lstrlib.c: Likewise.
35071 * script/lua/lualib.h: Likewise.
35072 * script/lua/ldo.c: Likewise.
35073 * script/lua/ldump.c: Likewise.
35074 * script/lua/ldo.h: Likewise.
35075 * script/lua/loslib.c: Likewise.
35076 * script/lua/lundump.c: Likewise.
35077 * script/lua/grub_lib.c: Likewise.
35078 * script/lua/ldblib.c: Likewise.
35079 * script/lua/lundump.h: Likewise.
35080 * script/lua/lmem.c: Likewise.
35081 * script/lua/grub_lib.h: Likewise.
35082 * script/lua/lmathlib.c: Likewise.
35083 * script/lua/lstate.c: Likewise.
35084 * script/lua/ltm.c: Likewise.
35085 * script/lua/lvm.c: Likewise.
35086 * script/lua/lmem.h: Likewise.
35087 * script/lua/lstate.h: Likewise.
35088 * script/lua/ltm.h: Likewise.
35089 * script/lua/ltable.c: Likewise.
35090 * script/lua/lvm.h: Likewise.
35091 * script/lua/llex.c: Likewise.
35092 * script/lua/lgc.c: Likewise.
35093 * script/lua/grub_lua.h: Likewise.
35094 * script/lua/loadlib.c: Likewise.
35095 * script/lua/lfunc.c: Likewise.
35096 * script/lua/lopcodes.c: Likewise.
35097 * script/lua/lparser.c: Likewise.
35098 * script/lua/ltable.h: Likewise.
35099 * script/lua/llex.h: Likewise.
35100 * script/lua/lgc.h: Likewise.
35101 * script/lua/lfunc.h: Likewise.
35102 * script/lua/lbaselib.c: Likewise.
35103 * script/lua/lopcodes.h: Likewise.
35104 * script/lua/lparser.h: Likewise.
35105 * script/lua/lzio.c: Likewise.
35106 * script/lua/linit.c: Likewise.
35107 * script/lua/lobject.c: Likewise.
35108 * script/lua/llimits.h: Likewise.
35109 * script/lua/lstring.c: Likewise.
35110 * script/lua/lzio.h: Likewise.
35111 * script/lua/lapi.c: Likewise.
35112 * script/lua/lcode.c: Likewise.
35113 * script/lua/lua.h: Likewise.
35114 * script/lua/lobject.h: Likewise.
35115 * script/lua/lstring.h: Likewise.
35116 * script/lua/lapi.h: Likewise.
35117 * script/lua/lcode.h: Likewise.
35118 * script/lua/luaconf.h: Likewise.
35120 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35122 * docs/grub.texi (Command-line and menu entry commands): Document
35123 date and echo commands.
35125 2009-09-24 Pavel Roskin <proski@gnu.org>
35127 * include/grub/kernel.h (struct grub_module_header): Remove
35128 `grub_module_header_types'. Make `type' unsigned. Make `size'
35129 32-bit on all platforms.
35130 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35131 8-bit field. Use grub_host_to_target32() for `size'.
35132 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35133 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35134 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35136 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35138 Fix "lost keypress" bug in at_keyboard.
35140 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35141 Checks for readyness of input buffer (without flushing it).
35142 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35143 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35145 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35147 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35148 size check within GRUB_MACHINE_PCBIOS section.
35150 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35152 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35154 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35155 KEYBOARD_ISREADY check.
35156 (grub_at_keyboard_checkkey): Rename to ...
35157 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35158 Remove gratuitous cast.
35160 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35162 * configure.ac: Call AC_PROG_MKDIR_P.
35163 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35164 version.texi in $(builddir) rather than $(srcdir).
35165 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35166 to makeinfo's @include search path.
35168 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35170 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35172 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35174 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35177 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35179 Build info documentation. Some code borrowed from Automake.
35181 * configure.ac: Check for makeinfo.
35182 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35183 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35185 (MOSTLYCLEANFILES): Add vti.tmp.
35186 (docs/version.texi, docs/stamp-vti): Update automatically.
35187 (docs/grub.info): Build info documentation. Use --force and ignore
35189 (all-local): Add $(INFOS).
35190 (install-local): Install info files.
35191 (uninstall): Uninstall info files.
35192 * docs/version.texi: Remove from revision control. This file is
35193 automatically generated on build now.
35194 * gendistlist.sh: Add `*.info'.
35196 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35198 * kern/term.c: Fix indentation.
35200 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35202 * util/hostdisk.c: Fix a comment.
35204 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35206 Fix regression introduced in r2539.
35208 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35211 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35213 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35214 os-prober. Under normal operation, it does not print anything to
35215 stderr; if it does, we need to debug it, and throwing away stderr
35216 makes that excessively difficult.
35218 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35220 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35222 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35224 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35225 AC_LANG_PROGRAM from autoconf.
35226 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35227 prototypes (fixes warning).
35229 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35230 `--disable-werror' was used.
35232 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35234 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35235 uninitialized `lastaddr'.
35237 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35239 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35241 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35243 * commands/test.c (get_fileinfo): Return immediately if
35244 grub_fs_probe fails.
35246 2009-09-14 José Martínez <xosemp@gmail.com>
35248 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35250 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35252 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35255 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35257 * configure.ac: Remove --enable-grub-pe2elf. Only build
35258 grub-pe2elf when needed by the build system itself.
35259 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35261 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35263 * configure.ac: Bump version to 1.97~beta3.
35264 * docs/version.texi: Likewise.
35266 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35268 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35269 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35271 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35272 (grub_linux_setup_video): ... to here (with some adjustments).
35274 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35276 Fix memory corruption issue (spotted by Colin Watson).
35278 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35279 causing returned size to be stored in an incorrect memory location.
35280 Fix use of uninitialized value when storing the returned size.
35282 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35284 Change clean rules to properly remove files
35286 * genmk.rb: add new clean rules
35287 * Makefile.in (clean): add the new targets
35288 (mostlyclean): likewise
35290 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35292 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35294 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35295 non-resident files.
35297 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35299 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35300 part of bug #27349.
35302 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35304 * util/grub-mkconfig.in: Make the created config mode 400 and
35305 print a warning if it fails.
35307 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35309 * util/grub.d/40_custom.in: Ask user to type custom entries below
35310 comment, rather than below 'exec tail' line.
35312 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35314 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35315 visible in grub.cfg.
35317 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35319 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35322 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35324 * docs/grub.cfg: Add an example menu entry for memtest86+.
35326 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35328 * config.guess: Update to latest version from config git.
35329 * config.sub: Likewise.
35331 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35333 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35334 unknown-command case. Fixes bug #27320.
35336 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35338 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35339 `help' if the command exists.
35341 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35343 * INSTALL: Require GCC 4.1.3 or later.
35345 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35347 * Makefile.in (RMKFILES): add i386-qemu.rmk
35348 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35349 $(srcdir)/stamp-h.in
35351 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35353 * util/grub-probe.c (probe): Comment out buggy codepath, which
35354 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35355 should be re-enabled after 1.97.
35357 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35359 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35362 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35364 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35365 unnecessary calls to grub_error.
35367 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35369 * NEWS: Mention `keystatus' and Unicode fonts.
35371 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35373 * configure.ac: Bump version to 1.97~beta2.
35374 * docs/version.texi: Likewise.
35376 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35378 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35379 containing unwind information in some cases where it previously did
35380 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35381 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35384 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35386 Embedding loadenv module into grub-emu
35388 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35390 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35391 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35392 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35393 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35394 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35395 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35397 2009-09-03 Magnus Granberg <zorry@ume.nu>
35399 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35400 include -fPIE in the default specs.
35401 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35404 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35406 * INSTALL: Note that GNU Bison 2.3 or later is required.
35408 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35410 * kern/i386/pc/startup.S: Fix typo.
35412 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35414 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35417 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35419 * docs/grub.texi (Naming convention): Describe one-based partition
35421 (Device syntax): Likewise.
35422 (File name syntax): Likewise.
35423 (Block list syntax): Likewise.
35424 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35426 (File name syntax): Likewise.
35427 (Command-line and menu entry commands): Document acpi, blocklist,
35428 crc, export, insmod, keystatus, ls, set, and unset commands.
35430 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35432 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35433 to avoid implying that only one of --shift, --ctrl, or --alt may be
35436 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35438 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35439 rather than comparing against S_IFREG, which will almost never work.
35441 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35443 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35444 (write_blocklists): Likewise.
35446 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35448 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35449 argument to grub_printf.
35451 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35453 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35456 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35458 * kern/file.c (grub_file_read): Spelling fix
35460 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35462 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35463 loading of headers in some cases.
35465 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35467 * configure.ac: Bump version to 1.97~beta1.
35468 * docs/version.texi: Likewise.
35470 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35472 * include/grub/i386/xnu.h: Add license header.
35473 include grub/err.h explicitly.
35475 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35477 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35478 to `ufs' in the vfs.root.mountfrom kernel parameter.
35480 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35482 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35484 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35485 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35487 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35488 `ARRAY_SIZE' macro.
35490 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35492 * kern/file.c (grub_file_read): Check offset.
35493 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35494 * fs/jfs.c (grub_jfs_read_file): Likewise.
35495 * fs/ntfs.c (grub_ntfs_read): Likewise.
35496 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35497 * fs/minix.c (grub_minix_read_file): Correct offset check.
35498 * fs/ufs.c (grub_ufs_read_file): Likewise.
35500 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35502 * term/i386/pc/console.c (bios_data_area): Cast
35503 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35505 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35507 1-bit optimised blitters.
35509 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35511 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35512 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35513 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35514 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35515 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35516 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35517 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35519 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35520 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35521 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35522 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35523 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35524 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35525 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35527 * video/video.c (grub_video_get_blit_format): Return
35528 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35530 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35532 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35533 the first argument to grub_printf.
35535 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35536 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35538 Add `getkeystatus' terminal method. Add a new `keystatus' command
35541 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35542 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35543 modifier key bitmasks.
35544 (struct grub_term_input): Add `getkeystatus' member.
35545 (grub_getkeystatus): Add prototype.
35546 * kern/term.c (grub_getkeystatus): New function.
35548 * include/grub/i386/pc/memory.h
35549 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35550 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35552 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35553 (grub_console_term_input): Set `getkeystatus' member.
35554 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35556 (grub_usb_keyboard_getreport): Likewise.
35557 (grub_usb_keyboard_checkkey): Likewise.
35558 (grub_usb_keyboard_getkeystatus): New function.
35559 (grub_usb_keyboard_term): Set `getkeystatus' member.
35561 * commands/keystatus.c: New file.
35562 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35563 (keystatus_mod_SOURCES): New variable.
35564 (keystatus_mod_CFLAGS): Likewise.
35565 (keystatus_mod_LDFLAGS): Likewise.
35566 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35567 commands/keystatus.c.
35568 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35569 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35570 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35572 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35573 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35575 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35577 Split befs.mod and afs.mod into *_be.mod and *.mod
35579 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35580 (grub_fstest_SOURCES): Likewise.
35581 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35582 (afs_be_mod_SOURCES): New variable.
35583 (afs_be_mod_CFLAGS): Likewise.
35584 (afs_be_mod_LDFLAGS): Likewise.
35585 (befs_be_mod_SOURCES): Likewise.
35586 (befs_be_mod_CFLAGS): Likewise.
35587 (befs_be_mod_LDFLAGS): Likewise.
35588 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35589 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35590 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35591 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35592 (grub_emu_SOURCES): Likewise.
35593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35594 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35595 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35596 * fs/afs_be.c: New file.
35597 * fs/befs_be.c: New file.
35598 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35599 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35600 (U16): Replaced with ...
35601 (grub_afs_to_cpu16): ...this. All users updated.
35602 (U32): Replaced with ...
35603 (grub_afs_to_cpu32): ...this. All users updated.
35604 (U64): Replaced with ...
35605 (grub_afs_to_cpu64): ...this. All users updated.
35606 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35607 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35608 (grub_afs_validate_sblock): Check only one endianness.
35609 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35610 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35611 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35612 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35613 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35614 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35615 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35616 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35618 2009-08-26 Bean <bean123ch@gmail.com>
35620 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35622 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35623 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35624 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35626 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35628 NetBSD memory map support.
35630 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35631 (grub_netbsd_btinfo_mmap_header): New structure.
35632 (grub_netbsd_btinfo_mmap_entry): Likewise.
35633 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35635 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35637 Enable bsd.mod on coreboot.
35639 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35640 (bsd_mod_SOURCES): New variable.
35641 (bsd_mod_CFLAGS): Likewise.
35642 (bsd_mod_LDFLAGS): Likewise.
35643 (bsd_mod_ASFLAGS): Likewise.
35644 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35645 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35647 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35649 Cleanup NetBSD root support.
35651 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35652 grub_bsd_get_device.
35655 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35657 * util/grub.d/00_header.in: Move check for the video backend of
35658 gfxterm from here ...
35659 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35660 a suitable video backend.
35662 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35664 Fix breakage in grub-setup.
35666 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35667 "msdos_partition_map".
35669 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35671 Fix breakage in normal/auth.c.
35673 * normal/auth.c (grub_iswordseparator): New function.
35675 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35677 Authentication support.
35679 * commands/password.c: New file.
35680 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35681 (password_mod_SOURCES): New variable.
35682 (password_mod_CFLAGS): Likewise.
35683 (password_mod_LDFLAGS): Likewise.
35684 (normal_mod_SOURCES): Add normal/auth.c.
35685 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35687 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35688 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35689 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35691 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35692 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35693 * include/grub/auth.h: New file.
35694 * include/grub/err.h (grub_err_t): New enum value
35695 GRUB_ERR_ACCESS_DENIED.
35696 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35698 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35699 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35701 * normal/auth.c: New file.
35702 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35703 (grub_cmdline_run): Don't allow to go to command line without
35705 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35706 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35707 menuentry without superuser rights.
35708 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35709 user isn't a superuser.
35711 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35713 Save space by inlining misc.c functions.
35715 * kern/misc.c (grub_iswordseparator): Made static.
35716 * kern/misc.c (grub_strcat): Moved from here ...
35717 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35718 * kern/misc.c (grub_strncat): Moved from here ...
35719 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35720 * kern/misc.c (grub_strcasecmp): Moved from here ...
35721 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35722 * kern/misc.c (grub_strncasecmp): Moved from here ...
35723 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35724 * kern/misc.c (grub_isalpha): Moved from here ...
35725 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35726 * kern/misc.c (grub_isdigit): Moved from here ...
35727 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35728 * kern/misc.c (grub_isgraph): Moved from here ...
35729 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35730 * kern/misc.c (grub_tolower): Moved from here ...
35731 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35733 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35735 * script/sh/function.c (grub_script_function_find): Cut error message
35736 not to flood terminal.
35737 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35739 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35741 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35743 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35744 `report' grub_uint8_t *.
35745 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35746 Use a 50-millisecond timeout rather than just repeating
35747 grub_usb_keyboard_getreport 50 times.
35748 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35750 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35752 Rename *_partition_map to part_*
35754 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35755 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35756 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35757 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35759 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35761 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35762 * util/grub-probe.c (probe_partmap): Don't transform partition name
35763 to get module name.
35765 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35767 Fix OpenBSD and NetBSD support.
35769 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35770 memory address conflict.
35771 (OPENBSD_MMAP_ACPI): New definition.
35772 (OPENBSD_MMAP_NVS): Likewise.
35773 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35774 and OPENBSD_MMAP_NVS.
35775 Add memory map terminator
35776 Explicit cast when calling grub_unix_real_boot.
35777 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35779 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35781 Let user specify NetBSD root device.
35783 * loader/i386/bsd.c (netbsd_root): New variable.
35784 (netbsd_opts): New option 'root'.
35785 (NETBSD_ROOT_ARG): New macro.
35786 (grub_netbsd_boot): Use 'netbsd_root'.
35787 (grub_bsd_unload): Free 'netbsd_root'.
35788 (grub_cmd_netbsd): Fill 'netbsd_root'.
35790 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35792 Support for 64-bit NetBSD.
35794 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35795 point when booting non-FreeBSD.
35797 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35799 Support --no-smp and --no-acpi for NetBSD.
35801 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35802 (NETBSD_AB_NOACPI): Likewise.
35803 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35804 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35806 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35808 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35810 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35811 errors. Call grub_error when needed.
35813 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35815 * commands/search.c (search_fs): Try searching without autoload first.
35816 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35817 filesystem module explicitly for faster booting.
35819 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35821 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35823 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35825 * util/grub.d/30_os-prober.in: Disable os-prober if
35826 `GRUB_DISABLE_OS_PROBER' was set to true.
35828 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35830 * partmap/pc.c: Rename to ...
35831 * partmap/msdos.c: ... this. Update all users.
35832 (grub_pc_partition_map): Rename to ...
35833 (grub_msdos_partition_map): ... this. Update all users.
35835 * parttool/pcpart.c: Rename to ...
35836 * parttool/msdospart.c: ... this. Update all users.
35838 * include/grub/pc_partition.h: Rename to ...
35839 * include/grub/msdos_partition.h: ... this. Update all users.
35840 (grub_pc_partition_bsd_entry): Rename to ...
35841 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35842 (grub_pc_partition_disk_label): Rename to ...
35843 (grub_msdos_partition_disk_label): ... this. Update all users.
35844 (grub_pc_partition_entry): Rename to ...
35845 (grub_msdos_partition_entry): ... this. Update all users.
35846 (grub_pc_partition_mbr): Rename to ...
35847 (grub_msdos_partition_mbr): ... this. Update all users.
35848 (grub_pc_partition): Rename to ...
35849 (grub_msdos_partition): ... this. Update all users.
35850 (grub_pc_partition_is_empty): Rename to ...
35851 (grub_msdos_partition_is_empty): ... this. Update all users.
35852 (grub_pc_partition_is_extended): Rename to ...
35853 (grub_msdos_partition_is_extended): ... this. Update all users.
35854 (grub_pc_partition_is_bsd): Rename to ...
35855 (grub_msdos_partition_is_bsd): ... this. Update all users.
35857 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35858 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35859 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35860 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35861 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35862 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35863 (gpt_mod_LDFLAGS): Rename to ...
35864 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35865 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35866 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35867 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35868 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35869 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35870 (part_gpt_mod_LDFLAGS): ... this.
35871 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35872 `pcpart.mod' to `msdospart.mod'.
35873 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35875 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35876 (msdospart_mod_LDFLAGS): ... this.
35878 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35880 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35881 (openbsd_opts): Likewise.
35882 (netbsd_opts): Likewise.
35883 (freebsd_flags): Added 0 terminator.
35884 (openbsd_flags): Likewise.
35885 (netbsd_flags): Likewise.
35886 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35887 (grub_cmd_freebsd): Transformed into extended command.
35888 (grub_cmd_openbsd): Likewise.
35889 (grub_cmd_netbsd): Likewise.
35890 (cmd_freebsd): Changed type to grub_extcmd_t.
35891 (cmd_openbsd): Likewise.
35892 (cmd_netbsd): Likewise.
35893 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35894 grub_cmd_openbsd as extended commands.
35895 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35896 cmd_netbsd and cmd_openbsd
35898 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35900 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35902 2009-08-21 Pavel Roskin <proski@gnu.org>
35904 * Makefile.in (install-local): When checking if a file is in the
35905 build directory, use "test -e" to detect symlinks.
35907 * Makefile.in (install-local): Remove all files in
35908 $(DESTDIR)$(pkglibdir) before installing new files there.
35910 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35912 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35915 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35917 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35918 explicitly specified by the user.
35920 2009-08-18 Pavel Roskin <proski@gnu.org>
35922 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35923 grub_uint8_t pointer for data.
35924 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35926 * video/fb/fbutil.c: Remove unnecessary casts.
35928 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35932 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35933 (grub_vbe_set_video_mode): Save active mode info
35934 only after setting the mode.
35935 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35938 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35940 Rename variables for clarity.
35942 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35943 (active_vbe_mode_info): ... this. All users updated.
35944 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35946 (initial_mode): Rename to ...
35947 (initial_vbe_mode): ... this. All users updated.
35948 (mode_in_use): Rename to ..
35949 (vbe_mode_in_use): ... this. All users updated.
35950 (mode_list): Rename to ..
35951 (vbe_mode_list): ... this. All users updated.
35952 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35953 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35954 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35955 'mode_list_size' to 'vbe_mode_list_size'.
35956 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35957 'best_mode_info' to 'best_vbe_mode_info' and
35958 'best_mode' to 'best_vbe_mode'
35960 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35962 Remove duplicate grub_video_fb_get_video_ptr.
35964 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35965 (grub_video_fb_get_video_ptr): ... this.
35966 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35967 * video/fb/fbutil.c: Add comment about addressing.
35968 (get_data_ptr): Rename to ...
35969 (grub_video_fb_get_video_ptr): ... this. All users updated.
35970 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35972 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35974 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
35975 grub_dprintf() that was just added.
35977 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35979 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
35980 (DEFAULT_VIDEO_MODE): Remove macros.
35981 (grub_linux_boot): Remove assumption that Linux has FB support,
35982 and use "text" as default video mode.
35984 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
35986 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
35988 * fs/fat.c (grub_fat_read_data): Likewise.
35990 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35992 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
35994 (grub_module): Likewise.
35996 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35998 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
35999 mbi->cmdline but free playground.
36001 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36003 Handle group offset on UFS1.
36005 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36006 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36008 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36010 Split ufs.mod into ufs1.mod and ufs2.mod.
36012 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36013 (grub_fstest_SOURCES): Likewise.
36014 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36015 (ufs_mod_SOURCES): Remove.
36016 (ufs_mod_CFLAGS): Likewise.
36017 (ufs_mod_LDFLAGS): Likewise.
36018 (ufs1_mod_SOURCES): New variable.
36019 (ufs1_mod_CFLAGS): Likewise.
36020 (ufs1_mod_LDFLAGS): Likewise.
36021 (ufs2_mod_SOURCES): New variable.
36022 (ufs2_mod_CFLAGS): Likewise.
36023 (ufs2_mod_LDFLAGS): Likewise.
36024 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36025 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36027 (grub_emu_SOURCES): Likewise.
36028 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36029 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36030 (grub_setup_SOURCES): Likewise.
36031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36032 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36033 (grub_setup_SOURCES): Likewise.
36034 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36036 * fs/ufs2.c: New file.
36037 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36039 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36043 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36044 subsystem at the end.
36045 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36046 (video_fb_mod_SOURCES): New variable.
36047 (video_fb_mod_CFLAGS): Likewise.
36048 (video_fb_mod_LDFLAGS): Likewise.
36049 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36050 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36051 * video/i386/pc/vbeblit.c: Moved from here ...
36052 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36053 * video/i386/pc/vbefill.c: Moved from here ...
36054 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36055 * video/i386/pc/vbeutil.c: Moved from here ...
36056 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36057 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36058 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36059 * include/grub/i386/pc/vbefill.h: Moved from here ...
36060 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36061 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36062 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36063 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36064 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36065 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36066 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36067 (grub_video_adapter): Added 'get_info_and_fini'.
36068 (grub_video_get_info_and_fini): New prototype.
36069 (grub_video_set_mode): make modestring const char *.
36070 * loader/i386/linux.c (grub_linux_setup_video): Use
36071 grub_video_get_info_and_fini.
36072 (grub_linux_boot): Move modesetting just before booting.
36073 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36074 grub_video_get_info_and_fini.
36075 * video/i386/pc/vbe.c: Moved framebuffer part ...
36076 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36077 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36078 grub_video_fbstd_colors and grub_video_fb_set_palette.
36079 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36080 grub_video_fb_init.
36081 (grub_video_vbe_fini): Use grub_video_fb_fini.
36082 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36083 render_target and use grub_video_fb_set_active_render_target and
36084 grub_video_fb_set_palette.
36085 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36086 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36087 (grub_video_vbe_adapter): Use framebuffer.
36088 * video/video.c (grub_video_get_info_and_fini): New function.
36089 (grub_video_set_mode): Make modestring const char *.
36090 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36091 values are already initialised.
36093 2009-08-14 Pavel Roskin <proski@gnu.org>
36095 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36097 * boot/i386/pc/diskboot.S: Likewise.
36098 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36099 sectors allow compilation on MacOSX.
36100 * conf/i386-pc.rmk: Enable unconditional compilation of
36103 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36105 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36106 * util/grub.d/00_header.in: Enter interruptible sleep if
36107 GRUB_HIDDEN_TIMEOUT is set.
36109 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36111 * include/grub/symbol.h: Add the LOCAL macro.
36112 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36113 starting with "L_".
36115 2009-08-13 Pavel Roskin <proski@gnu.org>
36117 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36118 any modern compilers we support.
36120 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36121 Use local labels starting with "L_" so that Apple assembler
36122 knows they are local.
36124 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36126 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36127 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36128 (bsd_kernel_types): ... this enum.
36130 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36131 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36132 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36134 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36135 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36136 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36139 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36141 * util/grub-dumpdevtree: Moved from here ...
36142 * util/i386/efi/grub-dumpdevtree: ... to here.
36143 (hexify): New function. Converts a string to its hex version.
36144 Generate hex versions of "efi" and "device-properties" by calling
36145 hexify() on the ASCII strings rather than by hardcoding numbers.
36147 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36149 * fs/jfs.c: Update copyright year.
36151 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36153 * util/grub.d/00_header.in: Fix a comment.
36154 * util/grub.d/10_linux.in: Likewise.
36155 * util/grub.d/10_windows.in: Likewise.
36156 * util/grub.d/10_hurd.in: Likewise.
36158 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36160 * util/grub-mkconfig.in: Allow the user to specify the used font
36163 2009-08-08 Pavel Roskin <proski@gnu.org>
36165 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36166 available, xfs.mod needs it now.
36168 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36169 the "g" modifier in sed when the intention is to strip something
36170 once. This fixes comparison of kernels with multiple dashes.
36172 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36173 on it. Add missing space before closing bracket. Fix
36174 misleading formatting.
36176 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36178 * docs/grub.texi: Major overhaul. Remove all sections that are
36179 specific to GRUB Legacy, or mostly composed of Legacy-specific
36182 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36184 * docs/version.texi: New file. Provides version information for
36187 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36189 * docs/grub.texi: Update CVS information to SVN.
36190 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36192 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36194 * util/grub-mkconfig.in: Remove a wrong `fi'.
36196 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36198 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36199 (grub_jfs_uuid): New function.
36200 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36202 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36204 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36206 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36207 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36209 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36211 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36212 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36215 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36216 not just "vmlinu[zx]".
36217 Moved from here ...
36218 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36221 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36222 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36225 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36227 * util/grub.d/10_freebsd.in: Use an absolute device path for
36228 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36230 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36232 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36233 handling of multiple abstraction modules.
36235 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36237 Fix a bug resulting in black screen when loading Linux using a
36240 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36243 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36244 (grub_vbe_bios_getset_dac_palette_width): New function.
36245 (grub_vbe_bios_get_dac_palette_width)
36246 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36247 grub_vbe_bios_getset_dac_palette_width()).
36249 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36250 check for return status.
36251 (grub_vbe_get_video_mode_info): When getting information for a packed
36252 mode (<= 8 bpp), obtain DAC palette width using
36253 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36254 {red,green,blue}_mark_size.
36256 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36258 * commands/search.c (options): Fix help output to match actual code.
36260 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36262 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36265 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36267 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36268 on XFS or ReiserFS.
36270 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36272 Support Apple partition map with sector size different from 512 bytes.
36274 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36275 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36276 and 'apart.partmap_size'.
36278 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36279 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36283 * commands/i386/cpuid.c (options): New variable.
36284 (grub_cmd_cpuid): Return real error.
36285 (GRUB_MOD_INIT(cpuid)): Declare options.
36287 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36289 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36292 2009-07-31 Bean <bean123ch@gmail.com>
36294 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36296 (grub_fshelp_node): Move inode field to the end.
36297 (grub_xfs_data): Remove inode field.
36298 (grub_xfs_inode_block): Calculate inode size using sblock.
36299 (grub_xfs_inode_offset): Likewise.
36300 (grub_xfs_read_inode): Calculate inode size using sblock.
36301 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36302 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36303 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36304 to match inode size.
36305 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36306 not accessible when data is null.
36307 (grub_xfs_open): Likewise.
36309 2009-07-31 Bean <bean123ch@gmail.com>
36311 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36312 Don't change pv->disk if it's already set.
36314 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36315 (grub_raid_register): ... here.
36316 (grub_raid_rescan): Removed.
36318 * include/grub/raid.h (grub_raid_rescan): Removed.
36320 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36321 (fstest): Replace grub_raid_rescan with module fini function followed
36324 * util/grub-probe.c: Add include file <grub/raid.h>.
36325 (probe_raid_level): New function.
36326 (probe): Detect abstraction by walking the disk device, support two
36327 level of abstraction (LVM on RAID) when detecting partition map.
36329 2009-07-31 Pavel Roskin <proski@gnu.org>
36331 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36332 to grub_zalloc(), it was erroneous.
36333 Reported by Bean <bean123ch@gmail.com>
36335 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36337 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36338 embedding zone, not only the first one.
36340 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36342 * term/gfxterm.c (clear_char): New function.
36343 (grub_virtual_screen_setup): Use clear_char.
36344 (scroll_up): Likewise.
36345 (grub_virtual_screen_cls): Likewise.
36347 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36349 * util/deviceiter.c (get_acceleraid_disk_name): New static
36351 (grub_util_iterate_devices): Handle Accelraid devices.
36352 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36354 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36356 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36357 separator for the suggested gfxpayload string (';' collides with the
36358 parser and needs escaping).
36360 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36362 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36363 Clear direction flag before jumping to OS.
36364 (grub_multiboot2_real_boot): Likewise.
36366 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36368 * util/i386/pc/grub-install: Fix parsing of --disk-module
36371 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36373 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36376 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36378 * util/grub-mkconfig.in (package_version): New variable.
36379 Use it do display the version.
36381 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36383 * kern/file.c (grub_file_open): Revert to previous check with
36386 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36388 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36389 from help line. It's out of sync with code.
36391 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36393 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36394 entries on failed boot.
36396 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36398 * kern/file.c (grub_file_open): Fix an error check.
36400 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36402 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36403 partition map couldn't be identified.
36405 2009-07-23 Pavel Roskin <proski@gnu.org>
36407 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36408 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36409 case of little endian words becomes just an optimization.
36410 Respect const modifier.
36411 (md5_final): Use code that doesn't depend on endianness.
36413 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36414 to avoid loss of upper bits if align is unsigned and shorter
36417 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36419 UUID support for UFS
36421 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36422 (grub_ufs_uuid): New function.
36423 (grub_ufs_fs): add .uuid
36425 2009-07-21 Pavel Roskin <proski@gnu.org>
36427 * kern/dl.c (grub_dl_check_header): Make static.
36429 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36431 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36432 add drivemap for Vista. It breaks Windows 7.
36434 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36436 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36439 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36443 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36444 (grub_fstest_SOURCES): Likewise.
36445 (pkglib_MODULES): Add befs.mod.
36446 (befs_mod_SOURCES): New variable.
36447 (befs_mod_CFLAGS): Likewise.
36448 (befs_mod_LDFLAGS): Likewise.
36449 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36450 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36452 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36453 (grub_setup_SOURCES): Likewise.
36454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36455 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36456 (grub_setup_SOURCES): Likewise.
36457 * fs/befs.c: New file.
36458 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36459 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36460 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36461 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36462 (B_KEY_INDEX_ALIGN): New declaration.
36463 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36464 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36465 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36466 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36467 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36468 (grub_afs_mount) [MODE_BFS]: Likewise.
36469 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36470 (grub_afs_fs): Use GRUB_AFS_FSNAME
36471 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36472 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36473 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36474 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36476 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36478 * util/getroot.c (find_root_device): Add support for MacOSX.
36479 * util/hostdisk.c: Likewise.
36481 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36483 * font/font.c (find_glyph): Check whether a font is present to avoid
36484 segmentation fault.
36486 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36488 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36490 2009-07-20 Pavel Roskin <proski@gnu.org>
36492 * configure.ac: Trim excessively wordy excuses.
36494 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36496 Add symlink, mtime and label support to AtheFS.
36498 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36499 (grub_afs_iterate_dir): Handle symlinks.
36500 (grub_afs_open): Use grub_afs_read_symlink.
36501 (grub_afs_dir): Likewise.
36503 (grub_afs_label): New function.
36504 (grub_afs_fs): Add grub_afs_label.
36505 (grub_afs_read_symlink): New function.
36507 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36509 Fix AtheFS support.
36511 * fs/afs.c: Fix comments style.
36512 (grub_afs_blockrun): Declare as packed.
36513 (grub_afs_datastream): Likewise.
36514 (grub_afs_bnode): Likewise.
36515 (grub_afs_btree): Likewise.
36516 (grub_afs_sblock): Likewise.
36517 Declare `name' as char.
36518 (grub_afs_inode): Declare as packed.
36519 Change void *vnode to grub_uint32_t unused.
36520 (grub_afs_iterate_dir): Check that key_size is positive.
36521 (grub_afs_mount): Don't read superblock twice.
36522 (grub_afs_dir): Don't free node in case of error,
36523 grub_fshelp_find_file already handles this.
36524 (grub_afs_open): Likewise.
36526 2009-07-19 Pavel Roskin <proski@gnu.org>
36528 * Makefile.in: Remove LIBLZO and enable_lzo.
36529 * conf/i386-pc.rmk: Remove lzo support.
36530 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36531 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36533 * kern/i386/pc/lzo1x.S: Remove.
36534 * kern/i386/pc/startup.S: Remove lzo support.
36535 * util/i386/pc/grub-mkimage.c: Likewise.
36537 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36539 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36540 * fs/xfs.c (grub_xfs_dir): Likewise.
36541 * fs/afs.c (grub_afs_dir): Likewise.
36542 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36543 (grub_iso9660_open): Likewise.
36544 * fs/jfs.c (grub_jfs_open): Likewise.
36545 * fs/ext2.c (grub_ext2_dir): Likewise.
36546 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36547 * script/sh/lexer.c (grub_script_yylex): Likewise.
36549 2009-07-16 Pavel Roskin <proski@gnu.org>
36551 * configure.ac: Never add "-c" to CFLAGS.
36553 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36555 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36556 grub_cv_cc_efiemu should be used.
36558 * configure.ac: Typo fixes.
36560 * kern/mm.c (grub_zalloc): New function.
36561 (grub_debug_zalloc): Likewise.
36562 * include/grub/mm.h: Declare grub_zalloc() and
36563 grub_debug_zalloc().
36564 * util/misc.c (grub_zalloc): New function.
36565 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36566 instead of grub_malloc(), remove unneeded initializations.
36567 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36568 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36569 * commands/parttool.c (grub_cmd_parttool): Likewise.
36570 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36571 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36572 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36573 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36574 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36575 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36576 (grub_cmd_efiemu_pnvram): Likewise.
36577 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36578 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36579 (grub_iso9660_iterate_dir): Likewise.
36580 * fs/jfs.c (grub_jfs_opendir): Likewise.
36581 * fs/ntfs.c (list_file): Likewise.
36582 (grub_ntfs_mount): Likewise.
36583 * kern/disk.c (grub_disk_open): Likewise.
36584 * kern/dl.c (grub_dl_load_core): Likewise.
36585 * kern/elf.c (grub_elf_file): Likewise.
36586 * kern/env.c (grub_env_context_open): Likewise.
36587 (grub_env_set): Likewise.
36588 (grub_env_set_data_slot): Likewise.
36589 * kern/file.c (grub_file_open): Likewise.
36590 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36591 * loader/i386/multiboot.c (grub_module): Likewise.
36592 * loader/xnu.c (grub_xnu_create_key): Likewise.
36593 (grub_xnu_create_value): Likewise.
36594 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36595 (read_config_file): Likewise.
36596 * normal/menu_entry.c (make_screen): Likewise.
36597 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36598 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36599 * script/sh/script.c (grub_script_parse): Likewise.
36600 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36601 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36602 * video/readers/png.c (grub_png_output_byte): Likewise.
36603 (grub_video_reader_png): Likewise.
36605 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36607 Enable all targets that can be built by default
36609 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36610 grub-mkfont and grub-fstest if they can be built
36612 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36614 Fix hang and segmentation fault in grub-emu-usb
36616 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36617 * util/usb.c (grub_libusb_devices): likewise
36618 (grub_libusb_init): rename to ...
36619 (GRUB_MOD_INIT (libusb)):...this
36620 (grub_libusb_fini): rename to ..
36621 (GRUB_MOD_FINI (libusb)):...this
36622 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36623 * include/grub/disk.h (grub_raid_init): removed, it's useless
36624 (grub_raid_fini): likewise
36625 (grub_lvm_init): likewise
36626 (grub_lvm_fini): likewise
36627 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36630 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36634 * Makefile.in (LIBUSB): new macro
36635 * genmk.rb (Utility/print_tail): new method
36636 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36637 (top level): call util.print_tail at the end.
36639 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36641 Make FreeBSD accept zpool.cache
36643 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36644 type is /boot/zfs/zpool.cache
36646 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36650 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36651 correct wrong typedef
36652 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36654 2009-07-15 Pavel Roskin <proski@gnu.org>
36656 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36657 * kern/disk.c (struct grub_disk_cache): Likewise.
36659 * commands/probe.c (options): Typo fix.
36661 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36662 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36664 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36666 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36667 the end of "Error" to make the message more readable.
36669 * boot/i386/pc/boot.S (kernel_segment): Remove.
36670 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36673 * boot/i386/pc/boot.S (boot_version): Remove.
36674 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36677 * include/grub/i386/pc/boot.h: Sort all offsets.
36678 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36679 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36680 * boot/i386/pc/boot.S: Assert location of every offset listed in
36681 include/grub/i386/pc/boot.h.
36683 2009-07-13 Pavel Roskin <proski@gnu.org>
36685 * include/grub/i386/coreboot/machine.h: Rename
36686 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36687 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36688 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36690 * kern/dl.c: Force native word size to suppress warnings when
36691 compiling grub-emu.
36693 * kern/device.c (grub_device_iterate): Change struct part_ent to
36694 hold the name, not a pointer to it. Use one grub_malloc() per
36695 partition, not two. Free partition_name if grub_malloc() fails.
36696 Set ents to NULL only before grub_partition_iterate() is called.
36698 2009-07-11 Bean <bean123ch@gmail.com>
36700 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36703 2009-07-10 Bean <bean123ch@gmail.com>
36704 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36706 * kern/ieee1275/openfw.c (grub_children_iterate)
36707 (grub_devalias_iterate): Fix size evaluation for property or path
36708 strings, which was broken since r2132.
36710 2009-07-07 Pavel Roskin <proski@gnu.org>
36712 * commands/search.c (search_file): Merge into ...
36713 (search_fs): ... this. Accept search type as argument.
36714 (grub_cmd_search): Pass search type to search_fs().
36716 * include/grub/util/console.h: New file.
36717 * util/console.c: Use it instead of grub/machine/console.h.
36718 * util/grub-emu.c: Likewise.
36720 * lib/arg.c (find_long_option): Remove.
36721 (find_long): Add `len' argument, make `s' const char *.
36722 (grub_arg_parse): Parse long options in place, not in a
36725 2009-07-06 Pavel Roskin <proski@gnu.org>
36727 * commands/search.c (search_fs): Fix potential NULL pointer
36730 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36733 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36735 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36738 2009-07-05 Pavel Roskin <proski@gnu.org>
36740 * include/grub/i386/linux.h (struct linux_kernel_params):
36741 Restore padding3, it's still needed.
36743 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36745 * util/osdetect.lua: Likewise.
36747 2009-07-05 Bean <bean123ch@gmail.com>
36749 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36751 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36752 (grub_lua_getenv): Likewise.
36753 (grub_lua_setenv): Likewise.
36754 (save_errno): New function.
36755 (push_result): Likewise.
36756 (grub_lua_enum_device): Likewise.
36757 (grub_lua_enum_file): Likewise.
36758 (grub_lua_file_open): Likewise.
36759 (grub_lua_file_close): Likewise.
36760 (grub_lua_file_seek): Likewise.
36761 (grub_lua_file_read): Likewise.
36762 (grub_lua_file_getline): Likewise.
36763 (grub_lua_file_getsize): Likewise.
36764 (grub_lua_file_getpos): Likewise.
36765 (grub_lua_file_eof): Likewise.
36766 (grub_lua_file_exist): Likewise.
36767 (grub_lua_add_menu): Likewise.
36769 * script/lua/grub_lua.h (isupper): New inline function.
36770 (islower): Likewise.
36771 (ispunct): Likewise.
36772 (isxdigit): Likewise.
36773 (strcspn): Change to normal function.
36774 (strpbkr): New function declaration.
36775 (memchr): Likewise.
36777 * script/lua/grub_main.c (scan_str): New function.
36778 (strcspn): Likewise.
36779 (strpbrk): Likewise.
36780 (memchr): Likewise.
36782 * script/lua/linit.c (lualibs): Enable the string library.
36784 * util/osdetect.lua: New file.
36786 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36788 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36789 `capabilities' member.
36791 2009-07-02 Pavel Roskin <proski@gnu.org>
36793 * genparttoollist.sh: Add missing newline at the end.
36795 2009-07-01 Pavel Roskin <proski@gnu.org>
36797 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36799 * util/hostdisk.c (open_device): Remove `const' from
36800 `sysctl_size', as sysctlbyname() can change it (in this case it
36801 doesn't actually happen).
36803 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36804 using signed long int constants.
36806 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36807 constant to avoid a warning on FreeBSD.
36809 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36812 * Makefile.in: Install include/grub/machine symlink.
36814 * Makefile.in: When installing symlinks, use "cp -fR", which
36815 works on FreeBSD and MacOSX.
36816 From Yves Blusseau <cl7m42e02@sneakemail.com>
36818 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36819 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36821 * util/misc.c: Move grub_reboot() and grub_halt() ...
36822 * util/grub-emu.c: ... here. Make main_env static.
36823 * include/grub/util/misc.h: Remove main_env.
36825 * kern/mm.c: Use correct format to print size_t.
36827 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36828 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36829 * kern/powerpc/dl.c: Likewise.
36830 * kern/sparc64/dl.c: Likewise.
36831 * kern/x86_64/dl.c: Likewise.
36833 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36835 Fix grub-emu build on sparc64-ieee1275.
36837 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36840 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36842 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36843 (grub_reboot, grub_halt): New functions.
36845 * util/i386/pc/misc.c: Delete. Update all users.
36846 * util/sparc64/ieee1275/misc.c: Likewise.
36847 * util/powerpc/ieee1275/misc.c: Likewise.
36849 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36851 * conf/i386.rmk (setjmp_mod_SOURCES)
36852 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36853 * conf/common.rmk (setjmp_mod_SOURCES)
36854 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36855 to use $(target_cpu).
36856 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36857 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36858 * conf/powerpc-ieee1275.rmk: Likewise.
36859 * conf/sparc64-ieee1275.rmk: Likewise.
36861 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36862 $(target_cpu) for kern/$(target_cpu)/dl.c.
36863 * conf/i386-efi.rmk: Likewise.
36864 * conf/i386-ieee1275.rmk: Likewise.
36865 * conf/x86_64-efi.rmk: Likewise.
36866 * conf/i386-coreboot.rmk: Likewise.
36867 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36868 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36869 kern/$(target_cpu)/cache.S.
36870 * conf/sparc64-ieee1275.rmk: Likewise.
36872 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36874 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36875 type to `grub_uint8_t', and adjust `padding9' accordingly.
36877 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36879 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36881 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36882 assembly in final jump, using register constraints.
36884 (grub_linux_boot): For text mode, initialize `have_vga' using
36885 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36887 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36888 right before the final jump.
36890 Set `video_mode' to 0x3.
36892 Document initialization of `video_page', `video_mode' and
36895 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36897 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36898 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36899 and set GRUB_LINUX_FLAG_QUIET appropriately.
36901 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36903 Fix build on Debian / sparc.
36905 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36907 2009-06-28 Pavel Roskin <proski@gnu.org>
36909 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36912 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36914 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36916 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36919 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36923 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36924 file can't be opened. grub_file_open() is already supposed to set
36925 grub_errno / grub_errmsg appropriately.
36926 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36928 2009-06-27 Pavel Roskin <proski@gnu.org>
36929 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36931 * include/grub/dl.h: Include grub/elf.h.
36932 (struct grub_dl): Add symtab field.
36933 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36934 GRUB_MODULES_MACHINE_READONLY.
36935 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36936 of the header for read-only modules.
36937 (grub_dl_unload): Free mod->symtab for read-only modules.
36938 * kern/i386/dl.c: Use mod->symtab.
36939 * kern/powerpc/dl.c: Likewise.
36940 * kern/sparc64/dl.c: Likewise.
36941 * kern/x86_64/dl.c: Likewise.
36943 * conf/i386-qemu.rmk: New file.
36944 * kern/i386/qemu/startup.S: Likewise.
36945 * kern/i386/qemu/mmap.c: Likewise.
36946 * boot/i386/qemu/boot.S: Likewise.
36947 * include/grub/i386/qemu/time.h: Likewise.
36948 * include/grub/i386/qemu/serial.h: Likewise.
36949 * include/grub/i386/qemu/kernel.h: Likewise.
36950 * include/grub/i386/qemu/console.h: Likewise.
36951 * include/grub/i386/qemu/boot.h: Likewise.
36952 * include/grub/i386/qemu/init.h: Likewise.
36953 * include/grub/i386/qemu/machine.h: Likewise.
36954 * include/grub/i386/qemu/loader.h: Likewise.
36955 * include/grub/i386/qemu/memory.h: Likewise.
36957 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36958 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36959 [qemu] (pkglib_IMAGES): Add `boot.img'.
36960 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36961 [qemu] (boot_img_FORMAT): New variables.
36962 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36963 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36964 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36965 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36966 [qemu] (kernel_img_FORMAT): New variables.
36968 * configure.ac: Recognise `i386-qemu'.
36970 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36971 (for no compression).
36972 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36973 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36974 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
36975 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
36978 2009-06-27 Pavel Roskin <proski@gnu.org>
36980 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
36982 * efiemu/prepare32.c: Likewise.
36983 * efiemu/prepare64.c: Likewise.
36985 2009-06-26 Pavel Roskin <proski@gnu.org>
36987 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
36988 * include/grub/elf.h: Define symbols without "32" or "64" based
36989 on GRUB_TARGET_WORDSIZE.
36990 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
36991 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
36993 * efiemu/loadcore64.c: Likewise.
36994 * loader/i386/bsd32.c: Likewise.
36995 * loader/i386/bsd64.c: Likewise.
36996 * kern/dl.c: Remove own ELF definitions.
36997 * util/i386/efi/grub-mkimage.c: Likewise.
36999 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37001 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37002 segment 0x0 unconditionally, because the reference generated by
37003 GAS is an absolute address.
37005 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37007 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37008 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37010 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37012 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37013 indexes. Check for -f explicitly.
37014 (search_file): Improve error message.
37015 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37017 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37019 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37020 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37022 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37024 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37025 * conf/i386-ieee1275.rmk: Likewise.
37026 * conf/i386-coreboot.rmk: Likewise.
37028 * kern/i386/pc/startup.S (grub_stop): Remove function.
37029 * kern/i386/ieee1275/startup.S: Likewise.
37030 * kern/i386/coreboot/startup.S: Likewise.
37031 * kern/i386/misc.S (grub_stop): New function.
37033 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37035 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37036 * kern/i386/realmode.S (real_to_prot): ... to here.
37038 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37040 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37042 (kernel_elf_SOURCES): Rename to ...
37043 (kernel_img_SOURCES): ... this.
37044 (kernel_elf_HEADERS): Rename to ...
37045 (kernel_img_HEADERS): ... this. Update all users.
37046 (kernel_elf_ASFLAGS): Rename to ...
37047 (kernel_img_ASFLAGS): ... this.
37048 (kernel_elf_CFLAGS): Rename to ...
37049 (kernel_img_CFLAGS): ... this.
37050 (kernel_elf_LDFLAGS): Rename to ...
37051 (kernel_img_LDFLAGS): ... this.
37052 * conf/i386-coreboot.rmk: Likewise.
37053 * conf/powerpc-ieee1275.rmk: Likewise.
37055 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37058 2009-06-21 Pavel Roskin <proski@gnu.org>
37060 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37061 to match nested functions.
37062 * loader/sparc64/ieee1275/linux.c: Likewise.
37064 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37066 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37068 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37069 all i386 platforms.
37071 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37073 Fix asm file handling on ELF, and remove workarounds.
37075 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37076 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37077 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37078 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37080 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37082 Load BSD ELF modules
37084 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37085 and loader/i386/bsd64.c
37086 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37087 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37088 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37089 (grub_freebsd_load_elfmodule32): New declaration
37090 (grub_freebsd_load_elfmoduleobj64): Likewise
37091 (grub_freebsd_load_elf_meta32): Likewise
37092 (grub_freebsd_load_elf_meta64): Likewise
37093 (grub_freebsd_add_meta): Likewise
37094 (grub_freebsd_add_meta_module): Likewise
37095 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37096 (grub_freebsd_add_meta_module): Likewise and move module-specific
37097 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37098 (grub_cmd_freebsd): Add elf-kernel specific parts
37099 based on grub_freebsd_add_meta_module
37100 (grub_cmd_freebsd_module): Add type parsing moved from
37101 grub_freebsd_add_meta_module
37102 (grub_cmd_freebsd_module_elf): New function
37103 (cmd_freebsd_module_elf): New variable
37104 (GRUB_MOD_INIT): Register freebsd_module_elf
37105 * loader/i386/bsd32.c: New file
37106 * loader/i386/bsd64.c: Likewise
37107 * loader/i386/bsdXX.c: Likewise
37108 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37109 (grub_elf64_load): Likewise
37110 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37112 (grub_elf64_load_hook_t): Likewise
37114 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37116 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37118 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37119 don't write a menu entry for recovery mode.
37121 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37123 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37124 after it's no longer needed.
37126 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37128 * include/grub/i386/loader.h (grub_linux_prot_size)
37129 (grub_linux_tmp_addr, grub_linux_real_addr)
37130 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37131 GRUB_MACHINE_PCBIOS.
37132 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37133 common grub_util_info() call to ...
37134 (generate_image): ... here.
37135 Fix use of uninitialized memory, comparison of signed with
37136 unsigned integers and memory leak.
37137 Remove bogus module address message.
37139 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37141 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37143 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37145 2009-06-19 Pavel Roskin <proski@gnu.org>
37147 * configure.ac: Remove stray AC_MSG_CHECKING.
37149 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37151 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37153 2009-06-18 Pavel Roskin <proski@gnu.org>
37155 * conf/common.rmk: Add fs_file.mod.
37156 * disk/fs_file.c: New file.
37157 * include/grub/disk.h (enum grub_disk_dev_id): Add
37158 GRUB_DISK_DEVICE_FILE_ID.
37160 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37162 Fix build with Apple's toolchain. Part 2
37164 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37167 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37169 Fix build with Apple's toolchain. Part 1
37171 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37173 * configure.ac: remove a leftover AC_MSG_RESULT
37174 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37177 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37181 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37182 (decomp_block): initialize ch
37183 use grub_memcpy instead of memcpy
37185 2009-06-17 Pavel Roskin <proski@gnu.org>
37187 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37188 version, use declarations needed to use vga_text as the startup
37191 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37192 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37194 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37195 and grub_at_keyboard_fini(), it's done on module load and
37198 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37200 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37201 file can't be found.
37202 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37204 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37206 Fix newline handling
37208 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37209 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37210 (grub_script_yylex): don't segfault on unterminated script
37211 newline terminates command and variable
37213 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37215 avoid double grub_adjust_range call. Bug reported by David Simner
37217 * kern/disk.c (grub_disk_write): change to raw disk access before
37220 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37222 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37223 spaces, for the benefit of help2man.
37224 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37226 2009-06-16 Pavel Roskin <proski@gnu.org>
37228 * kern/i386/halt.c: Include grub/machine/init.h.
37229 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37231 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37233 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37234 drivemap menuentry.
37236 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37238 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37241 2009-06-16 Pavel Roskin <proski@gnu.org>
37243 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37244 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37245 save %dx, we only need %dl and we never change it.
37246 * boot/i386/pc/cdboot.S: Don't set the root drive.
37247 * boot/i386/pc/pxeboot.S: Likewise.
37248 * include/grub/i386/pc/boot.h: Remove
37249 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37250 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37251 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37252 * kern/i386/pc/init.c (make_install_device): Remove references
37253 to grub_root_drive.
37254 * kern/i386/pc/startup.S: Likewise.
37255 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37257 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37261 * commands/xnu_uuid.c: new file
37262 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37263 (xnu_uuid_mod_SOURCES): new variable
37264 (xnu_uuid_mod_CFLAGS): likewise
37265 (xnu_uuid_mod_LDFLAGS): likewise
37266 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37267 * conf/i386-ieee1275.rmk: likewise
37268 * conf/i386-pc.rmk: likewise
37269 * conf/powerpc-ieee1275.rmk: likewise
37270 * conf/sparc64-ieee1275.rmk: likewise
37271 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37273 2009-06-16 Pavel Roskin <proski@gnu.org>
37275 * configure.ac: Avoid '==' in test command, it's not portable.
37277 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37281 * commands/probe.c: new file
37282 * conf/common.rmk (pkglib_MODULES): add probe.mod
37283 (probe_mod_SOURCES): new variable
37284 (probe_mod_CFLAGS): likewise
37285 (probe_mod_LDFLAGS): likewise
37286 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37287 * conf/i386-ieee1275.rmk: likewise
37288 * conf/i386-pc.rmk: likewise
37289 * conf/powerpc-ieee1275.rmk: likewise
37290 * conf/sparc64-ieee1275.rmk: likewise
37292 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37294 Fix handling of string like \"hello\" and "a
37297 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37298 (grub_script_yylex): fix parsing of quoting, escaping and newline
37300 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37302 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37305 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37307 * util/grub-mkconfig.in: Fix parsing of --output option.
37309 2009-06-12 Pavel Roskin <proski@gnu.org>
37311 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37312 genmk.rb don't need to be generated or installed.
37314 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37316 * commands/i386/pc/drivemap_int13h.S: add more comments
37318 2009-06-11 Pavel Roskin <proski@gnu.org>
37320 * Makefile.in (uninstall): Uninstall manuals.
37322 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37323 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37324 and update-grub_lib in two places.
37325 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37327 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37328 a compiler warning.
37330 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37331 `entry_lo' to fix variable shadowing.
37333 2009-06-11 Christian Franke <franke@computer.org>
37335 * kern/misc.c (__enable_execute_stack): Add missing return type
37336 to prevent gcc warning.
37338 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37340 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37342 2009-06-11 Pavel Roskin <proski@gnu.org>
37344 * Makefile.in: Don't rely on any scripts being executable.
37345 Always use $(SHELL) to run shell scripts.
37347 * configure.ac: Always define ___main if using -nostdlib. This
37348 fixes tests on Cygwin.
37350 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37354 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37355 is in bytes and not in blocks
37357 2009-06-11 Pavel Roskin <proski@gnu.org>
37359 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37362 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37364 * util/grub.d/30_os-prober.in: Fix a comment. Source
37365 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37366 to set the root device. Place drivemap command in the generated
37369 2009-06-11 Pavel Roskin <proski@gnu.org>
37371 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37372 have long been resolved.
37374 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37376 * util/grub.d/10_linux.in: Capitalise "Linux".
37378 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37380 2009-06-11 Pavel Roskin <proski@gnu.org>
37382 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37383 fix a gcc warning and ensure that the function won't ever exit.
37385 * kern/i386/ieee1275/init.c: Add missing prototype for
37386 grub_stop_floppy().
37388 * loader/ieee1275/multiboot2.c [__i386__]: Include
37389 grub/cpu/multiboot.h.
37391 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37392 casts to short - they are not portable and cause warnings. Fix
37393 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37395 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37399 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37401 (grub_get_root_biosnumber_saved): new variable
37402 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37403 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37404 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37405 %dx after the call if necessary
37406 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37407 (boot_mod_SOURCES): remove
37408 (boot_mod_CFLAGS): remove
37409 (boot_mod_LDFLAGS): remove
37410 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37411 (boot_mod_SOURCES): new variable
37412 (boot_mod_CFLAGS): likewise
37413 (boot_mod_LDFLAGS): likewise
37414 * conf/i386-efi.rmk: likewise
37415 * conf/i386-ieee1275.rmk: likewise
37416 * conf/i386-pc.rmk: likewise
37417 * conf/powerpc-ieee1275.rmk: likewise
37418 * conf/sparc64-ieee1275.rmk: likewise
37419 * conf/x86_64-efi.rmk: likewise
37420 * include/grub/i386/pc/biosnum.h: new file
37421 * lib/i386/pc/biosnum.c: likewise
37422 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37423 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37424 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37426 2009-06-10 Pavel Roskin <proski@gnu.org>
37428 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37429 Use separate variables. Read only the file size at the end, but
37430 not the checksum that we don't use.
37432 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37433 Adjust all callers.
37435 * kern/ieee1275/openfw.c: Remove libc includes.
37436 * kern/ieee1275/cmain.c: Likewise.
37437 * include/grub/ieee1275/ieee1275.h: Likewise.
37439 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37442 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37444 * Makefile.in: Remove all trailing whitespace.
37445 * conf/i386-pc.rmk: Likewise.
37446 * conf/powerpc-ieee1275.rmk: Likewise.
37447 * conf/sparc64-ieee1275.rmk: Likewise.
37448 * docs/grub.texi: Likewise.
37449 * docs/texinfo.tex: Likewise.
37450 * disk/fs_uuid.c: Likewise.
37451 * disk/lvm.c: Likewise.
37452 * disk/scsi.c: Likewise.
37453 * disk/ata.c: Likewise.
37454 * disk/ieee1275/ofdisk.c: Likewise.
37455 * disk/i386/pc/biosdisk.c: Likewise.
37456 * disk/host.c: Likewise.
37457 * disk/raid.c: Likewise.
37458 * disk/efi/efidisk.c: Likewise.
37459 * disk/usbms.c: Likewise.
37460 * disk/memdisk.c: Likewise.
37461 * disk/loopback.c: Likewise.
37462 * kern/powerpc/dl.c: Likewise.
37463 * kern/device.c: Likewise.
37464 * kern/dl.c: Likewise.
37465 * kern/sparc64/dl.c: Likewise.
37466 * kern/ieee1275/ieee1275.c: Likewise.
37467 * kern/term.c: Likewise.
37468 * kern/fs.c: Likewise.
37469 * kern/i386/dl.c: Likewise.
37470 * kern/i386/pc/startup.S: Likewise.
37471 * kern/i386/pc/init.c: Likewise.
37472 * kern/i386/pc/mmap.c: Likewise.
37473 * kern/i386/pc/lzo1x.S: Likewise.
37474 * kern/i386/ieee1275/init.c: Likewise.
37475 * kern/i386/realmode.S: Likewise.
37476 * kern/i386/tsc.c: Likewise.
37477 * kern/partition.c: Likewise.
37478 * kern/corecmd.c: Likewise.
37479 * kern/file.c: Likewise.
37480 * kern/efi/efi.c: Likewise.
37481 * kern/efi/init.c: Likewise.
37482 * kern/efi/mm.c: Likewise.
37483 * kern/main.c: Likewise.
37484 * kern/err.c: Likewise.
37485 * kern/env.c: Likewise.
37486 * kern/disk.c: Likewise.
37487 * kern/generic/millisleep.c: Likewise.
37488 * kern/generic/rtc_get_time_ms.c: Likewise.
37489 * kern/misc.c: Likewise.
37490 * kern/parser.c: Likewise.
37491 * genmk.rb: Likewise.
37492 * configure.ac: Likewise.
37493 * boot/i386/pc/diskboot.S: Likewise.
37494 * boot/i386/pc/pxeboot.S: Likewise.
37495 * boot/i386/pc/boot.S: Likewise.
37496 * boot/i386/pc/lnxboot.S: Likewise.
37497 * boot/i386/pc/cdboot.S: Likewise.
37498 * parttool/pcpart.c: Likewise.
37499 * video/readers/tga.c: Likewise.
37500 * video/video.c: Likewise.
37501 * video/bitmap.c: Likewise.
37502 * lib/envblk.c: Likewise.
37503 * lib/i386/setjmp.S: Likewise.
37504 * fs/xfs.c: Likewise.
37505 * fs/afs.c: Likewise.
37506 * fs/fat.c: Likewise.
37507 * fs/ntfs.c: Likewise.
37508 * fs/udf.c: Likewise.
37509 * fs/affs.c: Likewise.
37510 * fs/iso9660.c: Likewise.
37511 * fs/hfs.c: Likewise.
37512 * fs/fshelp.c: Likewise.
37513 * fs/ext2.c: Likewise.
37514 * fs/jfs.c: Likewise.
37515 * fs/reiserfs.c: Likewise.
37516 * fs/hfsplus.c: Likewise.
37517 * fs/minix.c: Likewise.
37518 * fs/cpio.c: Likewise.
37519 * fs/sfs.c: Likewise.
37520 * fs/ufs.c: Likewise.
37521 * efiemu/prepare.c: Likewise.
37522 * efiemu/loadcore_common.c: Likewise.
37523 * efiemu/runtime/efiemu.sh: Likewise.
37524 * efiemu/runtime/efiemu.S: Likewise.
37525 * efiemu/runtime/efiemu.c: Likewise.
37526 * efiemu/pnvram.c: Likewise.
37527 * efiemu/main.c: Likewise.
37528 * efiemu/i386/pc/cfgtables.c: Likewise.
37529 * efiemu/i386/loadcore64.c: Likewise.
37530 * efiemu/i386/loadcore32.c: Likewise.
37531 * efiemu/loadcore.c: Likewise.
37532 * efiemu/symbols.c: Likewise.
37533 * efiemu/mm.c: Likewise.
37534 * include/grub/autoefi.h: Likewise.
37535 * include/grub/datetime.h: Likewise.
37536 * include/grub/term.h: Likewise.
37537 * include/grub/hfs.h: Likewise.
37538 * include/grub/lvm.h: Likewise.
37539 * include/grub/i386/tsc.h: Likewise.
37540 * include/grub/i386/linux.h: Likewise.
37541 * include/grub/i386/xnu.h: Likewise.
37542 * include/grub/i386/efiemu.h: Likewise.
37543 * include/grub/i386/pc/biosdisk.h: Likewise.
37544 * include/grub/i386/pc/memory.h: Likewise.
37545 * include/grub/i386/pc/vbe.h: Likewise.
37546 * include/grub/parttool.h: Likewise.
37547 * include/grub/video.h: Likewise.
37548 * include/grub/memory.h: Likewise.
37549 * include/grub/fs.h: Likewise.
37550 * include/grub/partition.h: Likewise.
37551 * include/grub/xnu.h: Likewise.
37552 * include/grub/efi/api.h: Likewise.
37553 * include/grub/efi/pe32.h: Likewise.
37554 * include/grub/efi/memory.h: Likewise.
37555 * include/grub/multiboot.h: Likewise.
37556 * include/grub/usbdesc.h: Likewise.
37557 * include/grub/multiboot2.h: Likewise.
37558 * include/grub/acpi.h: Likewise.
37559 * include/grub/efiemu/efiemu.h: Likewise.
37560 * include/grub/disk.h: Likewise.
37561 * include/grub/ieee1275/ieee1275.h: Likewise.
37562 * include/grub/net.h: Likewise.
37563 * include/grub/machoload.h: Likewise.
37564 * include/grub/macho.h: Likewise.
37565 * include/multiboot.h: Likewise.
37566 * genmoddep.awk: Likewise.
37567 * normal/main.c: Likewise.
37568 * normal/menu_entry.c: Likewise.
37569 * normal/menu_viewer.c: Likewise.
37570 * normal/completion.c: Likewise.
37571 * normal/cmdline.c: Likewise.
37572 * normal/misc.c: Likewise.
37573 * normal/datetime.c: Likewise.
37574 * bus/usb/usbtrans.c: Likewise.
37575 * bus/usb/ohci.c: Likewise.
37576 * bus/usb/uhci.c: Likewise.
37577 * bus/usb/usb.c: Likewise.
37578 * mmap/efi/mmap.c: Likewise.
37579 * mmap/i386/pc/mmap_helper.S: Likewise.
37580 * mmap/i386/pc/mmap.c: Likewise.
37581 * mmap/i386/mmap.c: Likewise.
37582 * mmap/i386/uppermem.c: Likewise.
37583 * mmap/mmap.c: Likewise.
37584 * commands/acpi.c: Likewise.
37585 * commands/echo.c: Likewise.
37586 * commands/blocklist.c: Likewise.
37587 * commands/loadenv.c: Likewise.
37588 * commands/usbtest.c: Likewise.
37589 * commands/boot.c: Likewise.
37590 * commands/parttool.c: Likewise.
37591 * commands/search.c: Likewise.
37592 * commands/cat.c: Likewise.
37593 * commands/i386/pc/play.c: Likewise.
37594 * commands/i386/pc/drivemap.c: Likewise.
37595 * commands/i386/pc/vbeinfo.c: Likewise.
37596 * commands/i386/pc/acpi.c: Likewise.
37597 * commands/i386/pc/vbetest.c: Likewise.
37598 * commands/ls.c: Likewise.
37599 * commands/cmp.c: Likewise.
37600 * commands/test.c: Likewise.
37601 * commands/efi/acpi.c: Likewise.
37602 * commands/gptsync.c: Likewise.
37603 * commands/help.c: Likewise.
37604 * partmap/amiga.c: Likewise.
37605 * partmap/apple.c: Likewise.
37606 * partmap/acorn.c: Likewise.
37607 * partmap/pc.c: Likewise.
37608 * partmap/sun.c: Likewise.
37609 * partmap/gpt.c: Likewise.
37610 * script/sh/lexer.c: Likewise.
37611 * script/sh/function.c: Likewise.
37612 * font/font.c: Likewise.
37613 * font/font_cmd.c: Likewise.
37614 * loader/powerpc/ieee1275/linux.c: Likewise.
37615 * loader/efi/chainloader.c: Likewise.
37616 * loader/multiboot_loader.c: Likewise.
37617 * loader/macho.c: Likewise.
37618 * loader/i386/multiboot.c: Likewise.
37619 * loader/i386/linux.c: Likewise.
37620 * loader/i386/pc/linux.c: Likewise.
37621 * loader/i386/pc/multiboot2.c: Likewise.
37622 * loader/i386/pc/chainloader.c: Likewise.
37623 * loader/i386/pc/xnu.c: Likewise.
37624 * loader/i386/bsd_trampoline.S: Likewise.
37625 * loader/i386/efi/linux.c: Likewise.
37626 * loader/i386/multiboot_elfxx.c: Likewise.
37627 * loader/i386/bsd_helper.S: Likewise.
37628 * loader/i386/bsd.c: Likewise.
37629 * loader/i386/linux_trampoline.S: Likewise.
37630 * loader/i386/xnu_helper.S: Likewise.
37631 * loader/i386/xnu.c: Likewise.
37632 * loader/i386/bsd_pagetable.c: Likewise.
37633 * loader/i386/multiboot_helper.S: Likewise.
37634 * loader/xnu.c: Likewise.
37635 * loader/xnu_resume.c: Likewise.
37636 * io/gzio.c: Likewise.
37637 * term/efi/console.c: Likewise.
37638 * term/terminfo.c: Likewise.
37639 * term/ieee1275/ofconsole.c: Likewise.
37640 * term/i386/pc/serial.c: Likewise.
37641 * term/i386/pc/vesafb.c: Likewise.
37642 * term/i386/pc/vga.c: Likewise.
37643 * term/usb_keyboard.c: Likewise.
37644 * term/gfxterm.c: Likewise.
37645 * aclocal.m4: Likewise.
37646 * util/lvm.c: Likewise.
37647 * util/grub.d/30_os-prober.in: Likewise.
37648 * util/grub.d/10_hurd.in: Likewise.
37649 * util/console.c: Likewise.
37650 * util/grub-macho2img.c: Likewise.
37651 * util/grub-probe.c: Likewise.
37652 * util/hostfs.c: Likewise.
37653 * util/i386/pc/grub-mkimage.c: Likewise.
37654 * util/i386/pc/grub-setup.c: Likewise.
37655 * util/i386/efi/grub-mkimage.c: Likewise.
37656 * util/grub-mkconfig.in: Likewise.
37657 * util/raid.c: Likewise.
37658 * util/resolve.c: Likewise.
37659 * util/grub-mkdevicemap.c: Likewise.
37660 * util/grub-emu.c: Likewise.
37661 * util/getroot.c: Likewise.
37662 * util/hostdisk.c: Likewise.
37663 * util/usb.c: Likewise.
37664 * util/grub-editenv.c: Likewise.
37665 * util/misc.c: Likewise.
37667 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37669 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37670 `genparttoollist.sh'.
37671 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37672 Add `*.sh' to the list find searches for and change `mdate.sh'
37675 2009-06-10 Pavel Roskin <proski@gnu.org>
37677 * include/grub/multiboot2.h: Provide compatibility defines for
37679 * include/multiboot2.h: Include stdint.h only if needed, using
37681 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37683 * loader/ieee1275/multiboot2.c: Likewise.
37684 * loader/multiboot2.c: Likewise.
37685 * loader/multiboot_loader.c: Likewise.
37687 * configure.ac: Use -nostdlib when probing for the target. It
37688 should not be required to have libc for the target.
37690 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37691 they fail without libc headers for the target.
37692 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37694 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37695 preprocessor conditionals.
37697 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37698 build system doesn't need to be aware of the tar.c internals.
37700 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37702 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37704 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37706 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37707 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37709 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37711 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37712 aren't available if ata.mod gets used.
37714 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37716 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37717 initialising controller.
37718 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37720 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37722 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37723 to choose between ata and biosdisk module on i386-pc.
37725 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37727 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37728 Subclass and Programming Interface fields in terms of the 3 byte
37729 Class Code register.
37730 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37732 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37733 interface is OHCI. Add grub_dprintf for symmetry with
37735 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37736 interface is UHCI. Add interf variable for programming
37737 interface. Print interface with class/subclass.
37739 * bus/usb/ohci.c: Set interf with correct field.
37741 * bus/usb/uhci.c: Remove unneeded doubled lines.
37742 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37743 Remove whitespace inside comment.
37745 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37747 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37748 as fallback an equivalent option without depth.
37750 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37752 Not fail if unable to retrieve C/H/S on LBA disks
37754 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37755 if unable to retrieve C/H/S on LBA disks
37757 2009-06-08 Pavel Roskin <proski@gnu.org>
37759 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37762 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37764 * Makefile.in (uninstall): Remove all $lib_DATA files.
37766 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37768 Bugfix: install on partitionless device
37770 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37773 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37775 * Makefile.in (uninstall): Remove all $include_DATA files.
37777 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37779 * commands/true.c: New file. Implement the true and false commands.
37780 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37781 (true_mod_SOURCES): New variable.
37782 (true_mod_CFLAGS): Likewise.
37783 (true_mod_LDFLAGS): Likewise.
37785 2009-06-05 Colin D Bennett <colin@gibibit.com>
37787 Optimized font character lookup using binary search instead of linear
37788 search. Fonts now are required to have the character index ordered by
37791 * font/font.c (load_font_index): Verify that fonts have ordered
37793 (find_glyph): Use binary search instead of linear search to find a
37794 character in a font.
37796 2009-06-05 Michael Scherer <misc@mandriva.org>
37798 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37799 uses case sensitive btree.
37800 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37801 only for case insensitive filesystems.
37803 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37805 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37806 * conf/common.rmk (search_mod_CFLAGS): likewise
37808 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37810 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37811 compensate a compiler bug
37813 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37815 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37818 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37820 Definitions for creating asm symbols with Apple's CC
37822 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37823 [APPLE_CC] (VARIABLE): likewise
37825 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37827 Disable lnxboot.img when compiled
37830 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37831 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37832 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37833 [! APPLE_CC] (CODE_LENG): skip
37834 [! APPLE_CC] (setup_sects): likewise
37835 [! APPLE_CC]: skip filling
37837 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37839 Address in trampolines based on 32-bit registers when compiled
37842 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37844 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37846 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37848 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37850 * kern/misc.c [APPLE_CC] (memcpy): new function
37851 [APPLE_CC] (memmove): likewise
37852 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37853 (memcpy): define alias conditionally on !APPLE_CC
37856 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37857 APPLE_CC are defined
37858 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37859 (grub_assert_fail): make prototype conditional
37861 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37863 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37865 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37867 (CLEANFILES): add grub-macho2img
37868 (grub_macho2img_SOURCES): new variable
37869 * kern/i386/pc/startup.S (bss_start): new variable
37870 (bss_end): likewise
37871 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37872 * util/grub-macho2img.c: new file
37874 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37876 Use objconv when compiling with Apple's CC
37878 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37879 (efiemu64.o): likewise
37880 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37881 when compiling with Apple's CC
37882 (efiemu64_s.o): likewise
37883 * configure.ac: check for objconv when compiling with Apple's CC
37884 * genmk.rb: use objconv for modules when compiled with Apple's CC
37886 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37888 Define segment as well as section when compiling with
37891 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37892 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37893 (efiemu_convert_pointer): likewise
37894 (efiemu_set_virtual_address_map): likewise
37895 (efiemu_convert_pointer): likewise
37896 (efiemu_getcrc32): likewise
37897 (init_crc32_table): likewise
37898 (reflect): likewise
37899 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37900 (GRUB_MOD_DEP): likewise
37902 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37904 Allow a compilation without -mcmodel=large
37906 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37907 when compiled without -mcmodel=large
37908 (filter_memory_map): remove memory post 4 GiB when compiled
37909 without -mcmodel=large
37910 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37911 TARGET_CFLAGS when -mcmodel=large isn't supported
37913 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37915 Remove nested functions in efiemu core
37917 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37919 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37921 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37923 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37925 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37927 (grub_cpu_is_tsc_supported): likewise
37928 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37930 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37932 Absolute addressing through constant with Apple's cc
37934 * kern/i386/pc/startup.S: Define necessary constants
37935 and address through it when using ABS with Apple's CC
37936 * boot/i386/pc/diskboot.S: likewise
37937 * boot/i386/pc/boot.S: likewise
37938 * boot/i386/pc/lnxboot.S: likewise
37939 * boot/i386/pc/cdboot.S: likewise
37940 * mmap/i386/pc/mmap_helper.S: likewise
37941 * commands/i386/pc/drivemap_int13h.S: likewise
37943 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37945 Check if compiler is apple cc
37947 * Makefile.in (ASFLAGS): new variable
37948 (TARGET_ASFLAGS): likewise
37949 (TARGET_MODULE_FORMAT): likewise
37950 (TARGET_APPLE_CC): likewise
37951 (OBJCONV): likewise
37952 (TARGET_IMG_CFLAGS): likewise
37953 (TARGET_CPPFLAGS): add includedir
37954 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37955 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37956 Check for linker script only if compiler isn't Apple's CC
37957 (TARGET_MODULE_FORMAT): set
37958 (TARGET_APPLE_CC): likewise
37959 (TARGET_ASFLAGS): likewise
37960 (ASFLAGS): likewise
37961 Check for objcopy only if compiler isn't Apple's CC
37962 Check for BSS symbol only if compiler isn't Apple's CC
37963 * genmk.rb: adapt nm options if we use Apple's utils
37964 * aclocal.m4 (grub_apple_cc): new test
37965 (grub_apple_target_cc): likewise
37967 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37969 Simplify sed expressions and improve awk
37971 * Makefile.in (install-local): simplify sed expression
37972 * gencmdlist.sh: likewise
37973 * genmoddep.awk: avoid adding module as a dependency of itself
37975 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37977 Add missing start symbols
37979 * boot/i386/pc/boot.S: add start
37980 * boot/i386/pc/pxeboot.S: likewise
37982 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37984 Fix wrong assumptions with grub-mkimage on EFI
37986 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
37987 (relocate_addresses): consider both r_addend and value at offset
37988 (make_mods_section): zerofill modinfo and header
37989 (convert_elf): write prefix here
37991 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37993 Use .asciz instead of .string
37995 * i386/pc/diskboot.S: use .asciz instead of .string
37996 * i386/pc/boot.S: likewise
37997 * include/grub/dl.h (GRUB_MOD_DEP): likewise
37998 (GRUB_MOD_NAME): likewise
38000 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38004 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38005 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38006 (grub_video_setup): remove
38007 (grub_video_set_mode): new prototype
38008 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38010 (linux_vesafb_res): compile only on PCBIOS
38011 (grub_linux_boot): support gfxpayload
38012 * loader/i386/pc/xnu.c (video_hook): new function
38013 (grub_xnu_set_video): support gfxpayload
38014 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38015 (DEFAULT_VIDEO_HEIGHT): likewise
38016 (DEFAULT_VIDEO_FLAGS): likewise
38017 (DEFAULT_VIDEO_MODE): new definition
38018 (video_hook): new function
38019 (grub_gfxterm_init): use grub_video_set_mode
38020 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38022 * video/video.c (grub_video_setup): removed
38023 (grub_video_set_mode): new function based on grub_gfxterm_init and
38026 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38028 Avoid calling biosdisk in drivemap
38030 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38031 (revparse_biosdisk): likewise
38032 (list_mappings): derive name from id directly
38033 (grub_cmd_drivemap): use tryparse_diskstring
38035 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38039 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38040 (grub_lexer_param): add tokenonhold
38041 (grub_script_create_cmdline): remove cmdline. All callers updated
38042 (grub_script_function_create): make functionname
38043 grub_script_arg. All callers updated
38044 (grub_script_execute_argument_to_string): new prototype
38045 * kern/parser.c (state_transitions): reorder
38046 (grub_parser_cmdline_state): fix a bug and make more compact
38047 * script/sh/execute.c (grub_script_execute_argument_to_string):
38049 (grub_script_execute_cmdline): use new format
38050 * script/sh/function.c (grub_script_function_create): make functionname
38051 grub_script_arg. All callers updated
38052 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38053 (grub_script_yylex): remove
38054 (grub_script_yylex2): renamed to ...
38055 (grub_script_yylex): ...renamed
38056 parse the expressions like a${b}c
38057 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38058 (GRUB_PARSER_TOKEN_VAR): remove
38059 (GRUB_PARSER_TOKEN_NAME): likewise
38060 ("if"): declare as typeless
38061 ("while"): likewise
38062 ("function"): likewise
38067 (argument): likewise
38068 (script): accept empty scripts and make exit on error
38069 (arguments): use GRUB_PARSER_TOKEN_ARG
38070 (function): likewise
38071 (command): move error handling to script
38072 (menuentry): move grub_script_lexer_ref before
38073 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38074 argument. All callers updated
38076 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38078 Prevent GRUB from probing floppies during boot.
38080 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38081 * commands/search.c (options): Add --no-floppy.
38082 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38083 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38084 --no-floppy when searching for UUIDs.
38086 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38088 Simplify the code duplication in commands/search.c.
38090 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38091 (search_fs): ... this. Update all users.
38093 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38095 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38097 2009-05-28 Pavel Roskin <proski@gnu.org>
38099 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38100 Remove the original symlink explicitly.
38102 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38103 just one slash. That's how grub_fshelp_find_file() does it.
38105 2009-05-26 Pavel Roskin <proski@gnu.org>
38107 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38110 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38113 2009-05-25 Christian Franke <franke@computer.org>
38115 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38117 (grub_atapi_identify): Add wait after drive select.
38118 (grub_ata_identify): Do more strict status register check before
38119 calling grub_atapi_identify (). Suppress error message if status
38120 register is 0x00 after command failure. Add status register
38121 check after PIO read to avoid bogus identify due to stuck DRQ.
38122 Thanks to Pavel Roskin for testing.
38123 (grub_device_initialize): Remove unsafe status register check.
38124 Thanks to 'phcoder' for problem report and patch.
38125 Prevent sign extension in debug message.
38127 2009-05-23 Colin D Bennett <colin@gibibit.com>
38129 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38130 definition file, and functions defined in `normal/menu.c' have had
38131 their prototypes moved to `include/grub/menu.h' for consistency.
38133 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38135 (grub_menu_get_entry): Likewise.
38136 (grub_menu_get_timeout): Likewise.
38137 (grub_menu_set_timeout): Likewise.
38138 (grub_menu_execute_entry): Likewise.
38139 (grub_menu_execute_with_fallback): Likewise.
38140 (grub_menu_entry_run): Likewise.
38142 * include/grub/normal.h: Re-ordered and grouped function
38143 prototypes by file that the function is defined in.
38144 (grub_menu_execute_callback): Removed; moved to menu.h.
38145 (grub_menu_get_entry): Likewise.
38146 (grub_menu_get_timeout): Likewise.
38147 (grub_menu_set_timeout): Likewise.
38148 (grub_menu_execute_entry): Likewise.
38149 (grub_menu_execute_with_fallback): Likewise.
38150 (grub_menu_entry_run): Likewise.
38151 (grub_menu_addentry): Renamed from this ...
38152 (grub_normal_add_menu_entry): ... to this.
38154 * normal/main.c (grub_menu_addentry): Renamed from this ...
38155 (grub_normal_add_menu_entry): ... to this.
38157 * script/sh/execute.c (grub_script_execute_menuentry): Update
38158 reference to renamed grub_menu_addentry function.
38160 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38162 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38164 2009-05-22 Pavel Roskin <proski@gnu.org>
38166 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38167 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38168 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38169 compiling for the i386 targets, but not for the utilities.
38171 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38173 (grub_root_drive): Likewise.
38174 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38176 (grub_root_drive): Change size to byte.
38177 (grub_start_addr): Remove.
38178 (grub_end_addr): Likewise.
38179 (grub_apm_bios_info): Likewise.
38181 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38183 * normal/i386: Remove.
38184 * normal/powerpc: Likewise.
38185 * normal/sparc64: Likewise.
38186 * normal/x86_64: Likewise.
38188 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38190 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38191 * loader/i386/linux_trampoline.S: Fix indentation
38192 * loader/i386/xnu_helper.S: Likewise
38194 2009-05-18 Colin D Bennett <colin@gibibit.com>
38196 Display error messages when parsing a Lua statement fails.
38197 Previously, executing a syntactically invalid statement like
38198 ")foo" or "bar;" would silently fail.
38200 * script/lua/grub_main.c (handle_lua_error): New function.
38201 (grub_lua_parse_line): Improved reporting of Lua parser and
38204 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38206 Remove -Werror which causes build to fail on some systems
38208 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38209 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38210 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38212 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38214 trampoline for linux on 64-bit platform
38216 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38217 loader/i386/efi/linux_trampoline.S
38218 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38220 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38222 * loader/i386/linux_trampoline.S: moved here
38223 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38225 (jumpvector): removed
38226 (grub_linux_trampoline_start): new declaration
38227 (grub_linux_trampoline_end): likewise
38228 (grub_linux_boot): use trampoline when on 64-bit platform
38229 * loader/i386/linux.c: likewise
38231 2009-05-16 Pavel Roskin <proski@gnu.org>
38233 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38234 const to avoid a warning.
38235 (grub_lua_setenv): Likewise.
38236 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38237 lmsg to fix a warning.
38239 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38241 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38242 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38243 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38244 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38245 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38246 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38247 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38248 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38250 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38252 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38254 2009-05-16 Bean <bean123ch@gmail.com>
38256 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38257 (lua_mod_SOURCES): New variable.
38258 (lua_mod_CFLAGS): Likewise.
38259 (lua_mod_LDFLAGS): Likewise.
38261 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38262 (setjmp_mod_SOURCES): New variable.
38263 (setjmp_mod_CFLAGS): Likewise.
38264 (setjmp_LDFLAGS): Likewise.
38266 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38267 (setjmp_mod_SOURCES): New variable.
38268 (setjmp_mod_CFLAGS): Likewise.
38269 (setjmp_LDFLAGS): Likewise.
38271 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38272 (setjmp_mod_SOURCES): New variable.
38273 (setjmp_mod_CFLAGS): Likewise.
38274 (setjmp_LDFLAGS): Likewise.
38276 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38277 (setjmp_mod_SOURCES): New variable.
38278 (setjmp_mod_CFLAGS): Likewise.
38279 (setjmp_LDFLAGS): Likewise.
38281 * normal/i386/setjmp.S: Moved from here ...
38282 * lib/i386/setjmp.S: ... Moved here
38283 * normal/x86_64/setjmp.S: Moved from here ...
38284 * lib/x86_64/setjmp.S: ... Moved here
38285 * normal/powerpc/setjmp.S: Moved from here ...
38286 * lib/powerpc/setjmp.S: ... Moved here
38287 * normal/sparc64/setjmp.S: Moved from here ...
38288 * lib/sparc64/setjmp.S: ... Moved here
38290 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38291 returns_twice in mingw.
38293 * script/lua/grub_lib.c: New file.
38294 * script/lua/grub_lib.h: Likewise.
38295 * script/lua/grub_lua.h: Likewise.
38296 * script/lua/grub_main.c: Likewise.
38297 * script/lua/lapi.c: Likewise.
38298 * script/lua/lapi.h: Likewise.
38299 * script/lua/lauxlib.c: Likewise.
38300 * script/lua/lauxlib.h: Likewise.
38301 * script/lua/lbaselib.c: Likewise.
38302 * script/lua/lcode.c: Likewise.
38303 * script/lua/lcode.h: Likewise.
38304 * script/lua/ldblib.c: Likewise.
38305 * script/lua/ldebug.c: Likewise.
38306 * script/lua/ldebug.h: Likewise.
38307 * script/lua/ldo.c: Likewise.
38308 * script/lua/ldo.h: Likewise.
38309 * script/lua/ldump.c: Likewise.
38310 * script/lua/lfunc.c: Likewise.
38311 * script/lua/lfunc.h: Likewise.
38312 * script/lua/lgc.c: Likewise.
38313 * script/lua/lgc.h: Likewise.
38314 * script/lua/linit.c: Likewise.
38315 * script/lua/liolib.c: Likewise.
38316 * script/lua/llex.c: Likewise.
38317 * script/lua/llex.h: Likewise.
38318 * script/lua/llimits.h: Likewise.
38319 * script/lua/lmathlib.c: Likewise.
38320 * script/lua/lmem.c: Likewise.
38321 * script/lua/lmem.h: Likewise.
38322 * script/lua/loadlib.c: Likewise.
38323 * script/lua/lobject.c: Likewise.
38324 * script/lua/lobject.h: Likewise.
38325 * script/lua/lopcodes.c: Likewise.
38326 * script/lua/lopcodes.h: Likewise.
38327 * script/lua/loslib.c: Likewise.
38328 * script/lua/lparser.c: Likewise.
38329 * script/lua/lparser.h: Likewise.
38330 * script/lua/lstate.c: Likewise.
38331 * script/lua/lstate.h: Likewise.
38332 * script/lua/lstring.c: Likewise.
38333 * script/lua/lstring.h: Likewise.
38334 * script/lua/lstrlib.c: Likewise.
38335 * script/lua/ltable.c: Likewise.
38336 * script/lua/ltable.h: Likewise.
38337 * script/lua/ltablib.c: Likewise.
38338 * script/lua/ltm.c: Likewise.
38339 * script/lua/ltm.h: Likewise.
38340 * script/lua/lua.h: Likewise.
38341 * script/lua/luaconf.h: Likewise.
38342 * script/lua/lualib.h: Likewise.
38343 * script/lua/lundump.c: Likewise.
38344 * script/lua/lundump.h: Likewise.
38345 * script/lua/lvm.c: Likewise.
38346 * script/lua/lvm.h: Likewise.
38347 * script/lua/lzio.c: Likewise.
38348 * script/lua/lzio.h: Likewise.
38350 2009-05-16 Bean <bean123ch@gmail.com>
38352 * include/grub/kernel.h (grub_module_header_types): Add type
38355 * kern/main.c (grub_load_config): New function.
38356 (grub_main): Call grub_load_config to read boot config.
38358 * grub-mkimage (generate_image): New parameter config_path.
38359 (options): New option --config.
38360 (main): Parse --config option, and pass it to generate_image.
38362 2009-05-14 Christian Franke <franke@computer.org>
38364 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38365 This fixes build on Cygwin.
38367 2009-05-14 Pavel Roskin <proski@gnu.org>
38369 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38370 jump. This saves two bytes, so the typical case of 2 swapped
38371 drives would fit 32 bytes.
38373 2009-05-13 Pavel Roskin <proski@gnu.org>
38375 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38376 grub_uint32_t to avoid a warning.
38378 * loader/i386/linux.c (allocate_pages): When assigning
38379 real_mode_mem, cast through grub_size_t to fix a warning. The
38380 code already makes sure that the value would fit a pointer.
38381 (grub_linux_setup_video): Cast render_target->data to
38382 grub_size_t to fix a warning.
38384 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38386 * commands/i386/pc/drivemap.c: New file - implement drivemap
38388 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38389 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38391 2009-05-13 Pavel Roskin <proski@gnu.org>
38393 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38394 embedding_area_exists.
38396 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38398 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38399 it easier to understand / work with.
38400 Improve warning messages for cases where there's no embedding area,
38401 or when it is too small (or core.img too large).
38403 2009-05-13 Pavel Roskin <proski@gnu.org>
38405 * loader/i386/pc/multiboot2.c: Add necessary includes for
38406 grub_multiboot2_real_boot().
38408 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38409 PX record is always little-endian. We only need the lower 2
38412 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38413 facilitate code reuse.
38414 (grub_cpio_mount): Use "struct head", not a char buffer. This
38415 fixes a warning reported by gcc 4.4.
38417 * kernel/disk.c (grub_disk_read): Use void pointer for the
38419 (grub_disk_write): Use const void pointer for the buffer.
38420 Adjust all callers. Remove unnecessary casts.
38422 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38424 * util/i386/pc/grub-install.in: Update copyright year.
38426 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38430 * commands/gptsync.c: new file
38431 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38432 (gptsync_mod_SOURCES): new variable
38433 (gptsync_mod_CFLAGS): likewise
38434 (gptsync_mod_LDFLAGS): likewise
38435 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38437 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38438 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38439 * conf/i386-ieee1275.rmk: likewise
38440 * conf/i386-pc.rmk: likewise
38441 * conf/powerpc-ieee1275.rmk: likewise
38443 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38447 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38448 (grub_dl_ref): likewise
38450 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38452 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38453 split in two functions (one for msdos and one for gpt).
38455 2009-05-08 Pavel Roskin <proski@gnu.org>
38457 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38460 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38461 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38462 Initialize them with -1. Add sanity check for bad1. Eliminate
38465 2009-05-08 David S. Miller <davem@davemloft.net>
38467 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38469 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38471 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38474 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38477 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38479 2009-05-05 David S. Miller <davem@davemloft.net>
38481 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38483 2009-05-05 Pavel Roskin <proski@gnu.org>
38485 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38486 of grub_dl_ref() and grub_dl_unref().
38487 * commands/parttool.c: Remove preprocessor conditionals around
38488 grub_dl_ref() and grub_dl_unref().
38489 * fs/affs.c: Likewise.
38490 * fs/afs.c: Likewise.
38491 * fs/cpio.c: Likewise.
38492 * fs/ext2.c: Likewise.
38493 * fs/fat.c: Likewise.
38494 * fs/hfs.c: Likewise.
38495 * fs/hfsplus.c: Likewise.
38496 * fs/iso9660.c: Likewise.
38497 * fs/jfs.c: Likewise.
38498 * fs/minix.c: Likewise.
38499 * fs/ntfs.c: Likewise.
38500 * fs/reiserfs.c: Likewise.
38501 * fs/sfs.c: Likewise.
38502 * fs/udf.c: Likewise.
38503 * fs/ufs.c: Likewise.
38504 * fs/xfs.c: Likewise.
38505 * include/grub/dl.h: Likewise.
38506 * loader/xnu.c: Likewise.
38508 2009-05-04 Pavel Roskin <proski@gnu.org>
38510 * commands/acpi.c: Remove unused variable my_mod.
38511 * partmap/amiga.c: Likewise.
38512 * partmap/apple.c: Likewise.
38513 * partmap/gpt.c: Likewise.
38514 * partmap/pc.c: Likewise.
38515 * partmap/sun.c: Likewise.
38516 * term/gfxterm.c: Likewise.
38517 * term/i386/pc/vesafb.c: Likewise.
38518 * term/i386/pc/vga.c: Likewise.
38520 2009-05-04 David S. Miller <davem@davemloft.net>
38522 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38523 pointer args to grub_ieee1275_get_property().
38525 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38527 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38528 devices, and do not traverse down under controller nodes.
38530 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38531 (grub_ofdisk_open): Use it to un-escape "," characters.
38532 * kern/disk.c (find_part_sep): New.
38533 (grub_disk_open): Use it to find the first non-escaped ','
38534 character in the disk name.
38535 * util/ieee1275/devicemap.c (escape_of_path): New.
38536 (grub_util_emit_devicemap_entry): Use it.
38537 * util/sparc64/ieee1275/grub-install.in: Update script to
38538 strip partition specifiers properly by not triggering on
38539 '\' escaped ',' characters.
38541 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38543 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38545 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38547 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38548 on documentation from Wikipedia).
38550 2009-05-04 Pavel Roskin <proski@gnu.org>
38552 * disk/ata.c: Spelling fixes.
38553 * disk/raid.c: Likewise.
38554 * disk/usbms.c: Likewise.
38555 * disk/dmraid_nvidia.c: Likewise.
38556 * kern/ieee1275/openfw.c: Likewise.
38557 * kern/ieee1275/init.c: Likewise.
38558 * kern/ieee1275/cmain.c: Likewise.
38559 * boot/i386/pc/cdboot.S: Likewise.
38560 * video/readers/png.c: Likewise.
38561 * video/i386/pc/vbe.c: Likewise.
38562 * fs/udf.c: Likewise.
38563 * fs/hfs.c: Likewise.
38564 * fs/reiserfs.c: Likewise.
38565 * efiemu/runtime/efiemu.c: Likewise.
38566 * efiemu/main.c: Likewise.
38567 * efiemu/mm.c: Likewise.
38568 * include/grub/elf.h: Likewise.
38569 * include/grub/xnu.h: Likewise.
38570 * include/grub/usbdesc.h: Likewise.
38571 * include/grub/usb.h: Likewise.
38572 * include/grub/script_sh.h: Likewise.
38573 * include/grub/lib/LzmaEnc.h: Likewise.
38574 * include/grub/efiemu/efiemu.h: Likewise.
38575 * include/grub/command.h: Likewise.
38576 * normal/menu.c: Likewise.
38577 * normal/main.c: Likewise.
38578 * normal/datetime.c: Likewise.
38579 * bus/usb/uhci.c: Likewise.
38580 * mmap/i386/uppermem.c: Likewise.
38581 * mmap/mmap.c: Likewise.
38582 * commands/acpi.c: Likewise.
38583 * commands/test.c: Likewise.
38584 * partmap/apple.c: Likewise.
38585 * font/font.c: Likewise.
38586 * loader/sparc64/ieee1275/linux.c: Likewise.
38587 * loader/macho.c: Likewise.
38588 * loader/i386/bsd_trampoline.S: Likewise.
38589 * loader/i386/bsd.c: Likewise.
38590 * loader/xnu.c: Likewise.
38591 * term/i386/pc/vesafb.c: Likewise.
38592 * term/usb_keyboard.c: Likewise.
38593 * util/resolve.c: Likewise.
38594 * util/getroot.c: Likewise.
38596 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38598 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38600 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38602 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38605 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38607 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38608 parameter only available on BIOS.
38610 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38612 Removed wrong semicolon in declaration
38614 * grub/misc.h (grub_dprintf): remove semicolon
38616 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38618 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38619 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38620 is done by grub_cmd_linux() now).
38621 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38622 restore video to text mode.
38623 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38624 indicates lack of "vga=" parameter. "vga=0" is mapped to
38625 `GRUB_LINUX_VID_MODE_NORMAL'.
38627 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38629 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38630 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38631 and `normal/script.c'. Add `kern/rescue_reader.c',
38632 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38633 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38634 `grub_script.tab.c'.
38636 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38637 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38639 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38640 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38642 * Makefile.in: Remove duplicated 2008 in Copyright line.
38644 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38646 * util/misc.c (grub_util_warn): New function. Emits a warning
38648 * include/grub/util/misc.h (grub_util_warn): New declaration.
38650 * util/i386/pc/grub-install.in: Understand --force and pass it down
38653 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38655 (setup): Improve error messages and add warnings when requested to
38656 install in odd layouts. Refuse to install using blocklists unless
38659 2009-05-04 martin f. krafft <madduck@madduck.net>
38661 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38663 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38665 Updated copyright year
38667 * fs/hfsplus.c: updated copyright year
38669 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38673 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38674 in the space previously used by unused3
38675 (grub_hfsplus_uuid): new function
38676 (grub_hfsplus_fs): added uuid field
38678 2009-05-03 Pavel Roskin <proski@gnu.org>
38680 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38681 suppress warnings. It's no longer needed.
38682 * disk/host.c: Likewise.
38683 * disk/ata_pthru.c: Likewise.
38684 * disk/loopback.c: Likewise.
38685 * hook/datehook.c: Likewise.
38686 * parttool/pcpart.c: Likewise.
38687 * fs/i386/pc/pxe.c: Likewise.
38688 * fs/ntfscomp.c: Likewise.
38689 * efiemu/main.c: Likewise.
38690 * mmap/mmap.c: Likewise.
38691 * commands/crc.c: Likewise.
38692 * commands/hexdump.c: Likewise.
38693 * commands/hdparm.c: Likewise.
38694 * commands/acpi.c: Likewise.
38695 * commands/echo.c: Likewise.
38696 * commands/minicmd.c: Likewise.
38697 * commands/blocklist.c: Likewise.
38698 * commands/memrw.c: Likewise.
38699 * commands/loadenv.c: Likewise.
38700 * commands/usbtest.c: Likewise.
38701 * commands/lsmmap.c: Likewise.
38702 * commands/boot.c: Likewise.
38703 * commands/parttool.c: Likewise.
38704 * commands/configfile.c: Likewise.
38705 * commands/search.c: Likewise.
38706 * commands/ieee1275/suspend.c: Likewise.
38707 * commands/cat.c: Likewise.
38708 * commands/i386/pc/pxecmd.c: Likewise.
38709 * commands/i386/pc/play.c: Likewise.
38710 * commands/i386/pc/halt.c: Likewise.
38711 * commands/i386/pc/vbeinfo.c: Likewise.
38712 * commands/i386/pc/vbetest.c: Likewise.
38713 * commands/lspci.c: Likewise.
38714 * commands/date.c: Likewise.
38715 * commands/handler.c: Likewise.
38716 * commands/ls.c: Likewise.
38717 * commands/test.c: Likewise.
38718 * commands/cmp.c: Likewise.
38719 * commands/efi/loadbios.c: Likewise.
38720 * commands/efi/fixvideo.c: Likewise.
38721 * commands/halt.c: Likewise.
38722 * commands/help.c: Likewise.
38723 * commands/reboot.c: Likewise.
38724 * hello/hello.c: Likewise.
38725 * script/sh/main.c: Likewise.
38726 * loader/xnu.c: Likewise.
38727 * term/terminfo.c: Likewise.
38728 * term/i386/pc/serial.c: Likewise.
38729 * term/usb_keyboard.c: Likewise.
38731 2009-05-03 David S. Miller <davem@davemloft.net>
38733 * normal/menu.c: Include grub/parser.h
38735 2009-05-03 Pavel Roskin <proski@gnu.org>
38737 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38739 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38740 Suggested by Javier Martín <lordhabbit@gmail.com>
38742 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38743 efiemu??.o doesn't exist.
38744 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38747 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38749 FreeBSD 64-bit support
38751 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38752 and loader/i386/bsd_trampoline.S
38753 (bsd_mod_ASFLAGS): new variable
38754 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38755 (FREEBSD_MODTYPE_KERNEL64): likewise
38756 (grub_bsd64_trampoline_start): likewise
38757 (grub_bsd64_trampoline_end): likewise
38758 (grub_bsd64_trampoline_selfjump): likewise
38759 (grub_bsd64_trampoline_gdt): likewise
38760 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38761 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38762 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38763 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38764 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38766 * loader/i386/bsd_pagetable.c: new file
38767 * loader/i386/bsd_trampoline.S: likewise
38768 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38769 (ALIGN_VAR): likewise
38770 (entry_hi): new variable
38771 (kern_end_mdofs): likewise
38772 (is_64bit): likewise
38773 (grub_freebsd_add_meta): use ALIGN_VAR
38774 (grub_e820_mmap): new declaration
38775 (grub_freebsd_add_mmap): new function
38776 (grub_freebsd_add_meta_module): support 64 bit kernels
38777 (grub_freebsd_list_modules): use ALIGN_VAR
38778 (gdt_descriptor): new declaration
38779 (grub_freebsd_boot): support 64 bit kernels
38780 (grub_bsd_elf64_hook): new function
38781 (grub_bsd_load_elf): support elf64
38783 2009-05-03 Bean <bean123ch@gmail.com>
38785 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38786 after we get the result of if statement.
38788 2009-05-03 Bean <bean123ch@gmail.com>
38790 * Makefile.in (enable_efiemu): New variable.
38792 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38794 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38796 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38797 path, add -mno-red-zone option.
38798 (efiemu64_s.o): Likewise.
38799 (efiemu64.o): Use macro $^ for source file.
38801 * configure.ac (--enable-efiemu): New option.
38803 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38807 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38808 (pkglib_MODULES): add xnu.mod
38809 (xnu_mod_SOURCES): new variable
38810 (xnu_mod_CFLAGS): likewise
38811 (xnu_mod_LDFLAGS): likewise
38812 (xnu_mod_ASFLAGS): likewise
38813 * conf/i386-pc.rmk: likewise
38814 * conf/x86_64-efi.rmk: likewise
38815 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38817 * include/grub/i386/macho.h: new file
38818 * include/grub/i386/xnu.h: likewise
38819 * include/grub/macho.h: likewise
38820 * include/grub/machoload.h: likewise
38821 * include/grub/x86_64/macho.h: likewise
38822 * include/grub/x86_64/xnu.h: likewise
38823 * include/grub/xnu.h: likewise
38824 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38825 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38826 * loader/i386/efi/xnu.c: new file
38827 * loader/i386/pc/xnu.c: likewise
38828 * loader/i386/xnu.c: likewise
38829 * loader/i386/xnu_helper.S: likewise
38830 * loader/macho.c: likewise
38831 * loader/xnu.c: likewise
38832 * loader/xnu_resume.c: likewise
38833 * util/grub-dumpdevtree: likewise
38834 * include/grub/i386/pit.h: include grub/err.h
38835 (grub_pit_wait): export
38836 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38838 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38842 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38843 _linux_efi, linux_efi.
38844 new files in grub-emu
38845 new targets efiemu32.o and efiemu64.o
38846 * loader/linux_normal_efiemu.c: likewise
38847 * loader/i386/efi/linux.c: added preliminary efiemu support
38848 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38850 * include/grub/autoefi.h: new file
38851 * include/grub/i386/efiemu.h: likewise
38852 * include/grub/i386/pc/efiemu.h: likewise
38853 * include/grub/efi/api.h: add LL suffix when necessary
38854 new definitions relating to tables
38855 * include/grub/efiemu/efiemu.h: new file
38856 * include/grub/efiemu/runtime.h: likewise
38857 * efiemu/prepare.c: likewise
38858 * efiemu/loadcore_common.c: likewise
38859 * efiemu/loadcore64.c: likewise
38860 * efiemu/runtime/efiemu.sh: likewise
38861 * efiemu/runtime/efiemu.S: likewise
38862 * efiemu/runtime/efiemu.c: likewise
38863 * efiemu/runtime/config.h: likewise
38864 * efiemu/prepare32.c: likewise
38865 * efiemu/main.c: likewise
38866 * efiemu/modules/pnvram.c: likewise
38867 * efiemu/modules/i386: likewise
38868 * efiemu/modules/i386/pc: likewise
38869 * efiemu/modules/acpi.c: likewise
38870 * efiemu/i386/pc/cfgtables.c: likewise
38871 * efiemu/i386/loadcore64.c: likewise
38872 * efiemu/i386/loadcore32.c: likewise
38873 * efiemu/prepare64.c: likewise
38874 * efiemu/loadcore.c: likewise
38875 * efiemu/symbols.c: likewise
38876 * efiemu/mm.c: likewise
38877 * efiemu/loadcore32.c: likewise
38879 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38883 * commands/acpi.c: new file
38884 * commands/i386/pc/acpi.c: likewise
38885 * commands/efi/acpi.c: likewise
38886 * include/grub/acpi.h: likewise
38887 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38888 (acpi_mod_SOURCES): new variable
38889 (acpi_mod_CFLAGS): likewise
38890 (acpi_mod_LDFLAGS): likewise
38891 * conf/i386-efi.rmk: likewise
38892 * conf/x86_64-efi.rmk: likewise
38894 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38896 Missing part from mmap patch
38898 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38899 (grub_mmap_unregister)
38900 (grub_mmap_free_and_unregister): use grub_mmap_register
38902 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38906 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38907 * loader/i386/linux.c (find_mmap_size): likewise
38908 (allocate_pages): likewise
38909 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38910 (grub_fill_multiboot_mmap): likewise
38911 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38912 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38913 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38914 (OPENBSD_MMAP_RESERVED): likewise
38915 * include/grub/i386/pc/memory.h: include grub/memory.h
38916 (grub_lower_mem): removed
38917 (grub_upper_mem): likewise
38918 (GRUB_MACHINE_MEMORY_ACPI): new definition
38919 (GRUB_MACHINE_MEMORY_NVS): likewise
38920 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38921 (GRUB_MACHINE_MEMORY_HOLE): likewise
38922 (grub_machine_mmap_register): likewise
38923 (grub_machine_mmap_unregister): likewise
38924 (grub_machine_get_upper): likewise
38925 (grub_machine_get_lower): likewise
38926 (grub_machine_get_post64): likewise
38927 * include/grub/i386/efi/memory.h: new file
38928 * include/grub/x86_64/efi/memory.h: likewise
38929 * include/grub/efi/memory.h: likewise
38930 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38931 (mmap_mod_SOURCES): new variable
38932 (mmap_mod_LDFLAGS): likewise
38933 (mmap_mod_ASFLAGS): likewise
38934 * conf/i386-coreboot.rmk: likewise
38935 * conf/i386-ieee1275.rmk: likewise
38936 * conf/i386-efi.rmk: likewise
38937 * conf/x86_64-efi.rmk: likewise
38938 * include/grub/types.h (UINT_TO_PTR): new macro
38939 (PTR_TO_UINT32): likewise
38940 (PTR_TO_UINT64): likewise
38941 * include/grub/memory.h: new file
38942 * mmap/i386/pc/mmap.c: likewise
38943 * mmap/i386/pc/mmap_helper.S: likewise
38944 * mmap/i386/uppermem.c: likewise
38945 * mmap/mmap.c: likewise
38946 * mmap/efi/mmap.c: likewise
38947 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38949 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38950 (grub_upper_mem): likewise
38951 (grub_machine_init): don't use grub_upper_mem,
38952 make grub_lower_mem local
38953 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38954 grub_mmap_iterate and grub_mmap_get_upper
38955 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38957 2009-05-02 Bean <bean123ch@gmail.com>
38959 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38960 script/sh/parser.y.
38961 (pkglib_MODULES): Add normal.mod and sh.mod.
38962 (normal_SOURCES): New variable.
38963 (normal_mod_CFLAGS): Likewise.
38964 (normal_mod_LDFLAGS): Likewise.
38965 (sh_mod_SOURCES): Likewise.
38966 (sh_mod_CFLAGS): Likewise.
38967 (sh_mod_LDFLAGS): Likewise.
38969 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38970 script/sh/lexer.c_DEPENDENCIES.
38971 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38972 kern/rescue_reader.c and kern/rescue_parser.c.
38973 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38974 (grub_emu_SOURCES): Change source files.
38975 (pkglib_MODULES): Remove normal.mod.
38976 (normal_SOURCES): Removed.
38977 (normal_mod_CFLAGS): Likewise.
38978 (normal_mod_LDFLAGS): Likewise.
38979 * conf/i386-coreboot.rmk: Likewise.
38980 * conf/i386-efi.rmk: Likewise.
38981 * conf/i386-ieee1276.rmk: Likewise.
38982 * conf/powerpc-ieee1275.rmk: Likewise.
38983 * conf/sparc64-ieee1275.rmk: Likewise.
38984 * conf/x86_64-efi.rmk: Likewise.
38986 * include/grub/command.h (grub_command_execute): New inline function.
38988 * include/grub/menu.h (grub_menu_entry): Removed commands field.
38990 * include/grub/normal.h: Remove <grub/setjmp.h>.
38991 (grub_fs_module_list): Moved to normal/autofs.c.
38992 (grub_exit_env): Removed.
38993 (grub_command_execute): Likewise.
38994 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
38996 (read_command_list): New function declaration.
38997 (read_fs_list): Likewise.
38999 * include/parser.h: Include <grub/reader.h>.
39000 (grub_parser_split_cmdline): Change type of getline parameter.
39001 (grub_parser): New structure.
39002 (grub_parser_class): New variable.
39003 (grub_parser_execute): New function declaration.
39004 (grub_register_rescue_parser): Likewise.
39005 (grub_parser_register): New inline function.
39006 (grub_parser_unregister): Likewise.
39007 (grub_parser_get_current): Likewise.
39008 (grub_parser_set_current): Likewise.
39010 * include/grub/reader.h: New file.
39011 * kern/reader.c: Likewise.
39012 * kern/rescue_parser.c: Likewise.
39013 * kern/rescue_reader.c: Likewise.
39014 * normal/autofs.c: Likewise.
39015 * normal/dyncmd.c: Likewise.
39017 * include/grub/rescue.h: Removed.
39018 * normal/command.h: Likewise.
39020 * include/grub/script.h: Moved to ...
39021 * include/grub/script_sh.h: ... Moved here.
39022 * normal/execute.c: Moved to ...
39023 * script/sh/execute.c: ... Moved here.
39024 * normal/function.c: Moved to ...
39025 * script/sh/function.c: ... Moved here.
39026 * normal/lexer.c: Moved to ...
39027 * script/sh/lexer.c: ... Moved here.
39028 * normal/parser.y: Moved to ...
39029 * script/sh/parser.y: ... Moved here.
39030 * normal/script.c: Moved to ...
39031 * script/sh/script.c: ... Moved here.
39033 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39035 (grub_exit_env): Removed.
39036 (fs_module_list): Moved to normal/autofs.c.
39037 (grub_file_getline): Don't handle comment here.
39038 (free_menu): Skip removed field entry->commands.
39039 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39041 (read_config_file): Removed nested parameter, change getline function.
39042 (grub_enter_normal_mode): Removed.
39043 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39044 (read_command_list): Likewise.
39045 (autoload_fs_module): Moved to normal/autofs.c.
39046 (read_fs_list): Likewise.
39047 (reader_nested): New variable.
39048 (grub_normal_execute): Run parser.sh to switch to sh parser.
39049 (grub_cmd_rescue): Removed.
39050 (cmd_normal): Removed.
39051 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39053 (grub_cmdline_run): New function.
39054 (grub_normal_reader_init): Likewise.
39055 (grub_normal_read_line): Likewise.
39056 (grub_env_write_pager): Likewise.
39057 (cmdline): New variable.
39058 (grub_normal_reader): Likewise.
39059 (GRUB_MOD_INIT): Register normal reader and set as current, register
39060 pager hook, register normal command with grub_register_command_prio,
39061 so that it won't show up in command.lst.
39062 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39063 grub_fs_autoload_hook.
39065 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39066 (grub_menu_execute_entry): Replace grub_script_execute with
39067 grub_parser_execute, change parameter to grub_command_execute.
39069 * normal/menu_text.c: Remove <grub/script.h>.
39071 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39072 and <grub/parser.h>.
39073 (run): Change editor_getline to use new parser interface. Change
39074 parameter to grub_command_execute.
39076 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39077 <grub/reader.h> and <grub/parser.h>.
39078 (grub_load_normal_mode): Execute normal command.
39079 (grub_main): Call grub_register_core_commands,
39080 grub_register_rescue_parser and grub_register_rescue_reader, use
39081 grub_reader_loop to enter input loop.
39083 * kern/parser.c (grub_parser_split_cmdline): Change type of
39085 (grub_parser_class): New variable.
39086 (grub_parser_execute): New function.
39088 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39089 * loader/multiboot2.c: Likewise.
39090 * loader/sparc64/ieee1275/linux.c: Likewise.
39092 * util/grub-emu.c (read_command_list): New dummy function.
39094 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39096 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39097 count to 16 for CCISS and IDA.
39099 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39101 * normal/menu_text.c (grub_wait_after_message): Print a newline
39102 after waiting for user input.
39104 * loader/i386/linux.c: Include `<grub/normal.h>'.
39105 (grub_cmd_linux): Improve the error message about `ask' mode, by
39106 waiting for user input so it's not missed (we can do this, since
39107 user requested interaction).
39109 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39111 Added missing lst to grub-mkrescue
39113 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39114 and ${input_dir}/parttool.lst
39116 2009-04-30 David S. Miller <davem@davemloft.net>
39118 * util/hostdisk.c (device_is_wholedisk): New function.
39119 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39120 zero only if device_is_wholedisk() returns true.
39122 * util/hostdisk.c (convert_system_partition_to_system_disk):
39123 Handle virtual disk devices named /dev/vdiskX as found on sparc
39126 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39127 lettered partition specifier is found, convert to numbered.
39129 2009-04-29 David S. Miller <davem@davemloft.net>
39131 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39132 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39134 * normal/command.c: Add missing newline at end of file.
39136 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39138 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39139 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39140 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39141 ihandles have a 32-bit type but need to be stored in a "void *".
39143 2009-04-28 Pavel Roskin <proski@gnu.org>
39145 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39146 not disk. Adjust all dependencies.
39147 (grub_fs_uuid_close): Use grub_device_close(), not
39150 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39151 parent's partition, don't copy it by reference, as it gets freed
39154 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39156 Preboot hooks support
39158 * commands/boot.c (struct grub_preboot_t): new declaration
39159 (preboots_head): new variable
39160 (preboots_tail): likewise
39161 (grub_loader_register_preboot_hook): new function
39162 (grub_loader_unregister_preboot_hook): likewise
39163 (grub_loader_set): launch preboot hooks
39164 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39165 (grub_loader_register_preboot_hook): new declaration
39166 (grub_loader_unregister_preboot_hook): likewise
39168 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39172 * disk/scsi.c (grub_scsi_open): added missing cast when
39173 calling grub_dprintf
39175 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39177 Bug and warning fixes
39179 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39181 * commands/test.c (test_parse): fixed bug with file tests and corrected
39182 declaration of find_file
39184 2009-04-26 Pavel Roskin <proski@gnu.org>
39186 * Makefile.in: Don't install empty manual pages if help2man is
39187 missing. Use help2man option for output, not shell redirection.
39189 2009-04-26 David S. Miller <davem@davemloft.net>
39191 * util/grub-mkdevicemap.c (make_device_map): Add missing
39192 NESTED_FUNC_ATTR to process_device().
39194 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39198 * commands/test.c: rewritten to use bash-like test
39200 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39202 Parttool autoloading and improvements
39204 * Makefile.in (pkglib_DATA): add parttool.lst
39205 (parttool.lst): new target
39206 * genmk.rb: generate parttool-*
39207 (CLEANFILES): add #{parttool}
39208 (PARTTOOLFILES): new variable
39209 * genparttoollist.sh: new file
39210 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39211 (grub_pcpart_type): likewise
39212 * commands/parttool.c (helpmsg): new variable
39213 (grub_cmd_parttool): output help if not enough arguments are supplied
39215 (GRUB_MOD_INIT(parttool)): use helpmsg
39217 2009-04-24 David S. Miller <davem@davemloft.net>
39219 Avoiding opening same device multiple times in device iterator.
39221 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39222 and use it to build a list of partitions in iterate_disk() and
39223 iterate_partition().
39225 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39228 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39229 grub_devalias_iterate() result instead of unconditional 0.
39230 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39231 Also, capture hook return value, either directly or via
39232 grub_children_iterate(), and propagate to caller.
39233 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39234 grub_children_iterate): Return value is now 'int' instead of
39236 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39237 like a proper iterator, stopping when hooks return non-zero.
39238 (grub_devalias_iterate): Likewise.
39240 2009-04-23 David S. Miller <davem@davemloft.net>
39242 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39244 2009-04-22 David S. Miller <davem@davemloft.net>
39246 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39247 is larger than address_cells, use that value for address_cells too.
39249 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39250 IEEE1275_MAX_PATH_LEN): Define.
39251 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39252 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39253 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39254 'devtype'. Explicitly NULL terminate devalias expansion.
39256 * util/sparc64/ieee1275/misc.c: New file.
39257 * util/sparc64/ieee1275/grub-setup.c: New file.
39258 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39259 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39260 * util/sparc64/ieee1275/grub-install.in: New file.
39261 * util/ieee1275/ofpath.c: New file.
39262 * util/ieee1275/devicemap.c: New file.
39263 * util/devicemap.c: New file.
39264 * util/deviceiter.c: New file.
39265 * kern/sparc64/ieee1275/init.c: New file.
39266 * include/grub/util/ofpath.h: New file.
39267 * include/grub/util/deviceiter.h: New file.
39268 * util/grub-mkdevicemap.c: Include deviceiter.h.
39269 Implement using grub_util_emit_devicemap_entry and
39270 grub_util_iterate_devices.
39271 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39272 util/devicemap.c into grub-mkdevicemap
39273 * conf/i386-efi.rmk: Likewise.
39274 * conf/i386-ieee1275.rmk: Likewise.
39275 * conf/i386-pc.rmk: Likewise.
39276 * conf/powerpc-ieee1275.rmk: Likewise.
39277 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39278 images and installation utilities. Build kernel as image
39279 instead of as elf binary. Use common rules as much as possible.
39281 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39283 Correct GPT definition
39285 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39288 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39290 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39292 2009-04-19 David S. Miller <davem@davemloft.net>
39294 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39295 (grub_rescue_cmd_linux): Rename to...
39296 (grub_cmd_linux): and fix prototype.
39297 (grub_rescue_cmd_initrd): Rename to...
39298 (grub_cmd_initrd): and fix prototype.
39299 (cmd_linux, cmd_initrd): New.
39300 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39301 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39303 2009-04-17 Pavel Roskin <proski@gnu.org>
39305 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39307 (grub_ohci_transfer): Likewise.
39309 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39311 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39312 return without a value. Fix inconsistent indentation.
39314 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39315 match struct grub_fs.
39317 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39318 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39319 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39320 * commands/lspci.c (grub_lspci_iter): Likewise.
39322 2009-04-16 Bean <bean123ch@gmail.com>
39324 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39327 2009-04-15 Pavel Roskin <proski@gnu.org>
39329 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39330 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39331 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39334 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39336 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39337 that no multiple data or metadata areas are supported and `Unknown
39340 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39342 Move loader out of the kernel
39344 * kern/loader.c: moved to ...
39345 * commands/boot.c: ... moved here
39346 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39347 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39348 * include/grub/kernel.h (grub_machine_fini): export
39349 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39350 (grub_loader_set): likewise
39351 (grub_loader_unset): likewise
39352 (grub_loader_boot): likewise
39353 * conf/common.rmk: new module boot.mod
39354 (pkglib_MODULES): add boot.mod
39355 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39356 (grub_emu_SOURCES): likewise
39357 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39358 (grub_emu_SOURCES): likewise
39359 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39360 (grub_emu_SOURCES): likewise
39361 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39362 (grub_emu_SOURCES): likewise
39363 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39364 (grub_emu_SOURCES): likewise
39365 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39366 (grub_emu_SOURCES): likewise
39367 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39368 (grub_emu_SOURCES): likewise
39370 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39372 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39374 * kern/misc.c (grub_itoa): Removed function
39375 (grub_ltoa): likewise
39376 (grub_vsprintf): use grub_lltoa
39378 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39382 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39383 * conf/i386-coreboot.rmk: likewise
39384 * conf/i386-ieee1275.rmk: likewise
39385 * conf/powerpc-ieee1275.rmk: likewise
39387 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39389 * INSTALL: Add that `./autogen.sh' needs to be run before
39392 2009-04-14 Bean <bean123ch@gmail.com>
39394 * Makefile.in (pkglib_DATA): Add handler.lst.
39395 (handler.lst): New rule.
39397 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39398 * conf/i386-coreboot.rmk: Likewise.
39399 * conf/i386-ieee1275.rmk: Likewise.
39400 * conf/i386-efi.rmk: Likewise.
39401 * conf/x86_64-efi.rmk: Likewise.
39402 * conf/powerpc-ieee1275.rmk: Likewise.
39403 * conf/sparc64-ieee1275.rmk: Likewise.
39405 * genhandlerlist.sh: New file.
39407 * genmk.rb: Add rules to generate handler.lst.
39409 * include/grub/normal.h (grub_file_getline): New function definition.
39410 (read_handler_list): Likewise.
39411 (free_handler_list): Likewise.
39413 * include/grub/term.h (grub_term_register_input): Add name parameter
39414 for auto generation of handler.lst.
39415 (grub_term_register_output): Likewise.
39417 * normal/handler.c: New file.
39419 * normal/main.c (get_line): Renamed to grub_file_getline.
39420 (read_config_file): Use the newly renamed grub_file_getline.
39421 (read_command_list): Likewise.
39422 (read_fs_list): Likewise.
39423 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39424 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39426 * term/efi/console.c (grub_console_init): Add name parameter for auto
39427 generation of handler.lst.
39428 * term/gfxterm.c: Likewise.
39429 * term/i386/pc/at_keyboard.c: Likewise.
39430 * term/i386/pc/console.c: Likewise.
39431 * term/i386/pc/serial.c: Likewise.
39432 * term/i386/pc/vesafb.c: Likewise.
39433 * term/i386/pc/vga.c: Likewise.
39434 * term/i386/pc/vga_text.c: Likewise.
39435 * term/ieee1275/ofconsole.c: Likewise.
39436 * term/usb_keyboard.c: Likewise.
39438 2009-04-14 Bean <bean123ch@gmail.com>
39440 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39441 properly with null character.
39443 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39445 * configure: Remove.
39446 * config.h.in: Likewise.
39447 * stamp-h.in: Likewise.
39448 * DISTLIST: Likewise.
39449 * conf/common.mk: Likewise.
39450 * conf/i386-coreboot.mk: Likewise.
39451 * conf/i386-efi.mk: Likewise.
39452 * conf/i386-ieee1275.mk: Likewise.
39453 * conf/i386.mk: Likewise.
39454 * conf/i386-pc.mk: Likewise.
39455 * conf/powerpc-ieee1275.mk: Likewise.
39456 * conf/sparc64-ieee1275.mk: Likewise.
39457 * conf/x86_64-efi.mk: Likewise.
39459 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39462 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39463 David S. Miller <davem@davemloft.net>
39465 * util/hostdisk.c (make_device_name): Fix buffer length
39468 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39470 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39471 <sys/param.h> and <sys/sysctl.h>.
39472 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39473 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39474 opening the device and reset them afterwards.
39476 2009-04-13 Pavel Roskin <proski@gnu.org>
39478 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39479 Reported by John Stanley <jpsinthemix@verizon.net>
39481 2009-04-13 Robert Millan <rmh@aybabtu.com>
39483 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39484 that name for menuentries when appropriate.
39486 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39488 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39490 2009-04-13 Robert Millan <rmh@aybabtu.com>
39492 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39493 to Linux, simply abort telling the user it's no longer supported.
39495 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39497 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39498 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39499 `freebsd_loadenv' only when devices.hints exist.
39501 2009-04-13 Pavel Roskin <proski@gnu.org>
39503 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39505 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39507 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39509 (grub_drive): Likewise.
39511 2009-04-13 David S. Miller <davem@davemloft.net>
39513 * kern/sparc64/ieee1275/ieee1275.c: New file.
39514 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39515 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39516 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39517 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39518 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39519 grub_ieee1275_alloc_physmem): Declare new exported functions.
39521 * include/grub/sparc64/ieee1275/loader.h: New file.
39522 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39523 * include/grub/sparc64/kernel.h: Likewise.
39524 * loader/sparc64/ieee1275/linux.c: Likewise.
39526 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39527 (grub_fstest_SOURCES): Likewise.
39529 * util/hostdisk.c (make_device_name): Do not make any assumptions
39530 about the length of drive names.
39532 * kern/dl.c (grub_dl_load_file): Close file immediately when
39533 we are done using it.
39535 2009-04-12 David S. Miller <davem@davemloft.net>
39537 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39538 values. Noticed by Pavel Roskin.
39540 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39543 * genmk.rb: Add more flexible image type specification, also
39544 pass --strip-unneeded to objcopy.
39545 * conf/i386-pc.rmk: Use *_FORMAT.
39546 * conf/i386-pc.mk: Rebuilt.
39548 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39549 (OFDISK_HASH_SZ): Define.
39550 (ofdisk_hash): New hash table.
39551 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39552 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39553 instead of device phandle which is not unique.
39555 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39556 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39557 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39558 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39559 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39560 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39561 GRUB_KERNEL_MACHINE_DATA_END): Define.
39562 (grub_kernel_image_size, grub_total_module_size): Declare.
39564 2009-04-12 Pavel Roskin <proski@gnu.org>
39566 * configure.ac: Change the logic when we check for target tools.
39567 Do it when the target is specified and it's different from the
39568 specified value of the host.
39570 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39572 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39573 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39574 GNU/kFreeBSD. Check if a device is a character device. Use
39575 DIOCGMEDIASIZE to get the size.
39576 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39577 support for GNU/kFreeBSD.
39578 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39579 is a character device instead of a block device. Add support for
39580 FreeBSD device names.
39582 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39583 is a character device instead of a block device.
39585 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39586 is a character device instead of a block device.
39588 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39590 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39591 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39592 FreeBSD. Check if a device is a character device. Use
39593 DIOCGMEDIASIZE to get the size.
39594 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39595 support for FreeBSD.
39596 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39597 is a character device instead of a block device. Add support for
39598 FreeBSD device names.
39600 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39601 a character device instead of a block device.
39602 (grub_util_check_char_device): New function.
39604 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39605 a character device instead of a block device.
39607 * include/grub/util/getroot.h (grub_util_check_char_device): New
39610 2009-04-11 David S. Miller <davem@davemloft.net>
39612 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39614 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39615 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39616 function, if present.
39617 (__bswapdi2): Likewise.
39619 * include/grub/sparc64/ieee1275/boot.h: New file.
39620 * boot/sparc64/ieee1275/boot.S: Likewise.
39621 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39623 * kern/misc.c (grub_ltoa): New function.
39624 (grub_vsprintf): Use it to format 'long' integers.
39626 2009-04-10 David S. Miller <davem@davemloft.net>
39628 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39629 slots are of type grub_ieee1275_cell_t.
39630 (grub_nand_read): Likewise.
39631 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39632 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39633 macros are used to compare values in arg/ret block of the call.
39634 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39635 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39636 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39637 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39638 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39639 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39640 grub_ieee1275_close, grub_ieee1275_set_property,
39641 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39642 grub_ieee1275_cell_t.
39643 * kern/ieee1275/openfw.c (grub_map): Likewise.
39644 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39645 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39647 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39648 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39649 (grub_devalias_iterate): Likewise.
39651 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39655 * fs/ufs.c (INODE_NBLOCKS): new definition
39656 (struct grub_ufs_dirent): added fields for non-BSD dirents
39657 (grub_ufs_get_file_block): fixed double indirect handling
39658 (grub_ufs_lookup_symlink): use more robust way to determine whether
39660 (grub_ufs_find_file): support for non-BSD dirents
39661 (grub_ufs_dir): support for non-BSD dirents
39663 2009-04-10 Bean <bean123ch@gnail.com>
39665 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39666 attribute, otherwise the size would be wrong for i386 platform.
39668 * include/grub/pci.h (grub_pci_read_word): New inline function.
39669 (grub_pci_read_byte): Likewise.
39670 (grub_pci_write): Likewise.
39671 (grub_pci_write_word): Likewise.
39672 (grub_pci_write_byte): Likewise.
39674 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39676 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39677 (find_framebuf): Scan pci to locate the frame buffer address.
39679 * commands/efi/fixvideo.c: New file.
39681 * commands/efi/loadbios.c: Likewise.
39683 * commands/memrw.c: Likewise.
39685 * util/grub-dumpbios.in: Likewise.
39687 * conf/common.rmk (grub-dumpbios): New utility.
39688 (pkglib_MODULES): New module memrw.mod.
39689 (memrw_mod_SOURCE): New macro.
39690 (memrw_mod_CFLAGS): Likewise.
39691 (memrw_mod_LDFLAGS): Likewise.
39693 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39695 (loadbios_mod_SOURCE): New macro.
39696 (loadbios_mod_CFLAGS): Likewise.
39697 (loadbios_mod_LDFLAGS): Likewise.
39698 (fixvideo_mod_SOURCE): Likewise.
39699 (fixvideo_mod_CFLAGS): Likewise.
39700 (fixvideo_mod_LDFLAGS): Likewise.
39702 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39704 (loadbios_mod_SOURCE): New macro.
39705 (loadbios_mod_CFLAGS): Likewise.
39706 (loadbios_mod_LDFLAGS): Likewise.
39707 (fixvideo_mod_SOURCE): Likewise.
39708 (fixvideo_mod_CFLAGS): Likewise.
39709 (fixvideo_mod_LDFLAGS): Likewise.
39711 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39713 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39715 2009-04-07 David S. Miller <davem@davemloft.net>
39717 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39718 support for R_SPARC_OLO10 relocations. Fix compile warning for
39719 R_SPARC_WDISP30 case.
39720 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39722 2009-04-06 Pavel Roskin <proski@gnu.org>
39724 * include/grub/misc.h (ARRAY_SIZE): New macro.
39725 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39727 * loader/i386/linux.c (allocate_pages): Use free_pages().
39728 (grub_linux_unload): Don't use free_pages().
39729 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39730 wrong index. Treat all other modes as text modes.
39731 (grub_cmd_linux): Initialize vid_mode unconditionally to
39732 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39734 * commands/help.c (print_command_help): Use cmd->prio, not
39735 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39737 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39741 * parttool/pcpart.c: new file
39742 * commands/parttool.c: likewise
39743 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39744 (parttool_mod_SOURCES): new variable
39745 (parttool_mod_CFLAGS): likewise
39746 (parttool_mod_LDFLAGS): likewise
39747 (pcpart_mod_SOURCES): likewise
39748 (pcpart_mod_CFLAGS): likewise
39749 (pcpart_mod_LDFLAGS): likewise
39750 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39751 and parttool/pcpart.c
39752 * conf/i386-efi.rmk: likewise
39753 * conf/i386-ieee1275.rmk: likewise
39754 * conf/i386-pc.rmk: likewise
39755 * conf/powerpc-ieee1275.rmk: likewise
39756 * conf/sparc64-ieee1275.rmk: likewise
39757 * conf/x86_64-ieee1275.rmk: likewise
39759 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39761 Support for mtime and further expandability of dir command
39763 * include/grub/lib/datetime.h: moved to ...
39764 * include/grub/datetime.h: ... moved here and added
39765 declaration of grub_unixtime2datetime. All users updated
39766 * include/grub/fs.h: new syntax for dir and mtime functions in
39768 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39769 and GRUB_FSHELP_FLAGS_MASK
39770 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39771 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39772 (grub_ext2_mtime): new function
39773 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39774 (grub_hfsplus_mtime): new function
39775 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39776 (GRUB_UFS_ATTR_FILE): likewise
39777 (GRUB_UFS_ATTR_LNK): likewise
39778 (struct grub_ufs_sblock): new fields mtime
39779 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39781 (grub_ufs_dir): mtime support
39782 (grub_ufs_mtime): new function
39783 * fs/affs.c (grub_affs_dir): use new dir syntax
39784 * fs/afs.c (grub_afs_dir): likewise
39785 * fs/cpio.c (grub_cpio_dir): likewise
39786 * fs/fat.c (grub_fat_find_dir): likewise
39787 * fs/hfs.c (grub_hfs_dir): likewise
39788 * fs/iso9660.c (grub_iso9660_dir): likewise
39789 * fs/jfs.c (grub_jfs_dir): likewise
39790 * fs/minix.c (grub_minix_dir): likewise
39791 * fs/ntfs.c (grub_ntfs_dir): likewise
39792 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39793 * fs/sfs.c (grub_sfs_dir): likewise
39794 * fs/xfs.c (grub_xfs_dir): likewise
39795 * util/hostfs.c (grub_hostfs_dir): likewise
39796 * lib/datetime.c: moved to ...
39797 * normal/datetime.c: ... moved here
39798 (grub_unixtime2datetime): new function
39799 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39800 * normal/completion.c (iterate_dir): use new dir syntax
39801 * normal/misc.c (grub_normal_print_device_info): tell the
39802 last modification time of a volume
39803 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39804 * conf/common.rmk: added lib/datetime.c to ls.mod
39805 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39806 (normal_mod_SOURCES): likewise
39807 (datetime_mod_SOURCES): Removed lib/datetime.c
39808 * conf/i386-efi.rmk: likewise
39809 * conf/i386-ieee1275.rmk: likewise
39810 * conf/i386-pc.rmk: likewise
39811 * conf/powerpc-ieee1275.rmk: likewise
39812 * conf/sparc64-ieee1275.rmk: likewise
39813 * conf/x86_64-efi.rmk: likewise
39815 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39817 Trim trailing spaces in FAT label and support mtools-like labels
39819 * fs/fat.c (grub_fat_iterate_dir): New function based
39820 on grub_fat_find_dir
39821 (grub_fat_find_dir): use grub_fat_iterate_dir
39822 (grub_fat_label): likewise
39824 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39826 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39828 remove extraneous kernel_elf_HEADERS
39830 2009-04-04 Bean <bean123ch@gnail.com>
39832 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39834 * util/misc.c: Likewise.
39836 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39838 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39839 instead of grub_printf.
39841 2009-04-03 Robert Millan <rmh@aybabtu.com>
39843 * loader/i386/linux.c (grub_linux_setup_video): Fill
39844 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39845 values from `mode info' structure instead of hardcoded
39848 2009-04-01 Pavel Roskin <proski@gnu.org>
39850 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39852 * genmk.rb: Likewise.
39853 * configure.ac: Likewise.
39855 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39857 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39858 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39860 2009-04-01 David S. Miller <davem@davemloft.net>
39862 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39863 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39864 (grub_setjmp): Mark with 'returns_twice' attribute.
39865 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39866 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39867 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39869 2009-04-01 Robert Millan <rmh@aybabtu.com>
39871 Reapply fix from 2008-07-28 which was accidentally reverted; also
39872 perform the same fix to a similar check in same function.
39874 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39875 with the same number are found, just use issue a warning with
39876 grub_dprintf(), as this error has been reported to be non-fatal.
39878 2009-03-31 Pavel Roskin <proski@gnu.org>
39880 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39881 for cross-compilation.
39883 2009-03-30 Robert Millan <rmh@aybabtu.com>
39885 Fix i386-ieee1275 build.
39887 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39888 Remove declaration.
39890 2009-03-30 Pavel Roskin <proski@gnu.org>
39892 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39893 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39894 zero-terminated, rely only on the strlen value. Fix comparison
39895 of strings differing in length.
39897 2009-03-30 Robert Millan <rmh@aybabtu.com>
39899 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39900 checking for abi version. Improve error messages on BIOS to notify
39901 user about `linux16' command.
39903 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39907 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39908 in case of collision
39909 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39911 2009-03-29 Robert Millan <rmh@aybabtu.com>
39913 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39914 set `vid_mode' accordingly.
39915 (grub_linux_boot): Process `vid_mode' and set video mode.
39917 2009-03-29 Robert Millan <rmh@aybabtu.com>
39919 * util/grub.d/10_linux.in (linux_entry): New function.
39920 Factorize generation of Linux boot entries.
39922 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39924 Make the format of Environment Block plain text. The boot loader
39925 part is not tested well yet.
39927 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39929 (envblk): Likewise.
39930 (usage): Remove "info" and "clear". Add "unset". Update the
39931 description of "set", as this does not delete variables any
39933 (create_envblk_file): Complete rewrite.
39934 (open_envblk_file): Likewise.
39935 (cmd_info): Removed.
39936 (cmd_list): Likewise.
39937 (cmd_set): Likewise.
39938 (cmd_clear): Likewise.
39939 (list_variables): New function.
39940 (write_envblk): Likewise.
39941 (set_variables): Likewise.
39942 (unset_variables): Likewise.
39943 (main): Complete rewrite.
39945 * commands/loadenv.c (buffer): Removed.
39946 (envblk): Likewise.
39947 (open_envblk_file): New function.
39948 (read_envblk_file): Complete rewrite.
39949 (grub_cmd_load_env): Likewise.
39950 (grub_cmd_list_env): Likewise.
39951 (struct blocklist): New struct.
39952 (free_blocklists): New function.
39953 (check_blocklists): Likewise.
39954 (write_blocklists): Likewise.
39955 (grub_cmd_save_env): Complete rewrite.
39957 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39958 a plain text signature.
39959 (GRUB_ENVBLK_MAXLEN): Removed.
39960 (struct grub_envblk): Complete rewrite.
39961 (grub_envblk_find): Removed.
39962 (grub_envblk_insert): Likewise.
39963 (grub_envblk_open): New prototype.
39964 (grub_envblk_set): Likewise.
39965 (grub_envblk_delete): Put const to VALUE.
39966 (grub_envblk_iterate): Put const to NAME and VALUE.
39967 (grub_envblk_close): New prototype.
39968 (grub_envblk_buffer): New inline function.
39969 (grub_envblk_size): Likewise.
39971 * lib/envblk.c: Include grub/mm.h.
39972 (grub_env_find): Removed.
39973 (grub_envblk_open): New function.
39974 (grub_envblk_close): Likewise.
39975 (escaped_value_len): Likewise.
39976 (find_next_line): Likewise.
39977 (grub_envblk_insert): Removed.
39978 (grub_envblk_set): New function.
39979 (grub_envblk_delete): Complete rewrite.
39980 (grub_envblk_iterate): Likewise.
39982 2009-03-28 Robert Millan <rmh@aybabtu.com>
39984 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
39985 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
39986 variables. Use 16-bit loader.
39987 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
39989 * kern/i386/loader.S (grub_linux_boot): Rename to ...
39990 (grub_linux16_boot): ... this. Update all users.
39991 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
39992 (grub_linux_boot): ... this. Update all users.
39994 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39995 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
39996 commands to `linux16' and `initrd16'.
39997 (GRUB_MOD_FINI(linux)): Rename to ...
39998 (GRUB_MOD_FINI(linux16)): ... this.
40000 2009-03-24 Pavel Roskin <proski@gnu.org>
40002 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40003 not just for compilation.
40005 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40007 Move multiboot helper out of kernel
40009 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40010 `loader/i386/multiboot_helper.S'.
40011 * conf/i386-coreboot.rmk: Likewise
40012 * conf/i386-ieee1275.rmk: Likewise
40014 * kern/i386/loader.S: Move multiboot helpers from here...
40015 * loader/i386/multiboot_helper.S: ...moved here
40016 * include/grub/i386/loader.h: Move declarations of multiboot
40017 helpers from here...
40018 * include/grub/i386/multiboot.h: ...moved here
40019 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40021 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40023 * kern/env.c (grub_env_context_open): Added an argument to specify
40024 whether a new context inherits exported variables from current
40025 one. This is useful when making a sandbox to interpret a config
40027 All callers updated.
40029 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40031 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40033 * kern/env.c (grub_env_context_close): Fix memory leaks.
40035 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40037 * normal/main.c (grub_normal_execute): Added an argument
40038 BATCH to specify if an interactive interface should be provided
40039 after reading a config file.
40040 All callers updated.
40041 (read_command_list): Prevent being executed twice.
40042 (read_fs_list): Likewise.
40044 * include/grub/normal.h (grub_normal_execute): Updated the
40047 2009-03-22 Pavel Roskin <proski@gno.org>
40049 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40051 * kern/i386/pc/startup.S: Likewise.
40052 * kern/i386/efi/startup.S: Likewise.
40053 * kern/i386/ieee1275/startup.S: Likewise.
40054 * kern/i386/coreboot/startup.S: Likewise.
40055 * kern/x86_64/efi/startup.S: Likewise.
40057 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40058 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40059 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40061 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40063 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40065 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40067 Use vaddr of correct segment for entry_point.
40069 2009-03-21 Bean <bean123ch@gmail.com>
40071 * commands/blocklist.c: Add include file <grub/command.h>, remove
40072 <grub/normal.h> and <grub/arg.h>.
40073 (grub_cmd_blocklist): Use the new command interface.
40074 (GRUB_MOD_INIT): Likewise.
40075 (GRUB_MOD_FINI): Likewise.
40076 * commands/boot.c: Likewise.
40077 * commands/cat.c: Likewise.
40078 * commands/cmp.c: Likewise.
40079 * commands/configfile.c: Likewise.
40080 * commands/crc.c: Likewise.
40081 * commands/echo.c: Likewise.
40082 * commands/halt.c: Likewise.
40083 * commands/handler.c: Likewise.
40084 * commands/hdparm.c: Likewise.
40085 * commands/help.c: Likewise.
40086 * commands/hexdump.c: Likewise.
40087 * commands/loadenv.c: Likewise.
40088 * commands/ls.c: Likewise.
40089 * commands/lsmmap.c: Likewise.
40090 * commands/lspci.c: Likewise.
40091 * commands/loadenv.c: Likewise.
40092 * commands/read.c: Likewise.
40093 * commands/reboot.c: Likewise.
40094 * commands/search.c: Likewise.
40095 * commands/sleep.c: Likewise.
40096 * commands/test.c: Likewise.
40097 * commands/usbtest.c: Likewise.
40098 * commands/videotest.c: Likewise.
40099 * commands/i386/cpuid.c: Likewise.
40100 * commands/i386/pc/halt.c: Likewise.
40101 * commands/i386/pc/play.c: Likewise.
40102 * commands/i386/pc/pxecmd.c: Likewise.
40103 * commands/i386/pc/vbeinfo.c: Likewise.
40104 * commands/i386/pc/vbetest.c: Likewise.
40105 * commands/ieee1275/suspend.c: Likewise.
40106 * disk/loopback.c: Likewise.
40107 * font/font_cmd.c: Likewise.
40108 * hello/hello.c: Likewise.
40109 * loader/efi/appleloader.c: Likewise.
40110 * loader/efi/chainloader.c: Likewise.
40111 * loader/i386/bsd.c: Likewise.
40112 * loader/i386/efi/linux.c: Likewise.
40113 * loader/i386/ieee1275/linux.c: Likewise.
40114 * loader/i386/linux.c: Likewise.
40115 * loader/i386/pc/chainloader.c: Likewise.
40116 * loader/i386/pc/linux.c: Likewise.
40117 * loader/powerpc/ieee1275/linux.c: Likewise.
40118 * loader/multiboot_loader.c: Likewise.
40119 * term/gfxterm.c: Likewise.
40120 * term/i386/pc/serial.c: Likewise.
40121 * term/terminfo.c: Likewise.
40123 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40124 * term/i386/pc/vga.c: Likewise.
40125 * video/readers/jpeg.c: Likewise.
40126 * video/readers/png.c: Likewise.
40127 * video/readers/tga.c: Likewise.
40129 * util/grub-fstest (cmd_loopback): Removed.
40130 (cmd_blocklist): Likewise.
40131 (cmd_ls): Likewise.
40132 (grub_register_command): Likewise.
40133 (grub_unregister_command): Likewise.
40134 (execute_command): Use grub_command_find to locate command and execute
40137 * include/grub/efi/chainloader.h: Removed.
40138 * loader/efi/chainloader_normal.c: Likewise.
40139 * loader/i386/bsd_normal.c: Likewise.
40140 * loader/i386/pc/chainloader_normal.c: Likewise.
40141 * loader/i386/pc/multiboot_normal.c: Likewise.
40142 * loader/linux_normal.c: Likewise.
40143 * loader/multiboot_loader_normal.c: Likewise.
40144 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40146 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40147 and grub_register_command_p1.
40149 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40150 kern/command.c, lib/arg.c and commands/extcmd.c.
40151 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40152 (minicmd_mod_SOURCES): New variable.
40153 (minicmd_mod_CFLAGS): Likewise.
40154 (minicmd_mod_LDFLAGS): Likewise.
40155 (extcmd_mod_SOURCES): Likewise.
40156 (extcmd_mod_CFLAGS): Likewise.
40157 (extcmd_mod_LDFLAGS): Likewise.
40158 (boot_mod_SOURCES): Removed.
40159 (boot_mod_CFLAGS): Likewise.
40160 (boot_mod_LDFLAGS): Likewise.
40162 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40164 (kernel_img_HEADERS): Add command.h.
40165 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40166 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40168 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40169 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40170 remove the corresponding normal mode command.
40171 (normal_mod_SOURCES): Remove normal/arg.c.
40172 * conf/i386-coreboot.rmk: Likewise.
40173 * conf/i386-efi.rmk: Likewise.
40174 * conf/i386-ieee1275.rmk: Likewise.
40175 * conf/powerpc-ieee1275.rmk: Likewise.
40176 * conf/x86_64-efi.rmk: Likewise.
40178 * include/grub/arg.h: Move from here ...
40179 * include/grub/lib/arg.h: ... to here.
40181 * normal/arg.c: Move from here ...
40182 * lib/arg.c: ... to here.
40184 * commands/extcmd.c: New file.
40185 * commands/minicmd.c: Likewise.
40186 * include/grub/command.h: Likewise.
40187 * include/grub/extcmd.h: Likewise.
40188 * kern/command.c: Likewise.
40189 * kern/corecmd.c: Likewise.
40191 * kern/list.c (grub_list_iterate): Return int instead of void.
40192 (grub_list_insert): New function.
40193 (grub_prio_list_insert): Likewise.
40195 * kern/rescue.c (grub_rescue_command): Removed.
40196 (grub_rescue_command_list): Likewise.
40197 (grub_rescue_register_command): Likewise.
40198 (grub_rescue_unregister_command): Likewise.
40199 (grub_rescue_cmd_boot): Move to minicmd.c
40200 (grub_rescue_cmd_help): Likewise.
40201 (grub_rescue_cmd_info): Likewise.
40202 (grub_rescue_cmd_boot): Likewise.
40203 (grub_rescue_cmd_testload): Likewise.
40204 (grub_rescue_cmd_dump): Likewise.
40205 (grub_rescue_cmd_rmmod): Likewise.
40206 (grub_rescue_cmd_lsmod): Likewise.
40207 (grub_rescue_cmd_exit): Likewise.
40208 (grub_rescue_print_devices): Moved to corecmd.c.
40209 (grub_rescue_print_files): Likewise.
40210 (grub_rescue_cmd_ls): Likewise.
40211 (grub_rescue_cmd_insmod): Likewise.
40212 (grub_rescue_cmd_set): Likewise.
40213 (grub_rescue_cmd_unset): Likewise.
40214 (attempt_normal_mode): Use grub_command_find to get normal module.
40215 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40216 commands, remove grub_rescue_register_command calls.
40218 * normal/command.c (grub_register_command): Removed.
40219 (grub_unregister_command): Likewise.
40220 (grub_command_find): Likewise.
40221 (grub_iterate_commands): Likewise.
40222 (rescue_command): Likewise.
40223 (export_command): Moved to corecmd.c.
40224 (set_command): Removed.
40225 (unset_command): Likewise.
40226 (insmod_command): Likewise.
40227 (rmmod_command): Likewise.
40228 (lsmod_command): Likewise.
40229 (grub_command_init): Likewise.
40231 * normal/completion.c (iterate_command): Use cmd->prio to check for
40233 (complete_arguments): Use grub_extcmd_t structure to find options.
40234 (grub_normal_do_completion): Change function grub_iterate_commands to
40235 grub_command_iterate.
40237 * normal/execute.c (grub_script_execute_cmd): No need to parse
40240 * normal/main.c (grub_dyncmd_dispatcher): New function.
40241 (read_command_list): Register unload commands as dyncmd.
40242 (grub_cmd_normal): Use new command interface, register rescue,
40243 unregister normal at entry, register normal, unregister rescue at exit.
40245 * include/grub/list.h (grub_list_test_t): New type.
40246 (grub_list_iterate): Return int instead of void.
40247 (grub_list_insert): New function.
40248 (GRUB_AS_NAMED_LIST_P): New macro.
40249 (GRUB_AS_PRIO_LIST): Likewise.
40250 (GRUB_AS_PRIO_LIST_P): Likewise.
40251 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40252 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40253 (grub_prio_list): New structure.
40254 (grub_prio_list_insert): New function.
40255 (grub_prio_list_remove): New inline function.
40257 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40258 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40259 (GRUB_COMMAND_FLAG_MENU): Likewise.
40260 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40261 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40262 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40263 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40264 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40265 (grub_command): Likewise.
40266 (grub_register_command): Likewise.
40267 (grub_command_find): Likewise.
40268 (grub_iterate_commands): Likewise.
40269 (grub_command_init): Likewise.
40270 (grub_arg_parse): Likewise.
40271 (grub_arg_show_help): Likewise.
40273 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40274 (grub_rescue_unregister_command): Likewise.
40276 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40277 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40278 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40280 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40281 grub_rescue_cmd_initrd.
40282 * include/grub/i386/loader.h: Likewise.
40283 * include/grub/x86_64/loader.h: Likewise.
40285 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40287 2009-03-21 Bean <bean123ch@gmail.com>
40289 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40290 instead of stat in mingw environment.
40292 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40294 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40296 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40299 2009-03-21 Bean <bean123ch@gmail.com>
40301 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40302 out of range error.
40304 2009-03-18 Michel Dänzer <michel@daenzer.net>
40306 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40307 checking inode flags for EXT4_EXTENTS_FLAG.
40309 2009-03-18 Robert Millan <rmh@aybabtu.com>
40311 * loader/i386/linux.c: Include `<grub/video.h>' and
40312 `<grub/i386/pc/vbe.h>'..
40313 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40314 (grub_linux32_boot): Attempt to configure video settings with
40315 grub_linux_setup_video().
40316 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40317 to avoid grub_console_fini() which would step out of graphical mode
40320 2009-03-14 Robert Millan <rmh@aybabtu.com>
40322 Fix build on powerpc.
40323 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40325 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40327 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40328 background image command.
40330 2009-03-12 Colin D Bennett <colin@gibibit.com>
40332 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40333 (grub_gfxterm_putchar): Extract pairs of identical calls to
40334 draw_cursor out of conditional blocks.
40336 2009-03-11 Pavel Roskin <proski@gnu.org>
40338 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40339 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40341 2009-03-11 Robert Millan <rmh@aybabtu.com>
40343 * loader/i386/multiboot_elfxx.c
40344 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40346 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40348 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40351 2009-03-11 Robert Millan <rmh@aybabtu.com>
40353 * loader/i386/multiboot.c (code_size): New variable.
40354 (grub_multiboot): Define offsets by adding to `code_size' rather
40355 than subtracting from `grub_multiboot_payload_size'. Provide
40356 4-byte alignment to MBI and others by increasing
40357 `boot_loader_name_length' appropriately.
40359 * loader/i386/multiboot_elfxx.c
40360 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40362 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40364 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40367 2009-03-08 Robert Millan <rmh@aybabtu.com>
40369 Make loader/i386/linux.c usable on i386-pc again.
40371 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40373 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40376 2009-03-07 Bean <bean123ch@gmail.com>
40378 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40381 2009-03-06 Robert Millan <rmh@aybabtu.com>
40383 Fix display issue on terminals with screen size other than 80x25
40384 (e.g. gfxterm with resolution higher than 640x480).
40386 * normal/main.c (grub_normal_init_page): Display title text in a
40387 position relative to the center of the terminal instead of relying
40388 on a hardcoded offset.
40390 2009-03-04 Robert Millan <rmh@aybabtu.com>
40392 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40395 * Makefile.in (host_kernel): New variable.
40396 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40397 scripts instead of just the windows one.
40398 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40400 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40402 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40404 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40405 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40406 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40408 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40409 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40411 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40413 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40414 or if there's no space for the disk label and print the partition number on a
40417 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40419 * util/misc.c: Include <time.h>.
40420 (grub_millisleep): New function.
40422 2009-03-04 Bean <bean123ch@gmail.com>
40424 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40425 another option -mno-red-zone.
40427 * commands/handler.c: Change module description.
40429 * kern/handler.c: Add missing space at the end of description line.
40431 * kern/list.c: Likewise.
40433 2009-03-03 Robert Millan <rmh@aybabtu.com>
40435 Move more components to the relocation area, and fix mbi pointer
40436 handling to use the destination rather than the origin (thanks to
40437 Vladimir Serbinenko for spotting).
40439 * loader/i386/multiboot.c (mbi_dest): New variable.
40440 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40441 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40444 2009-03-01 Bean <bean123ch@gmail.com>
40446 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40447 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40448 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40449 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40451 * loader/i386/efi/linux.c (acpi_guid): New variable.
40452 (acpi_guid): Likewise.
40453 (EBDA_SEG_ADDR): New constant.
40454 (LOW_MEM_ADDR): Likewise.
40455 (FAKE_EBDA_SEG): Likewise.
40456 (fake_bios_data): New function.
40457 (grub_linux_boot): Call fake_bios_data.
40459 2009-03-01 Bean <bean123ch@gmail.com>
40461 * commands/terminal.c: Removed.
40463 * commands/handler.c: New file.
40465 * include/grub/list.h: Likewise.
40467 * include/grub/handler.h: Likewise.
40469 * kern/list.c: Likewise.
40471 * kern/handler.c: Likewise.
40473 * kern/term.h: Include header file <grub/handler.h>.
40474 (grub_term_input): Move next field to the beginning.
40475 (grub_term_output): Likewise.
40476 (grub_term_input_class): New variable.
40477 (grub_term_output_class): Likewise.
40478 (grub_term_register_input): Changed to inline function.
40479 (grub_term_register_output): Likewise.
40480 (grub_term_unregister_input): Likewise.
40481 (grub_term_unregister_output): Likewise.
40482 (grub_term_set_current_input): Likewise.
40483 (grub_term_set_current_output): Likewise.
40484 (grub_term_get_current_input): Likewise.
40485 (grub_term_get_current_output): Likewise.
40486 (grub_term_iterate_input): Removed.
40487 (grub_term_iterate_output): Likewise.
40489 * kern/term.c (grub_term_list_input): Removed.
40490 (grub_term_list_output): Likewise.
40491 (grub_term_input_class): New variable.
40492 (grub_term_output_class): Likewise.
40493 (grub_cur_term_input): Change variable as macro.
40494 (grub_cur_term_output): Likewise.
40495 (grub_term_register_input): Removed.
40496 (grub_term_register_output): Likewise.
40497 (grub_term_unregister_input): Likewise.
40498 (grub_term_unregister_output): Likewise.
40499 (grub_term_set_current_input): Likewise.
40500 (grub_term_set_current_output): Likewise.
40501 (grub_term_iterate_input): Likewise.
40502 (grub_term_iterate_output): Likewise.
40503 (grub_term_get_current_input): Likewise.
40504 (grub_term_get_current_output): Likewise.
40506 * util/grub-editenv.c: Include header file <grub/handler.h>.
40507 (grub_term_get_current_input): Removed.
40508 (grub_term_get_current_output): Likewise.
40509 (grub_term_input_class): New variable.
40510 (grub_term_output_class): Likewise.
40512 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40513 (grub_term_get_current_output): Likewise.
40514 (grub_term_input_class): New variable.
40515 (grub_term_output_class): Likewise.
40517 * util/grub-probe.c (grub_term_get_current_input): Removed.
40518 (grub_term_get_current_output): Likewise.
40519 (grub_term_input_class): New variable.
40520 (grub_term_output_class): Likewise.
40522 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40523 (grub_term_get_current_output): Likewise.
40524 (grub_term_input_class): New variable.
40525 (grub_term_output_class): Likewise.
40527 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40528 (terminal_mod_SOURCES): Likewise.
40529 (terminal_mod_CFLAGS): Likewise.
40530 (terminal_mod_LDFLAGS): Likewise.
40532 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40534 (kernel_img_SOURCES): Add list.c and handler.c.
40535 (kernel_img_HEADERS): Add list.h and handler.h.
40537 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40539 (kernel_mod_SOURCES): Add list.c and handler.c.
40540 (kernel_mod_HEADERS): Add list.h and handler.h.
40542 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40544 (kernel_elf_SOURCES): Add list.c and handler.c.
40545 (kernel_elf_HEADERS): Add list.h and handler.h.
40547 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40549 (kernel_elf_SOURCES): Add list.c and handler.c.
40550 (kernel_elf_HEADERS): Add list.h and handler.h.
40552 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40554 (kernel_mod_SOURCES): Add list.c and handler.c.
40555 (kernel_mod_HEADERS): Add list.h and handler.h.
40557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40559 (kernel_elf_SOURCES): Add list.c and handler.c.
40560 (kernel_elf_HEADERS): Add list.h and handler.h.
40562 2009-02-27 Robert Millan <rmh@aybabtu.com>
40564 Factorize elf32 / elf64 code in Multiboot loader. This will
40565 prevent it from getting out of sync again.
40567 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40568 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40569 grub_multiboot_load_elf64): Move from here ...
40570 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40571 grub_multiboot_load_elf): ... to here (new file).
40573 2009-02-27 Robert Millan <rmh@aybabtu.com>
40575 * util/grub.d/10_linux.in: Rename "single-user mode" to
40578 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40580 Don't leak in SCSI code.
40581 * disk/scsi.c (grub_scsi_close): free `scsi'.
40583 2009-02-27 Robert Millan <rmh@aybabtu.com>
40585 * loader/i386/pc/multiboot.c: Move from here ...
40586 * loader/i386/multiboot.c: ... to here. Update all users.
40588 2009-02-27 Robert Millan <rmh@aybabtu.com>
40590 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40591 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40593 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40595 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40598 2009-02-27 Robert Millan <rmh@aybabtu.com>
40600 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40601 `0x' qualifier as 0 when base is specified as parameter).
40603 2009-02-24 Bean <bean123ch@gmail.com>
40605 * configure.ac: Check for -mcmodel=large in x86_64 target.
40607 * include/grub/efi/api.h (efi_call_10): New macro.
40608 (efi_wrap_10): New function.
40610 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40611 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40612 (GRUB_PE32_REL_BASED_LOW): Likewise.
40613 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40614 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40615 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40616 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40617 (GRUB_PE32_REL_BASED_REL): Likewise.
40618 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40619 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40620 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40622 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40625 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40626 (efi_wrap_10): New function.
40628 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40630 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40631 MB/MBP model (NV chipset).
40632 (devdata_devs): Add devpath_5 to the list.
40634 * load/i386/efi/linux.c (video_base): Remove variable.
40635 (RGB_MASK): New macro.
40636 (RGB_MAGIC): Likewise.
40637 (LINE_MIN): Likewise.
40638 (LINE_MAX): Likewise.
40639 (FBTEST_STEP): Likewise.
40640 (FBTEST_COUNT): Likewise.
40641 (fb_list): New variable.
40642 (grub_find_video_card): Remove function.
40643 (find_framebuf): New function.
40644 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40647 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40648 problem for x86_64.
40650 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40652 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40654 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40657 2009-02-22 Robert Millan <rmh@aybabtu.com>
40659 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40660 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40661 in our relocation, instead of using it directly from heap. Also
40662 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40664 2009-02-21 Robert Millan <rmh@aybabtu.com>
40666 Implement USB keyboard support (based on patch by Marco Gerards)
40668 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40669 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40670 (usb_keyboard_mod_LDFLAGS): New variables.
40672 * term/usb_keyboard.c: New file.
40674 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40676 Corrected wrong declaration
40678 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40680 2009-02-14 Christian Franke <franke@computer.org>
40682 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40683 (grub_lspci_iter): Print class code and programming interface byte.
40685 2009-02-14 Christian Franke <franke@computer.org>
40687 * gendistlist.sh: Ignore `.svn' directories.
40689 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40691 * fs/fat.c: Add 2009 to Copyright line.
40693 2009-02-14 Christian Franke <franke@computer.org>
40695 * commands/hdparm.c: New file. Provides `hdparm' command
40696 which sends ATA commands via grub_disk_ata_pass_through ().
40698 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40700 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40701 and <grub/cpu/io.h> to include/grub/ata.h.
40702 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40703 (GRUB_CDROM_SECTOR_SIZE): Remove.
40704 (GRUB_ATA_*): Move to include/grub/ata.h.
40705 (GRUB_ATAPI_*): Likewise.
40706 (enum grub_ata_commands): Likewise.
40707 (enum grub_ata_timeout_milliseconds): Likewise.
40708 (struct grub_ata_device): Likewise.
40709 (grub_ata_regset): Likewise.
40710 (grub_ata_regget): Likewise.
40711 (grub_ata_regset2): Likewise.
40712 (grub_ata_regget2): Likewise.
40713 (grub_ata_check_ready): Likewise.
40714 (grub_ata_wait_not_busy): Remove static, exported in
40715 include/grub/ata.h.
40716 (grub_ata_wait_drq): Likewise.
40717 (grub_ata_pio_read): Likewise.
40719 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40720 function for hdparm.mod.
40722 * include/grub/ata.h: New file, contains declarations from
40724 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40726 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40727 (grub_disk_ata_pass_through): New exported variable.
40729 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40731 2009-02-13 Colin D Bennett <colin@gibibit.com>
40733 Support multiple fallback entries, and provide an API to support
40734 executing default+fallback menu entries. Renamed the `terminal' menu
40737 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40738 variable declaration.
40739 (grub_menu_execute_callback): New structure declaration.
40740 (grub_menu_execute_callback_t): New typedef.
40741 (grub_menu_execute_with_fallback): New function declaration.
40742 (grub_menu_get_entry): Likewise.
40743 (grub_menu_get_timeout): Likewise.
40744 (grub_menu_set_timeout): Likewise.
40746 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40748 * normal/menu.c (grub_wait_after_message): Moved to
40749 `normal/menu_text.c'.
40750 (draw_border): Likewise.
40751 (print_message): Likewise.
40752 (print_entry): Likewise.
40753 (print_entries): Likewise.
40754 (grub_menu_init_page): Likewise.
40755 (get_entry_number): Likewise.
40756 (print_timeout): Likewise.
40757 (run_menu): Likewise.
40758 (grub_menu_execute_entry): Likewise.
40759 (show_text_menu): Likewise.
40760 (get_and_remove_first_entry_number): New function.
40761 (grub_menu_execute_with_fallback): Likewise.
40762 (get_entry): Renamed to ...
40763 (grub_menu_get_entry): .. this and made it global.
40764 (get_timeout): Renamed to ...
40765 (grub_menu_get_timeout): ... this and made it global.
40766 (set_timeout): Renamed to ...
40767 (grub_menu_set_timeout): ... this and made it global.
40768 (grub_normal_terminal_menu_viewer): Renamed to ...
40769 (grub_normal_text_menu_viewer): ... this.
40771 * normal/menu_text.c: New file. Extracted text-menu-specific code
40772 from normal/menu.c.
40774 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40775 (normal_mod_SOURCES): Likewise.
40777 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40778 (normal_mod_SOURCES): Likewise.
40780 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40781 (normal_mod_SOURCES): Likewise.
40783 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40784 (normal_mod_SOURCES): Likewise.
40786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40787 (normal_mod_SOURCES): Likewise.
40789 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40790 (normal_mod_SOURCES): Likewise.
40792 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40793 (normal_mod_SOURCES): Likewise.
40795 2009-02-11 Robert Millan <rmh@aybabtu.com>
40797 * util/grub.d/00_header.in: Update old reference to `font' command.
40799 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40801 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40803 Based on patch from Javier Martín.
40805 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40807 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40808 to avoid false positives with FAT.
40809 (grub_fstest_SOURCES): Likewise.
40810 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40811 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40813 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40814 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40815 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40817 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40819 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40820 bpb.version_specific.fat12_or_fat16.fstype and
40821 bpb.version_specific.fat32.fstype.
40823 2009-02-08 Robert Millan <rmh@aybabtu.com>
40825 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40827 2009-02-08 Robert Millan <rmh@aybabtu.com>
40829 * Makefile.in (host_os, host_cpu): New variables.
40830 (target_os): Remove. Update all users.
40832 2009-02-08 Marco Gerards <marco@gnu.org>
40834 * Makefile.in (enable_grub_emu_usb): New variable.
40835 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40836 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40837 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40838 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40839 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40840 `usbtest.mod' and `usbms.mod'.
40841 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40842 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40843 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40844 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40845 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40848 * disk/usbms.c: New file.
40850 * include/grub/usb.h: Likewise.
40852 * include/grub/usbtrans.h: Likewise.
40854 * include/grub/usbdesc.h: Likewise.
40856 * bus/usb/usbtrans.c: Likewise.
40858 * bus/usb/ohci.c: Likewise.
40860 * bus/usb/uhci.c: Likewise.
40862 * bus/usb/usbhub.c: Likewise.
40864 * bus/usb/usb.c: Likewise.
40866 * commands/usbtest.c: Likewise.
40868 * util/usb.c: Likewise.
40870 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40872 * configure.ac: Test for libusb presence.
40874 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40876 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40878 * kern/mm.c: Add more comments.
40880 2009-02-08 Robert Millan <rmh@aybabtu.com>
40882 Patch from Javier Martín.
40883 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40884 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40886 2009-02-08 Robert Millan <rmh@aybabtu.com>
40888 * fs/cpio.c: Split tar functionality to ...
40889 * fs/tar.c: ... here (new file). Update all users.
40891 2009-02-07 Robert Millan <rmh@aybabtu.com>
40893 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40894 backward-incompatible features.
40896 Based on patch from Javier Martín, with some adjustments.
40898 2009-02-07 Michael Scherer <misc@mandriva.org>
40900 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40902 2009-02-07 Robert Millan <rmh@aybabtu.com>
40904 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40905 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40906 after the RAID stuff.
40908 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40910 Fixes problem when running vbetest command as reported by
40911 Vladimir Serbinenko <phcoder@gmail.com>.
40913 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40915 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40917 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40918 /dev/md/NpN style mdraid devices.
40920 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40922 * util/unifont2pff.rb: Remove.
40924 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40926 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40929 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40931 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40932 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40933 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40934 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40936 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40937 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40939 2009-02-02 Christian Franke <franke@computer.org>
40941 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40943 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40945 * INSTALL: Note that we now require at least autoconf 2.59 and
40946 that LZO is optional.
40948 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40950 Base on patch on bug #24154 created by Tomas Tintera
40951 <trosos@seznam.cz>.
40953 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40955 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40957 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40958 <bero@arklinux.org>.
40960 * normal/parser.y (script_init): Add missing semicolon.
40962 2009-01-31 Colin D Bennett <colin@gibibit.com>
40964 * normal/main.c: Add include to grub/menu_viewer.h.
40965 (free_menu_entry_classes): Added.
40966 (grub_normal_menu_addentry): Added class property handling.
40967 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40968 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40970 * normal/menu_viewer.c: New file.
40972 * normal/menu.c (run_menu_entry): Renamed to ...
40973 (grub_menu_execute_entry): ... this and made it as global.
40974 (grub_menu_run): Renamed to ...
40975 (show_text_menu): ... this and made it local.
40976 (show_text_menu): Adapt to new function names.
40977 (grub_normal_terminal_menu_viewer): New global variable.
40979 * include/grub/menu.h: New file.
40981 * include/grub/menu_viewer.h: New file.
40983 * include/grub/normal.h: Added include to grub/menu.h.
40984 (grub_menu_entry): Moved to include/grub/menu.h.
40985 (grub_menu_entry_t): Likewise.
40986 (grub_menu): Likewise.
40987 (grub_menu_t): Likewise.
40988 (grub_normal_terminal_menu_viewer): Added.
40989 (grub_menu_execute_entry): Likewise.
40990 (grub_menu_run): Removed.
40992 * DISTLIST: Added include/grub/menu.h.
40993 Added include/grub/menu_viewer.h.
40994 Added normal/menu_viewer.c.
40996 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
40998 * normal/execute.c (grub_script_execute_menuentry): Changed to use
40999 arglist for menutitle arguments.
41001 * normal/main.c (grub_normal_menu_addentry): Likewise.
41003 * normal/parser.y (menuentry): Likewise.
41005 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41007 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41008 (grub_script_create_cmdmenu): Likewise.
41010 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41012 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41015 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41017 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41019 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41021 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41023 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41025 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41027 2009-01-30 Christian Franke <franke@computer.org>
41029 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41030 in option help text.
41032 2009-01-27 Pavel Roskin <proski@gnu.org>
41034 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41036 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41038 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41040 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41042 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41043 unregister function.
41045 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41047 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41049 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41051 * util/grub-mkfont.c (usage): Fix typo.
41053 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41055 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41057 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41059 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41061 * kern/misc.c (grub_strcasecmp): New function.
41062 (grub_strcasecmp): Use grub_size_t instead of int for length.
41064 * include/grub/misc.h: Update function prototypes.
41066 2009-01-26 Robert Millan <rmh@aybabtu.com>
41068 * configure.ac: Fix cross-compilation check.
41070 2009-01-22 Christian Franke <franke@computer.org>
41072 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41073 (precision) digit string. Allow `.format2' without `format1' (width).
41074 Limit input chars for `%s' output to `format2' if specified. This is
41075 compatible with standard printf ().
41077 2009-01-22 Christian Franke <franke@computer.org>
41079 * disk/ata.c (grub_ata_wait_status): Replace by ...
41080 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41081 other status bits may be invalid while BSY is asserted.
41082 (grub_ata_check_ready): New function.
41083 (grub_ata_cmd): Removed.
41084 (grub_ata_wait_drq): New function.
41085 (grub_ata_strncpy): Remove inline.
41086 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41087 and error check now done by grub_ata_wait_drq ().
41088 (grub_ata_pio_write): Likewise.
41089 (grub_atapi_identify): Set DEV before check for !BSY. Use
41090 grub_ata_wait_drq () to wait for data.
41091 (grub_ata_device_initialize): Add status register check to
41092 detect missing SATA slave devices. Add debug messages.
41093 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41094 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41095 transfer loop by grub_ata_pio_write ().
41096 (grub_ata_identify): Set DEV before check for !BSY. Use
41097 grub_ata_wait_drq () to wait for data.
41098 (grub_ata_setaddress): Set DEV before check for !BSY.
41099 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41100 read/write in one loop. Fix invalid command on write. Fix incomplete
41101 command on (size % batch) == 0. Add missing error check after write of
41102 last block. Add debug messages.
41103 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41105 2009-01-19 Christian Franke <franke@computer.org>
41107 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41108 (GRUB_ATAPI_IREASON_*): Likewise.
41109 (grub_ata_pio_write): Fix timeout error return.
41110 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41111 (grub_atapi_wait_drq): New function.
41112 (grub_atapi_packet): New parameter `size'.
41113 Use grub_atapi_wait_drq () and direct write instead of
41114 grub_ata_pio_write ().
41115 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41116 reads the number of bytes requested by the device for each DRQ
41118 (grub_atapi_write): Remove old implementation, return not
41119 implemented instead.
41121 2009-01-19 Christian Franke <franke@computer.org>
41123 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41124 of 512 to calculate data size.
41125 (grub_scsi_read12): Likewise.
41126 (grub_scsi_write10): Likewise.
41127 (grub_scsi_write12): Likewise.
41128 (grub_scsi_read): Adjust size according to blocksize.
41129 Add checks for invalid blocksize and unaligned transfer.
41131 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41133 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41135 * term/gfxterm.c (write_char): Fix background rendering for wide
41138 2009-01-19 Robert Millan <rmh@aybabtu.com>
41140 * config.guess: Update to latest version from config git.
41141 * config.sub: Likewise.
41143 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41145 * Makefile.in: Change font compilation to use new grub-mkfont instead
41148 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41149 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41150 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41151 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41152 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41153 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41154 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41155 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41156 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41158 2009-01-16 Christian Franke <franke@computer.org>
41160 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41161 (enum grub_ata_timeout_milliseconds): New enum.
41162 (grub_ata_wait_status): Add parameter milliseconds.
41163 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41164 recovery from timed-out commands.
41165 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41166 return grub_errno instead of REG_ERROR.
41167 (grub_ata_pio_write): Add parameter milliseconds.
41168 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41169 Pass milliseconds to grub_ata_wait_status () and
41170 grub_ata_pio_read ().
41171 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41172 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41173 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41174 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41175 It is not suitable for device detection, because DEV bit is ignored,
41176 the command may run too long, and not all devices set the signature
41178 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41179 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41180 Fix device selection, DEV bit must be set first to address the registers
41181 of the correct device.
41182 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41183 grub_ata_pio_read/write ().
41184 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41185 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41187 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41189 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41191 2009-01-13 Bean <bean123ch@gmail.com>
41193 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41195 2009-01-13 Bean <bean123ch@gmail.com>
41197 * Makefile.in: (enable_grub_mkfont): New variable.
41198 (freetype_cflags): Likewise.
41199 (freetype_libs): Likewise.
41201 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41202 (grub_mkfont_SOURCES): New variable.
41203 (grub_mkfont_CFLAGS): Likewise.
41204 (grub_mkfont_LDFLAGS): Likewise.
41206 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41207 library if `--enable-grub-mkfont' is requested.
41208 (enable_grub_mkfont): New variable.
41209 (freetype_cflags): Likewise.
41210 (freetype_libs): Likewise.
41212 * util/grub-mkfont.c: New file.
41214 2009-01-12 Christian Franke <franke@computer.org>
41216 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41217 mode check. Fix setting of compat_use[].
41219 2009-01-10 Robert Millan <rmh@aybabtu.com>
41221 Update a few copyright years which we forgot to do in 2008 (only for
41222 files whose changes made in 2008 were copyright-significant)
41224 * Makefile.in: Add 2008 to Copyright line.
41225 * disk/ieee1275/ofdisk.c: Likewise.
41226 * disk/efi/efidisk.c: Likewise.
41227 * kern/dl.c: Likewise.
41228 * kern/sparc64/ieee1275/init.c: Likewise.
41229 * kern/mm.c: Likewise.
41230 * kern/efi/mm.c: Likewise.
41231 * boot/i386/pc/boot.S: Likewise.
41232 * genfslist.sh: Likewise.
41233 * fs/iso9660.c: Likewise.
41234 * fs/hfs.c: Likewise.
41235 * fs/jfs.c: Likewise.
41236 * fs/minix.c: Likewise.
41237 * fs/ufs.c: Likewise.
41238 * gensymlist.sh.in: Likewise.
41239 * genkernsyms.sh.in: Likewise.
41240 * include/grub/misc.h: Likewise.
41241 * include/grub/types.h: Likewise.
41242 * include/grub/symbol.h: Likewise.
41243 * include/grub/elf.h: Likewise.
41244 * include/grub/kernel.h: Likewise.
41245 * include/grub/disk.h: Likewise.
41246 * include/grub/dl.h: Likewise.
41247 * include/grub/i386/linux.h: Likewise.
41248 * include/grub/i386/pc/biosdisk.h: Likewise.
41249 * include/grub/efi/api.h: Likewise.
41250 * include/grub/efi/pe32.h: Likewise.
41251 * include/grub/util/misc.h: Likewise.
41252 * normal/execute.c: Likewise.
41253 * normal/arg.c: Likewise.
41254 * normal/completion.c: Likewise.
41255 * normal/lexer.c: Likewise.
41256 * normal/parser.y: Likewise.
41257 * normal/misc.c: Likewise.
41258 * commands/i386/pc/vbeinfo.c: Likewise.
41259 * commands/hexdump.c: Likewise.
41260 * commands/terminal.c: Likewise.
41261 * commands/ls.c: Likewise.
41262 * commands/help.c: Likewise.
41263 * partmap/pc.c: Likewise.
41264 * loader/efi/chainloader.c: Likewise.
41265 * loader/multiboot_loader.c: Likewise.
41266 * loader/i386/pc/multiboot2.c: Likewise.
41267 * term/efi/console.c: Likewise.
41268 * term/i386/pc/serial.c: Likewise.
41269 * util/lvm.c: Likewise.
41270 * util/console.c: Likewise.
41271 * util/i386/efi/grub-mkimage.c: Likewise.
41272 * util/raid.c: Likewise.
41274 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41276 * commands/videotest.c: Removed include to grub/machine/memory.h.
41278 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41279 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41280 (video_mod_SOURCES): Removed.
41281 (video_mod_CFLAGS): Likewise.
41282 (video_mod_LDFLAGS): Likewise.
41283 (gfxterm_mod_SOURCES): Likewise.
41284 (gfxterm_mod_CFLAGS): Likewise.
41285 (gfxterm_mod_LDFLAGS): Likewise.
41286 (videotest_mod_SOURCES): Likewise.
41287 (videotest_mod_CFLAGS): Likewise.
41288 (videotest_mod_LDFLAGS): Likewise.
41289 (bitmap_mod_SOURCES): Likewise.
41290 (bitmap_mod_CFLAGS): Likewise.
41291 (bitmap_mod_LDFLAGS): Likewise.
41292 (tga_mod_SOURCES): Likewise.
41293 (tga_mod_CFLAGS): Likewise.
41294 (tga_mod_LDFLAGS): Likewise.
41295 (jpeg_mod_SOURCES): Likewise.
41296 (jpeg_mod_CFLAGS): Likewise.
41297 (jpeg_mod_LDFLAGS): Likewise.
41298 (png_mod_SOURCES): Likewise.
41299 (png_mod_CFLAGS): Likewise.
41300 (png_mod_LDFLAGS): Likewise.
41302 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41303 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41304 (video_mod_SOURCES): Added.
41305 (video_mod_CFLAGS): Likewise.
41306 (video_mod_LDFLAGS): Likewise.
41307 (videotest_mod_SOURCES): Likewise.
41308 (videotest_mod_CFLAGS): Likewise.
41309 (videotest_mod_LDFLAGS): Likewise.
41310 (bitmap_mod_SOURCES): Likewise.
41311 (bitmap_mod_CFLAGS): Likewise.
41312 (bitmap_mod_LDFLAGS): Likewise.
41313 (tga_mod_SOURCES): Likewise.
41314 (tga_mod_CFLAGS): Likewise.
41315 (tga_mod_LDFLAGS): Likewise.
41316 (jpeg_mod_SOURCES): Likewise.
41317 (jpeg_mod_CFLAGS): Likewise.
41318 (jpeg_mod_LDFLAGS): Likewise.
41319 (png_mod_SOURCES): Likewise.
41320 (png_mod_CFLAGS): Likewise.
41321 (png_mod_LDFLAGS): Likewise.
41322 (gfxterm_mod_SOURCES): Likewise.
41323 (gfxterm_mod_CFLAGS): Likewise.
41324 (gfxterm_mod_LDFLAGS): Likewise.
41326 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41327 grub/machine/console.h.
41329 2009-01-04 Jerone Young <jerone@gmail.com>
41331 Make on screen instructions clearer
41333 Based on patch created by Jidanni <jidanni@jidanni.org>
41335 * normal/menu.c: print clearer instructions on the screen
41337 2009-01-02 Colin D Bennett <colin@gibibit.com>
41341 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41342 build system and fixed gfxterm.c to work with different sized fonts.
41344 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41346 * configure: Re-generated.
41348 * DISTLIST: Removed font/manager.c.
41350 Added font/font_cmd.c.
41352 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41355 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41357 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41359 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41361 * normal/menu.c: Likewise.
41363 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41364 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41366 * include/grub/font.h: Replaced with new file.
41368 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41369 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41370 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41371 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41372 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41373 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41374 fg_red, fg_green, fg_blue, fg_alpha.
41375 (grub_video_adapter): Removed blit_glyph.
41376 (grub_video_blit_glyph): Removed.
41378 * font/manager.c: Removed file.
41380 * font/font.c: New file.
41382 * font/font_cmd.c: Likewise.
41384 * video/video.c (grub_video_blit_glyph): Removed.
41386 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41387 (grub_video_vbe_map_rgba): Likewise.
41388 (grub_video_vbe_unmap_color_int): Likewise.
41389 (grub_video_vbe_blit_glyph): Removed.
41390 (grub_video_vbe_adapter): Removed blit_glyph.
41392 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41393 (get_pixel): Likewise.
41394 (set_pixel): Likewise.
41396 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41398 * term/gfxterm.c: Adapted to new font engine.
41400 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41402 * term/i386/pc/vga.c: Likewise.
41404 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41406 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41408 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41410 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41412 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41414 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41416 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41418 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41420 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41422 * util/grub.d/00_header.in: Changed to use new loadfont command.
41424 * util/grub-mkconfig_lib.in: Changed font extension.
41426 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41428 * util/getroot.c (grub_util_get_grub_dev): Add support for
41429 /dev/md/dNNpNN style partitionable mdraid devices.
41431 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41433 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41434 at a time limit of the PXE TFTP API correctly.
41435 (grub_pxefs_close): Likewise.
41437 2008-11-29 Robert Millan <rmh@aybabtu.com>
41439 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41440 grub_ata_device_initialize() calls.
41442 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41444 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41446 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41448 2008-11-28 Robert Millan <rmh@aybabtu.com>
41450 Fix build on powerpc-ieee1275. Based on patch created by
41451 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41452 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41453 `kern/ieee1275/mmap.c'.
41454 * include/grub/powerpc/ieee1275/memory.h: New file.
41456 Provide grub-install on coreboot.
41457 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41458 (grub_install_SOURCES): New variable.
41459 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41460 usable on coreboot.
41462 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41464 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41465 to `grub_term_input_t'.
41466 (grub_term_get_current_output): Change return type to
41467 `grub_term_output_t'.
41469 2008-11-22 Robert Millan <rmh@aybabtu.com>
41471 Fix breakage on coreboot due to declaration mismatch.
41472 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41473 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41474 grub_vga_text_cls().
41476 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41477 comments. Avoid copying one more byte than necessary (just in case).
41479 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41480 to 0x200000 (avoids trouble with some OFW implementations, and matches
41481 with the one in Yaboot).
41482 Reported by Manoel Abranches
41484 2008-11-20 Robert Millan <rmh@aybabtu.com>
41486 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41487 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41489 * util/grub-mkconfig_lib.in (grub_warn): New function.
41490 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41491 warnings, to obtain consistent formatting.
41492 * util/grub.d/00_header.in: Likewise.
41493 * util/update-grub_lib.in: Likewise.
41495 * loader/i386/linux.c (allocate_pages): Fix a warning.
41496 Move comment text to `#error' stanza.
41498 Harmonize ieee1275's grub_available_iterate() with the generic
41499 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41500 build problem on i386-ieee1275):
41501 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41502 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41503 parameter `type'. Update all users of this function.
41504 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41505 `kern/ieee1275/mmap.c'.
41506 * kern/ieee1275/init.c
41507 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41509 (grub_machine_mmap_iterate): ... this.
41510 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41511 return type to `grub_err_t'. Update all implementations of this
41512 function prototype.
41513 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41516 Add `lsmmap' command (lists firmware-provided memory map):
41517 * commands/lsmmap.c: New file.
41518 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41519 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41521 * conf/powerpc-ieee1275.rmk: Likewise.
41522 * conf/i386-coreboot.rmk: Likewise.
41523 * conf/i386-ieee1275.rmk: Likewise.
41525 2008-11-19 Robert Millan <rmh@aybabtu.com>
41527 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41528 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41529 constraints to initrd allocation (based on code from
41530 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41531 for Linux to find it.
41533 2008-11-14 Robert Millan <rmh@aybabtu.com>
41535 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41536 order to cope with duplicate slashes.
41538 2008-11-14 Robert Millan <rmh@aybabtu.com>
41540 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41541 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41542 don't want to mess with lower memory, because it is used in the Linux
41545 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41546 an appropriate place in lower memory, between 0x10000 and 0x90000,
41547 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41548 is in our heap (probably as a result of it being corrupted during
41549 decompression). Add #error instance with comment to explain why this
41550 loader isn't currently usable on PC/BIOS.
41552 2008-11-14 Robert Millan <rmh@aybabtu.com>
41554 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41555 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41557 2008-11-12 Robert Millan <rmh@aybabtu.com>
41559 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41561 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41562 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41564 * include/grub/i386/pc/memory.h: ... to here.
41566 2008-11-12 Robert Millan <rmh@aybabtu.com>
41568 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41571 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41572 (grub_console_cur_color, grub_console_real_putchar)
41573 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41574 (grub_console_setcolorstate, grub_console_setcolor)
41575 (grub_console_getcolor): Move from here ...
41576 * include/grub/i386/vga_common.h: ... to here (new file).
41578 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41579 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41580 `<grub/i386/io.h>'.
41581 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41582 `<grub/i386/vga_common.h>'.
41584 2008-11-12 Robert Millan <rmh@aybabtu.com>
41586 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41587 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41588 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41590 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41591 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41593 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41594 grub_console_init() with call to grub_vga_text_init().
41595 (grub_machine_fini): Replace call to
41596 grub_console_fini() with call to grub_vga_text_fini() and
41597 grub_at_keyboard_fini().
41599 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41600 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41601 (grub_console_setcolorstate, grub_console_setcolor)
41602 (grub_console_getcolor): New function prototypes.
41604 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41605 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41606 (grub_vga_text_setcursor): Static-ize.
41607 (grub_vga_text_term): New structure.
41608 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41610 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41611 (grub_console_cur_color, grub_console_standard_color)
41612 (grub_console_normal_color, grub_console_highlight_color)
41613 (map_char, grub_console_putchar, grub_console_getcharwidth)
41614 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41615 (grub_console_getcolor): Move from here ...
41616 * term/i386/vga_common.c: ... to here (same function names).
41618 2008-11-12 Robert Millan <rmh@aybabtu.com>
41620 Use newly-added Multiboot support in coreboot.
41622 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41623 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41625 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41626 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41627 (codestart): Store the MBI in `startup_multiboot_info' when we're
41628 being loaded using Multiboot.
41630 * kern/i386/coreboot/init.c (grub_machine_init): Move
41631 grub_at_keyboard_init() call to beginning of function (useful for
41632 debugging). Call grub_machine_mmap_init() before attempting to use
41633 grub_machine_mmap_iterate().
41634 (grub_lower_mem, grub_upper_mem): Move from here ...
41635 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41638 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41639 function prototype.
41641 2008-11-12 Robert Millan <rmh@aybabtu.com>
41643 Fix a regression introduced by the at_keyboard.mod split. Because
41644 some terminals are default on some platforms and non-default on
41645 others, the first terminal being registered determines which is
41646 going to be default.
41648 * kern/term.c (grub_term_register_input): If this is the first
41649 terminal being registered, set it as the current one.
41650 (grub_term_register_output): Likewise.
41652 * term/efi/console.c (grub_console_init): Do not call
41653 grub_term_set_current_output() or grub_term_set_current_input().
41654 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41655 * term/i386/pc/console.c (grub_console_init): Likewise.
41656 (grub_console_fini): Do not call grub_term_set_current_input()
41657 (but leave grub_term_set_current_output() to restore text mode).
41659 2008-11-10 Robert Millan <rmh@aybabtu.com>
41661 * util/grub.d/00_header.in: Add backward compatibility check for
41662 versions of terminal.mod that don't understand `terminal_input' or
41665 2008-11-09 Robert Millan <rmh@aybabtu.com>
41667 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41668 `terminal_input' / `terminal_output', not `terminal'.
41670 2008-11-08 Robert Millan <rmh@aybabtu.com>
41672 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41673 (DISTCLEANFILES): Add `build_env.mk'.
41675 2008-11-08 Robert Millan <rmh@aybabtu.com>
41677 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41678 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41679 members. Update all users.
41680 * util/console.c (grub_ncurses_term): Split in ...
41681 (grub_ncurses_term_input): ... this, and ...
41682 (grub_ncurses_term_output): ... this. Update all users.
41683 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41685 2008-11-08 Robert Millan <rmh@aybabtu.com>
41687 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41688 (PKGDATA): Add $(pkgdata_SRCDIR).
41689 (pkglib_BUILDDIR): New variable.
41690 (pkgdata_SRCDIR): New variable.
41691 (build_env.mk): New target.
41692 (include_DATA): New variable.
41693 (install-local): Install $(include_DATA) files in $(includedir).
41695 2008-11-07 Pavel Roskin <proski@gnu.org>
41697 * gendistlist.sh: Use C locale for sorting to ensure consistent
41698 output on all systems.
41700 * util/grub.d/00_header.in: Remove incorrect space before
41703 2008-11-07 Robert Millan <rmh@aybabtu.com>
41705 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41707 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41708 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41709 (based on find_multi_boot1_header).
41710 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41711 using find_multi_boot2_header(), and abort if neither Multiboot or
41712 Multiboot headers were found.
41714 2008-11-07 Robert Millan <rmh@aybabtu.com>
41716 Modularize at_keyboard.mod:
41718 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41719 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41720 (at_keyboard_mod_LDFLAGS): New variables.
41722 Actual terminal split:
41724 * include/grub/term.h (struct grub_term): Split in ...
41725 (struct grub_term_input): ... this, and ...
41726 (struct grub_term_output): ... this. Update all users.
41727 (grub_term_set_current): Split in ...
41728 (grub_term_set_current_input): ... this, and ...
41729 (grub_term_set_current_output): ... this.
41730 (grub_term_get_current): Split in ...
41731 (grub_term_get_current_input): ... this, and ...
41732 (grub_term_get_current_output): ... this.
41733 (grub_term_register): Split in ...
41734 (grub_term_register_input): ... this, and ...
41735 (grub_term_register_output): ... this.
41736 (grub_term_unregister): Split in ...
41737 (grub_term_unregister_input): ... this, and ...
41738 (grub_term_unregister_output): ... this.
41739 (grub_term_iterate): Split in ...
41740 (grub_term_iterate_input): ... this, and ...
41741 (grub_term_iterate_output): ... this.
41743 * kern/term.c (grub_term_list): Split in ...
41744 (grub_term_list_input): ... this, and ...
41745 (grub_term_list_output): ... this. Update all users.
41746 (grub_cur_term): Split in ...
41747 (grub_cur_term_input): ... this, and ...
41748 (grub_cur_term_output): ... this. Update all users.
41749 (grub_term_set_current): Split in ...
41750 (grub_term_set_current_input): ... this, and ...
41751 (grub_term_set_current_output): ... this.
41752 (grub_term_get_current): Split in ...
41753 (grub_term_get_current_input): ... this, and ...
41754 (grub_term_get_current_output): ... this.
41755 (grub_term_register): Split in ...
41756 (grub_term_register_input): ... this, and ...
41757 (grub_term_register_output): ... this.
41758 (grub_term_unregister): Split in ...
41759 (grub_term_unregister_input): ... this, and ...
41760 (grub_term_unregister_output): ... this.
41761 (grub_term_iterate): Split in ...
41762 (grub_term_iterate_input): ... this, and ...
41763 (grub_term_iterate_output): ... this.
41765 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41766 a check for input and one for output (and only attempt to get keys
41767 from user when input works).
41769 * util/grub-probe.c (grub_term_get_current): Split in ...
41770 (grub_term_get_current_input): ... this, and ...
41771 (grub_term_get_current_output): ... this.
41772 * util/grub-fstest.c: Likewise.
41773 * util/i386/pc/grub-setup.c: Likewise.
41774 * util/grub-editenv.c: Likewise.
41776 Portability adjustments:
41778 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41779 `term/i386/pc/at_keyboard.c'.
41780 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41781 grub_keyboard_controller_init() (now handled by terminal .init).
41782 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41783 grub_at_keyboard_init().
41784 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41785 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41786 at_keyboard.mod via input terminal interface).
41787 * include/grub/i386/coreboot/console.h: Convert into a stub for
41788 `<grub/i386/pc/console.h>'.
41790 Migrate full terminals to new API:
41792 * term/efi/console.c (grub_console_term): Split into ...
41793 (grub_console_term_input): ... this, and ...
41794 (grub_console_term_output): ... this. Update all users.
41795 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41796 (grub_ofconsole_init): Split into ...
41797 (grub_ofconsole_init_input): ... this, and ...
41798 (grub_ofconsole_init_output): ... this.
41799 (grub_ofconsole_term): Split into ...
41800 (grub_ofconsole_term_input): ... this, and ...
41801 (grub_ofconsole_term_output): ... this. Update all users.
41802 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41803 (grub_serial_term_input): ... this, and ...
41804 (grub_serial_term_output): ... this. Update all users.
41805 * term/i386/pc/console.c (grub_console_term): Split into ...
41806 (grub_console_term_input): ... this, and ...
41807 (grub_console_term_output): ... this. Update all users.
41808 (grub_console_term_input): Only enable it on PC/BIOS platform.
41809 (grub_console_init): Remove grub_keyboard_controller_init() call.
41811 Migrate input terminals to new API:
41813 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41814 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41815 i386-specific anyway).
41816 (grub_console_checkkey): Rename to ...
41817 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41819 (grub_keyboard_controller_orig): New variable.
41820 (grub_console_getkey): Rename to ...
41821 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41823 (grub_keyboard_controller_init): Static-ize. Save original
41824 controller value so that it can be restored ...
41825 (grub_keyboard_controller_fini): ... here (new function).
41826 (grub_at_keyboard_term): New structure.
41827 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41830 Migrate output terminals to new API:
41832 * term/i386/pc/vga.c (grub_vga_term): Change type to
41833 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41834 members. Update all users.
41835 * term/gfxterm.c (grub_video_term): Change type to
41836 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41837 members. Update all users.
41838 * include/grub/i386/pc/console.h (grub_console_checkkey)
41839 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41842 Migrate `terminal' command and userland tools to new API:
41844 * commands/terminal.c (grub_cmd_terminal): Split into ...
41845 (grub_cmd_terminal_input): ... this, and ...
41846 (grub_cmd_terminal_output): ... this.
41847 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41848 `terminal_input' and `terminal_output'.
41849 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41850 `terminal_input' / `terminal_output' API.
41851 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41852 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41853 provided ${GRUB_TERMINAL}, convert it).
41855 2008-11-04 Robert Millan <rmh@aybabtu.com>
41857 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41859 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41861 2008-11-03 Bean <bean123ch@gmail.com>
41863 * kern/elf.c (grub_elf32_load): Revert to previous code.
41864 (grub_elf64_load): Likewise.
41866 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41868 2008-11-01 Robert Millan <rmh@aybabtu.com>
41870 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41871 (TARGET_CPPFLAGS): Likewise.
41872 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41874 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41876 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41878 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41880 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41881 addition of objects until the code is not going to be able to fail.
41883 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41885 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41886 (add a missing NULL check, and correct them by moving the pointer
41887 operations after the actual check).
41889 2008-10-29 Robert Millan <rmh@aybabtu.com>
41891 * util/i386/pc/grub-install.in: Handle empty string as output from
41892 make_system_path_relative_to_its_root().
41894 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41896 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41897 circular metadata worst case scenario. If the metadata is circular
41898 then copy the wrap in place.
41899 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41900 project lib/format_text/layout.h
41901 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41903 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41905 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41907 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41909 * util/update-grub_lib.in: Mention filename in warning message.
41911 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41913 * NEWS: Update for rename of update-grub to grub-mkconfig.
41915 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41917 * util/update-grub_lib.in: Copy to ...
41918 * util/grub-mkconfig_lib.in: ... this. Update all users.
41919 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41920 * util/update-grub.in: Rename to ...
41921 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41922 option. Add `--output' option to allow users to specify the generated
41923 configuration file. Default to stdout.
41924 (update_grub_dir): Rename to ...
41925 (grub_mkconfig_dir): ... this.
41926 (grub_cfg): Default to an empty string.
41927 * conf/common.rmk (update-grub): Rename to ...
41928 (grub-mkconfig): ... this.
41929 (update-grub_lib): Copy to ...
41930 (grub-mkconfig_lib): ... this.
41931 (update-grub_SCRIPTS): Copy to ...
41932 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41933 (update-grub_DATA): Rename to ...
41934 (grub-mkconfig_DATA): ... this.
41936 2008-09-28 Robert Millan <rmh@aybabtu.com>
41938 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41939 to `modified'. Add the real `created' field.
41940 (grub_iso9660_uuid): Use `modified' rather than `created' for
41941 constructing the UUID.
41943 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41945 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41946 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41948 2008-09-28 Bean <bean123ch@gmail.com>
41950 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41951 Thanks to Christian Franke for finding this bug.
41953 2008-09-25 Robert Millan <rmh@aybabtu.com>
41955 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41956 instances of grub_util_get_disk_name() (see previous commit).
41958 2008-09-25 Robert Millan <rmh@aybabtu.com>
41960 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41961 `util/i386/get_disk_name.c'.
41962 * conf/i386-efi.rmk: Likewise.
41963 * conf/x86_64-efi.rmk: Likewise.
41964 * conf/i386-coreboot.rmk: Likewise.
41965 * conf/i386-ieee1275.rmk: Likewise.
41966 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41967 `util/ieee1275/get_disk_name.c'.
41968 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41969 * util/ieee1275/get_disk_name.c: Remove file.
41970 * util/i386/get_disk_name.c: Remove file.
41971 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41972 "hd%d" for device.map entries, rather than using
41973 grub_util_get_disk_name().
41975 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41977 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
41979 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
41981 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41983 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
41985 (GRUB_TERM_PPAGE): Changed to 0x4900.
41987 2008-09-24 Robert Millan <rmh@aybabtu.com>
41989 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
41990 macros (they were i386-pc specific).
41991 * include/grub/sparc64/ieee1275/console.h: Likewise.
41992 * include/grub/efi/console.h: Likewise.
41994 2008-09-22 Bean <bean123ch@gmail.com>
41996 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
41997 resident and in attribute list.
41999 * include/grub/ntfs.h (BMP_LEN): Removed.
42001 2008-09-22 Bean <bean123ch@gmail.com>
42003 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42004 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42006 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42007 error occurs, as grub_disk_open will call grub_disk_close, which will
42008 call p->close (scsi).
42010 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42012 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42013 (AC_PREREQ): Bumped to 2.59.
42014 (AC_TRY_COMPILE): Replace obsolete macro with ...
42015 (AC_COMPILE_IFELSE): ... this.
42016 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42017 (AC_LINK_IFELSE): ... this.
42019 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42021 * autogen.sh: Add a call to `gendistlist.sh'.
42023 2008-09-19 Christian Franke <franke@computer.org>
42025 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42026 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42027 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42028 Export __enable_execute_stack() to modules.
42029 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42032 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42034 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42037 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42039 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42040 #include <grub/util/hostdisk.h>.
42042 2008-09-08 Robert Millan <rmh@aybabtu.com>
42044 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42045 segments when their filesz is zero (grub_file_read() interprets
42046 zero-size as "read until EOF", which results in memory corruption).
42047 Use `lowest_segment' rather than 0 for calculating the current
42048 segment load address.
42050 2008-09-08 Robert Millan <rmh@aybabtu.com>
42052 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42053 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42054 clobbered useful information.
42056 2008-09-08 Robert Millan <rmh@aybabtu.com>
42058 * include/grub/util/biosdisk.h: Move to ...
42059 * include/grub/util/hostdisk.h: ... here. Update all users.
42060 * util/biosdisk.c: Move to ...
42061 * util/hostdisk.c: ... here. Update all users.
42063 2008-09-07 Robert Millan <rmh@aybabtu.com>
42065 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42067 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42068 and length can be stored directly in the `mbi->mmap_addr' and
42069 `mbi->mmap_length' struct fields.
42071 2008-09-07 Robert Millan <rmh@aybabtu.com>
42073 * conf/i386.rmk: New file. Provides declaration for building
42075 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42076 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42078 Include `conf/i386.mk'.
42079 * conf/i386-efi.rmk: Likewise.
42080 * conf/x86_64-efi.rmk: Likewise.
42081 * conf/i386-coreboot.rmk: Likewise.
42082 * conf/i386-ieee1275.rmk: Likewise.
42084 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42086 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42087 Adds optimization support for BGR based modes.
42089 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42090 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42091 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42092 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42093 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42094 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42095 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42096 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42097 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42098 (grub_video_i386_vbeblit_index_index): Likewise.
42099 (grub_video_i386_vbeblit_replace_directN): Added.
42100 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42101 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42102 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42103 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42104 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42105 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42106 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42107 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42108 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42109 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42110 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42111 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42112 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42114 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42115 (grub_video_i386_vbefill_R8G8B8): Likewise.
42116 (grub_video_i386_vbefill_index): Likewise.
42117 (grub_video_i386_vbefill_direct32): Added.
42118 (grub_video_i386_vbefill_direct24): Likewise.
42119 (grub_video_i386_vbefill_direct16): Likewise.
42120 (grub_video_i386_vbefill_direct8): Likewise.
42122 * include/grub/video.h (grub_video_blit_format): Removed
42123 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42124 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42125 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42126 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42127 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42129 * video/video.c (grub_video_get_blit_format): Updated to use new
42130 blit formats. Added handling for 16 bit color modes.
42132 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42134 (common_blitter): Updated to use new blitters.
42136 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42138 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42139 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42140 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42141 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42142 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42143 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42145 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42146 (grub_video_i386_vbeblit_index_index): Likewise.
42147 (grub_video_i386_vbeblit_replace_directN): Added.
42148 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42149 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42150 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42151 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42152 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42153 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42154 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42155 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42156 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42157 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42158 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42159 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42160 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42162 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42163 (grub_video_i386_vbefill_R8G8B8): Likewise.
42164 (grub_video_i386_vbefill_index): Likewise.
42165 (grub_video_i386_vbefill_direct32): Added.
42166 (grub_video_i386_vbefill_direct24): Likewise.
42167 (grub_video_i386_vbefill_direct16): Likewise.
42168 (grub_video_i386_vbefill_direct8): Likewise.
42170 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42173 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42176 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42179 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42182 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42184 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42187 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42189 * fs/iso9660.c (grub_iso9660_date): New structure.
42190 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42191 (grub_iso9660_uuid): New function.
42193 2008-09-05 Bean <bean123ch@gmail.com>
42195 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42197 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42198 insensitive bit for names in Win32 and Win32 & DOS namespace.
42200 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42202 * include/grub/types.h (LONG_MAX): Likewise.
42204 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42206 * util/getroot.c: Include <config.h>.
42207 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42208 add support for /dev/md/N devices and handle LVM double dash escaping.
42210 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42212 * config.guess: Update to latest version from config git.
42213 * config.sub: Likewise.
42215 2008-09-03 Robert Millan <rmh@aybabtu.com>
42217 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42218 `disk->total_sectors'.
42220 2008-09-01 Colin D Bennett <colin@gibibit.com>
42222 * include/grub/normal.h: Fixed incorrect comment for
42223 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42225 2008-09-01 Colin D Bennett <colin@gibibit.com>
42227 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42228 values with defines.
42230 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42231 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42232 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42233 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42234 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42235 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42236 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42237 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42238 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42239 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42240 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42241 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42242 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42243 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42244 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42245 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42246 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42247 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42248 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42250 2008-08-31 Robert Millan <rmh@aybabtu.com>
42252 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42254 (grub_multiboot): Fix a few warnings.
42256 2008-08-31 Robert Millan <rmh@aybabtu.com>
42258 * loader/i386/pc/multiboot.c: Update comment not to say that
42259 boot_device support is unimplemented.
42261 2008-08-31 Robert Millan <rmh@aybabtu.com>
42263 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42264 or memory map support are unimplemented.
42266 2008-08-31 Colin D Bennett <colin@gibibit.com>
42268 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42270 2008-08-31 Colin D Bennett <colin@gibibit.com>
42272 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42273 total video memory in 'vbeinfo' output; show color format details for
42276 2008-08-30 Pavel Roskin <proski@gnu.org>
42278 * util/genmoddep.c: Remove for real this time.
42279 * DISTLIST: Remove util/genmoddep.c.
42281 2008-08-30 Robert Millan <rmh@aybabtu.com>
42283 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42284 as required by Multiboot spec (it was already 4-byte aligned, but
42287 2008-08-29 Pavel Roskin <proski@gnu.org>
42289 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42290 * kern/powerpc/ieee1275/startup.S: ... this.
42291 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42292 * DISTLIST: Likewise.
42294 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42295 grub/cpu/kernel.h. Add start label for consistency with other
42296 platforms. Add grub_prefix immediately after start. Add jump
42297 to the code after grub_prefix.
42298 * include/grub/powerpc/kernel.h: Provide valid values for
42299 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42301 2008-08-29 Bean <bean123ch@gmail.com>
42303 * configure.ac: Change host_os to cygwin for mingw.
42304 (asprintf): New check for function.
42306 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42307 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42309 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42310 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42311 sync, sleep and grub_util_get_disk_size for mingw.
42313 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42314 to get size in mingw.
42315 (open_device): Use flag O_BINARY if it's defined.
42316 (find_root_device): Add dummy code for mingw.
42318 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42319 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42320 (get_scsi_disk_name): Return 0 for mingw.
42322 * util/hostfs.c: #include <grub/util/misc.h>.
42323 (grub_hostfs_open): Use "rb" flag to open file, use
42324 grub_util_get_disk_size to get disk size for mingw.
42326 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42327 (asprintf): New function if HAVE_ASPRINTF is not set.
42328 (sync): New function for mingw.
42330 (grub_util_get_disk_size): Likewise.
42332 2008-08-28 Pavel Roskin <proski@gnu.org>
42334 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42337 2008-08-28 Robert Millan <rmh@aybabtu.com>
42339 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42341 2008-08-28 Robert Millan <rmh@aybabtu.com>
42343 Change find_grub_drive() syntax so it doesn't prevent it from
42344 detecting NULL names as errors.
42346 * util/biosdisk.c (find_grub_drive): Move free slot search code
42348 (find_free_slot): ... to here.
42349 (read_device_map): Use find_free_slot() to search for free slots.
42351 2008-08-27 Marco Gerards <marco@gnu.org>
42353 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42354 (scsi_mod_SOURCES): New variable.
42355 (scsi_mod_CFLAGS): Likewise
42356 (scsi_mod_LDFLAGS): Likewise.
42358 * disk/scsi.c: New file.
42360 * include/grub/scsi.h: Likewise.
42362 * include/grub/scsicmd.h: Likewise.
42364 * disk/ata.c: Include <grub/scsi.h>.
42365 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42367 (grub_ata_iterate): Skip ATAPI devices.
42368 (grub_ata_open): Only handle ATAPI devices.
42369 (struct grub_atapi_read): Removed.
42370 (grub_atapi_readsector): Likewise.
42371 (grub_ata_read): No longer handle ATAPI devices.
42372 (grub_ata_write): Likewise.
42373 (grub_atapi_iterate): New function.
42374 (grub_atapi_read): Likewise.
42375 (grub_atapi_write): Likewise.
42376 (grub_atapi_open): Likewise.
42377 (grub_atapi_close): Likewise.
42378 (grub_atapi_dev): New variable.
42379 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42380 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42382 * include/grub/disk.h (enum grub_disk_dev_id): Add
42383 `GRUB_DISK_DEVICE_SCSI_ID'.
42385 2008-08-26 Robert Millan <rmh@aybabtu.com>
42387 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42388 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42391 2008-08-23 Bean <bean123ch@gmail.com>
42393 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42394 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42395 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42396 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42398 (raid5rec_mod_SOURCES): New macro.
42399 (raid5rec_mod_CFLAGS): Likewise.
42400 (raid5rec_mod_LDFLAGS): Likewise.
42401 (raid6rec_mod_SOURCES): Likewise.
42402 (raid6rec_mod_CFLAGS): Likewise.
42403 (raid6rec_mod_LDFLAGS): Likewise.
42404 (mdraid_mod_SOURCES): Likewise.
42405 (mdraid_mod_CFLAGS): Likewise.
42406 (mdraid_mod_LDFLAGS): Likewise.
42407 (dm_nv_mod_SOURCES): Likewise.
42408 (dm_nv_mod_CFLAGS): Likewise.
42409 (dm_nv_mod_LDFLAGS): Likewise.
42411 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42412 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42413 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42415 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42416 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42418 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42420 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42422 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42424 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42426 * disk/raid5_recover.c: New file.
42428 * disk/raid6_recover.c: Likewise.
42430 * disk/mdraid_linux.c: Likewise.
42432 * disk/dmraid_nvidia.c: Likewise.
42434 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42437 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42438 calculate the size of raid device.
42439 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42440 different layout of raid5.
42441 (grub_raid_scan_device): Remove code specific to mdraid.
42442 (grub_raid_list): New variable.
42443 (free_array): New function.
42444 (grub_raid_register): Likewise.
42445 (grub_raid_unregister): Likewise.
42446 (grub_raid_rescan): Likewise.
42447 (GRUB_MOD_INIT): Don't iterate device here.
42448 (GRUB_MOD_FINI): Use free_array to release resource.
42450 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42451 (grub_raid5_recover_func_t): New function variable type.
42452 (grub_raid6_recover_func_t): Likewise.
42453 (grub_raid5_recover_func): New variable.
42454 (grub_raid6_recover_func): Likewise.
42455 (grub_raid_register): New function.
42456 (grub_raid_unregister): Likewise.
42457 (grub_raid_rescan): Likewise.
42458 (grub_raid_block_xor): Likewise.
42460 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42461 (CMD_CRC): New macro.
42463 (read_file): Handle device as well as file.
42464 (cmd_crc): New function.
42465 (fstest): Handle multiple disks.
42466 (options): Remove part, raw and long, add root and diskcount.
42467 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42468 (main): Find the first non option entry and ignore subsequent options,
42469 add handling for the new options, support multiple disks.
42471 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42473 2008-08-23 Bean <bean123ch@gmail.com>
42475 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42477 * genfslist.sh: Ignore kernel.mod.
42479 * genpartmaplist.sh: Likewise.
42481 2008-08-23 Robert Millan <rmh@aybabtu.com>
42483 * util/getroot.c (find_root_device): Skip anything that starts with
42484 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42486 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42488 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42489 * util/grub.d/00_header.in: Allow the administrator to change default
42490 gfxmode via ${GRUB_GFXMODE}.
42492 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42494 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42496 2008-08-21 Robert Millan <rmh@aybabtu.com>
42498 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42500 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42501 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42503 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42505 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42506 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42508 2008-08-19 Robert Millan <rmh@aybabtu.com>
42510 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42511 (struct grub_virtual_screen): Remove `cursor_color'.
42512 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42514 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42516 2008-08-18 Robert Millan <rmh@aybabtu.com>
42518 Unify (identical) linux_normal.c files.
42519 * loader/i386/efi/linux_normal.c: Move from here ...
42520 * loader/linux_normal.c: ... to here. Update all users.
42521 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42522 * loader/i386/ieee1275/linux_normal.c: Likewise.
42524 2008-08-18 Robert Millan <rmh@aybabtu.com>
42526 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42527 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42528 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42529 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42530 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42532 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42533 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42534 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42535 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42536 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42537 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42538 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42539 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42540 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42541 portably using grub_getxy().
42542 Replace `-EFI' with `-bzImage' in boot message.
42544 2008-08-17 Robert Millan <rmh@aybabtu.com>
42546 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42548 2008-08-17 Robert Millan <rmh@aybabtu.com>
42550 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42552 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42553 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42554 (grub_machine_mmap_iterate): New function declaration.
42555 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42557 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42560 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42561 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42562 Move e820 parsing from here ...
42563 * kern/i386/pc/mmap.c: New file.
42564 (grub_machine_mmap_iterate): ... to here.
42566 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42567 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42568 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42569 (grub_available_iterate): Redeclare to return `void', and redeclare
42570 its hook to use grub_uint64_t as addr and size parameters, and rename
42572 (grub_machine_mmap_iterate): ... this. Update all users.
42574 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42575 to make it more readable. Rename to ...
42576 (grub_machine_mmap_iterate): ... this.
42578 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42579 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42580 (grub_multiboot): Allocate an extra region after the payload, and fill
42581 it with a Multiboot memory map. Adjust a.out loader to calculate size
42582 with the extra space.
42583 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42584 with the extra space.
42586 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42588 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42590 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42592 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42593 mdate-sh to the list `find' searches for.
42594 * DISTLIST: Regenerated.
42596 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42598 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42599 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42600 genmoddep.awk, gensymlist.sh.in.
42601 (DISTDIRS): Add bus, docs, hook, lib.
42602 * DISTLIST: Regenerated.
42603 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42605 2008-08-16 Robert Millan <rmh@aybabtu.com>
42607 * disk/raid.c (grub_raid_init): Handle/report errors set by
42608 grub_device_iterate().
42609 * disk/lvm.c (grub_lvm_init): Likewise.
42611 2008-08-15 Bean <bean123ch@gmail.com>
42613 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42615 (datetime_mod_SOURCES): New macro.
42616 (datetime_mod_CFLAGS): Likewise.
42617 (datetime_mod_LDFLAGS): Likewise.
42618 (date_mod_SOURCES): Likewise.
42619 (date_mod_CFLAGS): Likewise.
42620 (date_mod_LDFLAGS): Likewise.
42621 (datehook_mod_SOURCES): Likewise.
42622 (datehook_mod_CFLAGS): Likewise.
42623 (datehook_mod_LDFLAGS): Likewise.
42625 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42627 (datetime_mod_SOURCES): New macro.
42628 (datetime_mod_CFLAGS): Likewise.
42629 (datetime_mod_LDFLAGS): Likewise.
42630 (date_mod_SOURCES): Likewise.
42631 (date_mod_CFLAGS): Likewise.
42632 (date_mod_LDFLAGS): Likewise.
42633 (datehook_mod_SOURCES): Likewise.
42634 (datehook_mod_CFLAGS): Likewise.
42635 (datehook_mod_LDFLAGS): Likewise.
42637 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42639 (datetime_mod_SOURCES): New macro.
42640 (datetime_mod_CFLAGS): Likewise.
42641 (datetime_mod_LDFLAGS): Likewise.
42642 (date_mod_SOURCES): Likewise.
42643 (date_mod_CFLAGS): Likewise.
42644 (date_mod_LDFLAGS): Likewise.
42645 (datehook_mod_SOURCES): Likewise.
42646 (datehook_mod_CFLAGS): Likewise.
42647 (datehook_mod_LDFLAGS): Likewise.
42649 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42651 (datetime_mod_SOURCES): New macro.
42652 (datetime_mod_CFLAGS): Likewise.
42653 (datetime_mod_LDFLAGS): Likewise.
42654 (date_mod_SOURCES): Likewise.
42655 (date_mod_CFLAGS): Likewise.
42656 (date_mod_LDFLAGS): Likewise.
42657 (datehook_mod_SOURCES): Likewise.
42658 (datehook_mod_CFLAGS): Likewise.
42659 (datehook_mod_LDFLAGS): Likewise.
42661 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42663 (datetime_mod_SOURCES): New macro.
42664 (datetime_mod_CFLAGS): Likewise.
42665 (datetime_mod_LDFLAGS): Likewise.
42666 (date_mod_SOURCES): Likewise.
42667 (date_mod_CFLAGS): Likewise.
42668 (date_mod_LDFLAGS): Likewise.
42669 (datehook_mod_SOURCES): Likewise.
42670 (datehook_mod_CFLAGS): Likewise.
42671 (datehook_mod_LDFLAGS): Likewise.
42673 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42675 * commands/date.c: New file.
42677 * hook/datehook.c: Likewise.
42679 * include/grub/lib/datetime.h: Likewise.
42681 * include/grub/i386/cmos.h: Likewise.
42683 * lib/datetime.c: Likewise.
42685 * lib/i386/datetime.c: Likewise.
42687 * lib/efi/datetime.c: Likewise.
42689 2008-08-14 Robert Millan <rmh@aybabtu.com>
42691 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42692 (grub_mkelfimage_SOURCES): New variable.
42693 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42695 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42696 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42697 * conf/powerpc-ieee1275.rmk: Likewise.
42698 * conf/i386-ieee1275.rmk: Likewise.
42700 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42701 * kern/i386/coreboot/init.c: Likewise.
42703 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42704 with `<grub/cpu/kernel.h>'.
42705 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42707 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42708 * kern/i386/coreboot/startup.S: Likewise.
42710 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42711 (GRUB_MOD_GAP): Remove.
42712 * include/grub/powerpc/kernel.h: New file.
42713 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42714 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42715 * include/grub/i386/kernel.h: New file.
42716 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42717 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42718 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42720 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42722 Use --directory when invoking grub_mkimage.
42724 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42725 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42726 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42727 and GRUB_KERNEL_CPU_PREFIX.
42729 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42731 * include/grub/err.h (grub_err_printf): New function prototype.
42732 * util/misc.c (grub_err_printf): New function.
42733 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42735 * kern/err.c (grub_print_error): Use grub_err_printf.
42737 2008-08-13 Robert Millan <rmh@aybabtu.com>
42739 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42741 2008-08-13 Robert Millan <rmh@aybabtu.com>
42743 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42746 2008-08-12 Robert Millan <rmh@aybabtu.com>
42748 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42749 of the relocation code from here ...
42750 (grub_multiboot): ... to here.
42751 (forward_relocator, backward_relocator): Move from here ...
42752 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42753 (grub_multiboot_backward_relocator): ... to here.
42754 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42755 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42756 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42757 (grub_multiboot_forward_relocator_end)
42758 (grub_multiboot_backward_relocator)
42759 (grub_multiboot_backward_relocator_end): New variables.
42761 2008-08-12 Bean <bean123ch@gmail.com>
42763 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42765 2008-08-11 Robert Millan <rmh@aybabtu.com>
42767 * kern/i386/linuxbios/startup.S: Move from here ...
42768 * kern/i386/coreboot/startup.S: ... to here.
42770 * kern/i386/linuxbios/init.c: Move from here ...
42771 * kern/i386/coreboot/init.c: ... to here.
42773 * kern/i386/linuxbios/table.c: Move from here ...
42774 * kern/i386/coreboot/mmap.c: ... to here.
42776 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42778 2008-08-11 Robert Millan <rmh@aybabtu.com>
42780 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42781 errors. Leave it to the upper layer to handle them.
42783 2008-08-09 Christian Franke <franke@computer.org>
42785 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42786 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42787 Install `grub.d/10_windows' only on Cygwin.
42788 * configure.ac: Add subst of `target_os'.
42789 Check `target_os' also before setting TARGET_OBJ2ELF.
42790 Add `--enable-grub-pe2elf'.
42792 2008-08-08 Robert Millan <rmh@aybabtu.com>
42794 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42795 (grub_last_time): Change type to grub_uint64_t.
42796 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42797 (grub_disk_close): Likewise.
42799 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42800 (run_menu): Migrate code from to using grub_get_time_ms().
42802 * util/misc.c (grub_get_time_ms): New function.
42804 2008-08-08 Marco Gerards <marco@gnu.org>
42806 * disk/ata.c (grub_ata_regget): Change return type to
42808 (grub_ata_regget2): Likewise.
42809 (grub_ata_wait_status): New function.
42810 (grub_ata_wait_busy): Removed function, updated all users to use
42811 `grub_ata_wait_status'.
42812 (grub_ata_wait_drq): Likewise.
42813 (grub_ata_cmd): New function.
42814 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42816 (grub_ata_pio_write): Add error handling.
42817 (grub_atapi_identify): Likewise.
42818 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42820 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42821 handling. Actually use the detected registers. Reorder the
42822 detection logic such that it is easier to read.
42823 (grub_ata_pciinit): Do not assign the same ID to each controller.
42824 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42826 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42828 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42830 2008-08-08 Marco Gerards <marco@gnu.org>
42834 2008-08-07 Bean <bean123ch@gmail.com>
42836 * include/grub/x86_64/pci.h: New file.
42838 2008-08-07 Christian Franke <franke@computer.org>
42840 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42841 (TIMER2_GATE): Likewise.
42842 (grub_pit_wait): Add enable/disable of the timer2 gate
42843 bit of port 0x61. This fixes a possible infinite loop.
42845 2008-08-07 Bean <bean123ch@gmail.com>
42847 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42848 kern/i386/tsc.c and kern/i386/pit.c.
42850 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42853 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42856 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42858 2008-08-07 Bean <bean123ch@gmail.com>
42860 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42862 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42864 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42865 multiple inclusion. Add #include <grub/types.h>.
42867 2008-08-06 Christian Franke <franke@computer.org>
42869 * conf/common.rmk: Build and install `10_windows'.
42870 * util/grub.d/10_windows.in: New script.
42872 2008-08-06 Pavel Roskin <proski@gnu.org>
42874 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42876 2008-08-06 Robert Millan <rmh@aybabtu.com>
42878 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42879 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42881 2008-08-06 Bean <bean123ch@gmail.com>
42883 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42884 (grub_pxefs_fs_int): Remove dummy definition.
42885 (grub_pxefs_open): Use data->block_size to store the current block
42887 (grub_pxefs_read): Use block size stored in data->block_size. As the
42888 value of grub_pxe_blksize can be changed after the file is opened.
42890 2008-08-06 Bean <bean123ch@gmail.com>
42892 * fs/i386/pc/pxe.c (curr_file): new variable.
42893 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42894 require the dummy internal file system anymore.
42895 (grub_pxefs_read): Removed.
42896 (grub_pxefs_close): Likewise.
42897 (grub_pxefs_fs_int): Likewise.
42898 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42899 connection when we switch file.
42900 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42902 2008-08-06 Robert Millan <rmh@aybabtu.com>
42904 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42906 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42907 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42909 * kern/i386/halt.c: New file.
42910 * kern/i386/reboot.c: Likewise.
42911 * include/grub/i386/reboot.h: Likewise.
42912 * include/grub/i386/halt.h: Likewise.
42914 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42915 Include `<grub/cpu/halt.h>'.
42916 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42917 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42919 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42920 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42921 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42922 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42923 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42924 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42926 * include/grub/i386/at_keyboard.h: ... to here.
42928 2008-08-05 Robert Millan <rmh@aybabtu.com>
42930 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42931 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42932 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42933 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42934 `kern/generic/millisleep.c'.
42936 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42937 instead of grub_get_rtc().
42938 (grub_tsc_init): Initialize `tsc_boot_time'.
42940 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42941 (grub_machine_init): Use grub_tsc_init() rather than
42942 installing an RTC-based handler via grub_install_get_time_ms().
42944 * kern/i386/pit.c: New file.
42945 * include/grub/i386/pit.h: Likewise.
42947 2008-08-05 Bean <bean123ch@gmail.com>
42949 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42951 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42952 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42953 (pxe_mod_SOURCES): New macro.
42954 (pxe_mod_CFLAGS): Likewise.
42955 (pxe_mod_LDFLAGS): Likewise.
42956 (pxecmd_mod_SOURCES): Likewise.
42957 (pxecmd_mod_CFLAGS): Likewise.
42958 (pxecmd_mod_LDFLAGS): Likewise.
42960 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42961 (grub_pxe_call): Likewise.
42963 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42965 * commands/i386/pc/pxecmd.c: New file.
42967 * fs/i386/pc/pxe.c: Likewise.
42969 * include/grub/i386/pc/pxe.h: Likewise.
42971 2008-08-05 Bean <bean123ch@gmail.com>
42973 * util/console.c (grub_console_cur_color): New variable.
42974 (grub_console_standard_color): Likewise.
42975 (grub_console_normal_color): Likewise.
42976 (grub_console_highlight_color): Likewise.
42977 (color_map): Likewise.
42978 (use_color): Likewise.
42979 (NUM_COLORS): New macro.
42980 (grub_ncurses_setcolorstate): Handle color properly.
42981 (grub_ncurses_setcolor): Don't change color here, just remember the
42982 settings, color will be set in grub_ncurses_setcolorstate.
42983 (grub_ncurses_getcolor): New function.
42984 (grub_ncurses_init): Initialize color pairs.
42985 (grub_ncurses_term): New member grub_ncurses_getcolor.
42987 2008-08-05 Colin D Bennett <colin@gibibit.com>
42989 High resolution timer support. Implemented for x86 CPUs using TSC.
42990 Extracted generic grub_millisleep() so it's linked in only as needed.
42991 This requires a Pentium compatible CPU; if the RDTSC instruction is
42992 not supported, then it falls back on the generic grub_get_time_ms()
42993 implementation that uses the machine's RTC.
42995 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
42996 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42997 `kern/generic/millisleep.c'.
42999 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43000 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43002 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43003 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43005 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43007 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43008 `kern/generic/millisleep.c'.
43010 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43012 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43014 * kern/generic/rtc_get_time_ms.c: New file.
43016 * kern/generic/millisleep.c: New file.
43018 * kern/misc.c: Don't include
43019 <kern/time.h> anymore.
43020 (grub_millisleep_generic): Removed.
43022 * commands/sleep.c (grub_interruptible_millisleep): Uses
43023 grub_get_time_ms() instead of grub_get_rtc().
43025 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43027 (grub_cpu_is_cpuid_supported): New inline function.
43028 (grub_cpu_is_tsc_supported): New inline function.
43029 (grub_tsc_init): New function prototype.
43030 (grub_tsc_get_time_ms): New function prototype.
43032 * kern/i386/tsc.c (grub_get_time_ms): New file.
43034 * include/grub/time.h: Include <grub/types.h.
43035 (grub_millisleep_generic): Removed.
43036 (grub_get_time_ms): New prototype.
43037 (grub_install_get_time_ms): New prototype.
43038 (grub_rtc_get_time_ms): New prototype.
43040 * kern/time.c (grub_get_time_ms): New function.
43041 (grub_install_get_time_ms): New function.
43043 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43044 <grub/time.h> anymore.
43045 (grub_millisleep): Removed.
43046 (grub_machine_init): Call grub_tsc_init.
43048 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43049 get_time_ms() implementation.
43051 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43052 (ieee1275_get_time_ms): New function.
43053 (grub_machine_init): Install get_time_ms() implementation.
43055 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43056 (grub_machine_init): Call grub_tsc_init().
43057 (grub_millisleep): Removed.
43059 * kern/ieee1275/init.c (grub_millisleep): Removed.
43060 (grub_machine_init): Install ieee1275_get_time_ms()
43062 (ieee1275_get_time_ms): New function.
43063 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43066 2008-08-05 Marco Gerards <marco@gnu.org>
43068 * disk/ata.c: Include <grub/pci.h>.
43069 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43070 (grub_ata_initialize): Rewritten.
43071 (grub_ata_device_initialize): New function.
43073 2008-08-04 Pavel Roskin <proski@gnu.org>
43075 * kern/main.c: Include grub/mm.h.
43077 2008-08-04 Robert Millan <rmh@aybabtu.com>
43079 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43080 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43081 corruption problem).
43083 2008-08-04 Robert Millan <rmh@aybabtu.com>
43085 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43086 warnings introduced in my last commit.
43088 2008-08-03 Robert Millan <rmh@aybabtu.com>
43090 Make PCI available on all i386 architectures.
43092 * include/grub/i386/pc/pci.h: Move from here ...
43093 * include/grub/i386/pci.h: ... to here.
43095 * include/grub/i386/pc/pci.h: Remove.
43096 * include/grub/i386/efi/pci.h: Remove.
43097 * include/grub/x86_64/efi/pci.h: Remove.
43099 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43100 `<grub/cpu/pci.h>'.
43102 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43103 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43104 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43106 * conf/i386-ieee1275.rmk: Likewise.
43108 2008-08-03 Robert Millan <rmh@aybabtu.com>
43110 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43111 (grub_console_setcursor): Make it possible to set cursor off.
43113 2008-08-03 Robert Millan <rmh@aybabtu.com>
43115 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43116 of modules instead of assuming which platform provides what.
43117 * util/update-grub.in: Likewise.
43119 2008-08-03 Robert Millan <rmh@aybabtu.com>
43121 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43122 instead of `grub_install_dos_part' to determine whether a drive needs
43123 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43124 because it can be overridden when loading GRUB via Multiboot).
43126 2008-08-02 Robert Millan <rmh@aybabtu.com>
43128 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43130 2008-08-02 Robert Millan <rmh@aybabtu.com>
43132 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43133 of informational grub_dprintf() calls.
43135 2008-08-02 Robert Millan <rmh@aybabtu.com>
43137 * disk/memdisk.c (memdisk_size): Don't initialize.
43138 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43140 * include/grub/i386/pc/kernel.h
43141 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43142 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43143 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43144 (grub_arch_memdisk_size): Remove.
43146 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43147 field (was only used to transfer a constant). Add `type' field to
43148 support multiple module types.
43149 (grub_module_iterate): New function.
43151 * kern/device.c (grub_device_open): Do not hide error messages
43152 when grub_disk_open() fails. Use grub_print_error() instead.
43154 * kern/i386/pc/init.c (grub_arch_modules_addr)
43155 (grub_arch_memdisk_size): Remove functions.
43156 (grub_arch_modules_addr): Return the module address in high memory
43157 (now that it isn't copied anymore).
43159 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43160 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43161 decompression routine (grub_total_module_size already includes that
43162 now). Don't copy modules back to low memory.
43164 * kern/main.c: Include `<grub/mm.h>'.
43165 (grub_load_modules): Split out (and use) ...
43166 (grub_module_iterate): ... this function, which iterates through
43167 module objects and runs a hook.
43168 Comment out grub_mm_init_region() call, as it would cause non-ELF
43169 modules to be overwritten.
43171 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43172 the memdisk image in its own region, make it part of the module list.
43173 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43174 (main): Parse --memdisk|-m option, and pass user-provided path as
43175 parameter to generate_image().
43176 (add_segments): Pass `memdisk_path' down to load_modules().
43177 (load_modules): Embed memdisk image in module section when requested.
43178 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43179 `header.type' instead of `header.offset'.
43181 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43182 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43183 (memdisk_mod_LDFLAGS): New variables.
43184 * conf/i386-coreboot.rmk: Likewise.
43185 * conf/i386-ieee1275.rmk: Likewise.
43187 2008-08-02 Robert Millan <rmh@aybabtu.com>
43189 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43190 (backward_relocator): New variables. Used to allocate and relocate
43191 the payload, respectively.
43192 (grub_multiboot_load_elf32): Load into heap instead of requested
43193 address, install the appropriate relocator code in each bound of
43194 the payload, and set the entry point such that
43195 grub_multiboot_real_boot() will jump to one of them.
43197 * kern/i386/loader.S (grub_multiboot_payload_size)
43198 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43199 (grub_multiboot_payload_entry_offset): New variables.
43200 (grub_multiboot_real_boot): Set cpu context to what the relocator
43201 expects, and jump to the relocator instead of the payload.
43203 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43204 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43205 (grub_multiboot_payload_entry_offset): Export.
43207 2008-08-01 Bean <bean123ch@gmail.com>
43209 * normal/menu_entry.c (editor_getline): Don't return the original
43210 string as result, as it will be released by lexer once it has done
43213 2008-08-01 Robert Millan <rmh@aybabtu.com>
43215 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43216 within menuentries, not before them.
43217 util/grub.d/10_hurd.in: Likewise.
43219 2008-08-01 Bean <bean123ch@gmail.com>
43221 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43222 (bufio_mod_SOURCES): New macro.
43223 (bufio_mod_CFLAGS): Likewise.
43224 (bufio_mod_LDFLAGS): Likewise.
43226 * include/grub/bufio.h: New file.
43228 * io/bufio.c: Likewise.
43230 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43231 (grub_video_reader_png): Use grub_buffile_open to open file.
43233 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43234 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43236 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43237 (grub_video_reader_tga): Use grub_buffile_open to open file.
43239 * font/manager.c: Include <grub/bufio.h>.
43240 (add_font): Use grub_buffile_open to open file.
43242 2008-07-31 Robert Millan <rmh@aybabtu.com>
43244 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43245 ELF segments, use a macro for arbitrarily accessing any of them instead
43246 of preparing a pointer that allows access to one at a time.
43247 (grub_multiboot_load_elf64): Likewise.
43249 2008-07-31 Bean <bean123ch@gmail.com>
43251 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43252 GRUB_KERNEL_MACHINE_DATA_END.
43254 2008-07-30 Robert Millan <rmh@aybabtu.com>
43256 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43257 Increase from 0x50 to 0x60.
43258 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43259 use UUIDs to identify the root drive for them. If that's not
43261 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43262 check, for cross-disk installs.
43264 2008-07-30 Robert Millan <rmh@aybabtu.com>
43266 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43267 is non-empty, use it to set the `prefix' environment variable instead
43268 of the usual approach.
43269 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43270 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43271 environment variable instead of dummy make_install_device().
43273 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43274 (start): Insert a data section, with `grub_prefix' variable.
43275 * kern/i386/linuxbios/startup.S: Likewise.
43277 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43278 New variable reference.
43279 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43280 New macro. Defines offset of `grub_prefix' within startup.S (relative
43282 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43283 section within startup.S (relative to `start').
43284 * include/grub/i386/coreboot/kernel.h: Likewise.
43286 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43287 Overwrite grub_prefix with its contents, at the beginning of the
43289 (main): Understand -p|--prefix.
43291 2008-07-30 Robert Millan <rmh@aybabtu.com>
43293 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43295 2008-07-30 Robert Millan <rmh@aybabtu.com>
43297 * term/i386/pc/vga_text.c (grub_console_cls): Use
43298 grub_console_gotoxy() to go back to beginning of the screen.
43299 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43301 2008-07-29 Christian Franke <franke@computer.org>
43303 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43304 Add conversion of emulated mount points on Cygwin.
43306 2008-07-29 Christian Franke <franke@computer.org>
43308 * util/update-grub.in: Add a check for admin
43310 Remove old `grub.cfg.new' before creation.
43311 Add `-f' to `mv' to handle the different filesystem
43312 semantics of Windows.
43314 2008-07-29 Bean <bean123ch@gmail.com>
43316 * normal/main.c (get_line): Fix buffer overflow bug.
43318 2008-07-28 Robert Millan <rmh@aybabtu.com>
43320 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43321 (struct grub_apple_header): New struct. Describes the layout of
43322 the partmap header.
43323 (apple_partition_map_iterate): Check the header magic as well as the
43324 partition magic (which was already being checked).
43326 2008-07-28 Pavel Roskin <proski@gnu.org>
43328 * genmk.rb: Add a warning to the beginning of the output that
43329 it's a generated file and should not be edited.
43331 2008-07-28 Robert Millan <rmh@aybabtu.com>
43333 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43334 with the same number are found, just use issue a warning with
43335 grub_dprintf(), as this error has been reported to be non-fatal.
43337 2008-07-27 Robert Millan <rmh@aybabtu.com>
43339 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43342 2008-07-27 Bean <bean123ch@gmail.com>
43344 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43345 (grub_fat_find_dir): Ignore case when comparing filename.
43347 2008-07-27 Bean <bean123ch@gmail.com>
43349 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43350 smallino, as it's more descriptive, and i8count can be confused with
43351 the other field count.
43352 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43355 2008-07-27 Bean <bean123ch@gmail.com>
43357 * commands/crc.c: New file.
43359 * lib/crc.c: Likewise.
43361 * include/grub/lib/crc.h: Likewise.
43363 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43365 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43366 (hexdump): Move this function to ...
43368 * lib/hexdump.c: ... here.
43370 * include/grub/hexdump.h: Renamed to ...
43372 * include/grub/lib/hexdump.h: ... this.
43374 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43376 * util/grub-editenv.c: Likewise.
43378 * include/envblk.h: Renamed to ...
43380 * include/lib/envblk.h: ... this.
43382 * util/envblk.c: Renamed to ...
43384 * lib/envblk.c: ... this.
43386 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43388 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43389 (pkglib_MODULES): Add crc.mod.
43390 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43391 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43392 (crc_mod_SOURCES): New macro.
43393 (crc_mod_CFLAGS): Likewise.
43394 (crc_mod_LDFLAGS): Likewise.
43396 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43398 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43400 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43404 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43406 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43408 * commands/help.c: Include <grub/term.h>.
43409 (TERM_WIDTH): Removed. Updated all users.
43411 2008-07-27 Pavel Roskin <proski@gnu.org>
43413 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43414 spurious warnings about a comment within a comment.
43416 2008-07-25 Robert Millan <rmh@aybabtu.com>
43418 * util/getroot.c (find_root_device): Skip devices that match
43419 /dev/dm-[0-9]. This lets the real device be found for any type of
43420 abstraction (LVM, EVMS, RAID..).
43421 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43422 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43423 device is found first, find_root_device() will now skip it.
43425 2008-07-24 Pavel Roskin <proski@gnu.org>
43427 * include/grub/types.h: Use __builtin_bswap32() and
43428 __builtin_bswap64() with gcc 4.3 and newer.
43430 2008-07-24 Christian Franke <franke@computer.org>
43432 * util/i386/pc/grub-install.in: If `--debug' is specified,
43433 pass `--verbose' to grub-setup.
43434 Abort script if make_system_path_relative_to_its_root() fails.
43436 2008-07-24 Bean <bean123ch@gmail.com>
43438 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43439 variable `target_platform' should be `platform'.
43441 2008-07-24 Bean <bean123ch@gmail.com>
43443 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43444 (grub_png_init_fixed_block): New function.
43445 (grub_png_decode_image_data): Handle fixed huffman code compression.
43447 2008-07-24 Bean <bean123ch@gmail.com>
43449 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43450 (grub_pe2elf_SOURCES): New macro.
43451 (CLEANFILES): Add grub-pe2elf.
43453 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43454 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43455 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43456 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43457 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43458 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43459 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43460 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43461 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43462 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43463 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43464 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43465 (GRUB_PE32_DT_FUNCTION): Likewise.
43466 (GRUB_PE32_REL_I386_DIR32): Likewise.
43467 (GRUB_PE32_REL_I386_REL32): Likewise.
43468 (grub_pe32_symbol): New structure.
43469 (grub_pe32_reloc): Likewise.
43471 * util/grub-pe2elf.c: New file.
43473 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43474 start symbol in non pc platform.
43476 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43478 The following patches are from Christian Franke.
43480 * include/grub/dl.h: Remove .previous, gas supports this only
43483 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43484 Remove .type, gas supports this only for ELF format.
43486 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43487 nullbytes in symbol table. This fixes an infinite loop if table is
43490 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43491 TARGET_IMG_LDFLAGS and EXEEXT.
43493 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43494 TARGET_IMG_LDFLAGS_AC.
43495 (grub_CHECK_STACK_ARG_PROBE): New function.
43497 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43499 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43501 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43502 to set TARGET_IMG_LD* accordingly.
43503 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43504 Add call to grub_CHECK_STACK_ARG_PROBE.
43505 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43507 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43509 * genmk.rb: Add EXEEXT to CLEANFILES.
43511 2008-07-23 Robert Millan <rmh@aybabtu.com>
43513 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43514 define the codes for arrows and lines used for the menu).
43515 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43518 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43519 fonts, because the latter are too slow.
43521 2008-07-21 Bean <bean123ch@gmail.com>
43523 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43524 a20. Run keyboard test last, as it will cause macbook to halt.
43526 2008-07-18 Pavel Roskin <proski@gnu.org>
43528 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43529 load foreign architecture modules correctly anyway. Keep
43530 support for loading host architecture modules, whether we
43531 compile them or not.
43533 2008-07-17 Pavel Roskin <proski@gnu.org>
43535 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43536 change target_cpu. The compiler default can mismatch target_cpu
43539 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43540 * kern/efi/efi.c: Likewise.
43542 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43543 target compiler is functional.
43544 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43547 * configure.ac: Default to efi platform for x86_64-apple. Allow
43548 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43549 adjustments from the rest, only do them if target is not
43550 explicitly given. Merge other adjustments with the final sanity
43551 check. Remove an extraneous check for supported CPU. Be
43552 specific which CPU and which platform is not supported.
43554 * configure.ac: Default to pc platform for x86_64.
43556 2008-07-17 Robert Millan <rmh@aybabtu.com>
43558 Partial LinuxBIOS -> Coreboot rename.
43560 * conf/i386-linuxbios.rmk: Renamed to ...
43561 * conf/i386-coreboot.rmk: ... this.
43562 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43563 * configure.ac: Accept "coreboot" as input platform (but maintain
43564 compatibility with "linuxbios").
43565 * include/grub/i386/linuxbios: Renamed to ...
43566 * include/grub/i386/coreboot: ... this.
43568 2008-07-17 Bean <bean123ch@gmail.com>
43570 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43571 (appleldr_mod_SOURCE): New variable.
43572 (appleldr_mod_CFLAGS): Likewise.
43573 (appleldr_mod_LDFLAGS): Likewise.
43574 (pci_mod_SOURCES): Likewise.
43575 (pci_mod_CFLAGS): Likewise.
43576 (pci_mod_LDFLAGS): Likewise.
43577 (lspci_mod_SOURCES): Likewise.
43578 (lspci_mod_CFLAGS): Likewise.
43579 (lspci_mod_LDFLAGS): Likewise.
43581 * conf/x86_64-efi.rmk: New file.
43583 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43585 (grub_efidisk_write): Likewise.
43587 * include/efi/api.h (efi_call_0): New macro.
43588 (efi_call_1): Likewise.
43589 (efi_call_2): Likewise.
43590 (efi_call_3): Likewise.
43591 (efi_call_4): Likewise.
43592 (efi_call_5): Likewise.
43593 (efi_call_6): Likewise.
43595 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43596 grub_rescue_cmd_chainloader.
43598 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43599 (grub_pe32_optional_header): Change some fields based on i386 or
43601 (GRUB_PE32_PE32_MAGIC): Likewise.
43603 * include/grub/efi/uga_draw.h: New file.
43605 * include/grub/elf.h (STN_ABS): New constant.
43606 (R_X86_64_NONE): Relocation constant for x86_64.
43607 (R_X86_64_64): Likewise.
43608 (R_X86_64_PC32): Likewise.
43609 (R_X86_64_GOT32): Likewise.
43610 (R_X86_64_PLT32): Likewise.
43611 (R_X86_64_COPY): Likewise.
43612 (R_X86_64_GLOB_DAT): Likewise.
43613 (R_X86_64_JUMP_SLOT): Likewise.
43614 (R_X86_64_RELATIVE): Likewise.
43615 (R_X86_64_GOTPCREL): Likewise.
43616 (R_X86_64_32): Likewise.
43617 (R_X86_64_32S): Likewise.
43618 (R_X86_64_16): Likewise.
43619 (R_X86_64_PC16): Likewise.
43620 (R_X86_64_8): Likewise.
43621 (R_X86_64_PC8): Likewise.
43623 * include/grub/i386/efi/pci.h: New file.
43625 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43626 Change it value based on platform.
43627 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43628 (GRUB_E820_RAM): Likewise.
43629 (GRUB_E820_RESERVED): Likewise.
43630 (GRUB_E820_ACPI): Likewise.
43631 (GRUB_E820_NVS): Likewise.
43632 (GRUB_E820_EXEC_CODE): Likewise.
43633 (GRUB_E820_MAX_ENTRY): Likewise.
43634 (grub_e820_mmap): New structure.
43635 (linux_kernel_header): Change the efi field according to different
43636 kernel version, also field from linux_kernel_header.
43638 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43640 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43641 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43642 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43643 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43644 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43645 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43646 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43647 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43648 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43649 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43651 * include/grub/x86_64/efi/kernel.h: New file.
43653 * include/grub/x86_64/efi/loader.h: Likewise.
43655 * include/grub/x86_64/efi/machine.h: Likewise.
43657 * include/grub/x86_64/efi/pci.h: Likewise.
43659 * include/grub/x86_64/efi/time.h: Likewise.
43661 * include/grub/x86_64/linux.h: Likewise.
43663 * include/grub/x86_64/setjmp.h: Likewise.
43665 * include/grub/x86_64/time.h: Likewise.
43667 * include/grub/x86_64/types.h: Likewise.
43669 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43670 GRUB_TARGET_SIZEOF_VOID_P.
43672 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43673 (grub_efi_locate_handle): Likewise.
43674 (grub_efi_open_protocol): Likewise.
43675 (grub_efi_set_text_mode): Likewise.
43676 (grub_efi_stall): Likewise.
43677 (grub_exit): Likewise.
43678 (grub_reboot): Likewise.
43679 (grub_halt): Likewise.
43680 (grub_efi_exit_boot_services): Likewise.
43681 (grub_get_rtc): Likewise.
43683 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43684 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43685 (grub_efi_allocate_pages): Wrap efi calls.
43686 (grub_efi_free_pages): Wrap efi calls.
43687 (grub_efi_get_memory_map): Wrap efi calls.
43689 * kern/x86_64/dl.c: New file.
43691 * kern/x86_64/efi/callwrap.S: Likewise.
43693 * kern/x86_64/efi/startup.S: Likewise.
43695 * loader/efi/appleloader.c: Likewise.
43697 * loader/efi/chainloader.c (cmdline): New variable.
43698 (grub_chainloader_unload): Wrap efi calls.
43699 (grub_chainloader_boot): Likewise.
43700 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43703 * loader/efi/chainloader_normal.c (chainloader_command):
43704 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43707 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43709 (grub_e820_add_region): New function.
43710 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43712 (grub_find_video_card): New function.
43713 (grub_linux_setup_video): New function.
43714 (grub_rescue_cmd_linux): Probe for video information.
43716 * normal/x86_64/setjmp.S: New file.
43718 * term/efi/console.c (map_char): New function.
43719 (grub_console_putchar): Map unicode char.
43720 (grub_console_checkkey): Wrap efi calls.
43721 (grub_console_getkey): Likewise.
43722 (grub_console_getwh): Likewise.
43723 (grub_console_gotoxy): Likewise.
43724 (grub_console_cls): Likewise.
43725 (grub_console_setcolorstate): Likewise.
43726 (grub_console_setcursor): Likewise.
43728 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43730 2008-07-16 Pavel Roskin <proski@gnu.org>
43732 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43735 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43736 pointer, not an integer. This fixes a warning and prevents
43737 precision loss on 64-bit systems.
43738 (relocate_addresses): Remove unneeded cast.
43740 2008-07-15 Pavel Roskin <proski@gnu.org>
43742 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43744 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43746 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43747 Fix comparison between signed and unsigned.
43749 * include/grub/i386/ieee1275/console.h: Declare
43750 grub_console_init() and grub_console_fini().
43752 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43753 It's empty and unused.
43755 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43756 beginning to avoid warnings with some compilers.
43758 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43759 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43761 2008-07-14 Pavel Roskin <proski@gnu.org>
43763 * kern/env.c (grub_register_variable_hook): Don't copy empty
43764 string, it leaks memory. Pass "" to grub_env_set(), it should
43765 handle constant strings.
43767 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43768 * commands/cmp.c (grub_cmd_cmp): Likewise.
43769 * kern/dl.c (grub_dl_flush_cache): Likewise.
43770 (grub_dl_load_core): Likewise.
43771 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43772 (grub_elf64_load_phdrs): Likewise.
43774 2008-07-13 Pavel Roskin <proski@gnu.org>
43776 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43777 between signed and unsigned.
43778 (LzmaEnc_Finish): Fix warning about an unused parameter.
43780 2008-07-13 Bean <bean123ch@gmail.com>
43782 * Makefile.in (enable_lzo): New rule.
43784 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43786 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43788 * boot/i386/pc/lnxboot.S: #include <config.h>.
43790 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43791 its value according to the compression algorithm used, lzo or lzma.
43793 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43794 compression algorithm according to configure macro.
43796 * kern/i386/pc/startup.S (codestart): Likewise.
43798 * kern/i386/pc/lzma_decode.S: New file.
43800 * include/grub/lib/LzFind.h: Likewise.
43802 * include/grub/lib/LzHash.h: Likewise.
43804 * include/grub/lib/LzmaDec.h: Likewise.
43806 * include/grub/lib/LzmaEnc.h: Likewise.
43808 * include/grub/lib/LzmaTypes.h: Likewise.
43810 * lib/LzFind.c: Likewise.
43812 * lib/LzmaDec.c: Likewise.
43814 * lib/LzmaEnc.c: Likewise.
43816 2008-07-13 Bean <bean123ch@gmail.com>
43818 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43819 (grub_ext4_extent_header): New structure.
43820 (grub_ext4_extent): Likewise.
43821 (grub_ext4_extent_idx): Likewise.
43822 (grub_ext4_find_leaf): New function.
43823 (grub_ext2_read_block): Handle extents.
43825 2008-07-12 Robert Millan <rmh@aybabtu.com>
43827 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43829 2008-07-11 Robert Millan <rmh@aybabtu.com>
43831 * util/grub.d/40_custom.in: New file. Example on how to add custom
43832 entries to /etc/grub.d.
43833 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43834 40_custom (implicitly, by merging all the grub.d rules).
43836 2008-07-11 Pavel Roskin <proski@gnu.org>
43838 * commands/read.c (grub_getline): Fix invalid memory access.
43839 Don't add newline to the variable value.
43841 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43842 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43843 (serial_hw_get_port): Check validity of the port number.
43844 (grub_cmd_serial): Check return value of serial_hw_get_port().
43846 2008-07-07 Pavel Roskin <proski@gnu.org>
43848 * boot/i386/pc/diskboot.S (notification_string): Replace
43849 "Loading kernel" with just "loading". This is shorter, less
43850 confusing and saves a few bytes for possible future changes.
43852 2008-07-05 Pavel Roskin <proski@gnu.org>
43854 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43855 size for ATAPI devices, they are undefined. Output sector
43856 number in decimal form.
43858 * disk/ata.c: Use named constants for status bits.
43860 2008-07-04 Pavel Roskin <proski@gnu.org>
43862 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43863 grub_addr_t before casting it to the void pointer to fix a
43864 warning. Non-addressable regions are discarded earlier.
43865 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43866 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43867 (check_signature): Don't shadow table_header.
43868 (grub_linuxbios_table_iterate): Cast numeric constants to
43869 grub_linuxbios_table_header_t.
43870 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43873 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43876 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43877 pointer, which can cause warnings. Support 64-bit addresses.
43879 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43880 of sizeof(long). This fixes PowerPC image generation on x86_64.
43882 2008-07-04 Robert Millan <rmh@aybabtu.com>
43884 This fixes a performance issue when pc & gpt partmap iterators
43885 didn't abort iteration even after our hook found what it was
43886 looking for (often causing expensive probes of non-existent drives).
43888 Some callers relied on previous buggy behaviour, since they would
43889 raise an error when their own hooks caused early abortion of its
43892 * kern/device.c (grub_device_open): Improve error message.
43893 * disk/lvm.c (grub_lvm_open): Likewise.
43894 * disk/raid.c (grub_raid_open): Likewise.
43896 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43897 when hook requests it, independently of grub_errno.
43898 (pc_partition_map_probe): Do not fail when find_func() caused
43899 early abortion of pc_partition_map_iterate().
43901 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43902 when hook requests it, independently of grub_errno.
43903 (gpt_partition_map_probe): Do not fail when find_func() caused
43904 early abortion of gpt_partition_map_iterate().
43906 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43907 when hook requests it, independently of grub_errno. Do not fail when
43908 part_map_iterate_hook() caused early abortion of p->iterate().
43910 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43911 when grub_partition_iterate() returned with non-zero.
43913 2008-07-03 Pavel Roskin <proski@gnu.org>
43915 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43916 like we do in grub_ata_pio_read().
43917 (grub_ata_readwrite): Always write individual sectors. Fix the
43918 sector count for the remainder.
43919 (grub_ata_write): Enable writing to ATA devices. Correctly
43920 report error for ATAPI devices.
43922 2008-07-02 Pavel Roskin <proski@gnu.org>
43924 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43927 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43928 for every read sector, we already increment it for the whole
43929 batch. This fixes reading more than 256 sectors at once.
43931 * util/grub-editenv.c (cmd_info): Cast argument to long
43932 explicitly. ptrdiff_t reduces to int on i386.
43934 * util/grub-editenv.c (main): Be specific which parameter is
43937 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43938 (memdisk): Make memdisk_orig_addr a pointer.
43940 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43941 for file offsets, use grub_off_t instead. Fix printf format
43944 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43945 there. Real unexpected warnings should not drown in the noise
43946 about known problems.
43948 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43949 grub_disk_addr_t for memory addresses.
43951 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43952 explicitly to fix a warning.
43954 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43956 * Makefile.in (MODULE_LDFLAGS): New variable.
43957 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43958 the linker accepts --build-id=none.
43959 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43961 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43963 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43964 those in Linux XFS code. Provide a way to access 64-bit parent
43966 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43967 the end of struct grub_xfs_dir_header.
43969 2008-07-02 Bean <bean123ch@gmail.com>
43971 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43972 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43973 and GRUB_IEEE1275_FLAG_NO_ANSI.
43975 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
43976 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43977 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
43979 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
43980 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
43982 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
43983 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
43985 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
43986 esc sequence on non ANSI terminal.
43987 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
43989 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
43992 2008-07-02 Bean <bean123ch@gmail.com>
43994 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43995 (grub_editenv_SOURCES): New variable.
43996 (pkglib_MODULES): Add loadenv.mod.
43997 (loadenv_mod_SOURCES): New variable.
43998 (loadenv_mod_CFLAGS): Likewise.
43999 (loadenv_mod_LDFLAGS): Likewise.
44001 * include/grub/envblk.h: New file.
44003 * util/envblk.c: New file.
44005 * util/grub-editenv.c: New file.
44007 * commands/loadenv.c: New file.
44009 2008-07-01 Pavel Roskin <proski@gnu.org>
44011 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44012 not unsigned char. This fixes warnings and is consistent with
44015 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44017 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44019 * term/tparm.c (analyze): Always set *popcount.
44021 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44022 cast to fix a warning.
44024 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44025 cast to suppress a warning.
44027 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44028 grub_fshelp_read_file() expects.
44030 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44031 write uuid as a 32-bit value in CPU byte order, so declare and
44034 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44035 long if the format specifier expects it.
44036 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44037 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44038 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44039 long to fix a warning.
44040 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44041 grub_dprintf() arguments to fix warnings.
44043 2008-06-30 Pavel Roskin <proski@gnu.org>
44045 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44046 install_bsd_part immediately before core.img is embedded or
44047 modified on disk. This fixes core.img verification if core.img
44048 cannot be embedded.
44050 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44051 core_path to calculate the blocklist.
44052 Patch from Javier Martín <lordhabbit@gmail.com>
44054 2008-06-29 Robert Millan <rmh@aybabtu.com>
44056 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44057 block to disk block.
44058 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44059 Patch from Niels Böhm <bitbucket@arcor.de>
44061 2008-06-29 Robert Millan <rmh@aybabtu.com>
44063 * util/update-grub_lib.in (font_path): Search for fonts in
44064 /boot/grub first, which is more likely to be readable (we aren't
44065 deciding where fonts live, just looking for them).
44067 2008-06-26 Pavel Roskin <proski@gnu.org>
44069 * util/biosdisk.c (read_device_map): Don't leave dead map
44070 entries for devices failing stat() check.
44072 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44073 core_path_dev for the core.img path on the target device.
44075 2008-06-26 Robert Millan <rmh@aybabtu.com>
44077 * disk/fs_uuid.c: New file.
44078 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44079 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44080 (fs_uuid_mod_LDFLAGS): New variables.
44081 * include/grub/disk.h (grub_disk_dev_id): Add
44082 `GRUB_DISK_DEVICE_UUID_ID'.
44083 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44084 implement iterate().
44086 2008-06-26 Robert Millan <rmh@aybabtu.com>
44088 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44089 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44090 Linux image includes no initrd.
44092 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44094 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44095 call to resolve the core image location that effectively appended the
44098 2008-06-21 Robert Millan <rmh@aybabtu.com>
44100 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44103 * util/grub.d/10_hurd.in: ... to here ...
44104 * util/grub.d/10_linux.in: ... and here.
44106 2008-06-19 Robert Millan <rmh@aybabtu.com>
44108 * kern/main.c (grub_main): Export `prefix' variable immediately
44109 after it has been set by grub_machine_set_prefix().
44111 2008-06-19 Robert Millan <rmh@aybabtu.com>
44113 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44114 search result when not saving to variable, not the other way around.
44115 When saving to variable, abort iteration as soon as a match is found.
44117 2008-06-19 Robert Millan <rmh@aybabtu.com>
44119 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44120 check for partition that provides /boot/grub. Its logic is flawed,
44121 as it prevents prepare_grub_to_access_device() from being called
44124 2008-06-19 Robert Millan <rmh@aybabtu.com>
44126 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44127 "insmod" command directly when abstraction modules are needed,
44128 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44129 since it had already been processed).
44131 2008-06-19 Pavel Roskin <proski@gnu.org>
44133 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44134 changed. This is needed in case GRUB_LIBDIR changes.
44135 * conf/i386-ieee1275.rmk: Likewise.
44136 * conf/i386-linuxbios.rmk: Likewise.
44137 * conf/i386-pc.rmk: Likewise.
44138 * conf/powerpc-ieee1275.rmk: Likewise.
44140 2008-06-18 Pavel Roskin <proski@gnu.org>
44142 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44143 kernel_elf_symlist.c to symlist.c for consistency with other
44144 architectures. Update all users.
44145 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44147 2008-06-18 Robert Millan <rmh@aybabtu.com>
44149 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44152 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44153 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44154 a RAID device, run setup() for all members independently on whether
44155 LVM abstraction is being used.
44156 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44157 If grub-mkimage has set `*install_dos_part == -2', don't override this
44159 Perform *install_dos_part adjustments independently on whether
44160 we're embedding or not.
44161 Clarify error message when image is too big for embedding.
44162 Remove duplicate *install_dos_part stanza.
44164 2008-06-17 Robert Millan <rmh@aybabtu.com>
44166 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44167 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44169 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44170 values in grub_ofconsole_normal_color and
44171 grub_ofconsole_highlight_color (they're not directly related to
44172 background and foreground).
44173 (grub_ofconsole_setcolorstate): Extract background and foreground
44174 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44176 2008-06-17 Robert Millan <rmh@aybabtu.com>
44178 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44179 /boot/grub for the check in last commit, not /boot (they could be
44180 different partitions).
44182 2008-06-16 Robert Millan <rmh@aybabtu.com>
44184 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44185 asked to setup access for the same partition that provides /boot,
44186 don't bother using UUIDs since our root already has the value we
44189 2008-06-16 Robert Millan <rmh@aybabtu.com>
44191 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44193 Patch from Sven Mueller <sven@debian.org>.
44195 2008-06-16 Robert Millan <rmh@aybabtu.com>
44197 * util/update-grub.in: Check for $EUID instead of $UID.
44198 Reported by Vincent Zweije.
44200 2008-06-16 Bean <bean123ch@gmail.com>
44202 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44203 (grub_ext2_read_block): Likewise.
44204 (grub_ext2_read_inode): Likewise.
44205 (grub_ext2_mount): Likewise.
44206 (grub_ext2_close): Likewise.
44207 (grub_ext3_get_journal): Removed.
44209 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44210 (grub_reiserfs_read_symlink): Likewise.
44211 (grub_reiserfs_mount): Likewise.
44212 (grub_reiserfs_open): Likewise.
44213 (grub_reiserfs_read): Likewise.
44214 (grub_reiserfs_close): Likewise.
44215 (grub_reiserfs_get_journal): Removed.
44217 * fs/fshelp.c (grub_fshelp_read): Removed.
44218 (grub_fshelp_map_block): Likewise.
44220 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44221 (grub_fshelp_journal): Likewise.
44222 (grub_fshelp_read): Likewise.
44223 (grub_fshelp_map_block): Likewise.
44225 2008-06-16 Pavel Roskin <proski@gnu.org>
44227 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44228 floating point anymore.
44229 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44231 2008-06-15 Pavel Roskin <proski@gnu.org>
44233 * commands/ls.c (grub_ls_list_files): Use integer calculations
44234 for human readable format, avoid floating point use.
44235 * kern/misc.c (grub_ftoa): Remove.
44236 (grub_vsprintf): Remove floating point support.
44238 2008-06-15 Robert Millan <rmh@aybabtu.com>
44240 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44242 Reported by Max Vozeler.
44244 2008-06-15 Robert Millan <rmh@aybabtu.com>
44246 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44247 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44249 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44250 the beginning of the prefix.
44252 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44253 It is assumed that if we have a memdisk, grub-mkimage has set
44254 grub_prefix to include the "(memdisk)" drive in it.
44256 2008-06-15 Robert Millan <rmh@aybabtu.com>
44258 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44259 Initialize keyboard controller after registering the terminal, so that
44260 grub_printf() can be called from grub_keyboard_controller_init().
44262 2008-06-15 Robert Millan <rmh@aybabtu.com>
44264 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44265 extent-btree which is written as big endian on disk.
44266 Reported by Alain Greppin <al@chilibi.org>.
44268 2008-06-14 Robert Millan <rmh@aybabtu.com>
44270 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44271 * util/i386/pc/grub-install.in (modules): Likewise.
44273 2008-06-13 Pavel Roskin <proski@gnu.org>
44275 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44277 2008-06-13 Bean <bean123ch@gmail.com>
44279 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44281 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44283 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44284 to indicate sparse block.
44286 2008-06-12 Pavel Roskin <proski@gnu.org>
44288 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44289 number, grub_fshelp_read() does it for us.
44291 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44292 linear disk read with journal translation.
44293 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44294 * include/grub/fshelp.h: Declare grub_fshelp_read().
44296 2008-06-09 Pavel Roskin <proski@gnu.org>
44298 * fs/minix.c (grub_minix_mount): Handle error reading
44301 2008-06-08 Robert Millan <rmh@aybabtu.com>
44303 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44304 don't append the RAID prefix afterwards.
44305 Reported by Clint Adams.
44307 2008-06-08 Robert Millan <rmh@aybabtu.com>
44309 Based on description from Pavel:
44310 * kern/disk.c (grub_disk_check_range): Rename to ...
44311 (grub_disk_adjust_range): ... this. Add a comment explaining the
44312 tasks performed by this function.
44314 2008-06-08 Robert Millan <rmh@aybabtu.com>
44316 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44317 `num_serial' (for consistency with other variables).
44318 (struct grub_ntfs_data): Add `uuid' member.
44319 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44320 (grub_ntfs_uuid): New function.
44321 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44323 2008-06-07 Pavel Roskin <proski@gnu.org>
44325 * util/biosdisk.c (open_device): Revert last change to the
44326 function, it broke installation. The sector needs to be
44327 different dependent on which device is opened.
44329 2008-06-06 Robert Millan <rmh@aybabtu.com>
44331 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44332 rest of GRUB, and breakage doesn't happen if its value were modified.
44334 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44335 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44336 a constant (same value).
44337 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44338 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44340 2008-06-06 Robert Millan <rmh@aybabtu.com>
44342 * util/biosdisk.c (open_device): Do not modify sector offset when
44343 accessing a partition. kern/disk.c already handles this for us.
44345 2008-06-06 Robert Millan <rmh@aybabtu.com>
44347 * util/grub-emu.c (grub_machine_init): Move code in this function from
44349 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44350 segfault in case grub_printf() is called).
44352 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44353 grub_probe. Update all users not to explicitly add it again.
44354 (grub_device): New variable; contains corresponding device for grubdir.
44355 (fs_module, partmap_module, devabstraction_module): Pass
44356 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44359 2008-06-05 Robert Millan <rmh@aybabtu.com>
44361 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44362 is found, print it (same layout as with labels).
44364 2008-06-04 Robert Millan <rmh@aybabtu.com>
44366 * util/biosdisk.c (get_drive): Rename to ...
44367 (find_grub_drive): ... this. Update all users.
44369 (get_os_disk): Rename to ...
44370 (convert_system_partition_to_system_disk): ... this. Update all users.
44372 (find_drive): Rename to ...
44373 (find_system_device): ... this. Update all users.
44375 2008-06-04 Robert Millan <rmh@aybabtu.com>
44377 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44378 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44379 (make_device_map): Likewise.
44381 2008-06-01 Robert Millan <rmh@aybabtu.com>
44383 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44384 before dereferencing it.
44386 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44387 union with fat12/fat16-specific ones. Add some new fields, including
44388 `num_serial' for both versions.
44389 (struct grub_fat_data): Add `uuid' member.
44390 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44391 names. Initialize `data->uuid' using `num_serial'.
44392 (grub_fat_uuid): New function.
44393 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44395 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44396 (grub_reiserfs_uuid): New function.
44397 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44400 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44401 (grub_xfs_uuid): New function.
44402 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44404 2008-06-01 Robert Millan <rmh@aybabtu.com>
44406 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44407 code that is backward compatible with pre-uuid search command.
44409 2008-05-31 Robert Millan <rmh@aybabtu.com>
44411 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44412 floppies after everything else, to ensure floppy drive isn't accessed
44413 unnecessarily (patch from Bean).
44415 2008-05-31 Robert Millan <rmh@aybabtu.com>
44417 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44418 not print device names when we were asked to set a variable.
44420 2008-05-31 Robert Millan <rmh@aybabtu.com>
44422 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44423 using "cursor-on" and "cursor-off" commands (understood at least by
44424 the Open Firmware flavour on OLPC).
44426 2008-05-31 Michael Gorven <michael@gorven.za.net>
44428 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44429 on and off sequences.
44431 2008-05-31 Robert Millan <rmh@aybabtu.com>
44433 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44434 * util/update-grub.in: Likewise.
44436 2008-05-30 Pavel Roskin <proski@gnu.org>
44438 * util/biosdisk.c (linux_find_partition): Simplify logic and
44439 make the code more universal. Keep special processing for
44440 devfs, but use a simple rule for all other devices. If the
44441 device ends with a number, append 'p' and the partition number.
44442 Otherwise, append only the partition number.
44444 2008-05-30 Robert Millan <rmh@aybabtu.com>
44446 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44447 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44448 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44449 the `root' parameter to Linux.
44451 2008-05-30 Robert Millan <rmh@aybabtu.com>
44453 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44454 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44455 --fs_uuid with --fs-uuid.
44456 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44457 all filesystems support them).
44459 2008-05-30 Robert Millan <rmh@aybabtu.com>
44461 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44462 grub_printf() flags, since we're printing in units of 2 bytes.
44464 2008-05-30 Robert Millan <rmh@aybabtu.com>
44466 * util/grub.d/00_header.in: Remove obsolete comment referencing
44467 convert_system_path_to_grub_path().
44468 * util/update-grub.in: Likewise.
44469 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44470 (convert_system_path_to_grub_path): Add a warning message explaining
44471 that this function is deprecated. Rely on is_path_readable_by_grub()
44472 for the readability checks.
44473 (font_path): Use is_path_readable_by_grub() for the readability
44474 check rather than convert_system_path_to_grub_path().
44476 2008-05-30 Robert Millan <rmh@aybabtu.com>
44478 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44479 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44480 converting it first.
44481 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44482 grub.cfg for access to font file, and afterwards call it again to set
44485 2008-05-30 Robert Millan <rmh@aybabtu.com>
44487 * commands/search.c (options): Add --fs_uuid option.
44488 (search_fs_uuid): New function.
44489 (grub_cmd_search): Fix --set argument passing.
44490 Use search_fs_uuid() when requested via --fs_uuid.
44491 (grub_search_init): Update help message.
44492 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44493 and redeclare it as an array of 16-bit words.
44494 (grub_ext2_uuid): New function.
44495 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44496 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44497 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44498 (GRUB_DEVICE_BOOT_UUID): New variables.
44499 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44500 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44502 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44503 just assume `root' variable has the right value.
44504 * util/grub.d/10_linux.in: Likewise.
44505 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44507 (main): Recognise `-t fs_uuid' argument.
44509 2008-05-30 Robert Millan <rmh@aybabtu.com>
44511 * util/biosdisk.c (map): Redefine structure to hold information
44512 about GRUB drive name.
44513 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44515 (call_hook): Remove.
44516 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44517 member. Assume drive has partitions.
44518 (grub_util_biosdisk_open): Access device names via `.device' struct
44520 (open_device): Likewise.
44521 (find_drive): Likewise.
44522 (read_device_map): Adjust map[] usage to match the new struct
44523 definition. Don't check for duplicates (still possible, but not cheap
44525 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44526 (make_device_name): Remove assumption of BIOS-like drive names.
44528 2008-05-30 Pavel Roskin <proski@gnu.org>
44530 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44531 compiling execute.c doesn't need grub_script.tab.h anymore.
44532 (normal/command.c_DEPENDENCIES): Likewise.
44533 (normal/function.c_DEPENDENCIES): Likewise.
44534 * conf/i386-ieee1275.rmk: Likewise.
44535 * conf/i386-linuxbios.rmk: Likewise.
44536 * conf/i386-pc.rmk: Likewise.
44537 * conf/powerpc-ieee1275.rmk: Likewise.
44538 * conf/sparc64-ieee1275.rmk: Likewise.
44540 2008-05-29 Pavel Roskin <proski@gnu.org>
44542 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44543 when scanning metadata for volume group name.
44545 * include/grub/script.h: Don't include grub_script.tab.h. It's
44546 a generated file, which may only be included from the files with
44547 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44548 use union YYSTYPE, as the later allows forward declaration.
44549 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44551 2008-05-29 Robert Millan <rmh@aybabtu.com>
44553 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44554 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44555 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44556 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44559 2008-05-29 Robert Millan <rmh@aybabtu.com>
44561 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44562 control key combinations.
44564 2008-05-29 Robert Millan <rmh@aybabtu.com>
44566 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44567 * util/ieee1275/grub-install.in: ... to here.
44568 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44569 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44570 (grub_install_SOURCES): Likewise.
44572 2008-05-29 Robert Millan <rmh@aybabtu.com>
44574 * fs/affs.c: Update copyright year.
44575 * fs/ext2.c: Likewise.
44576 * fs/fshelp.c: Likewise.
44577 * fs/hfsplus.c: Likewise.
44578 * fs/ntfs.c: Likewise.
44579 * fs/xfs.c: Likewise.
44580 * include/grub/fshelp.h: Likewise.
44581 * util/grub-mkdevicemap.c: Likewise.
44583 2008-05-28 Robert Millan <rmh@aybabtu.com>
44585 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44586 might need to be fatfs to support some firmware implementations
44589 2008-05-28 Robert Millan <rmh@aybabtu.com>
44591 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44593 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44594 (make_device_map): Likewise.
44596 2008-05-20 Bean <bean123ch@gmail.com>
44598 * fs/fshelp.c (grub_fshelp_map_block): New function.
44599 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44600 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44602 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44603 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44604 (grub_fshelp_journal): New structure.
44605 (grub_fshelp_map_block): New function prototype.
44606 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44607 (grub_fshelp_map_block): Likewise.
44609 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44610 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44611 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44612 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44613 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44614 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44615 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44616 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44617 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44618 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44619 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44620 (grub_ext2_sblock): New members for journal support.
44621 (grub_ext3_journal_header): New structure.
44622 (grub_ext3_journal_revoke_header): Likewise.
44623 (grub_ext3_journal_block_tag): Likewise.
44624 (grub_ext3_journal_sblock): Likewise.
44625 (grub_fshelp_node): New members logfile and journal.
44626 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44627 grub_fshelp_map_block to get real block number.
44628 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44630 (grub_ext2_read_inode): Likewise.
44631 (grub_ext3_get_journal): New function.
44632 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44633 (grub_ext2_close): Release memory used by journal.
44635 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44636 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44637 (grub_reiserfs_transaction_header): Renamed to
44638 grub_reiserfs_description_block, replace field data with real_blocks.
44639 (grub_reiserfs_commit_block): New structure.
44640 (grub_reiserfs_data): New member journal.
44641 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44643 (grub_reiserfs_read_symlink): Likewise.
44644 (grub_reiserfs_iterate_dir): Likewise.
44645 (grub_reiserfs_open): Likewise.
44646 (grub_reiserfs_read): Likewise.
44647 (grub_reiserfs_get_journal): New function.
44648 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44649 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44650 using grub_reiserfs_get_journal.
44651 (grub_reiserfs_close): Release memory used by journal.
44653 * fs/affs.c (grub_affs_read_block): Change block type to
44654 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44656 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44658 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44660 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44662 * fs/udf.c (grub_udf_read_block): Change block type to
44663 grub_disk_addr_t. Use type cast to avoid warning.
44665 * fs/xfs.c (grub_xfs_read_block): Likewise.
44667 2008-05-16 Christian Franke <franke@computer.org>
44669 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44670 to ensure that break with ESC will always work.
44671 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44672 Remove ESC from keyboard queue.
44674 2008-05-16 Christian Franke <franke@computer.org>
44676 * util/biosdisk.c: [__CYGWIN__] Add includes.
44677 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44678 (get_os_disk): Move variable declarations to OS specific
44679 parts to avoid warning.
44680 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44681 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44682 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44684 * util/getroot.c: [__CYGWIN__] Add includes.
44685 (strip_extra_slashes): Fix "/" case.
44686 [__CYGWIN__] (get_win32_path): New function.
44687 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44688 [__CYGWIN__] (find_root_device): Disable.
44689 [__CYGWIN__] (get_bootsec_serial): New function.
44690 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44691 [__linux__] (grub_guess_root_device): Add early returns to simplify
44693 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44694 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44695 check for Linux only.
44697 2008-05-15 Bean <bean123ch@gmail.com>
44699 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44700 keyboard hang problem in apple's intel mac.
44702 2008-05-09 Robert Millan <rmh@aybabtu.com>
44704 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44706 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44707 (make_device_map): Likewise.
44708 Reported by Aurelien Jarno <aurel32@debian.org>
44710 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44712 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44713 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44714 (make_device_map): Output entries for xvd type disks.
44716 2008-05-07 Robert Millan <rmh@aybabtu.com>
44718 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44720 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44721 (make_device_map): Likewise.
44722 Reported by Roland Dreier <rdreier@cisco.com>
44724 2008-05-07 Robert Millan <rmh@aybabtu.com>
44726 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44727 grub_strstr() call. Correct a few mistakes in failure path handling.
44729 2008-05-06 Robert Millan <rmh@aybabtu.com>
44731 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44732 Do not print a trailing slash (therefore, the root directory is an
44734 (convert_system_path_to_grub_path): Do not remove trailing slash
44735 from make_system_path_relative_to_its_root() output.
44737 * util/i386/pc/grub-install.in: Add trailing slash to output from
44738 make_system_path_relative_to_its_root().
44740 2008-05-06 Robert Millan <rmh@aybabtu.com>
44742 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44743 ensures that output lines aren't intermangled with those sent to
44744 stderr (via grub_util_info()).
44745 * util/grub-probe.c (grub_refresh): Likewise.
44746 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44748 2008-05-05 Christian Franke <franke@computer.org>
44750 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44751 Add Cygwin device names.
44752 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44753 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44754 (check_device): Return error instead of success on empty name.
44755 (make_device_map): Move label inside linux specific code to
44756 prevent compiler warning.
44758 2008-04-30 Robert Millan <rmh@aybabtu.com>
44760 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44761 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44763 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44765 2008-04-29 Robert Millan <rmh@aybabtu.com>
44767 * docs/grub.cfg: New file (example GRUB configuration).
44769 2008-04-26 Robert Millan <rmh@aybabtu.com>
44771 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44772 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44773 and `disk/ieee1275/nand.c'.
44775 2008-04-25 Bean <bean123ch@gmail.com>
44777 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44780 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44781 change the buffer size to 4096 for cdrom device.
44783 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44785 (_linux_mod_SOURCES): New variable.
44786 (_linux_mod_CFLAGS): Likewise.
44787 (_linux_mod_LDFLAGS): Likewise.
44788 (linux_mod_SOURCES): Likewise.
44789 (linux_mod_CFLAGS): Likewise.
44790 (linux_mod_LDFLAGS): Likewise.
44791 (nand_mod_SOURCES): Likewise.
44792 (nand_mod_CFLAGS): Likewise.
44793 (nand_mod_LDFLAGS): Likewise.
44795 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44796 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44797 type property. (nand device in olpc don't have this property)
44799 * include/grub/disk.h (grub_disk_dev_id): New macro
44800 GRUB_DISK_DEVICE_NAND_ID.
44802 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44803 function prototype.
44804 (grub_rescue_cmd_initrd): Likewise.
44806 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44807 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44808 ofw_cif_handler and ofw_idt, adjust padding number.
44810 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44811 GRUB_MACHINE_IEEE1275 is defined.
44813 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44814 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44816 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44817 on nested function heap_init.
44818 (grub_upper_mem): New variable for i386-ieee1275.
44819 (grub_get_extended_memory): New function for i386-ieee1275.
44820 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44822 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44823 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44826 * loader/i386/ieee1275/linux.c: New file.
44828 * loader/i386/ieee1275/linux_normal.c: New file.
44830 * disk/ieee1275/nand.c: New file.
44832 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44834 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44836 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44838 2008-04-18 Robert Millan <rmh@aybabtu.com>
44840 Restructures early code path on ieee1275 to unify grub_main() as
44841 the first C function that is executed in every platform.
44843 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44844 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44846 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44847 * kern/ieee1275/cmain.c (cmain): Rename to ...
44848 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44849 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44852 2008-04-18 Robert Millan <rmh@aybabtu.com>
44854 * util/update-grub.in: Fix syntax error when setting
44855 `GRUB_PRELOAD_MODULES'.
44856 Reported by Stephane Chazelas <stephane@artesyncp.com>
44858 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44860 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44861 section into account, newer toolchains generate unique build ids
44862 * configure.ac: remove the test for --build-id=none acceptance,
44863 we want build ids to be preserved
44864 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44865 far from other sections don't cause the raw binary images grow
44868 2008-04-15 Robert Millan <rmh@aybabtu.com>
44870 * disk/lvm.c: Update copyright year.
44871 * kern/misc.c: Likewise.
44873 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44875 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44876 there is no memory left for physical volume name.
44878 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44880 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44881 volume name mapping to support bigger than 9 character names properly.
44883 2008-04-13 Robert Millan <rmh@aybabtu.com>
44885 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44886 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44888 2008-04-13 Christian Franke <franke@computer.org>
44890 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44891 to create a floppy emulation boot CD when non emulation mode
44893 Enable Joliet CD filesystem extension.
44895 2008-04-13 Robert Millan <rmh@aybabtu.com>
44897 * kern/misc.c (grub_strncat): Fix off-by-one error.
44898 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44900 * kern/env.c (grub_env_context_close): Clear current context, not
44902 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44904 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44906 2008-04-13 Robert Millan <rmh@aybabtu.com>
44908 Improve robustness when handling LVM.
44910 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44911 (and leave `*p' unmodified).
44912 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44914 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44915 iterating through it.
44916 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44918 (grub_lvm_scan_device): Check the return value (and fail gracefully
44919 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44920 Don't assume `vg->pvs != NULL' when iterating through it.
44922 2008-04-13 Robert Millan <rmh@aybabtu.com>
44924 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44925 * genmk.rb (partmap): New variable.
44926 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44927 (#{partmap}): New target rule.
44928 * genpartmaplist.sh: New file.
44929 * Makefile.in (pkglib_DATA): Add partmap.lst.
44930 (partmap.lst): New target rule.
44931 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44932 modules (including all partition maps), instead of preloading them.
44934 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44936 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44937 `linux-boot-prober' (if installed) to detect other operating
44938 systems which are installed on the computer and add them to
44940 * conf/common.rmk: Build and install 30_os-prober.
44942 2008-04-12 Robert Millan <rmh@aybabtu.com>
44944 * kern/powerpc/ieee1275/init.c: Move from here ...
44945 * kern/ieee1275/init.c: ... to here. Update all users.
44947 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44948 * kern/ieee1275/cmain.c: ... to here. Update all users.
44950 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44951 * kern/ieee1275/openfw.c: ... to here. Update all users.
44953 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44954 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44956 2008-04-10 Pavel Roskin <proski@gnu.org>
44958 * configure.ac: Always use "_cv_" in cache variables for
44959 compatibility with Autoconf 2.62.
44961 2008-04-07 Robert Millan <rmh@aybabtu.com>
44963 Revert grub/machine/init.h addition by Pavel (since it breaks on
44964 i386-ieee1275 and others):
44965 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44966 * util/powerpc/ieee1275/misc.c: Likewise.
44968 2008-04-07 Robert Millan <rmh@aybabtu.com>
44970 * util/grub-probe.c (probe): Improve error message.
44972 2008-04-07 Robert Millan <rmh@aybabtu.com>
44974 * util/biosdisk.c (read_device_map): Skip devices that don't exist
44975 (this prevents the presence of a bogus entry from ruining the whole
44978 2008-04-06 Pavel Roskin <proski@gnu.org>
44980 * util/biosdisk.c: Include grub/util/biosdisk.h.
44981 * util/grub-fstest.c (execute_command): Make static.
44982 * util/grub-mkdevicemap.c (check_device): Likewise.
44983 * util/i386/pc/misc.c: Include grub/machine/init.h.
44984 * util/powerpc/ieee1275/misc.c: Likewise.
44985 * util/lvm.c: Include grub/util/lvm.h.
44986 * util/misc.c: Include grub/kernel.h, grub/misc.h and
44988 * util/raid.c: Include grub/util/raid.h.
44989 (grub_util_getdiskname): Make static.
44991 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
44992 grub_hostfs_fini(), as they are called from grub_init_all() and
44993 grub_fini_all() respectively. This fixes an infinite loop in
44994 grub-fstest due to double registration of hostfs.
44995 Reported by Christian Franke <Christian.Franke@t-online.de>
44997 2008-04-05 Pavel Roskin <proski@gnu.org>
44999 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45000 all 8 functions. Otherwise, probe function 0 only.
45002 2008-04-04 Pavel Roskin <proski@gnu.org>
45004 * commands/lspci.c (grub_lspci_iter): Print the bus number
45007 * commands/lspci.c (grub_pci_classes): Fix typos.
45008 (grub_lspci_iter): Don't print func twice. Print vendor ID
45009 before device ID, as it's normally done.
45011 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45012 Fix signedness warnings.
45013 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45015 * util/ieee1275/get_disk_name.c: Include config.h so that
45016 _GNU_SOURCE is defined and getline() is declared. Mark an
45017 unused argument as such. Fix a signedness warning.
45019 2008-04-02 Pavel Roskin <proski@gnu.org>
45021 * genkernsyms.sh.in: Use more robust assignments for CC and
45022 srcdir. Quote srcdir.
45023 * gensymlist.sh.in: Likewise. Assert at the compile time that
45024 the symbol table is not empty.
45026 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45027 * fs/cpio.c (grub_cpio_read): Likewise.
45029 2008-04-01 Pavel Roskin <proski@gnu.org>
45031 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45032 * disk/host.c (grub_host_open): Likewise.
45033 * disk/loopback.c (grub_loopback_open): Likewise.
45034 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45035 disk->id as in disk/host.c, not a multi-character constant.
45037 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45038 later is obsolete, potentially dangerous and sets a bad example.
45039 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45040 * util/misc.c (grub_util_get_image_size): Likewise.
45042 * disk/loopback.c (options): Improve help for "--partitions".
45044 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45045 options to align them with the short options, e.g. "echo -e".
45047 2008-03-31 Bean <bean123ch@gmail.com>
45049 * video/reader/png.c (grub_png_data): New member is_16bit and
45051 (grub_png_decode_image_header): Detect 16 bit png image.
45052 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45053 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45054 (grub_video_reader_png): Release memory occupied by image_data.
45056 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45058 (grub_nfs_mount): Skip the test for sector per cluster.
45060 * include/grub/ntfs.h (MAX_SPC): Removed.
45062 2008-03-31 Bean <bean123ch@gmail.com>
45064 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45065 (grub_probe_SOURCES): Add fs/afs.c.
45066 (grub_fstest_SOURCES): Likewise.
45067 (afs_mod_SOURCES): New variable.
45068 (afs_mod_CFLAGS): Likewise.
45069 (afs_mod_LDFLAGS): Likewise.
45071 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45072 (grub_emu_SOURCES): Likewise.
45074 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45076 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45078 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45082 * fs/afs.c: New file.
45084 2008-03-30 Pavel Roskin <proski@gnu.org>
45086 * disk/host.c: Include grub/misc.h to fix a warning.
45087 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45088 warnings about implicit declarations.
45090 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45092 * include/grub/i386/loader.h: Change declaration of
45093 grub_linux_boot() to match what grub_loader_set() expects.
45094 * util/getroot.c (grub_guess_root_device): Return const char* to
45096 * util/grub-probe.c (probe): Fix a warning about uninitialized
45097 abstraction_name variable.
45098 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45099 second argument as unused to fix a warning.
45101 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45102 missing grub_error() call.
45104 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45105 2.60 and newer uses it to define datadir.
45107 * commands/sleep.c: Fix warning about implicit declaration.
45108 * disk/memdisk.c: Likewise.
45109 * loader/aout.c: Likewise.
45110 * loader/i386/bsd_normal.c: Likewise.
45111 * util/grub-probe.c: Likewise.
45113 * commands/i386/cpuid.c (has_longmode): Make static.
45114 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45115 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45117 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45118 GDT. This is more robust, as %ds can change.
45119 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45120 calling real_to_prot().
45121 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45123 2008-03-28 Pavel Roskin <proski@gnu.org>
45125 * kern/i386/pc/startup.S: Assert that uncompressed functions
45126 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45127 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45128 code, as they push parts of the code (error handlers) beyond
45129 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45130 code as correctness and size.
45132 2008-03-28 Pavel Roskin <proski@gnu.org>
45134 * kern/i386/pc/startup.S
45135 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45136 data block address to the real mode, keep offset minimal. This
45137 works around a bug in AWARD BIOS on old Athlon systems, which
45138 makes CD detection hang.
45140 2008-03-26 Pavel Roskin <proski@gnu.org>
45142 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45144 * include/grub/normal.h: Add grub_parse_color_name_pair()
45147 2008-03-24 Bean <bean123ch@gmail.com>
45149 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45150 (cd_count): Removed.
45151 (cd_drive): New variable.
45152 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45153 (grub_biosdisk_call_hook): Likewise.
45154 (grub_biosdisk_iterate): Change cdrom detection method.
45155 (grub_biosdisk_open): Replace cd_start with cd_drive.
45156 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45157 detect cdrom device.
45159 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45161 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45162 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45163 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45164 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45165 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45166 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45167 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45168 (grub_biosdisk_cdrp): New structure.
45169 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45171 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45173 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45176 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45179 2008-03-20 Robert Millan <rmh@aybabtu.com>
45181 Remove 2 TiB limit in ata.mod.
45182 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45183 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45184 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45185 grub_uint64_t instead of grub_uint32_t.
45187 2008-03-05 Bean <bean123ch@gmail.com>
45189 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45190 (grub_multiboot): Set boot device.
45192 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45194 2008-03-02 Bean <bean123ch@gmail.com>
45196 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45199 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45201 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45204 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45207 * docs/fdl.texi: New file.
45209 * docs/mdate-sh: New file. Copied from gnulib.
45210 * docs/texinfo.tex: Likewise.
45212 * config.guess: Updated from gnulib.
45213 * install-sh: Likewise.
45215 2008-02-28 Robert Millan <rmh@aybabtu.com>
45217 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45218 (aout_mod_SOURCES): New variable.
45219 (aout_mod_CFLAGS): Likewise.
45220 (aout_mod_LDFLAGS): Likewise.
45222 * conf/i386-ieee1275.rmk: Likewise.
45224 2008-02-28 Robert Millan <rmh@aybabtu.com>
45226 * util/update-grub.in: Reorganise terminal validity check. Accept
45227 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45228 Based on suggestion by Franklin PIAT.
45230 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45232 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45234 * util/getroot.c (grub_util_check_block_device): New function that
45235 returns the given argument if it is a block device and returns NULL else.
45236 * util/grub-probe.c (argument_is_device): New variable.
45237 (probe): Promote device_name from a variable to an argument. Receive
45238 device_name from grub_util_check_block_device() if path is NULL and from
45239 grub_guess_root_device() else. Do not free() device_name anymore.
45240 (options): Introduce new parameter '-d, --device'.
45241 (main): Add description of the new parameter to the help screen.
45242 Rename path variable to argument. Set argument_is_device if the '-d'
45243 option is given. Pass argument to probe() depending on
45244 argument_is_device.
45246 2008-02-24 Bean <bean123ch@gmail.com>
45248 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45249 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45250 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45251 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45252 (GRUB_ISO9660_VOLDESC_END): Likewise.
45253 (grub_iso9660_primary_voldesc): New member escape.
45254 (grub_iso9660_data): New member joliet.
45255 (grub_iso9660_convert_string): New function.
45256 (grub_iso9660_mount): Detect joliet extension.
45257 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45258 (grub_iso9660_iso9660_label): Likewise.
45260 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45261 (grub_setup_SOURCES): Add fs/udf.c.
45262 (grub_fstest_SOURCES): Likewise.
45263 (udf_mod_SOURCES): New variable.
45264 (udf_mod_CFLAGS): Likewise.
45265 (udf_mod_LDFLAGS): Likewise.
45267 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45268 (grub_emu_SOURCES): Likewise.
45270 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45272 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45274 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45276 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45278 * fs/udf.c: New file.
45280 2008-02-24 Robert Millan <rmh@aybabtu.com>
45282 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45283 (normal/lexer.c_DEPENDENCIES): New variables.
45284 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45285 (normal/lexer.c_DEPENDENCIES): Likewise.
45286 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45287 (normal/lexer.c_DEPENDENCIES): Likewise.
45288 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45289 (normal/lexer.c_DEPENDENCIES): Likewise.
45290 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45291 (normal/lexer.c_DEPENDENCIES): Likewise.
45292 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45293 (normal/lexer.c_DEPENDENCIES): Likewise.
45295 2008-02-23 Robert Millan <rmh@aybabtu.com>
45297 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45298 since they were intended to be in hex. This didn't break previously
45299 because of a bug in gpt_partition_map_iterate() (see below).
45301 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45302 when checking the validity of GPT header.
45303 Remove `partno', since it always provides the same information as `i'.
45305 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45307 * include/grub/efi/time.h: Fix a wrong comment.
45309 2008-02-19 Pavel Roskin <proski@gnu.org>
45311 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45314 2008-02-19 Bean <bean123ch@gmail.com>
45316 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45317 (aout_mod_SOURCES): New variable.
45318 (aout_mod_CFLAGS): Likewise.
45319 (aout_mod_LDFLAGS): Likewise.
45320 (_bsd_mod_SOURCES): New variable.
45321 (_bsd_mod_CFLAGS): Likewise.
45322 (_bsd_mod_LDFLAGS): Likewise.
45323 (bsd_mod_SOURCES): New variable.
45324 (bsd_mod_CFLAGS): Likewise.
45325 (bsd_mod_LDFLAGS): Likewise.
45327 * include/grub/aout.h: New file.
45329 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45331 * include/grub/i386/bsd.h: New file.
45333 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45336 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45337 function is called, so that it's possible to change it inside the hook.
45338 (grub_elf64_load): Likewise.
45339 (grub_elf_file): Don't close the file if elf header is not found.
45340 (grub_elf_close): Close the file if grub_elf_file fails (The new
45341 grub_elf_file won't close it).
45342 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45343 (grub_elf64_size): Likewise.
45345 * kern/i386/loader.S (grub_unix_real_boot): New function.
45347 * loader/aout.c: New file.
45349 * loader/i386/bsd.c: New file.
45351 * loader/i386/bsd_normal.c: New file.
45353 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45355 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45356 can test other formats.
45358 2008-02-19 Robert Millan <rmh@aybabtu.com>
45360 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45361 (grub_gpt_partition_type_empty): Redefine with macro from
45362 `<grub/gpt_partition.h>'.
45363 (gpt_partition_map_iterate): Adjust partition type comparison.
45365 Export `entry' as partmap-specific `part.data' struct.
45366 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45368 * include/grub/gpt_partition.h (grub_gpt_header)
45369 (grub_gpt_partentry): ... to here (new file).
45371 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45373 (grub_gpt_partition_type_bios_boot): New const variable, defined
45374 with macro from `<grub/gpt_partition.h>'.
45376 (setup): Replace `first_start' with `embed_region', which keeps
45377 track of the embed region (and is partmap-agnostic).
45379 Replace find_first_partition_start() with find_usable_region(),
45380 which finds a usable region for embedding using partmap-specific
45381 knowledge (supports PC/MSDOS and GPT).
45383 Fix all assumptions that the embed region start at sector 1, using
45384 `embed_region.start' from now on. Similarly, use `embed_region.end'
45385 rather than `first_start' to calculate available size.
45387 In grub_util_info() message, replace "into after the MBR" with an
45388 indication of the specific sector our embed region starts at.
45390 2008-02-19 Robert Millan <rmh@aybabtu.com>
45392 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45393 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45394 `commands/reboot.c'.
45395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45396 (halt_mod_SOURCES): Likewise.
45397 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45398 (halt_mod_SOURCES): Likewise.
45400 2008-02-17 Christian Franke <franke@computer.org>
45402 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45404 2008-02-17 Robert Millan <rmh@aybabtu.com>
45406 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45407 set `first_start' to 0 for non-PC/MSDOS partition maps.
45409 2008-02-16 Robert Millan <rmh@aybabtu.com>
45411 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45412 do not assume partition map is PC/MSDOS before performing checks that
45413 are specific to that layout.
45415 2008-02-13 Robert Millan <rmh@aybabtu.com>
45417 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45418 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45419 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45421 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45423 * configure.ac: Only a cosmetic change on the handling of
45424 -fno-stack-protector.
45426 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45428 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45429 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45431 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45432 (halt_mod_SOURCES): New variable.
45433 (halt_mod_CFLAGS): Likewise.
45434 (halt_mod_LDFLAGS): Likewise.
45435 (reboot_mod_SOURCES): Likewise.
45436 (reboot_mod_CFLAGS): Likewise.
45437 (reboot_mod_LDFLAGS): Likewise.
45439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45440 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45442 (halt_mod_SOURCES): Likewise.
45443 (reboot_mod_SOURCES): Likewise.
45445 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45446 commands/i386/pc/reboot.c by commands/reboot.c.
45447 (reboot_mod_SOURCES): Likewise.
45449 * commands/i386/pc/reboot.c: merge this file ...
45451 * commands/ieee1275/reboot.c: ... and this file ...
45453 * commands/reboot.c: ... to this file.
45454 Add some precompiler directive to include the correct header for
45457 * commands/ieee1275/halt.c: move this file ...
45459 * commands/halt.c: ... to here.
45460 Add some precompiler directive to include the correct header for
45463 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45464 (grub_halt): Likewise.
45466 * kern/efi/efi.c (grub_reboot): New function.
45467 (grub_halt): Likewise.
45469 2008-02-12 Robert Millan <rmh@aybabtu.com>
45471 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45472 /dev (like it is done for /dev/mapper). This doesn't provide support
45473 for EVMS, but at least it is now easy to identify the problem when it
45476 2008-02-11 Robert Millan <rmh@aybabtu.com>
45478 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45479 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45480 comparing it with -1, not 0.
45482 2008-02-10 Robert Millan <rmh@aybabtu.com>
45484 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45487 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45489 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45490 `disk/lvm.c' to the end of the list.
45491 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45492 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45494 2008-02-10 Robert Millan <rmh@aybabtu.com>
45496 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45497 grub_print_error() instead. This will let user know why we're entering
45499 Based on suggestions from Sam Morris.
45501 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45503 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45504 on remaining N args, instead of "--" arg N times.
45506 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45508 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45509 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45510 pattern for unknown glyphs.
45512 2008-02-09 Robert Millan <rmh@aybabtu.com>
45514 * configure.ac: Probe for `help2man'.
45515 * Makefile.in (builddir): New variable.
45516 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45517 or otherwise add a few flags/options to it.
45518 (install-local): For every executable utility or script that is
45519 installed, invoke $(HELP2MAN) to install a manpage based on --help
45522 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45523 that it doesn't prevent --help from working in build tree.
45525 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45526 with `bug-grub@gnu.org'.
45527 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45528 * util/update-grub.in (usage): New function.
45529 Implement proper argument check, with support for --help and --version
45530 (as well as existing -y).
45532 2008-02-09 Christian Franke <franke@computer.org>
45534 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45535 avoid overwriting previous output.
45536 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45538 2008-02-09 Robert Millan <rmh@aybabtu.com>
45540 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45543 2008-02-09 Robert Millan <rmh@aybabtu.com>
45545 * commands/sleep.c: New file.
45546 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45547 (sleep_mod_SOURCES): New variable.
45548 (sleep_mod_CFLAGS): Likewise.
45549 (sleep_mod_LDFLAGS): Likewise.
45551 2008-02-09 Robert Millan <rmh@aybabtu.com>
45553 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45554 situations in which we can deduce the RAID size and the superblock
45557 2008-02-09 Robert Millan <rmh@aybabtu.com>
45559 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45560 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45561 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45563 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45564 and return a grub_diskmemberlist_t composed of physical array members.
45565 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45567 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45569 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45570 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45571 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45573 * util/grub-probe.c (probe): Move partmap probing code from here ...
45574 (probe_partmap): ... to here.
45575 (probe): Use probe_partmap() once for the disk we're probing, and
45576 additionally, when such disk contains a memberlist() struct member,
45577 once for each disk that is contained in the structure returned by
45580 2008-02-09 Robert Millan <rmh@aybabtu.com>
45582 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45583 environment variable to 'all' in order to obtain debug output from
45585 * util/i386/pc/grub-setup.c (main): Likewise.
45587 2008-02-08 Robert Millan <rmh@aybabtu.com>
45589 * disk/raid.c (grub_raid_scan_device): Check for
45590 `array->device[sb.this_disk.number]' rather than for
45591 `array->device[sb.this_disk.number]->name', since the latter is not
45592 guaranteed to be accessible.
45594 2008-02-08 Robert Millan <rmh@aybabtu.com>
45596 * disk/raid.c: Update copyright.
45597 * fs/cpio.c: Likewise.
45598 * include/grub/raid.h: Likewise.
45599 * loader/i386/pc/multiboot.c: Likewise.
45600 * util/hostfs.c: Likewise.
45602 2008-02-08 Robert Millan <rmh@aybabtu.com>
45604 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45605 to a grub_disk_t array.
45606 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45608 (grub_raid_scan_device): Replace `device[x].name' accesses with
45609 `device[x]->name'. Simplify initialization of `array->device[x]'.
45611 2008-02-08 Robert Millan <rmh@aybabtu.com>
45613 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45614 grub_dprintf() calls.
45615 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45618 2008-02-07 Christian Franke <franke@computer.org>
45620 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45621 instead of fseek and ftell to support large files.
45622 (grub_hostfs_read): Likewise.
45624 2008-02-07 Robert Millan <rmh@aybabtu.com>
45626 Patch from Jeroen Dekkers.
45627 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45628 failure, since successfully reading all array members might not be
45631 2008-02-06 Robert Millan <rmh@aybabtu.com>
45633 * util/grub-probe.c (probe): Simplify partmap probing (with the
45634 assumption that the first word up to the underscore equals to
45637 2008-02-06 Christian Franke <franke@computer.org>
45639 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45640 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45641 last block of a cpio or tar stream.
45642 Check for "TRAILER!!!" instead of any empty data
45643 block to detect last block of a cpio stream.
45644 (grub_cpio_dir): Fix constness of variable np.
45645 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45646 cpio or tar trailer is detected. This fixes a crash
45647 on open of a non existing file.
45649 2008-02-05 Bean <bean123ch@gmail.com>
45651 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45653 (grub_multiboot_load_elf64): Likewise.
45654 (grub_multiboot): Initialize mbi structure.
45656 * util/grub-fstest.c: Don't include unused header file script.h.
45658 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45660 (grub_fstest_SOURCES): Likewise.
45662 2008-02-05 Robert Millan <rmh@aybabtu.com>
45664 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45665 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45666 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45667 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45669 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45670 (translation_table): Replace hardcoded values with macros
45671 provided by `<grub/term.h>'.
45673 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45674 (keyboard_map): Correct/add a few values, with macros provided
45675 by `<grub/term.h>'.
45676 (keyboard_map_shift): Zero values that don't differ from their
45677 `keyboard_map' equivalents.
45678 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45679 Discard the second scan code that is always sent by Caps lock.
45680 Only use `keyboard_map_shift' when it provides a non-zero value,
45681 otherwise fallback to `keyboard_map'.
45683 2008-02-04 Bean <bean123ch@gmail.com>
45685 * Makefile.in (enable_grub_fstest): New variable.
45687 * conf/common.rmk (grub_fstest_init.lst): New rule.
45688 (grub_fstest_init.h): Likewise.
45689 (grub_fstest_init.c): Likewise.
45690 (util/grub-fstest.c_DEPENDENCIES): New variable.
45691 (grub_fstest_SOURCES): Likewise.
45693 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45695 * util/grub-fstest.c: New file.
45697 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45699 Make grub-setup handle a separate root device.
45701 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45702 so that the root device can be compared with the destination
45704 When embedding the core image, if the root and destination devices
45705 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45707 When not embedding, set ROOT_DRIVE to 0xFF.
45709 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45711 Add support for having a grub directory in a different drive. This
45712 is still only the data handling part.
45714 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45715 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45716 (grub_root_drive): New variable.
45718 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45719 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45720 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45723 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45725 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45727 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45729 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45730 is bogus, because PXE booting does not specify any drive
45733 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45734 am not sure if this is really correct.
45736 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45737 is always identical to the boot drive when booting from a CD.
45739 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45741 (root_drive): New variable.
45742 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45743 (setup_sectors): Push %dx right after popping it, because %dh will
45745 (copy_buffer): Restore %dx.
45747 2008-02-03 Robert Millan <rmh@aybabtu.com>
45749 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45750 use `cdboot.img' for cdrom images.
45752 2008-02-03 Robert Millan <rmh@aybabtu.com>
45754 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45755 only setup gfxterm when `font' command has succeeded.
45757 2008-02-03 Robert Millan <rmh@aybabtu.com>
45759 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45760 (grub_rescue_cmd_multiboot_loader)
45761 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45763 2008-02-03 Pavel Roskin <proski@gnu.org>
45765 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45766 %edx and %esi from stack only after grub_gate_a20() is called.
45767 grub_gate_a20() clobbers %edx.
45769 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45771 * configure.ac (AC_INIT): Bumped to 1.96.
45773 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45774 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45775 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45776 video/readers/png.c.
45778 2008-02-03 Bean <bean123ch@gmail.com>
45780 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45781 (cdboot_img_SOURCES): New variable.
45782 (cdboot_img_ASFLAGS): New variable.
45783 (cdboot_img_LDFLAGS): New variable.
45785 * boot/i386/pc/cdboot.S: New file.
45787 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45788 (cd_count): Likewise.
45789 (grub_biosdisk_get_drive): Add support for cd device.
45790 (grub_biosdisk_call_hook): Likewise.
45791 (grub_biosdisk_iterate): Likewise.
45792 (grub_biosdisk_open): Likewise.
45793 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45794 (grub_biosdisk_rw): Support reading from cd device.
45795 (GRUB_MOD_INIT): Iterate cd devices.
45797 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45798 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45799 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45801 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45803 2008-02-02 Robert Millan <rmh@aybabtu.com>
45805 * commands/read.c: New file.
45806 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45807 (read_mod_SOURCES): New variable.
45808 (read_mod_CFLAGS): Likewise.
45809 (read_mod_LDFLAGS): Likewise.
45811 2008-02-02 Robert Millan <rmh@aybabtu.com>
45813 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45814 determining whether menu has to be displayed.
45816 2008-02-02 Marco Gerards <marco@gnu.org>
45818 * bus/pci.c: New file.
45820 * include/grub/pci.h: Likewise.
45822 * include/grub/i386/pc/pci.h: Likewise.
45824 * commands/lspci.c: Likewise.
45826 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45828 (pci_mod_SOURCES): New variable.
45829 (pci_mod_CFLAGS): Likewise.
45830 (pci_mod_LDFLAGS): Likewise.
45831 (lspci_mod_SOURCES): Likewise.
45832 (lspci_mod_CFLAGS): Likewise.
45833 (lspci_mod_LDFLAGS): Likewise.
45835 2008-02-02 Bean <bean123ch@gmail.com>
45837 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45838 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45840 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45841 (grub_xfs_btree_node): New structure.
45842 (grub_xfs_btree_root): New structure.
45843 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45844 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45845 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45846 (GRUB_XFS_EXTENT_SIZE): Likewise.
45847 (grub_xfs_read_block): Support btree format type.
45848 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45849 Use directory block as basic unit.
45851 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45853 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45854 __attribute__ ((__regparm__ (1))).
45856 2008-02-01 Robert Millan <rmh@aybabtu.com>
45858 Correct a mistake in previous commit.
45860 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45862 (normal/command.c_DEPENDENCIES): New variable.
45864 2008-02-01 Robert Millan <rmh@aybabtu.com>
45866 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45868 (normal/command.c_DEPENDENCIES): New variable.
45869 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45870 * conf/i386-ieee1275.rmk: Likewise.
45871 * conf/i386-linuxbios.rmk: Likewise.
45872 * conf/i386-pc.rmk: Likewise.
45873 * conf/sparc64-ieee1275.rmk: Likewise.
45874 * conf/powerpc-ieee1275.rmk: Likewise.
45875 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45877 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45879 2008-02-01 Robert Millan <rmh@aybabtu.com>
45881 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45882 call at beginning of function.
45884 2008-01-31 Pavel Roskin <proski@gnu.org>
45886 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45887 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45888 (grub_mkrescue_SOURCES): Likewise.
45889 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45891 2008-01-30 Robert Millan <rmh@aybabtu.com>
45893 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45894 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45895 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45896 (grub_probe_SOURCES): ... to here.
45898 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45899 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45900 * conf/i386-ieee1275.rmk: Likewise.
45901 * conf/i386-linuxbios.rmk: Likewise.
45902 * conf/powerpc-ieee1275.rmk: Likewise.
45904 2008-01-30 Tristan Gingold <gingold@free.fr>
45906 * kern/rescue.c: Silently accept empty lines.
45908 2008-01-29 Bean <bean123ch@gmail.com>
45910 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45911 (real_code_2): Code cleanup and change comment style.
45912 (move_memory): Avoid using 32-bit address mode.
45914 2008-01-29 Bean <bean123ch@gmail.com>
45916 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45917 (png_mod_SOURCES): New variable.
45918 (png_mod_CFLAGS): Likewise.
45919 (png_mod_LDFLAGS): Likewise.
45921 * video/readers/png.c: New file.
45923 2008-01-28 Robert Millan <rmh@aybabtu.com>
45925 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45926 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45927 `ifndef GRUB_MOD_GAP' hack.
45928 * util/elf/grub-mkimage.c (add_segments): Likewise.
45930 2008-01-27 Robert Millan <rmh@aybabtu.com>
45932 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45933 `GRUB_MOD_GAP' for platforms in which it's not defined.
45934 * util/elf/grub-mkimage.c (add_segments): Likewise.
45936 2008-01-27 Robert Millan <rmh@aybabtu.com>
45938 Get grub-emu to build again (including parallel builds).
45940 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45942 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45943 (normal/execute.c_DEPENDENCIES): ... this, ...
45944 (grub-emu_DEPENDENCIES): ... and this.
45946 * conf/i386-efi.rmk: Likewise.
45947 * conf/i386-linuxbios.rmk: Likewise.
45948 * conf/i386-ieee1275.rmk: Likewise.
45949 * conf/powerpc-ieee1275.rmk: Likewise.
45950 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45952 2008-01-27 Robert Millan <rmh@aybabtu.com>
45954 * NEWS: Add a few items.
45956 2008-01-27 Robert Millan <rmh@aybabtu.com>
45958 Fix parallel builds with grub-emu. Based on earlier commit for
45959 grub-probe and grub-setup.
45961 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45962 (util/grub-emu.c_DEPENDENCIES): ... this.
45963 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45964 (util/grub-emu.c_DEPENDENCIES): ... this.
45965 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45966 (util/grub-emu.c_DEPENDENCIES): ... this.
45967 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45968 (util/grub-emu.c_DEPENDENCIES): ... this.
45969 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45970 (util/grub-emu.c_DEPENDENCIES): ... this.
45972 2008-01-27 Pavel Roskin <proski@gnu.org>
45974 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
45975 to create a gap between _end and the modules added to the image
45976 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
45977 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
45978 * util/elf/grub-mkimage.c (add_segments): Likewise.
45980 2008-01-26 Pavel Roskin <proski@gnu.org>
45982 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
45983 just return an error.
45985 2008-01-26 Bean <bean123ch@gmail.com>
45987 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
45988 (grub_reiserfs_get_item): Save offset of the next item.
45989 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
45991 2008-01-25 Robert Millan <rmh@aybabtu.com>
45993 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
45994 make all filesystem sources appear together (possibly fixing omissions
45996 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45997 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45998 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46001 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46003 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46004 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46005 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46006 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46008 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46009 (probe): Add a sanity check to make sure of our ability to read
46010 requested files when probing for filesystem type.
46012 * genmk.rb: Update copyright year (2007).
46014 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46015 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46016 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46017 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46018 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46019 : Remove function prototypes.
46021 2008-01-25 Robert Millan <rmh@aybabtu.com>
46023 Revert my previous commits (based on wrong assumption of how grub_errno
46026 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46027 * kern/file.c (grub_file_open): Likewise.
46029 2008-01-24 Pavel Roskin <proski@gnu.org>
46031 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46032 that hang if GRUB tries to setup colors.
46033 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46034 colors for firmwares that don't support it.
46035 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46036 Recognize Open Hack'Ware, set flags to work around its
46039 2008-01-24 Robert Millan <rmh@aybabtu.com>
46041 * kern/file.c (grub_file_open): Do not account previous failures of
46042 unrelated functions when grub_errno is checked for.
46043 Reported by Oleg Strikov.
46045 2008-01-24 Bean <bean123ch@gmail.com>
46047 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46048 (grub_ufs_sblock): New member volume name.
46049 (grub_ufs_find_file): Fix string copy bug.
46050 (grub_ufs_label): Implement this function properly.
46052 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46053 (grub_hfs_iterate_records): Use the correct file number for extents
46054 and catalog file. Fix problem in next index calculation.
46055 (grub_hfs_find_node): Replace recursive function call with loop.
46056 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46058 2008-01-23 Robert Millan <rmh@aybabtu.com>
46060 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46061 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46062 (grub_multiboot2_real_boot): New function prototype.
46064 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46065 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46067 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46068 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46070 2008-01-23 Robert Millan <rmh@aybabtu.com>
46072 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46073 #ifdef'ed out grub_printf().
46075 2008-01-23 Robert Millan <rmh@aybabtu.com>
46077 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46078 grub_dprintf calls, since they make "debug=all" mode unusable.
46079 (grub_console_checkkey): Likewise.
46081 2008-01-23 Robert Millan <rmh@aybabtu.com>
46083 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46084 `term/i386/pc/at_keyboard.c'.
46085 (pkglib_MODULES): Add `serial.mod'.
46086 (serial_mod_SOURCES): New variable.
46087 (serial_mod_CFLAGS): Likewise.
46088 (serial_mod_LDFLAGS): Likewise.
46090 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46091 `<grub/powerpc/ieee1275/console.h>'.
46092 (grub_keyboard_controller_init): New function prototype.
46093 (grub_console_checkkey): Likewise.
46094 (grub_console_getkey): Likewise.
46096 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46099 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46100 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46102 2008-01-23 Robert Millan <rmh@aybabtu.com>
46104 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46105 present, "(memdisk)/boot/grub" becomes the default prefix.
46107 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46108 a memdisk tarball with all the modules. Add --overlay=DIR option that
46109 allows users to overlay additional files into the image.
46111 2008-01-23 Robert Millan <rmh@aybabtu.com>
46113 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46114 and `machine/memory.h'.
46115 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46116 (_multiboot_mod_SOURCES): New variable.
46117 (_multiboot_mod_CFLAGS): Likewise.
46118 (_multiboot_mod_LDFLAGS): Likewise.
46119 (multiboot_mod_SOURCES): Likewise.
46120 (multiboot_mod_CFLAGS): Likewise.
46121 (multiboot_mod_LDFLAGS): Likewise.
46123 * include/grub/i386/ieee1275/loader.h: New file.
46125 * include/grub/i386/ieee1275/machine.h: Likewise.
46127 * include/grub/i386/ieee1275/memory.h: Likewise.
46129 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46130 variable declaration.
46131 (grub_os_area_size): Likewise.
46133 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46134 (grub_lower_mem, grub_upper_mem): New variables.
46135 (grub_stop_floppy): New function (just to make
46136 grub_multiboot2_real_boot() happy).
46138 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46139 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46140 (grub_stop): New function.
46141 Include `"../realmode.S"' and `"../loader.S"'.
46143 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46144 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46146 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46147 rely on grub_multiboot2_real_boot() for final boot.
46149 2008-01-22 Robert Millan <rmh@aybabtu.com>
46151 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46152 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46153 device that doesn't look like an SD card.
46154 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46155 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46156 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46157 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46160 2008-01-22 Robert Millan <rmh@aybabtu.com>
46162 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46163 avoid claiming over our own code.
46165 2008-01-22 Bean <bean123ch@gmail.com>
46167 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46168 (jpeg_mod_SOURCES): New variable.
46169 (jpeg_mod_CFLAGS): Likewise.
46170 (jpeg_mod_LDFLAGS): Likewise.
46172 * video/readers/jpeg.c : New file.
46174 2008-01-22 Bean <bean123ch@gmail.com>
46176 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46177 there are no more items.
46179 2008-01-21 Robert Millan <rmh@aybabtu.com>
46181 * kern/mm.c (grub_mm_init_region): Improve debug message.
46183 2008-01-21 Robert Millan <rmh@aybabtu.com>
46185 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46186 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46188 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46190 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46191 Indicates start of upper memory.
46192 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46193 (generate_image): Abort when image size is big enough to corrupt
46196 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46197 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46198 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46199 instead of hardcoding 0xA0000.
46200 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46201 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46202 instead of hardcoding 0xA0000.
46204 2008-01-21 Robert Millan <rmh@aybabtu.com>
46206 * disk/memdisk.c (memdisk_size): New variable.
46207 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46209 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46210 image to dynamic memory.
46211 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46212 `memdisk_size'. Free memdisk block.
46214 2008-01-21 Robert Millan <rmh@aybabtu.com>
46216 Fix detection of very small filesystems (like tar).
46218 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46219 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46220 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46221 a problem with this disk).
46223 2008-01-21 Robert Millan <rmh@aybabtu.com>
46225 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46226 on grub_biosdisk_rw_standard() error.
46228 2008-01-21 Robert Millan <rmh@aybabtu.com>
46230 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46232 * kern/elf.c: Likewise.
46233 * kern/ieee1275/ieee1275.c: Likewise.
46234 * kern/powerpc/ieee1275/openfw.c: Likewise.
46235 * term/ieee1275/ofconsole.c: Likewise.
46237 2008-01-21 Robert Millan <rmh@aybabtu.com>
46239 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46241 * include/grub/kernel.h (grub_arch_memdisk_addr)
46242 (grub_arch_memdisk_size): Moved from here ...
46244 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46245 (grub_arch_memdisk_size): ... to here.
46247 2008-01-21 Robert Millan <rmh@aybabtu.com>
46249 Mostly based on bugfix from Bean.
46251 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46252 attribute with hook() parameter.
46253 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46255 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46256 attribute with hook() parameter.
46257 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46260 2008-01-21 Robert Millan <rmh@aybabtu.com>
46262 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46263 (pkglib_MODULES): Add `memdisk.mod'.
46264 (memdisk_mod_SOURCES): New variable.
46265 (memdisk_mod_CFLAGS): Likewise.
46266 (memdisk_mod_LDFLAGS): Likewise.
46268 * disk/memdisk.c: New file.
46270 * include/grub/disk.h (grub_disk_dev_id): Add
46271 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46273 * include/grub/i386/pc/kernel.h
46274 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46275 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46276 (grub_kernel_image_size): New variable declaration.
46277 (grub_total_module_size): Likewise.
46278 (grub_memdisk_image_size): Likewise.
46280 * include/grub/i386/pc/memory.h
46281 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46283 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46284 (grub_arch_memdisk_addr): New variable declaration.
46285 (grub_arch_memdisk_size): Likewise.
46287 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46288 (grub_arch_memdisk_size): Likewise.
46290 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46291 (codestart): Replace hardcoded `0x100000' with
46292 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46294 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46295 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46296 not NULL, append the contents of the file it refers to, at the end of
46297 the compressed kernel image. Initialize `grub_memdisk_image_size'
46298 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46299 (options): Add "memdisk"|'m' option.
46300 (main): Parse --memdisk|-m option, and pass user-provided path as
46301 parameter to generate_image().
46303 2008-01-20 Robert Millan <rmh@aybabtu.com>
46305 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46306 grub_dprintf() calls from here ...
46307 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46309 2008-01-20 Robert Millan <rmh@aybabtu.com>
46311 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46313 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46315 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46316 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46317 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46318 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46320 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46321 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46323 2008-01-19 Robert Millan <rmh@aybabtu.com>
46325 Get rid of confusing function (superseded by
46326 `grub_ieee1275_get_integer_property')
46327 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46329 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46331 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46332 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46333 in native endianness from grub_ieee1275_get_integer_property().
46335 2008-01-19 Robert Millan <rmh@aybabtu.com>
46337 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46338 command after "shut-down", since implementations differ on which
46339 the command for halt is.
46341 2008-01-19 Robert Millan <rmh@aybabtu.com>
46343 * include/grub/i386/linuxbios/console.h: Add header protection.
46344 (grub_keyboard_controller_init): New function prototype.
46345 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46346 (KEYBOARD_COMMAND_READ): Likewise.
46347 (KEYBOARD_COMMAND_WRITE): Likewise.
46348 (KEYBOARD_SCANCODE_SET1): Likewise.
46349 (grub_keyboard_controller_write): New function.
46350 (grub_keyboard_controller_read): Likewise.
46351 (grub_keyboard_controller_init): Likewise.
46353 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46354 (grub_console_init): On coreboot/LinuxBIOS, call
46355 grub_keyboard_controller_init().
46357 2008-01-19 Robert Millan <rmh@aybabtu.com>
46359 PowerPC changes provided by Pavel Roskin.
46361 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46362 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46363 don't rely on cmain() doing it.
46364 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46365 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46367 2008-01-16 Robert Millan <rmh@aybabtu.com>
46369 * include/grub/i386/linuxbios/memory.h
46370 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46371 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46372 receive `table_header' as argument. Instead, probe for it in the
46373 known memory ranges where it can be present.
46374 (grub_available_iterate): Do not pass a fixed `table_header' address
46375 to grub_linuxbios_table_iterate().
46377 2008-01-15 Robert Millan <rmh@aybabtu.com>
46379 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46380 * conf/i386-ieee1275.rmk: New file.
46381 * include/grub/i386/ieee1275/console.h: Likewise.
46382 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46383 * include/grub/i386/ieee1275/kernel.h: Likewise.
46384 * include/grub/i386/ieee1275/time.h: Likewise.
46385 * kern/i386/ieee1275/init.c: Likewise.
46386 * kern/i386/ieee1275/startup.S: Likewise.
46388 2008-01-15 Robert Millan <rmh@aybabtu.com>
46390 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46391 when pointers are 32-bit (but still do set it to one when they are
46394 2008-01-15 Robert Millan <rmh@aybabtu.com>
46396 * include/grub/ieee1275/ieee1275.h
46397 (grub_ieee1275_get_integer_property): New function prototype.
46399 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46400 (grub_ieee1275_get_integer_property): New function. Wraps around
46401 grub_ieee1275_get_property() to handle endianness.
46403 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46404 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46406 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46407 (grub_map): Likewise.
46408 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46410 2008-01-15 Bean <bean123ch@gmail.com>
46412 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46413 (grub_script_execute_cmdline): Reset grub_errno.
46415 * normal/main.c (read_config_file): Reset grub_errno.
46417 * normal/parse.y (script_init): New.
46418 (script): Move function and menuentry here.
46420 (command): Add delimiter at the end of command.
46421 (commands): Adjust to match the new command.
46422 (commandblock): Remove grub_script_lexer_record_start.
46423 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46424 (if): Use the new commands.
46426 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46428 2008-01-15 Robert Millan <rmh@aybabtu.com>
46430 * normal/menu.c (run_menu): Move timeout message from here ...
46431 (print_timeout): ... to here.
46432 (run_menu): Use print_timeout() once during initial draw to print
46433 the whole message, and again in every clock tick to update only
46434 the number of seconds.
46436 2008-01-15 Robert Millan <rmh@aybabtu.com>
46438 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46439 actual size of `available' from grub_ieee1275_get_property(), and
46440 restrict parsing to that bound.
46442 2008-01-15 Christian Franke <franke@computer.org>
46444 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46445 (argp_program_version): Remove variable.
46446 (argp_program_bug_address): Likewise.
46447 (options): Convert from struct argp_option to struct option.
46448 (struct arguments): Remove.
46449 (parse_opt): Remove.
46450 (usage): New function.
46451 (main): Replace struct args members by simple variables.
46452 Replace argp_parse() by getopt_long().
46453 Add switch to evaluate options.
46454 Add missing "(...)" around root_dev in prefix string.
46456 2008-01-14 Robert Millan <rmh@aybabtu.com>
46458 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46459 for grub_ieee1275_exit(), in order to improve portability.
46461 2008-01-14 Robert Millan <rmh@aybabtu.com>
46463 * util/grub.d/10_linux.in (prefix): Define.
46464 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46466 2008-01-13 Pavel Roskin <proski@gnu.org>
46468 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46469 grub_errno if no errors have been detected.
46471 2008-01-12 Robert Millan <rmh@aybabtu.com>
46473 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46474 (grub_util_get_dev_abstraction): New function prototype.
46476 * util/getroot.c: Include `<grub/util/getroot.h>'
46477 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46478 (grub_util_get_dev_abstraction): ... here (new function).
46480 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46481 `PRINT_ABSTRACTION'.
46482 (probe): Probe for abstraction type when requested.
46483 (main): Understand `--target=abstraction'.
46485 * util/i386/efi/grub-install.in: Add abstraction module to core
46486 image when it is found to be necessary.
46487 * util/i386/pc/grub-install.in: Likewise.
46488 * util/powerpc/ieee1275/grub-install.in: Likewise.
46490 * util/update-grub_lib.in (font_path): Return system path without
46491 converting to GRUB path.
46492 * util/update-grub.in: Convert system path returned by font_path()
46493 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46494 abstraction module is needed for loading fonts (if any). Export
46495 that as `GRUB_PRELOAD_MODULES'.
46496 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46499 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46501 Remove some unused code from reiserfs.
46503 * fs/reiserfs.c (struct grub_reiserfs_key)
46504 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46505 (struct grub_reiserfs_node_body): Removed.
46506 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46508 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46510 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46512 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46514 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46516 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46518 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46519 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46520 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46522 2008-01-10 Robert Millan <rmh@aybabtu.com>
46524 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46525 Determines if a file is garbage left by packaging systems, etc.
46526 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46527 for processing /etc/grub.d scripts.
46528 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46529 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46530 as a condition for processing Linux images.
46532 2008-01-10 Pavel Roskin <proski@gnu.org>
46534 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46535 to compile reiserfs.c on PowerPC.
46537 2008-01-10 Robert Millan <rmh@aybabtu.com>
46539 * kern/device.c (grub_device_iterate): Do not abort device iteration
46540 when one of the devices cannot be opened.
46541 * kern/disk.c (grub_disk_open): Do not account previous failures of
46542 unrelated functions when grub_errno is checked for.
46544 2008-01-08 Robert Millan <rmh@aybabtu.com>
46546 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46547 `! grub_linux_is_bzimage', change order of address comparison to make
46548 it more intuitive, and improve "too big zImage" error message.
46550 2008-01-08 Robert Millan <rmh@aybabtu.com>
46552 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46553 `$(update-grub_DATA)'.
46554 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46557 2008-01-07 Robert Millan <rmh@aybabtu.com>
46559 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46560 which instruction is modified by grub-setup during installation
46561 (since it wasn't obvious by only looking at this file).
46563 2008-01-07 Robert Millan <rmh@aybabtu.com>
46565 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46566 listing actual TODO items.
46568 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46570 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46572 (grub_reiserfs_get_key_offset): Likewise.
46573 (grub_reiserfs_set_key_offset): Likewise.
46574 (grub_reiserfs_set_key_type): Likewise.
46575 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46577 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46578 better to remove the bitfield version completely.
46580 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46582 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46583 allocated from the heap, due to the fshelp implementation.
46584 (grub_reiserfs_dir): Free NODE, due to the same reason.
46586 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46588 Mostly from Vincent Pelletier:
46590 * fs/reiserfs.c: New file.
46592 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46593 (reiserfs_mod_SOURCES): New variable.
46594 (reiserfs_mod_CFLAGS): Likewise.
46595 (reiserfs_mod_LDFLAGS): Likewise.
46597 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46598 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46599 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46602 2008-01-06 Robert Millan <rmh@aybabtu.com>
46604 * normal/color.c: Remove `<grub/env.h>'.
46606 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46608 * include/grub/normal.h: Include <grub/env.h>.
46610 2008-01-05 Robert Millan <rmh@aybabtu.com>
46612 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46613 usage example with `(hd0,1)'.
46614 Reported by Samuel Thibault.
46616 2008-01-05 Robert Millan <rmh@aybabtu.com>
46618 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46619 (grub_linux_boot_zimage): Rename to ...
46620 (grub_linux_boot): ... this.
46621 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46622 (grub_linux_boot_zimage): Conditionalize zImage copy.
46624 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46625 (grub_linux_boot_bzimage): Remove prototype.
46626 (grub_linux_boot_zimage): Rename to ...
46627 (grub_linux_boot): ... this.
46629 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46630 (grub_linux_boot): Remove function.
46632 2008-01-05 Robert Millan <rmh@aybabtu.com>
46634 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46635 (grub_env_write_color_highlight): Likewise.
46636 (grub_wait_after_message): Likewise.
46638 * normal/color.c: New file.
46640 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46641 (normal_mod_DEPENDENCIES): Likewise.
46643 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46644 (normal_mod_DEPENDENCIES): Likewise.
46646 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46647 (normal_mod_DEPENDENCIES): Likewise.
46649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46650 (normal_mod_DEPENDENCIES): Likewise.
46652 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46653 for waiting after a message is printed.
46654 * normal/main.c (read_config_file): Likewise.
46655 (grub_normal_init): Register grub_env_write_color_normal() and
46656 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46657 `color_highlight' variables as global.
46659 * normal/menu.c (grub_wait_after_message): New function.
46660 (grub_color_menu_normal): New variable. Replaces ...
46661 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46662 (grub_color_menu_highlight): New variable. Replaces ...
46663 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46664 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46665 `GRUB_TERM_COLOR_STANDARD'.
46666 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46667 `normal_code' and `highlight_code' to `old_color_normal' and
46668 `old_color_highlight', respectively.
46669 (grub_menu_init_page): Update colors when drawing the menu, based on
46670 `menu_color_normal' and `menu_color_highlight' variables.
46671 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46672 a message is printed.
46674 2008-01-05 Robert Millan <rmh@aybabtu.com>
46676 * kern/env.c (grub_env_context_open): Propagate hooks for global
46677 variables to new context.
46679 * kern/main.c (grub_set_root_dev): Export `root' variable.
46681 2008-01-05 Robert Millan <rmh@aybabtu.com>
46683 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46684 discs unconditionally, since udev and others have options to provide
46687 2008-01-05 Robert Millan <rmh@aybabtu.com>
46689 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46691 2008-01-04 Christian Franke <franke@computer.org>
46693 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46696 2008-01-03 Pavel Roskin <proski@gnu.org>
46698 * kern/i386/linuxbios/init.c: Put "void" to all function
46699 declarations with no arguments.
46700 * kern/powerpc/ieee1275/init.c: Likewise.
46701 * term/i386/pc/at_keyboard.c: Likewise.
46702 * term/i386/pc/vga_text.c: Likewise.
46703 * util/grub-mkdevicemap.c: Likewise.
46705 2008-01-02 Robert Millan <rmh@aybabtu.com>
46707 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46708 message when loaded image is out of bounds.
46709 (grub_multiboot_load_elf64): Likewise.
46711 2008-01-02 Pavel Roskin <proski@gnu.org>
46713 * util/grub.d/10_linux.in: Try version without ".old" when
46714 looking for initrd. It's better to use initrd from the newer
46715 kernel of the same version than no initrd at all.
46717 2008-01-01 Robert Millan <rmh@aybabtu.com>
46719 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46721 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46723 * include/grub/video.h: Added grub_video_unmap_color and
46724 grub_video_get_active_render_target.
46725 (grub_video_adapter): Added unmap_color and get_active_render_target.
46727 * video/video.c: Added grub_video_unmap_color and
46728 grub_video_get_active_render_target.
46729 (grub_video_get_info): Changed method to accept NULL pointer as an
46730 argument to allow detection of active video adapter.
46732 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46733 grub_video_vbe_unmap_color_int.
46734 Added grub_video_vbe_unmap_color and
46735 grub_video_vbe_get_active_render_target.
46736 (grub_video_vbe_adapter): Added unmap_color and
46737 get_active_render_target.
46739 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46740 with grub_video_vbe_unmap_color_int.
46742 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46743 (DEFAULT_NORMAL_COLOR): Likewise.
46744 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46745 (DEFAULT_FG_COLOR): Removed.
46746 (DEFAULT_BG_COLOR): Likewise.
46747 (DEFAULT_CURSOR_COLOR): Changed value.
46748 (grub_virtual_screen): Added standard_color_setting,
46749 normal_color_setting, highlight_color_setting and term_color.
46750 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46751 (bitmap_width): Added.
46752 (bitmap_height): Likewise.
46753 (bitmap): Likewise.
46754 (set_term_color): Likewise.
46755 (grub_virtual_screen_setup): Changed to use new terminal coloring
46757 (grub_gfxterm_init): Added init for bitmap.
46758 (grub_gfxterm_fini): Added destroy for bitmap.
46759 (redraw_screen_rect): Updated to use background bitmap and new
46761 (scroll_up): Added optimization for case when there is no bitmap.
46762 (grub_gfxterm_cls): Fixed to use correct background color.
46763 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46765 (grub_virtual_screen_setcolor): Likewise.
46766 (grub_virtual_screen_getcolor): Added.
46767 (grub_gfxterm_background_image_cmd): Likewise.
46768 (grub_video_term): Added setcolor and getcolor.
46769 (MOD_INIT): Added registration of background_image command.
46770 (MOD_TERM): Added unregistration for background_image command.
46772 2007-12-30 Pavel Roskin <proski@gnu.org>
46774 * loader/multiboot_loader.c: Fix multiboot command
46775 unregistration. Fix all typos in the word "multiboot".
46777 2007-12-29 Pavel Roskin <proski@gnu.org>
46779 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46780 support for initrd names used in Fedora.
46782 2007-12-26 Bean <bean123ch@gmail.com>
46784 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46785 (cpio_mod_SOURCES): New variable.
46786 (cpio_mod_CFLAGS): Likewise.
46787 (cpio_mod_LDFLAGS): Likewise.
46789 * fs/cpio.c: New file.
46791 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46793 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46795 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46799 2007-12-25 Robert Millan <rmh@aybabtu.com>
46801 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46802 (grub_getcolor): New function.
46804 * kern/term.c (grub_getcolor): New function.
46805 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46806 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46807 (print_entry): Set normal and highlight colors to
46808 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46809 respectively, before printing and restore them to old
46811 (grub_menu_init_page): Likewise. Fill an additional colored space
46812 that would otherwise be left blank.
46814 * term/efi/console.c (grub_console_getcolor): New function.
46815 (struct grub_console_term.getcolor): New variable.
46816 * term/i386/pc/console.c (grub_console_getcolor): New function.
46817 (struct grub_console_term.getcolor): New variable.
46818 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46819 (struct grub_console_term.getcolor): New variable.
46821 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46822 (struct grub_console_term.setcolor): Remove variable.
46823 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46824 (struct grub_console_term.setcolor): Remove variable.
46825 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46826 (struct grub_console_term.setcolor): Remove variable.
46827 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46828 (struct grub_console_term.setcolor): Remove variable.
46830 2007-12-25 Robert Millan <rmh@aybabtu.com>
46832 * configure.ac: Search for possible unifont.hex locations, and
46833 define UNIFONT_HEX if found.
46835 * Makefile.in (UNIFONT_HEX): Define variable.
46836 (DATA): Rename to ...
46837 (PKGLIB): ... this. Update all users.
46838 (PKGDATA): New variable.
46839 (pkgdata_IMAGES): Rename to ...
46840 (pkglib_IMAGES): ... this. Update all users.
46841 (pkgdata_MODULES): Rename to ...
46842 (pkglib_MODULES): ... this. Update all users.
46843 (pkgdata_PROGRAMS): Rename to ...
46844 (pkglib_PROGRAMS): ... this. Update all users.
46845 (pkgdata_DATA): Rename to ...
46846 (pkglib_DATA): ... this. Update all users.
46847 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46848 (unicode.pff, ascii.pff): New rules.
46849 (all-local): Add `$(PKGDATA)' dependency.
46850 (install-local): Process `$(PKGDATA)'.
46852 * util/update-grub_lib.in (font_path): Search for *.pff files in
46853 a few more locations, including `${pkgdata}'.
46855 2007-12-23 Robert Millan <rmh@aybabtu.com>
46857 Patch from Bean <bean123ch@gmail.com>:
46858 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46861 2007-12-21 Bean <bean123ch@gmail.com>
46863 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46864 (ntfscomp_mod_SOURCES): New variable.
46865 (ntfscomp_mod_CFLAGS): Likewise.
46866 (ntfscomp_mod_LDFLAGS): Likewise.
46868 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46869 (grub_probe_SOURCES): Likewise.
46870 (grub_emu_SOURCES): Likewise.
46872 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46873 (grub_emu_SOURCES): Likewise.
46875 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46876 (grub_emu_SOURCES): Likewise.
46878 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46879 (grub_emu_SOURCES): Likewise.
46881 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46882 (read_run_list): Renamed to grub_ntfs_read_run_list.
46883 (decomp_nextvcn): Moved to ntfscomp.c.
46884 (decomp_getch): Likewise.
46885 (decomp_get16): Likewise.
46886 (decomp_block): Likewise.
46887 (read_block): Likewise.
46888 (read_data): Partially moved to ntfscomp.c.
46889 (fixup): Change unsigned to grub_uint16_t.
46890 (read_mft): Change unsigned long to grub_uint32_t.
46891 (read_attr): Likewise.
46892 (read_data): Likewise.
46893 (read_run_data): Likewise.
46894 (read_run_list): Likewise.
46895 (read_mft): Likewise.
46897 * fs/ntfscomp.c: New file.
46899 * include/grub/ntfs.h: New file.
46901 2007-12-16 Robert Millan <rmh@aybabtu.com>
46903 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46904 IDE disk check, since Linux is known to support 20 IDE disks.
46905 Reported by Colin Watson.
46907 2007-12-15 Bean <bean123ch@gmail.com>
46909 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46910 (lnxboot_img_SOURCES): New variable.
46911 (lnxboot_img_ASFLAGS): Likewise.
46912 (lnxboot_img_LDFLAGS): Likewise.
46914 * boot/i386/pc/lnxboot.S: New file.
46916 2007-11-24 Pavel Roskin <proski@gnu.org>
46918 * configure.ac: Test if '--build-id=none' is supported by the
46919 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46920 objcopy to generate incorrect binary files (binutils
46921 2.17.50.0.18-1 as shipped by Fedora 8).
46922 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46923 linking, so that build ID doesn't break the test.
46925 2007-11-24 Pavel Roskin <proski@gnu.org>
46927 * include/grub/i386/time.h: use "void" in the argument list
46928 of grub_cpu_idle().
46929 * include/grub/powerpc/time.h: Likewise.
46930 * include/grub/sparc64/time.h: Likewise.
46932 2007-11-18 Christian Franke <franke@computer.org>
46934 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46935 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46936 This fixes the problem that function keys did not work in grub-emu.
46938 2007-11-18 Christian Franke <franke@computer.org>
46940 * disk/host.c (grub_host_open): Remove attribute unused from
46941 name parameter. Add check for "host". This fixes the problem
46942 that grub-emu does not find partitions.
46944 2007-11-18 Christian Franke <franke@computer.org>
46946 * util/hostfs.c (is_dir): New function.
46947 (grub_hostfs_dir): Handle missing dirent.d_type case.
46948 (grub_hostfs_read): Add missing fseek().
46949 (grub_hostfs_label): Clear label pointer. This fixes a crash
46950 of grub-emu on "ls (host)".
46952 2007-11-18 Christian Franke <franke@computer.org>
46954 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46955 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46956 to 64 bit boundary by default.
46958 2007-11-18 Bean <bean123ch@gmail.com>
46960 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46961 (hexdump_mod_SOURCES): New variable.
46962 (hexdump_mod_CFLAGS): Likewise.
46963 (hexdump_mod_LDFLAGS): Likewise.
46965 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46967 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46969 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46971 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46973 * include/grub/hexdump.h: New file.
46975 * commands/hexdump.c: New file.
46977 2007-11-10 Robert Millan <rmh@aybabtu.com>
46979 * commands/i386/pc/play.c (beep_off): Switch order of arguments
46980 in grub_outb() calls.
46981 (beep_on): Likewise.
46983 2007-11-10 Christian Franke <franke@computer.org>
46985 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
46986 (grub_menu_run): Likewise.
46988 2007-11-10 Robert Millan <rmh@aybabtu.com>
46990 * include/grub/i386/efi/machine.h: New file.
46991 * include/grub/i386/linuxbios/machine.h: Likewise.
46992 * include/grub/i386/pc/machine.h: Likewise.
46993 * include/grub/powerpc/ieee1275/machine.h: Likewise.
46994 * include/grub/sparc64/ieee1275/machine.h: Likewise.
46996 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
46997 (serial_hw_io_addr): New variable.
46998 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
46999 instead of `(unsigned short *) 0x400'.
47001 2007-11-10 Bean <bean123ch@gmail.com>
47003 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47005 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47007 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47008 (vga_mod_SOURCES): Added.
47009 (vga_mod_CFLAGS): Likewise.
47010 (vga_mod_LDFLAGS): Likewise.
47012 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47014 (set_map_mask): Likewise.
47015 (set_read_map): Likewise.
47016 (set_read_address): Likewise.
47017 (vga_font): Removed variable.
47018 (get_vga_glyph): Removed function.
47019 (invalidate_char): Likewise.
47020 (write_char): Changed to use grub_font_get_glyph() for font
47022 (grub_vga_putchar): Likewise.
47023 (grub_vga_getcharwidth): Likewise.
47025 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47027 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47029 (pxeboot_img_LDFLAGS): Likewise.
47030 (diskboot_img_LDFLAGS): Likewise.
47031 (kernel_img_LDFLAGS): Likewise.
47033 2007-11-06 Robert Millan <rmh@aybabtu.com>
47035 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47036 in grub_outb() calls.
47037 (serial_hw_init): Likewise.
47039 2007-11-05 Robert Millan <rmh@aybabtu.com>
47041 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47042 spaces. Skip non-regular files.
47044 2007-11-05 Robert Millan <rmh@aybabtu.com>
47046 * kern/disk.c (grub_disk_firmware_fini)
47047 (grub_disk_firmware_is_tainted): New variables.
47049 * include/grub/disk.h (grub_disk_firmware_fini)
47050 (grub_disk_firmware_is_tainted): Likewise.
47052 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47053 (grub_disk_biosdisk_fini): ... to here.
47054 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47055 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47056 is set. Register grub_disk_biosdisk_fini() in
47057 `grub_disk_firmware_fini'.
47059 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47060 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47061 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47062 to finish existing firmware disk interface.
47064 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47065 (ata_mod_SOURCES): New variable.
47066 (ata_mod_CFLAGS): Likewise.
47067 (ata_mod_LDFLAGS): Likewise.
47069 2007-11-05 Robert Millan <rmh@aybabtu.com>
47071 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47072 (grub_ata_wait): Reimplement using grub_millisleep().
47074 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47075 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47077 2007-11-03 Marco Gerards <marco@gnu.org>
47079 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47080 (CRTC_ADDR_PORT): New macro.
47081 (CRTC_DATA_PORT): Likewise.
47082 (CRTC_CURSOR): Likewise.
47083 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47084 (CRTC_CURSOR_ADDR_LOW): Likewise.
47085 (update_cursor): New function.
47086 (grub_console_real_putchar): Call `update_cursor'.
47087 (grub_console_gotoxy): Likewise.
47088 (grub_console_cls): Set the default color when clearing the
47090 (grub_console_setcursor): Implemented.
47092 2007-11-03 Marco Gerards <marco@gnu.org>
47094 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47096 (grub_ata_pio_write): Likewise.
47098 (grub_atapi_identify): Wait after issuing an ATA command.
47099 (grub_atapi_packet): Likewise.
47100 (grub_ata_identify): Likewise.
47101 (grub_ata_readwrite): Likewise.
47103 2007-11-03 Marco Gerards <marco@gnu.org>
47105 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47106 (grub_ata_pio_write): Likewise.
47107 (grub_ata_readwrite): Use `grub_error', instead of
47108 returning `grub_errno'.
47110 2007-11-03 Marco Gerards <marco@gnu.org>
47112 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47113 grub_ata_pio_write once for every single sector, instead of for
47116 2007-10-31 Robert Millan <rmh@aybabtu.com>
47118 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47120 * conf/i386-linuxbios.rmk: New file.
47122 * kern/i386/pc/hardware.c: Likewise.
47123 * term/i386/pc/at_keyboard.c: Likewise.
47124 * term/i386/pc/vga_text.c: Likewise.
47126 * include/grub/i386/linuxbios/boot.h: Likewise.
47127 * include/grub/i386/linuxbios/console.h: Likewise.
47128 * include/grub/i386/linuxbios/init.h: Likewise.
47129 * include/grub/i386/linuxbios/kernel.h: Likewise.
47130 * include/grub/i386/linuxbios/loader.h: Likewise.
47131 * include/grub/i386/linuxbios/memory.h: Likewise.
47132 * include/grub/i386/linuxbios/serial.h: Likewise.
47133 * include/grub/i386/linuxbios/time.h: Likewise.
47135 * kern/i386/linuxbios/init.c: Likewise.
47136 * kern/i386/linuxbios/startup.S: Likewise.
47137 * kern/i386/linuxbios/table.c: Likewise.
47139 2007-10-31 Marco Gerards <marco@gnu.org>
47141 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47142 (ata_mod_SOURCES): New variable.
47143 (ata_mod_CFLAGS): Likewise.
47144 (ata_mod_LDFLAGS): Likewise.
47146 * disk/ata.c: New file.
47148 * include/grub/disk.h (grub_disk_dev_id): Add
47149 `GRUB_DISK_DEV_ATA_ID'.
47151 2007-10-31 Robert Millan <rmh@aybabtu.com>
47153 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47154 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47156 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47157 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47159 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47162 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47164 2007-10-27 Robert Millan <rmh@aybabtu.com>
47166 * include/grub/types.h (ULONG_MAX): Define macro.
47168 2007-10-22 Robert Millan <rmh@aybabtu.com>
47170 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47172 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47174 2007-10-22 Robert Millan <rmh@aybabtu.com>
47176 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47177 (pkgdata_MODULES): Add `biosdisk.mod'.
47178 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47181 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47182 (grub_biosdisk_init): Replace with ...
47183 (GRUB_MOD_INIT(biosdisk)): ... this.
47184 (grub_biosdisk_fini): Replace with ...
47185 (GRUB_MOD_FINI(biosdisk)): ... this.
47187 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47188 (grub_machine_init): Remove call to grub_biosdisk_init().
47189 (grub_machine_fini): Remove call to grub_machine_fini().
47191 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47193 2007-10-22 Robert Millan <rmh@aybabtu.com>
47195 * include/grub/time.h: New file.
47196 * include/grub/i386/time.h: Likewise.
47197 * include/grub/powerpc/time.h: Likewise.
47198 * include/grub/sparc64/time.h: Likewise.
47200 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47202 (KERNEL_MACHINE_TIME_HEADER): ... this.
47203 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47205 (KERNEL_MACHINE_TIME_HEADER): ... this.
47206 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47208 (KERNEL_MACHINE_TIME_HEADER): ... this.
47210 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47211 (grub_millisleep): New function.
47212 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47213 (grub_millisleep): New function.
47214 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47215 Remove `grub/machine/time.h' include.
47216 (grub_millisleep): New function.
47217 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47218 Remove `grub/machine/time.h' include.
47219 (grub_millisleep): New function.
47221 * include/grub/misc.h (grub_div_roundup): New function.
47223 * kern/misc.c: Include `<grub/time.h>'.
47224 (grub_millisleep_generic): New function.
47226 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47228 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47230 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47231 `machine/time.h'. Add `time.h'.
47232 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47234 2007-10-21 Robert Millan <rmh@aybabtu.com>
47236 * include/grub/misc.h (grub_max): New function.
47238 2007-10-21 Robert Millan <rmh@aybabtu.com>
47240 * util/misc.c (grub_util_info): Call fflush() before returning.
47242 2007-10-20 Robert Millan <rmh@aybabtu.com>
47244 * genmk.rb (Image): Copy `extra_flags' from here ...
47245 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47247 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47248 to `argc' and `args' arguments.
47250 2007-10-17 Robert Millan <rmh@aybabtu.com>
47252 * kern/i386/loader.S: New file.
47254 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47255 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47256 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47257 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47258 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47259 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47260 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47261 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47262 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47263 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47264 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47265 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47266 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47267 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47269 * kern/i386/realmode.S: New file.
47271 * kern/i386/pc/startup.S (protstack): Moved from here ...
47272 * kern/i386/realmode.S (protstack)... to here.
47273 * kern/i386/pc/startup.S (gdt): Moved from here ...
47274 * kern/i386/realmode.S (gdt)... to here.
47275 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47276 * kern/i386/realmode.S (prot_to_real)... to here.
47278 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47279 `kern/i386/realmode.S'.
47281 2007-10-17 Robert Millan <rmh@aybabtu.com>
47283 * include/grub/i386/loader.h: New file.
47285 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47286 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47287 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47288 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47289 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47290 * include/grub/i386/loader.h (grub_linux_prot_size)
47291 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47292 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47293 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47294 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47296 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47298 2007-10-15 Robert Millan <rmh@aybabtu.com>
47300 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47301 filesystem when dev->disk is unset.
47302 Do probe for filesystem even when dev->disk->has_partitions is set.
47303 In case a filesystem is found, always report it.
47304 In case it isn't, if dev->disk->has_partitions is set, report that
47305 a partition table was found instead of reporting that no filesystem
47306 could be identified.
47308 2007-10-12 Robert Millan <rmh@aybabtu.com>
47310 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47311 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47313 * include/grub/types.h (grub_host_to_target16): New macro.
47314 (grub_host_to_target32): Likewise.
47315 (grub_host_to_target64): Likewise.
47316 (grub_target_to_host16): Likewise.
47317 (grub_target_to_host32): Likewise.
47318 (grub_target_to_host64): Likewise.
47320 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47321 Renamed from to ...
47322 (GRUB_MOD_ALIGN): ...this. Update all users.
47324 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47325 grub_host_to_target32.
47326 Replace grub_be_to_cpu32 with grub_target_to_host32.
47327 (load_modules): Likewise.
47328 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47329 Replace grub_be_to_cpu32 with grub_target_to_host32.
47330 Replace grub_cpu_to_be16 with grub_host_to_target16.
47331 Replace grub_cpu_to_be32 grub_host_to_target32.
47333 2007-10-12 Robert Millan <rmh@aybabtu.com>
47335 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47336 * util/elf/grub-mkimage.c: ... here.
47338 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47339 `util/powerpc/ieee1275/grub-mkimage.c'.
47341 2007-10-07 Robert Millan <rmh@aybabtu.com>
47343 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47344 and make it easier to figure out.
47345 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47346 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47347 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47348 leave us with less than HEAP_MIN_SIZE total heap.
47349 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47351 2007-10-03 Robert Millan <rmh@aybabtu.com>
47353 * include/grub/i386/io.h: New file.
47354 * commands/i386/pc/play.c (inb): Removed.
47356 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47358 * term/i386/pc/serial.c (inb): Removed.
47360 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47362 * term/i386/pc/vga.c (inb): Removed.
47364 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47367 2007-10-02 Robert Millan <rmh@aybabtu.com>
47369 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47371 Reported by Marcin Kurek.
47373 2007-09-07 Robert Millan <rmh@aybabtu.com>
47375 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47376 SmartFirmware version updates (as released by Sven Luther), and avoid
47377 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47378 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47381 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47383 From Hitoshi Ozeki:
47384 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47385 when merging two regions.
47387 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47389 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47390 * normal/completion.c (grub_normal_do_completion): Likewise.
47391 Reported by Hitoshi Ozeki.
47393 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47395 Do not use devices at boot in chainloading.
47397 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47398 (boot_part_addr): Likewise.
47399 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47400 with BOOT_DRIVE and BOOT_PART_ADDR.
47401 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47402 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47404 2007-08-29 Robert Millan <rmh@aybabtu.com>
47406 Patch from Simon Peter <dn.tlp@gmx.net>:
47407 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47408 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47409 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47410 util/i386/pc/grub-setup.c_DEPENDENCIES.
47411 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47412 util/grub-probe.c_DEPENDENCIES.
47413 * conf/powerpc-ieee1275.rmk: Likewise.
47415 2007-08-28 Robert Millan <rmh@aybabtu.com>
47417 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47418 to tell grub-mkdevicemap how to name devices.
47419 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47422 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47423 util/i386/get_disk_name.c.
47424 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47425 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47426 util/ieee1275/get_disk_name.c.
47428 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47430 * DISTLIST: Add util/i386/get_disk_name.c and
47431 util/ieee1275/get_disk_name.c.
47433 * util/grub-mkdevicemap.c: Replace device naming logic with
47434 grub_util_get_disk_name() calls.
47436 2007-08-20 Robert Millan <rmh@aybabtu.com>
47438 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47439 (so that it works for both plural and singular quantities).
47441 2007-08-05 Robert Millan <rmh@aybabtu.com>
47443 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47444 so that [xz] isn't taken into account when determining order.
47446 2007-08-02 Marco Gerards <marco@gnu.org>
47448 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47449 `include/multiboot2.h', `include/grub/elfload.h',
47450 `include/multiboot.h', `include/grub/multiboot.h',
47451 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47452 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47453 `kern/elf.c', `loader/multiboot_loader.c',
47454 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47455 `loader/i386/pc/multiboot2.c',
47456 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47457 `util/i386/pc/grub-mkrescue.in'. Remove
47458 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47459 `include/grub/i386/pc/util/biosdisk.h' and
47460 `include/grub/powerpc/ieee1275/multiboot.h'.
47462 2007-08-02 Bean <bean123ch@gmail.com>
47464 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47465 (ntfs_mod_SOURCES): New variable.
47466 (ntfs_mod_CFLAGS): Likewise.
47467 (ntfs_mod_LDFLAGS): Likewise.
47469 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47470 (grub_probe_SOURCES): Likewise.
47471 (grub_emu_SOURCES): Likewise.
47473 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47474 (grub_emu_SOURCES): Likewise.
47476 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47477 (grub_emu_SOURCES): Likewise.
47479 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47481 * fs/ntfs.c: New file.
47483 2007-08-02 Bean <bean123ch@gmail.com>
47485 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47487 * file.h (grub_file): Likewise.
47489 * fshelp.h (grub_fshelp_read_file): Likewise.
47491 * util/i386/pc/grub-setup.c (setup): Likewise.
47492 (save_first_sector): Likewise.
47493 (save_blocklists): Likewise.
47495 * fs/affs.c (grub_affs_read_file): Likewise.
47497 * fs/ext2.c (grub_ext2_read_file): Likewise.
47499 * fs/fat.c (grub_fat_read_data): Likewise.
47501 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47503 * fs/hfs.c (grub_hfs_read_file): Likewise.
47505 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47507 * fs/jfs.c (grub_jfs_read_file): Likewise.
47509 * fs/minix.c (grub_minix_read_file): Likewise.
47511 * fs/sfs.c (grub_sfs_read_file): Likewise.
47513 * fs/ufs.c (grub_ufs_read_file): Likewise.
47515 * fs/xfs.c (grub_xfs_read_file): Likewise.
47517 * command/blocklist.c (read_blocklist): Likewise.
47518 (print_blocklist): Likewise.
47520 2007-08-02 Marco Gerards <marco@gnu.org>
47522 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47525 * disk/host.c: New file.
47527 * util/hostfs.c: Likewise.
47529 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47530 return `GRUB_ERR_BAD_FS'.
47531 * fs/sfs.c (grub_sfs_mount): Likewise.
47532 * fs/xfs.c (grub_xfs_mount): Likewise.
47534 * include/grub/disk.h (enum grub_disk_dev_id): Add
47535 `GRUB_DISK_DEVICE_HOST_ID'.
47537 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47539 2007-07-24 Jerone Young <jerone@gmail.com>
47541 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47542 modules for compilation.
47543 * conf/powerpc-ieee1275.rmk: Likewise.
47545 * include/multiboot.h: Move multiboot definitions to one file. Rename
47546 many definitions to not get grub specific.
47547 * include/multiboot2.h: Create header with multiboot 2 definitions.
47548 * include/grub/multiboot.h: Header for grub specific function
47549 prototypes and definitions.
47550 * include/grub/multiboot2.h: Likewise.
47551 * include/grub/multiboot_loader.h: Likewise.
47552 * include/grub/i386/pc/multiboot.h: Removed.
47553 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47555 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47556 and 2 to allow for one multiboot and module commands.
47557 * loader/multiboot2.c: Add multiboot2 functionality.
47558 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47559 and definition names.
47560 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47562 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47563 ieee1275 specific multiboot2 code.
47565 * kern/i386/pc/startup.S: Change headers and definition names for
47566 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47568 2007-07-22 Robert Millan <rmh@aybabtu.com>
47570 * geninitheader.sh: Process file specified in first parameter rather
47571 than hardcoding grub_modules_init.lst.
47572 * geninit.sh: Likewise. Also, construct header name dynamically rather
47573 than hardcoding grub_modules_init.h.
47575 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47576 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47577 grub_probe_init.[ch] and grub_setup_init.[ch].
47579 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47580 grub_modules_init.h with grub_emu_init.h.
47581 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47582 grub_probe_init.[ch] files.
47583 * conf/i386-efi.rmk: Likewise.
47584 * conf/i386-pc.rmk: Likewise.
47585 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47586 grub_setup_init.[ch] files.
47588 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47589 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47590 to initialize modules rather than a list of hardcoded functions.
47591 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47592 grub_init_all() to initialize modules rather than a list of hardcoded
47595 2007-07-22 Robert Millan <rmh@aybabtu.com>
47597 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47598 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47600 2007-07-22 Robert Millan <rmh@aybabtu.com>
47602 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47603 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47604 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47605 flag when running on SmartFirmware.
47606 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47607 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47610 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47611 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47612 rather than decreasing it.
47614 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47615 there's not enough space to do it, fail in the same way as when it
47616 can't be done because there are no partitions.
47618 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47619 when nvsetenv failed.
47621 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47623 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47624 because this rule is automatically generated.
47625 (grub-mkrescue): Removed for the same reason as above.
47627 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47629 Migrate to GNU General Public License Version 3.
47631 * COPYING: Replaced with the plain text version of GPLv3.
47633 * config.guess: Updated from gnulib.
47634 * config.sub: Likewise.
47636 * geninit.sh: Output a GPLv3 copyright notice.
47637 * geninitheader.sh: Likewise.
47638 * genmodsrc.sh: Likewise.
47639 * gensymlist.sh.in: Likewise.
47641 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47642 * boot/i386/pc/diskboot.S: Likewise.
47643 * boot/i386/pc/pxeboot.S: Likewise.
47644 * commands/blocklist.c: Likewise.
47645 * commands/boot.c: Likewise.
47646 * commands/cat.c: Likewise.
47647 * commands/cmp.c: Likewise.
47648 * commands/configfile.c: Likewise.
47649 * commands/echo.c: Likewise.
47650 * commands/help.c: Likewise.
47651 * commands/ls.c: Likewise.
47652 * commands/search.c: Likewise.
47653 * commands/terminal.c: Likewise.
47654 * commands/test.c: Likewise.
47655 * commands/videotest.c: Likewise.
47656 * commands/i386/cpuid.c: Likewise.
47657 * commands/i386/pc/halt.c: Likewise.
47658 * commands/i386/pc/play.c: Likewise.
47659 * commands/i386/pc/reboot.c: Likewise.
47660 * commands/i386/pc/vbeinfo.c: Likewise.
47661 * commands/i386/pc/vbetest.c: Likewise.
47662 * commands/ieee1275/halt.c: Likewise.
47663 * commands/ieee1275/reboot.c: Likewise.
47664 * commands/ieee1275/suspend.c: Likewise.
47665 * disk/loopback.c: Likewise.
47666 * disk/lvm.c: Likewise.
47667 * disk/raid.c: Likewise.
47668 * disk/efi/efidisk.c: Likewise.
47669 * disk/i386/pc/biosdisk.c: Likewise.
47670 * disk/ieee1275/ofdisk.c: Likewise.
47671 * font/manager.c: Likewise.
47672 * fs/affs.c: Likewise.
47673 * fs/ext2.c: Likewise.
47674 * fs/fat.c: Likewise.
47675 * fs/fshelp.c: Likewise.
47676 * fs/hfs.c: Likewise.
47677 * fs/hfsplus.c: Likewise.
47678 * fs/iso9660.c: Likewise.
47679 * fs/jfs.c: Likewise.
47680 * fs/minix.c: Likewise.
47681 * fs/sfs.c: Likewise.
47682 * fs/ufs.c: Likewise.
47683 * fs/xfs.c: Likewise.
47684 * hello/hello.c: Likewise.
47685 * include/grub/acorn_filecore.h: Likewise.
47686 * include/grub/arg.h: Likewise.
47687 * include/grub/bitmap.h: Likewise.
47688 * include/grub/boot.h: Likewise.
47689 * include/grub/cache.h: Likewise.
47690 * include/grub/device.h: Likewise.
47691 * include/grub/disk.h: Likewise.
47692 * include/grub/dl.h: Likewise.
47693 * include/grub/elfload.h: Likewise.
47694 * include/grub/env.h: Likewise.
47695 * include/grub/err.h: Likewise.
47696 * include/grub/file.h: Likewise.
47697 * include/grub/font.h: Likewise.
47698 * include/grub/fs.h: Likewise.
47699 * include/grub/fshelp.h: Likewise.
47700 * include/grub/gzio.h: Likewise.
47701 * include/grub/hfs.h: Likewise.
47702 * include/grub/kernel.h: Likewise.
47703 * include/grub/loader.h: Likewise.
47704 * include/grub/lvm.h: Likewise.
47705 * include/grub/misc.h: Likewise.
47706 * include/grub/mm.h: Likewise.
47707 * include/grub/net.h: Likewise.
47708 * include/grub/normal.h: Likewise.
47709 * include/grub/parser.h: Likewise.
47710 * include/grub/partition.h: Likewise.
47711 * include/grub/pc_partition.h: Likewise.
47712 * include/grub/raid.h: Likewise.
47713 * include/grub/rescue.h: Likewise.
47714 * include/grub/script.h: Likewise.
47715 * include/grub/setjmp.h: Likewise.
47716 * include/grub/symbol.h: Likewise.
47717 * include/grub/term.h: Likewise.
47718 * include/grub/terminfo.h: Likewise.
47719 * include/grub/tparm.h: Likewise.
47720 * include/grub/types.h: Likewise.
47721 * include/grub/video.h: Likewise.
47722 * include/grub/efi/api.h: Likewise.
47723 * include/grub/efi/chainloader.h: Likewise.
47724 * include/grub/efi/console.h: Likewise.
47725 * include/grub/efi/console_control.h: Likewise.
47726 * include/grub/efi/disk.h: Likewise.
47727 * include/grub/efi/efi.h: Likewise.
47728 * include/grub/efi/pe32.h: Likewise.
47729 * include/grub/efi/time.h: Likewise.
47730 * include/grub/i386/linux.h: Likewise.
47731 * include/grub/i386/setjmp.h: Likewise.
47732 * include/grub/i386/types.h: Likewise.
47733 * include/grub/i386/efi/kernel.h: Likewise.
47734 * include/grub/i386/efi/loader.h: Likewise.
47735 * include/grub/i386/efi/time.h: Likewise.
47736 * include/grub/i386/pc/biosdisk.h: Likewise.
47737 * include/grub/i386/pc/boot.h: Likewise.
47738 * include/grub/i386/pc/chainloader.h: Likewise.
47739 * include/grub/i386/pc/console.h: Likewise.
47740 * include/grub/i386/pc/init.h: Likewise.
47741 * include/grub/i386/pc/kernel.h: Likewise.
47742 * include/grub/i386/pc/loader.h: Likewise.
47743 * include/grub/i386/pc/memory.h: Likewise.
47744 * include/grub/i386/pc/multiboot.h: Likewise.
47745 * include/grub/i386/pc/serial.h: Likewise.
47746 * include/grub/i386/pc/time.h: Likewise.
47747 * include/grub/i386/pc/vbe.h: Likewise.
47748 * include/grub/i386/pc/vbeblit.h: Likewise.
47749 * include/grub/i386/pc/vbefill.h: Likewise.
47750 * include/grub/i386/pc/vbeutil.h: Likewise.
47751 * include/grub/i386/pc/vga.h: Likewise.
47752 * include/grub/ieee1275/ieee1275.h: Likewise.
47753 * include/grub/ieee1275/ofdisk.h: Likewise.
47754 * include/grub/powerpc/libgcc.h: Likewise.
47755 * include/grub/powerpc/setjmp.h: Likewise.
47756 * include/grub/powerpc/types.h: Likewise.
47757 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47758 * include/grub/powerpc/ieee1275/console.h: Likewise.
47759 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47760 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47761 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47762 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47763 * include/grub/powerpc/ieee1275/time.h: Likewise.
47764 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47765 * include/grub/sparc64/libgcc.h: Likewise.
47766 * include/grub/sparc64/setjmp.h: Likewise.
47767 * include/grub/sparc64/types.h: Likewise.
47768 * include/grub/sparc64/ieee1275/console.h: Likewise.
47769 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47770 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47771 * include/grub/sparc64/ieee1275/time.h: Likewise.
47772 * include/grub/util/biosdisk.h: Likewise.
47773 * include/grub/util/getroot.h: Likewise.
47774 * include/grub/util/lvm.h: Likewise.
47775 * include/grub/util/misc.h: Likewise.
47776 * include/grub/util/raid.h: Likewise.
47777 * include/grub/util/resolve.h: Likewise.
47778 * io/gzio.c: Likewise.
47779 * kern/device.c: Likewise.
47780 * kern/disk.c: Likewise.
47781 * kern/dl.c: Likewise.
47782 * kern/elf.c: Likewise.
47783 * kern/env.c: Likewise.
47784 * kern/err.c: Likewise.
47785 * kern/file.c: Likewise.
47786 * kern/fs.c: Likewise.
47787 * kern/loader.c: Likewise.
47788 * kern/main.c: Likewise.
47789 * kern/misc.c: Likewise.
47790 * kern/mm.c: Likewise.
47791 * kern/parser.c: Likewise.
47792 * kern/partition.c: Likewise.
47793 * kern/rescue.c: Likewise.
47794 * kern/term.c: Likewise.
47795 * kern/efi/efi.c: Likewise.
47796 * kern/efi/init.c: Likewise.
47797 * kern/efi/mm.c: Likewise.
47798 * kern/i386/dl.c: Likewise.
47799 * kern/i386/efi/init.c: Likewise.
47800 * kern/i386/efi/startup.S: Likewise.
47801 * kern/i386/pc/init.c: Likewise.
47802 * kern/i386/pc/lzo1x.S: Likewise.
47803 * kern/i386/pc/startup.S: Likewise.
47804 * kern/ieee1275/ieee1275.c: Likewise.
47805 * kern/powerpc/cache.S: Likewise.
47806 * kern/powerpc/dl.c: Likewise.
47807 * kern/powerpc/ieee1275/cmain.c: Likewise.
47808 * kern/powerpc/ieee1275/crt0.S: Likewise.
47809 * kern/powerpc/ieee1275/init.c: Likewise.
47810 * kern/powerpc/ieee1275/openfw.c: Likewise.
47811 * kern/sparc64/cache.S: Likewise.
47812 * kern/sparc64/dl.c: Likewise.
47813 * kern/sparc64/ieee1275/init.c: Likewise.
47814 * kern/sparc64/ieee1275/openfw.c: Likewise.
47815 * loader/efi/chainloader.c: Likewise.
47816 * loader/efi/chainloader_normal.c: Likewise.
47817 * loader/i386/efi/linux.c: Likewise.
47818 * loader/i386/efi/linux_normal.c: Likewise.
47819 * loader/i386/pc/chainloader.c: Likewise.
47820 * loader/i386/pc/chainloader_normal.c: Likewise.
47821 * loader/i386/pc/linux.c: Likewise.
47822 * loader/i386/pc/linux_normal.c: Likewise.
47823 * loader/i386/pc/multiboot.c: Likewise.
47824 * loader/i386/pc/multiboot_normal.c: Likewise.
47825 * loader/powerpc/ieee1275/linux.c: Likewise.
47826 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47827 * normal/arg.c: Likewise.
47828 * normal/cmdline.c: Likewise.
47829 * normal/command.c: Likewise.
47830 * normal/completion.c: Likewise.
47831 * normal/execute.c: Likewise.
47832 * normal/function.c: Likewise.
47833 * normal/lexer.c: Likewise.
47834 * normal/main.c: Likewise.
47835 * normal/menu.c: Likewise.
47836 * normal/menu_entry.c: Likewise.
47837 * normal/misc.c: Likewise.
47838 * normal/parser.y: Likewise.
47839 * normal/script.c: Likewise.
47840 * normal/i386/setjmp.S: Likewise.
47841 * normal/powerpc/setjmp.S: Likewise.
47842 * normal/sparc64/setjmp.S: Likewise.
47843 * partmap/acorn.c: Likewise.
47844 * partmap/amiga.c: Likewise.
47845 * partmap/apple.c: Likewise.
47846 * partmap/gpt.c: Likewise.
47847 * partmap/pc.c: Likewise.
47848 * partmap/sun.c: Likewise.
47849 * term/gfxterm.c: Likewise.
47850 * term/terminfo.c: Likewise.
47851 * term/efi/console.c: Likewise.
47852 * term/i386/pc/console.c: Likewise.
47853 * term/i386/pc/serial.c: Likewise.
47854 * term/i386/pc/vesafb.c: Likewise.
47855 * term/i386/pc/vga.c: Likewise.
47856 * term/ieee1275/ofconsole.c: Likewise.
47857 * util/biosdisk.c: Likewise.
47858 * util/console.c: Likewise.
47859 * util/genmoddep.c: Likewise.
47860 * util/getroot.c: Likewise.
47861 * util/grub-emu.c: Likewise.
47862 * util/grub-mkdevicemap.c: Likewise.
47863 * util/grub-probe.c: Likewise.
47864 * util/lvm.c: Likewise.
47865 * util/misc.c: Likewise.
47866 * util/raid.c: Likewise.
47867 * util/resolve.c: Likewise.
47868 * util/update-grub.in: Likewise.
47869 * util/update-grub_lib.in: Likewise.
47870 * util/grub.d/00_header.in: Likewise.
47871 * util/grub.d/10_hurd.in: Likewise.
47872 * util/grub.d/10_linux.in: Likewise.
47873 * util/i386/efi/grub-install.in: Likewise.
47874 * util/i386/efi/grub-mkimage.c: Likewise.
47875 * util/i386/pc/grub-install.in: Likewise.
47876 * util/i386/pc/grub-mkimage.c: Likewise.
47877 * util/i386/pc/grub-mkrescue.in: Likewise.
47878 * util/i386/pc/grub-setup.c: Likewise.
47879 * util/i386/pc/misc.c: Likewise.
47880 * util/powerpc/ieee1275/grub-install.in: Likewise.
47881 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47882 * util/powerpc/ieee1275/misc.c: Likewise.
47883 * video/bitmap.c: Likewise.
47884 * video/video.c: Likewise.
47885 * video/i386/pc/vbe.c: Likewise.
47886 * video/i386/pc/vbeblit.c: Likewise.
47887 * video/i386/pc/vbefill.c: Likewise.
47888 * video/i386/pc/vbeutil.c: Likewise.
47889 * video/readers/tga.c: Likewise.
47891 2007-07-02 Robert Millan <rmh@aybabtu.com>
47893 * conf/i386-efi.rmk: Replace obsolete reference to
47894 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47895 with util/getroot.c.
47896 * conf/powerpc-ieee1275.rmk: Likewise.
47897 * conf/sparc64-ieee1275.rmk: Likewise.
47899 * util/grub-emu.c (main): Fix unchecked pointer handling.
47901 2007-07-02 Robert Millan <rmh@aybabtu.com>
47903 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47904 invocation to fail, in order to support partition-less media.
47906 * util/i386/pc/grub-install.in: Likewise.
47908 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47909 which fs or partmap modules are needed (akin to its sister scripts).
47911 Also use grub-probe to get rid of unportable /proc/mounts check.
47913 Print the same informational message that the other scripts do, before
47916 2007-06-23 Robert Millan <rmh@aybabtu.com>
47918 * util/update-grub_lib.in (font_path): New function. Determine whether
47919 a font file can be found and, if so, echo the GRUB path to it.
47921 * util/update-grub.in: Handle multiple terminals depending on user
47922 input, platform availability and font file presence. Propagate
47923 variables of our findings to /etc/grub.d/ children.
47925 * util/grub.d/00_header.in: Handle multiple terminals, based on
47926 environment setup by update-grub.
47928 2007-06-23 Robert Millan <rmh@aybabtu.com>
47930 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47932 2007-06-21 Robert Millan <rmh@aybabtu.com>
47934 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47935 indicate end of data section in kernel image.
47936 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47937 GRUB_KERNEL_MACHINE_DATA_END.
47939 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47941 * kern/i386/efi/startup.S: Likewise.
47943 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47944 during image generation. Implement --prefix option to override this
47946 * util/i386/efi/grub-mkimage.c: Likewise.
47948 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47949 code to make path relative to its root into a separate function.
47951 * util/i386/pc/grub-install.in: Use newly provided
47952 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47953 pass the result to grub-install --prefix.
47955 2007-06-13 Robert Millan <rmh@aybabtu.com>
47957 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47958 DEFAULT_DEVICE_MAP.
47959 * util/grub-emu.c: Use above definitions from misc.h instead of
47961 * util/grub-mkdevicemap.c: Likewise.
47962 * util/i386/pc/grub-setup.c: Likewise.
47963 * util/grub-probe.c: Likewise.
47964 (probe): Abort with grub_util_error() when either
47965 grub_guess_root_device or grub_util_get_grub_dev fails.
47967 2007-06-12 Robert Millan <rmh@aybabtu.com>
47969 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47970 "pager" assignment.
47971 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47973 * util/grub-probe.c (probe): Likewise for "drive_name".
47975 2007-06-11 Robert Millan <rmh@aybabtu.com>
47977 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
47978 not just the cdrom one.
47980 2007-06-11 Robert Millan <rmh@aybabtu.com>
47982 * util/i386/pc/grub-mkrescue.in: Add "set -e".
47983 Add --pkglibdir=DIR option to override pkglibdir.
47984 Mention --image-type=TYPE in help output.
47985 Fix --grub-mkimage (it was a no-op).
47986 Abort gracefully when no parameter is given.
47988 2007-06-11 Robert Millan <rmh@aybabtu.com>
47990 * util/i386/pc/grub-mkrescue.in: New file.
47991 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
47992 * Makefile.in: Handle bin_SCRIPTS.
47994 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
47996 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
47997 list of video modes.
47999 2007-06-06 Robert Millan <rmh@aybabtu.com>
48001 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48002 file doesn't exist, or if it is in a filesystem grub can't read.
48004 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48005 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48006 header comment to fit in 80 columns when the variables are resolved.
48008 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48009 could be identified by update-grub. Remove redundant check for
48010 unifont.pff existence (since convert_system_path_to_grub_path now
48013 2007-06-04 Robert Millan <rmh@aybabtu.com>
48015 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48017 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48019 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48021 2007-06-04 Robert Millan <rmh@aybabtu.com>
48023 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48025 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48026 grub_apple_partition_map_fini.
48029 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48030 to access >2 TiB disks).
48032 Print disk->total_sectors with %llu instead of %lu, since this
48033 variable is always 64-bit (prevents wrong disk size from being displayed
48034 on either >2 TiB disk or big-endian CPU).
48036 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48037 into a generic case that supports all (sane) partition maps.
48039 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48042 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48043 and grub_apple_partition_map_fini() after that.
48045 2007-06-01 Robert Millan <rmh@aybabtu.com>
48047 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48049 * util/grub.d/00_header.in: Only enable gfxterm when
48050 convert_system_path_to_grub_path() succeeds.
48052 2007-05-20 Robert Millan <rmh@aybabtu.com>
48054 * util/update-grub_lib.in: New file.
48055 * DISTLIST: Add update-grub_lib.in.
48056 * conf/common.rmk: Generate update-grub_lib and install it in
48058 * Makefile.in: Add install routine for $(lib_DATA).
48060 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48061 function provided by update-grub_lib to support arbitrary paths of
48063 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48064 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48066 2007-05-19 Robert Millan <rmh@aybabtu.com>
48068 * commands/i386/cpuid.c: New module.
48069 * DISTLIST: Add it.
48070 * conf/i386-efi.rmk: Enable cpuid.mod.
48071 * conf/i386-pc.rmk: Likewise.
48073 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48075 * kern/disk.c (grub_disk_read): Check return value of
48078 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48080 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48082 * disk/raid.c (grub_raid_open): Likewise.
48084 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48086 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48087 stack instead of on the heap.
48089 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48090 before doing a read on it.
48092 * configure.ac: Only use -fno-stack-protector for the target
48095 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48097 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48098 __attribute_ ((unused)) to mode_type argument.
48100 * util/getroot.c (grub_guess_root_device): Fix #endif.
48102 * kern/misc.c (memcmp): Fix prototype.
48104 * include/grub/partition.h [GRUB_UTIL]
48105 (grub_gpt_partition_map_init): Add prototype.
48106 (grub_gpt_partition_map_fini): Likewise.
48108 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48109 at the right place.
48111 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48112 (grub_fat_read_data): Likewise.
48113 (grub_fat_find_dir): Likewise.
48115 * font/manager.c (find_glyph): Make table a const.
48116 (grub_font_get_glyph): Remove bitmap from if statement.
48118 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48120 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48121 code, first search for device in /dev/mapper, then in /dev.
48122 (grub_util_get_grub_dev): New function.
48123 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48125 * util/grub-probe.c (probe): Remove check for RAID, call
48126 grub_util_get_grub_dev() instead of
48127 grub_util_biosdisk_get_grub_dev().
48128 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48129 grub_util_biosdisk_get_grub_dev().
48130 * util/i386/pc/grub-setup.c (main): Likewise.
48132 2007-05-16 Robert Millan <rmh@aybabtu.com>
48134 * DISTLIST: Update for the latest changes.
48135 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48136 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48137 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48138 grub/util/biosdisk.h.
48139 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48140 grub/util/biosdisk.h.
48142 2007-05-16 Robert Millan <rmh@aybabtu.com>
48144 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48146 2007-05-16 Robert Millan <rmh@aybabtu.com>
48148 * util/i386/efi/grub-install.in: New.
48149 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48150 newly added grub-install.
48151 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48153 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48154 grub/util/biosdisk.h.
48155 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48156 grub/util/biosdisk.h.
48158 2007-05-16 Robert Millan <rmh@aybabtu.com>
48160 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48161 * include/grub/util/biosdisk.h: ... here.
48162 * util/i386/pc/biosdisk.c: Moved to ...
48163 * util/biosdisk.c: ... here.
48164 * util/i386/pc/getroot.c: Moved to ...
48165 * util/getroot.c: ... here.
48166 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48167 * util/grub-mkdevicemap.c: ... here.
48168 * util/i386/pc/grub-probe.c: Moved to ...
48169 * util/grub-probe.c: ... here.
48171 2007-05-15 Robert Millan <rmh@aybabtu.com>
48173 * util/update-grub.in: Remove duplicated line in grub.cfg header
48176 2007-05-13 Robert Millan <rmh@aybabtu.com>
48178 * util/update-grub.in: Fix a few assumptions about the devices holding
48179 /, /boot and /boot/grub being the same.
48180 * util/grub.d/00_header.in: Likewise.
48181 * util/grub.d/10_hurd.in: Likewise.
48182 * util/grub.d/10_linux.in: Likewise.
48184 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48185 patterns. Use that to define the `.old' suffix as older than `'.
48187 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48189 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48190 the grub.cfg header message.
48192 2007-05-11 Robert Millan <rmh@aybabtu.com>
48194 * util/update-grub.in: Create device.map if it doesn't already exist,
48195 before attempting to run grub-probe.
48196 Check for grub-probe and grub-mkdevicemap with the same code
48197 grub-install is using.
48200 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48202 * Makefile.in: Add the datarootdir autoconf variable.
48204 2007-05-09 Robert Millan <rmh@aybabtu.com>
48206 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48207 fail gracefully if dev->disk->partition == NULL.
48209 2007-05-07 Robert Millan <rmh@aybabtu.com>
48211 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48212 determine partition map module.
48213 * util/i386/pc/grub-install.in: Use this feature to decide which
48214 partition module to load, instead of hardcoding pc and gpt.
48216 2007-05-07 Robert Millan <rmh@aybabtu.com>
48218 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48219 source directory differs from build directory.
48221 2007-05-05 Robert Millan <rmh@aybabtu.com>
48223 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48226 2007-05-05 Robert Millan <rmh@aybabtu.com>
48228 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48230 2007-05-05 Robert Millan <rmh@aybabtu.com>
48232 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48233 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48235 2007-05-05 Robert Millan <rmh@aybabtu.com>
48237 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48238 (grub_probe_SOURCES): Likewise.
48239 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48240 GPT and initialize dos_part and bsd_part accordingly.
48241 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48243 (main): Activate gpt module for use during partition identification,
48244 and deactivate it afterwards.
48245 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48246 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48247 partition identification, and deactivate it afterwards.
48249 2007-05-05 Robert Millan <rmh@aybabtu.com>
48251 * term/i386/pc/console.c (grub_console_fini): Call
48252 grub_term_set_current() before grub_term_unregister().
48254 2007-05-04 Robert Millan <rmh@aybabtu.com>
48256 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48257 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48258 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48259 and update-grub_DATA.
48260 * conf/common.rmk: Build and install update-grub components.
48261 * conf/common.mk: Regenerate.
48262 * util/update-grub.in: New. Core of update-grub.
48263 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48264 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48265 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48266 * util/grub.d/README: New. Document grub.d directory layout.
48268 2007-05-01 Robert Millan <rmh@aybabtu.com>
48270 * util/grub-emu.c: Move initialization functions
48271 grub_util_biosdisk_init() and grub_init_all() before
48272 grub_util_biosdisk_get_grub_dev(), which relies on them.
48274 2007-04-19 Robert Millan <rmh@aybabtu.com>
48276 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48279 2007-04-18 Jerone Young <jerone@gmail.com>
48281 * kernel/elf.c: Add missing parenthesis for conditional statement
48284 2007-04-10 Jerone Young <jerone@gmail.com>
48286 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48287 continue on and look for device node with real device name.
48289 2007-04-10 Jerone Young <jerone@gmail.com>
48291 * configure.ac: Add argument for autoconf to use transformation
48293 * Makefile.in: Add autoconf package transformation code.
48294 * util/i386/pc/grub-install.in: Likewise.
48295 * util/powerpc/ieee1275/grub-install.in: Likewise.
48297 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48299 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48300 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48301 (EXT2_REVISION): Likewise.
48302 (EXT2_INODE_SIZE): Likewise.
48303 (struct grub_ext2_block_group): Added a missing member
48305 (grub_ext2_read_inode): Divide by the inode size in a superblock
48306 instead of 128 to obtain INODES_PER_BLOCK.
48307 Use the macro EXT2_INODE_SIZE instead of directly using
48308 SBLOCK->INODE_SIZE.
48310 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48312 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48313 superblock instead of the structure size to compute an
48314 offset. This fixes the problem that GRUB could not read a
48315 filesystem when inode size is different from 128-byte.
48317 2007-03-05 Marco Gerards <marco@gnu.org>
48319 * normal/main.c (read_config_file): When "menu" is not set, create
48320 an initial context.
48322 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48324 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48325 (HEAP_LIMIT): New macro.
48326 (grub_claim_heap): Claim memory up to `heaplimit'.
48328 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48330 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48331 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48332 (_start): Likewise.
48333 (grub_arch_modules_addr): Return address after `_end'.
48334 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48335 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48336 (add_segments): Calculate `_end' from phdr size and location.
48337 (ALIGN_UP): Moved to ...
48338 * include/grub/misc.h: here.
48339 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48341 (GRUB_IEEE1275_MODULE_BASE): Removed.
48343 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48345 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48348 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48350 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48352 (grub_elf64_load_hook_t): Likewise.
48353 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48356 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48358 * kern/mm.c: Update copyright.
48359 (grub_mm_debug): Correct syntax error.
48360 (grub_mm_dump_free): New function.
48361 (grub_debug_free): Call `grub_free'.
48362 * include/grub/mm.h: Update copyright.
48363 (grub_mm_dump_free): Add declaration.
48365 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48367 * include/grub/ieee1275/ieee1275.h: Update copyright.
48368 * kern/powerpc/ieee1275/init.c: Likewise.
48369 * kern/powerpc/ieee1275/openfw.c: Likewise.
48371 * loader/powerpc/ieee1275/linux.c: Likewise.
48372 * include/grub/elfload.h: Likewise.
48373 * kern/elf.c: Likewise.
48374 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48376 (grub_elf64_load): Likewise.
48377 (grub_elf32_load_segment): Move to a nested function.
48378 (grub_elf64_load_segment): Likewise.
48380 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48382 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48384 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48385 (grub_heap_len): Likewise.
48386 (HEAP_SIZE): New macro.
48387 (grub_claim_heap): New function.
48388 (grub_machine_init): Don't claim heap directly. Call
48390 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48391 (grub_available_iterate): New function.
48393 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48395 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48396 * configure.ac: Use it for testing the HOST and TARGET compilers.
48398 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48400 * Makefile.in (enable_grub_emu): New variable.
48401 * configure.ac (--enable-grub-emu): New option.
48402 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48403 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48404 * conf/i386-pc.rmk: Likewise.
48405 * conf/powerpc-ieee1275.rmk: Likewise.
48406 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48408 2006-12-12 Marco Gerards <marco@gnu.org>
48410 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48412 * kern/env.c (grub_env_unset): Don't free the member `value' when
48413 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48416 * normal/main.c (current_menu): Removed.
48417 (free_menu): Unset the `menu' environment variable.
48418 (grub_normal_menu_addentry): Make use of the environment variable
48419 `menu', instead of using the global `current_menu'. Allocate
48420 memory for the sourcecode of this entry.
48421 (read_config_file): New argument `nested', changed all callers.
48422 Only in the case of a new context, initialize a new menu. Set the
48423 `menu' environment variable.
48424 (grub_normal_execute): Don't set and unset the environment
48425 variable `menu' here anymore. Only free the menu when leaving the
48428 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48431 2006-12-11 Marco Gerards <marco@gnu.org>
48433 * normal/menu_entry.c (run): Fix off by one bug so the last line
48434 is executed. Move the loader check to outside the loop.
48436 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48438 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48440 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48442 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48443 the number of sectors. Reported by Andrey Shuvikov
48444 <mr_hyro@yahoo.com>.
48446 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48448 * kern/disk.c (grub_disk_read): When there is a read error, always
48449 try to read only the necessary data.
48451 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48453 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48455 [GRUB_UTIL] (grub_raid_fini): Likewise.
48456 [GRUB_UTIL] (grub_lvm_init): Likewise.
48457 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48458 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48459 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48460 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48461 and grub_raid_fini().
48463 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48465 * include/grub/types.h (__unused): Rename to UNUSED.
48466 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48467 (grub_elf64_size): Likewise.
48469 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48471 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48472 grub_error_push and grub_error_pop in the error-handling path.
48473 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48476 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48478 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48479 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48480 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48481 (kernel_elf_SOURCES): Likewise.
48482 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48483 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48484 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48485 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48486 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48487 (elf_mod_SOURCES): New variable.
48488 (elf_mod_CFLAGS): Likewise.
48489 (elf_mod_LDFLAGS): Likewise.
48490 * include/grub/types.h (__unused): New macro.
48491 * include/grub/elfload.h: New file.
48492 * kern/elf.c: Likewise.
48493 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48494 (ELF32_LOADMASK): New macro.
48495 (ELF64_LOADMASK): Likewise.
48496 (vmlinux): Removed.
48497 (grub_linux_load32): New function.
48498 (grub_linux_load64): Likewise.
48499 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48500 Use grub_elf_t instead of grub_file_t.
48502 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48504 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48505 `catch_result' to struct set_color_args.
48507 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48509 * normal/menu.c: Include grub/script.h.
48510 * normal/menu_entry.c: Likewise.
48511 * include/grub/normal.h: Do not include grub/script.h.
48513 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48515 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48517 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48519 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48521 (grub_disk_close): Print debug messages when closing a disk.
48522 (grub_disk_read): Print debug messages when disk read fails.
48523 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48525 * kern/partition.c: Include misc.h.
48526 (grub_partition_iterate): Print debug messages when detecting
48529 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48531 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48533 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48535 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48537 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48538 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48540 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48542 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48543 instead of sizeof(lv). Patch by Michael Guntsche.
48545 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48547 * disk/lvm.c: Rename VGS to VG_LIST.
48548 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48549 (grub_lvm_open): Likewise.
48550 Thanks to Michael Guntsche for finding this bug.
48552 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48554 * configure.ac (AC_INIT): Bumped to 1.95.
48556 2006-10-14 Robert Millan <rmh@aybabtu.com>
48558 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48559 with "/dev/.static/dev/md".
48561 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48563 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48564 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48565 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48566 DRIVE_NAME are always freed.
48568 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48569 DOS_PART, as a DOS partition is counted from one instead of zero
48570 now. Reported by Robert Millan.
48572 2006-10-14 Robert Millan <rmh@aybabtu.com>
48574 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48575 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48576 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48577 string returned by grub_guess_root_device.
48578 * util/i386/pc/grub-setup.c: Likewise.
48579 * util/i386/pc/grub-probefs.c: Likewise.
48581 * util/i386/pc/grub-probefs.c: Rename to ...
48582 * util/i386/pc/grub-probe.c: ... this.
48583 * DISTLIST: Remove grub-probefs, add grub-probe.
48584 * conf/i386-efi.rmk: Likewise.
48585 * conf/i386-pc.rmk: Likewise.
48586 * util/i386/pc/grub-install.in: Likewise.
48588 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48589 choose which information we want to print.
48591 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48593 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48594 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48595 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48596 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48597 video/readers/tga.c and video/i386/pc/vbeutil.c.
48599 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48601 Added support for RAID and LVM.
48603 * disk/lvm.c: New file.
48604 * disk/raid.c: Likewise.
48605 * include/grub/lvm.h: Likewise.
48606 * include/grub/raid.h: Likewise.
48607 * include/grub/util/lvm.h: Likewise.
48608 * include/grub/util/raid.h: Likewise.
48609 * util/lvm.c: Likewise.
48610 * util/raid.c: Likewise.
48612 * include/grub/disk.h (grub_disk_dev_id): Add
48613 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48614 (grub_disk_get_size): New prototype.
48615 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48616 returns a partition.
48617 (grub_disk_get_size): New function.
48619 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48620 verbatim if grub_install_dos_part is -2.
48622 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48625 * util/i386/pc/grub-setup.c (setup): New argument
48626 MUST_EMBED. Force embedding of GRUB when the argument is
48627 true. Close FILE before returning.
48628 (main): Add support for RAID and LVM.
48630 * conf/common.rmk: Add RAID and LVM modules.
48631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48633 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48635 * kern/misc.c (grub_strstr): New function.
48636 * include/grub/misc.h (grub_strstr): New prototype.
48638 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48640 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48642 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48644 * kern/misc.c (grub_strtoull): Guess the base only if not
48647 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48649 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48652 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48654 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48656 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48657 Remove `flags' argument. All callers changed.
48658 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48659 (IEEE1275_IHANDLE_INVALID): New variable.
48660 (IEEE1275_CELL_INVALID): New variable.
48661 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48662 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48663 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48664 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48665 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48666 codes from Open Firmware. All callers updated.
48667 (grub_ieee1275_next_property): Directly return Open Firmware return
48669 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48670 Standardize error checking from `grub_ieee1275_get_property'.
48671 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48672 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48674 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48676 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48677 `instance_to_package_args' to `instance_to_path_args'.
48679 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48680 `grub_ieee1275_chosen'.
48682 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48683 `grub_ieee1275_interpret'.
48685 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48687 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48689 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48691 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48692 (__cmpdi): Likewise.
48694 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48695 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48698 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48700 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48701 to type `grub_ssize_t'.
48702 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48704 2006-09-22 Marco Gerards <marco@gnu.org>
48706 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48709 2006-09-22 Marco Gerards <marco@gnu.org>
48711 * commands/echo.c: New file.
48713 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48715 * conf/common.rmk (echo_mod_SOURCES): New variable.
48716 (echo_mod_CFLAGS): Likewise.
48717 (echo_mod_LDFLAGS): Likewise.
48719 2006-09-22 Marco Gerards <marco@gnu.org>
48721 * normal/main.c (get_line): Malloc memory instead of using
48722 preallocated memory. Removed the arguments `cmdline' and
48723 `max_len'. Updated all callers.
48725 2006-09-22 Marco Gerards <marco@gnu.org>
48727 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48728 (normal_mod_DEPENDENCIES): Likewise.
48730 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48731 (normal_mod_DEPENDENCIES): Likewise.
48733 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48735 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48737 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48739 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48740 (normal_mod_DEPENDENCIES): Likewise.
48741 * conf/i386-pc.mk: Regenerate.
48742 * conf/i386-efi.mk: Likewise
48743 * conf/common.mk: Likewise.
48744 * conf/powerpc-ieee1275.mk: Likewise.
48745 * conf/sparc64-ieee1275.mk: Likewise.
48747 2006-09-22 Robert Millan <rmh@aybabtu.com>
48749 Sync with i386 version.
48750 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48751 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48753 2006-09-21 Robert Millan <rmh@aybabtu.com>
48755 Import from GRUB Legacy (lib/device.c):
48756 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48757 (init_device_map) [__linux__]: Add support for I2O devices.
48759 2006-09-14 Marco Gerards <marco@gnu.org>
48761 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48764 2006-09-14 Robert Millan <rmh@aybabtu.com>
48766 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48769 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48771 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48772 before adding it to device.map.
48774 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48776 * genmk.rb: Let GCC generate dependencies the first time it
48777 compiles a file; using the -MD option.
48778 * conf/common.mk: Regenerate.
48779 * conf/i386-pc.mk: Likewise.
48780 * conf/i386-efi.mk: Likewise.
48781 * conf/powerpc-ieee1275.mk: Likewise.
48782 * conf/sparc64-ieee1275.mk: Likewise.
48784 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48786 Move the prototypes of grub_setjmp and grub_longjmp to
48787 cpu/setjmp.h, so that each architecture may specify different
48790 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48791 (grub_longjmp): Likewise.
48792 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48793 (grub_longjmp): Likewise.
48794 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48795 (grub_longjmp): Likewise.
48797 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48798 [!GRUB_UTIL] (grub_longjmp): Removed.
48800 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48802 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48803 "color!" method does not return any value.
48805 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48807 * include/grub/bitmap.h: New file.
48809 * include/grub/i386/pc/vbeutil.h: Likewise.
48811 * video/bitmap.c: Likewise.
48813 * video/readers/tga.c: Likewise.
48815 * video/i386/pc/vbeutil.c: Likewise.
48817 * commands/videotest.c: Code cleanup and updated to reflect to new
48820 * term/gfxterm.c: Likewise.
48822 * video/video.c: Likewise.
48824 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48825 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48826 (bitmap_mod_SOURCES): New entry.
48827 (bitmap_mod_CFLAGS): Likewise.
48828 (bitmap_mod_LDFLAGS): Likewise.
48829 (tga_mod_SOURCES): Likewise.
48830 (tga_mod_CFLAGS): Likewise.
48831 (tga_mod_LDFLAGS): Likewise.
48833 * include/grub/video.h (grub_video_blit_operators): New enum type.
48834 (grub_video_render_target): Changed as forward declaration and moved
48835 actual definition to be video driver specific.
48836 (grub_video_adapter.blit_bitmap): Added blitting operator.
48837 (grub_video_adapter.blit_render_target): Likewise.
48838 (grub_video_blit_bitmap): Likewise.
48839 (grub_video_blit_render_target): Likewise.
48841 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48842 driver specific render target definition.
48843 (grub_video_vbe_map_rgba): Added driver internal helper.
48844 (grub_video_vbe_unmap_color): Updated to use
48845 grub_video_i386_vbeblit_info.
48846 (grub_video_vbe_get_video_ptr): Likewise.
48848 * include/grub/i386/pc/vbeblit.h
48849 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48850 grub_video_i386_vbeblit_info.
48851 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48852 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48853 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48854 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48855 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48856 (grub_video_i386_vbeblit_index_index): Likewise.
48857 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48858 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48859 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48860 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48862 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48865 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48866 include/grub/i386/pc/vbeblit.h.
48868 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48869 Updated to use grub_video_i386_vbeblit_info.
48870 (grub_video_i386_vbefill_R8G8B8): Likewise.
48871 (grub_video_i386_vbefill_index): Likewise.
48872 (grub_video_i386_vbefill): Added generic filler.
48874 * video/i386/pc/vbefill.c: Updated to reflect changes on
48875 include/grub/i386/pc/vbefill.h.
48877 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48878 grub_video_i386_vbeblit_info.
48879 (grub_video_vbe_unmap_color): Likewise.
48880 (grub_video_vbe_blit_glyph): Likewise.
48881 (grub_video_vbe_scroll): Likewise.
48882 (grub_video_vbe_draw_pixel): Removed function.
48883 (grub_video_vbe_get_pixel): Likewise.
48884 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48885 updated code to use it.
48886 (common_blitter): Added common blitter for render target and bitmap.
48887 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48888 (grub_video_vbe_blit_render_target): Likewise.
48890 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48892 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48893 is in text mode if there is no console control protocol instance
48896 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48898 * include/grub/video.h: Code cleanup.
48900 * include/grub/i386/pc/vbe.h: Likewise.
48902 * video/i386/pc/vbe.c: Likewise.
48904 * video/i386/pc/vbeblit.c: Likewise.
48906 * video/i386/pc/vbefill.c: Likewise.
48908 * video/video.c: Likewise. Also added more comments.
48910 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48912 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48913 (struct grub_biosdisk_dap): Likewise.
48915 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48916 linkage settings for all functions.
48918 2006-07-12 Marco Gerards <marco@gnu.org>
48920 * configure.ac (--enable-mm-debug): Fix typo.
48922 * genkernsyms.sh.in: Use proper quoting for `CC'.
48924 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48926 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48927 (normal_mod_ASFLAGS): Remove "-m32".
48929 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48931 * util/misc.c: Include config.h.
48932 [!HAVE_MEMALIGN]: Do not include malloc.h.
48933 (grub_memalign): Use posix_memalign, if present. Then, use
48934 memalign, if present. Otherwise, emit an error.
48936 * util/grub-emu.c: Do not include malloc.h.
48938 * include/grub/util/misc.h: Include unistd.h. This is required for
48939 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48940 D. Eades III <hde@foobar-qux.org>.
48942 * configure.ac (AC_GNU_SOURCE): Added.
48943 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48946 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48948 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48949 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48951 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48953 * include/grub/types.h (grub_host_addr_t): Rename to
48954 grub_target_addr_t.
48955 (grub_host_off_t): Rename to grub_target_off_t.
48956 (grub_host_size_t): Rename to grub_target_size_t.
48957 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48958 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48960 * include/grub/kernel.h (struct grub_module_header): Change type
48961 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48962 (grub_module_info): Likewise.
48964 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48966 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48967 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48968 Velazquez <jesus.velazquez@gmail.com>.
48970 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48972 Count partitions from 1 instead of 0 in the string representation
48973 of partitions. Still use 0-based internally.
48975 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
48976 (sun_partition_map_iterate): Use grub_partition_t instead of
48977 struct grub_partition *. Cast DESC->START_CYLINDER to
48978 grub_uint64_t after converting the endian.
48979 (sun_partition_map_probe): Subtract 1 for PARTNUM.
48980 (sun_partition_map_get_name): Add 1 to P->INDEX.
48982 * partmap/pc.c (grub_partition_parse): Subtract 1 for
48984 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
48986 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
48987 zero instead of one.
48988 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
48989 (gpt_partition_map_get_name): Add 1 into P->INDEX.
48991 * partmap/apple.c (apple_partition_map_iterate): Change the type
48992 of POS to unsigned.
48993 (apple_partition_map_probe): Subtract 1 for PARTNUM.
48994 (apple_partition_map_get_name): Add 1 into P->INDEX.
48996 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
48997 of POS to unsigned.
48998 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
48999 calculate the offset of a partition.
49000 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49001 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49003 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49004 SECTOR to grub_disk_addr_t.
49005 (acorn_partition_map_iterate): Likewise.
49006 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49007 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49009 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49011 * kern/i386/pc/init.c (make_install_device): Add 1 into
49012 GRUB_INSTALL_DOS_PART.
49014 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49017 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49019 Clean up the code to support 64-bit addressing in disks and
49020 files. This change is not enough for filesystems yet.
49022 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49023 type of "start" to grub_uint64_t.
49024 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49025 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49026 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49029 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49030 to grub_disk_addr_t.
49032 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49035 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49037 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49040 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49042 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49044 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49046 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49047 to grub_off_t, to detect an error from grub_file_seek.
49048 (grub_multiboot_load_elf32): Likewise.
49050 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49051 maximum unsigned long value when an overflow is detected.
49052 (grub_strtoull): New function.
49053 (grub_divmod64): Likewise.
49054 (grub_lltoa): use grub_divmod64.
49056 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49058 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49059 the pointer to next character. Use grub_strtoull instead of
49061 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49062 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49065 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49066 return value is signed.
49067 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49068 test if OFFSET is less than zero, as OFFSET is unsigned now.
49070 * kern/disk.c (struct grub_disk_cache): Change the type of
49071 "sector" to grub_disk_addr_t.
49072 (grub_disk_cache_get_index): Change the type of SECTOR to
49073 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49074 unsigned after shifting.
49075 (grub_disk_cache_invalidate): Change the type of SECTOR to
49077 (grub_disk_cache_unlock): Likewise.
49078 (grub_disk_cache_store): Likewise.
49079 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49080 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49081 grub_disk_addr_t and grub_uint64_t, respectively.
49082 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49083 body, as the value of OFFSET is tweaked by
49084 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49085 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49087 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49088 body, as the value of OFFSET is tweaked by
49089 grub_disk_check_range. Change the types of LEN and N to
49092 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49093 and "saved_offset" to grub_off_t.
49094 (test_header): Cast BUF to char *.
49095 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49097 (grub_gzio_read): Change the types of OFFSET and SIZE to
49098 grub_off_t and grub_size_t, respectively.
49100 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49102 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49103 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49104 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49105 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49106 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49108 * include/grub/types.h (grub_off_t): Unconditionally set to
49110 (grub_disk_addr_t): Changed to grub_uint64_t.
49112 * include/grub/partition.h (struct grub_partition): Change the
49113 types of "start", "len" and "offset" to grub_disk_addr_t,
49114 grub_uint64_t and grub_disk_addr_t, respectively.
49115 (grub_partition_get_start): Return grub_disk_addr_t.
49116 (grub_partition_get_len): Return grub_uint64_t.
49118 * include/grub/misc.h (grub_strtoull): New prototype.
49119 (grub_divmod64): Likewise.
49121 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49122 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49123 grub_off_t, respectively.
49124 All callers and references changed.
49126 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49127 grub_size_t in "read".
49128 All callers and references changed.
49130 * include/grub/file.h (struct grub_file): Change the types of
49131 "offset" and "size" to grub_off_t and grub_off_t,
49132 respectively. Change the type of SECTOR to grub_disk_addr_t in
49134 (grub_file_read): Change the type of LEN to grub_size_t.
49135 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49137 (grub_file_size): Return grub_off_t.
49138 (grub_file_tell): Likewise.
49139 All callers and references changed.
49141 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49142 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49144 (struct grub_disk): Change the type of "total_sectors" to
49145 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49147 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49148 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49149 (grub_disk_write): Likewise.
49150 All callers and references changed.
49152 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49153 char * for grub_strncmp to silence gcc.
49154 (grub_iso9660_mount): Likewise.
49155 (grub_iso9660_mount): Likewise.
49156 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49158 (grub_iso9660_iterate_dir): Likewise.
49159 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49161 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49162 LEN to grub_disk_addr_t and grub_size_t, respectively.
49164 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49166 * fs/jfs.c (grub_jfs_read_file): Likewise.
49168 * fs/minix.c (grub_jfs_read_file): Likewise.
49170 * fs/sfs.c (grub_jfs_read_file): Likewise.
49172 * fs/ufs.c (grub_jfs_read_file): Likewise.
49174 * fs/xfs.c (grub_jfs_read_file): Likewise.
49176 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49177 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49180 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49181 BLKNR to -1 instead of returning GRUB_ERRNO.
49182 (grub_ext2_read_file): Change the types of SECTOR and
49183 LEN to grub_disk_addr_t and grub_size_t, respectively.
49185 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49186 LEN to grub_disk_addr_t and grub_size_t, respectively.
49188 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49191 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49192 string. Do not cast SECTOR explicitly.
49194 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49195 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49196 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49197 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49198 over 2TB and LBA mode is not supported, raise an error.
49199 (get_safe_sectors): New function.
49200 (grub_biosdisk_read): Use get_safe_sectors.
49201 (grub_biosdisk_write): Likewise.
49203 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49204 (grub_efidisk_write): Likewise.
49206 * disk/loopback.c (delete_loopback): Cosmetic changes.
49207 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49209 (grub_loopback_open): Likewise.
49210 (grub_loopback_read): Likewise. Also, change the type of POS to
49211 grub_off_t, and fix the usage of grub_memset.
49213 * commands/i386/pc/play.c: Include grub/machine/time.h.
49215 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49218 * commands/configfile.c: Include grub/env.h.
49220 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49221 GRUB_ERRNO directly instead. Change the type of POS to
49222 grub_off_t. Follow the coding standard.
49224 * commands/blocklist.c: Include grub/partition.h.
49225 (grub_cmd_blocklist): Return an error if the underlying device is
49226 not a disk. Take the starting sector of a partition into account,
49227 if a partition is used.
49229 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49231 (lba_mode): Support 64-bit addresses.
49232 (chs_mode): Likewise.
49233 (copy_buffer): Adapted to the new offsets of a length field and a
49235 (blocklist_default_start): Allocate 64-bit space.
49237 * boot/i386/pc/boot.S (force_lba): Removed.
49238 (boot_drive): Moved to under KERNEL_SECTOR.
49239 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49241 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49243 (lba_mode): Refactored to support a 64-bit address. More size
49245 (setup_sectors): Likewise.
49247 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49249 * DISTLIST: Added include/grub/i386/linux.h. Removed
49250 include/grub/i386/pc/linux.h
49252 * configure.ac (AC_INIT): Bumped to 1.94.
49254 * config.guess: Updated from gnulib.
49255 * config.sub: Likewise.
49256 * install-sh: Likewise.
49257 * mkinstalldirs: Likewise.
49259 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49261 * conf/common.rmk (grub_modules_init.lst): Depended on
49262 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49265 * genmk.rb (PModule::rule): Reverted the previous change.
49267 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49269 * conf/common.rmk (grub_modules_init.lst): Depends on
49270 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49271 that the target does not exist before producing.
49272 (grub_modules_init.h): Remove the target before generating.
49273 (grub_emu_init.c): Likewise.
49275 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49277 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49279 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49280 for the target-specific tests. Make sure that we also have the
49281 up-to-date target variables for those tests.
49283 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49285 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49286 (PModule::rule): Likewise.
49288 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49290 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49291 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49292 target-specific flags should be prefixed.
49293 (PModule::rule): Likewise.
49295 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49297 * configure.ac (CMP): Check if cmp is available explicitly.
49299 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49301 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49302 (target_cpu): New variable.
49303 (pkglibdir): Use target_cpu instead of host_cpu.
49305 * util/i386/pc/grub-install.in (host_cpu): Removed.
49306 (target_cpu): New variable.
49307 (pkglibdir): Use target_cpu instead of host_cpu.
49309 * util/genmoddep.c: Removed.
49311 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49312 instead of GRUB_HOST_SIZEOF_VOID_P.
49313 * kern/dl.c: Likewise.
49315 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49317 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49318 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49319 (GRUB_TARGET_SIZEOF_LONG): ... this.
49320 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49321 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49322 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49324 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49325 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49326 (GRUB_TARGET_SIZEOF_LONG): ... this.
49327 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49328 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49329 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49331 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49332 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49333 (GRUB_TARGET_SIZEOF_LONG): ... this.
49334 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49335 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49337 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49338 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49339 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49340 instead of GRUB_HOST_SIZEOF_LONG.
49341 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49342 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49343 GRUB_CPU_WORDS_BIGENDIAN.
49344 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49345 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49348 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49349 (genmoddep_SOURCES): Likewise.
49350 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49351 (genmoddep_SOURCES): Likewise.
49352 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49353 (genmoddep_SOURCES): Likewise.
49354 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49356 (genmoddep_SOURCES): Likewise.
49358 * genmoddep.awk: New file.
49360 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49361 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49362 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49363 (PModule::rule): Likewise.
49364 (Program::rule): Likewise.
49365 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49366 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49369 * configure.ac: Rewritten intensively to use host and target
49370 instead of build and host, respectively.
49372 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49373 (host_cpu): Removed.
49374 (target_cpu): New variable.
49375 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49376 (BUILD_CC): Removed.
49377 (BUILD_CFLAGS): Likewise.
49378 (BUILD_CPPFLAGS): Likewise.
49379 (TARGET_CC): New variable.
49380 (TARGET_CFLAGS): Likewise.
49381 (TARGET_CPPFLAGS): Likewise.
49382 (TARGET_LDFLAGS): Likewise.
49384 (include): Use target_cpu instead of host_cpu.
49385 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49387 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49389 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49391 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49392 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49393 field 'false' to 'exec_on_false'.
49394 (grub_script_create_cmdif): Renamed argument names to reflect above
49397 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49399 * normal/script.c (grub_script_create_cmdif): Likewise.
49401 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49403 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49405 (grub_hfsplus_btree_recptr): Likewise.
49406 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49407 FILEBLOCK both to pass a block number and store next block
49409 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49410 overflow file correctly. Specify errors appropriately, because
49411 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49412 grub_hfsplus_btree_recptr to get the pointer to a found key.
49413 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49416 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49418 (_linux_mod_SOURCES): New variable.
49419 (_linux_mod_CFLAGS): Likewise.
49420 (_linux_mod_LDFLAGS): Likewise.
49421 (linux_mod_SOURCES): Likewise.
49422 (linux_mod_CFLAGS): Likewise.
49423 (linux_mod_LDFLAGS): Likewise.
49425 * DISTLIST: Added loader/i386/efi/linux.c,
49426 loader/i386/efi/linux_normal.c and
49427 include/grub/i386/efi/loader.h.
49429 * loader/i386/efi/linux.c: New file.
49430 * loader/i386/efi/linux_normal.c: Likewise.
49431 * include/grub/i386/efi/loader.h: Likewise.
49433 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49435 * commands/blocklist.c: New file.
49437 * DISTLIST: Added commands/blocklist.c.
49439 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49440 color for the background, and a darker color for the foreground.
49441 (grub_console_checkkey): Return READ_KEY.
49442 (grub_console_cls): Set the background to
49443 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49445 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49447 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49448 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49450 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49453 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49454 BG. The spec is wrong again.
49456 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49458 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49460 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49461 commands/blocklist.c.
49462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49464 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49465 (blocklist_mod_SOURCES): New variable.
49466 (blocklist_mod_CFLAGS): Likewise.
49467 (blocklist_mod_LDFLAGS): Likewise.
49469 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49471 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49473 (lba_mode): Use %eax more intensively to reduce the code size.
49475 2006-05-20 Marco Gerards <marco@gnu.org>
49477 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49479 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49481 (script): Accept leading newlines.
49482 (newlines): New rule to describe 0 or more newlines.
49483 (commands): Accept `command' with trailing newline. Fixed the
49484 order in which arguments were passed to `grub_script_add_cmd'.
49485 Accept commands separated by newlines.
49486 (function): Changed to accept newlines.
49487 (menuentry) Rewritten.
49489 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49490 front of the list, instead of to the end.
49492 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49494 * util/i386/pc/grub-install.in (bindir): New variable.
49495 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49496 Shaver <lbgwjl@gmail.com>.
49498 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49500 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49501 grub/machine/linux.h
49502 * loader/i386/pc/linux.c: Likewise.
49504 * include/grub/i386/pc/linux.h: Moved to ...
49505 * include/grub/i386/linux.h: ... here.
49507 * include/grub/i386/linux.h (struct linux_kernel_params): New
49510 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49512 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49514 (grub_video_vbe_blit_glyph): Likewise.
49515 (grub_video_vbe_blit_bitmap): Likewise.
49516 (grub_video_vbe_blit_render_target): Likewise.
49518 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49520 * configure.ac (--with-platform): Properly quote the square
49523 2006-05-08 Marco Gerards <marco@gnu.org>
49525 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49527 (kernel_elf_HEADERS): ...to this. Updated all users.
49528 (grubof_symlist.c): Renamed from this...
49529 (kernel_elf_symlist.c): ...to this. Updated all users.
49530 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49531 (grubof_SOURCES): Renamed from this...
49532 (kernel_elf_SOURCES): ...to this.
49533 (grubof_HEADERS): Renamed from this...
49534 (kernel_elf_HEADERS): ...to this.
49535 (grubof_CFLAGS): Renamed from this...
49536 (kernel_elf_CFLAGS): ...to this.
49537 (grubof_ASFLAGS): Renamed from this...
49538 (kernel_elf_ASFLAGS): ...to this.
49539 (grubof_LDFLAGS): Renamed from this...
49540 (kernel_elf_LDFLAGS): ...to this.
49542 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49544 (kernel_elf_HEADERS): ...to this. Updated all users.
49545 (grubof_symlist.c): Renamed from this...
49546 (kernel_elf_symlist.c): ...to this. Updated all users.
49547 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49548 (grubof_SOURCES): Renamed from this...
49549 (kernel_elf_SOURCES): ...to this.
49550 (grubof_HEADERS): Renamed from this...
49551 (kernel_elf_HEADERS): ...to this.
49552 (grubof_CFLAGS): Renamed from this...
49553 (kernel_elf_CFLAGS): ...to this.
49554 (grubof_ASFLAGS): Renamed from this...
49555 (kernel_elf_ASFLAGS): ...to this.
49556 (grubof_LDFLAGS): Renamed from this...
49557 (kernel_elf_LDFLAGS): ...to this.
49559 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49560 `kernel.elf' instead of `grubof'.
49562 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49564 Add --with-platform to configure. Use pkglibdir instead of
49565 pkgdatadir. This is reported by Roger Leigh.
49567 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49568 (host_vendor): Likewise.
49569 (host_os): Likewise.
49570 (pkgdatadir): Likewise.
49571 (platform): New variable.
49572 (pkglibdir): Likewise.
49573 Use PKGLIBDIR instead of PKGDATADIR.
49575 * util/i386/pc/grub-install.in (datadir): Removed.
49576 (host_vendor): Likewise.
49577 (host_os): Likewise.
49578 (pkgdatadir): Likewise.
49579 (platform): New variable.
49580 (pkglibdir): Likewise.
49581 Use PKGLIBDIR instead of PKGDATADIR.
49583 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49584 instead of GRUB_DATADIR.
49586 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49588 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49591 * configure.ac (--with-platform): New option.
49592 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49594 * Makefile.in: Include a makefile based on PLATFORM instead of
49596 (pkgdatadir): Not appended by the machine type.
49597 (pkglibdir): Appended by the machine type.
49598 (host_vendor): Removed.
49599 (platform): New variable.
49600 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49601 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49602 (uninstall): Likewise.
49604 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49606 Use the environment context in the menu. Remove the commands
49607 "default" and "timeout", and use variables instead.
49609 * normal/menu.c: Include grub/env.h.
49610 (print_entry): Cast TITLE to silence gcc.
49611 (get_timeout): New function.
49612 (set_timeout): Likewise.
49613 (get_entry_number): Likewise.
49614 (run_menu): Use a default entry, a fallback entry and a timeout
49615 in the environment variables "default", "fallback" and
49616 "timeout". Also, tweak the default entry if it is not within the
49617 current menu entries.
49618 (grub_menu_run): Use a fallback entry in the environment variable
49621 * normal/main.c (read_config_file): Do not initialize
49622 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49624 (grub_normal_execute): Use a data slot to store the menu.
49626 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49627 fallback_entry and timeout.
49628 (struct grub_menu_list): Removed.
49629 (grub_menu_list_t): Likewise.
49630 (struct grub_context): Likewise.
49631 (grub_context_t): Likewise.
49632 (grub_context_get): Likewise.
49633 (grub_context_get_current_menu): Likewise.
49634 (grub_context_push_menu): Likewise.
49635 (grub_context_pop_menu): Likewise.
49636 (grub_default_init): Likewise.
49637 (grub_default_fini): Likewise.
49638 (grub_timeout_init): Likewise.
49639 (grub_timeout_fini): Likewise.
49641 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49643 (normal_mod_SOURCES): Removed normal/context.c.
49645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49646 commands/default.c, commands/timeout.c and normal/context.c.
49647 (normal_mod_SOURCES): Removed normal/context.c.
49649 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49650 commands/timeout.c and normal/context.c.
49651 (normal_mod_SOURCES): Removed normal/context.c.
49653 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49654 commands/default.c, commands/timeout.c and normal/context.c.
49655 (normal_mod_SOURCES): Removed normal/context.c.
49657 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49659 (default_mod_SOURCES): Removed.
49660 (default_mod_CFLAGS): Likewise.
49661 (default_mod_LDFLAGS): Likewise.
49662 (timeout_mod_SOURCES): Removed.
49663 (timeout_mod_CFLAGS): Likewise.
49664 (timeout_mod_LDFLAGS): Likewise.
49666 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49669 * commands/default.c: Removed.
49670 * commands/timeout.c: Likewise.
49671 * normal/context.c: Likewise.
49673 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49675 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49677 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49679 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49680 "next" to "prev" for readability.
49681 (struct grub_env_sorted_var): New struct.
49682 (grub_env_context): Renamed to ...
49683 (initial_context): ... this.
49684 (grub_env_var_context): Renamed to ...
49685 (current_context): ... this.
49686 (grub_env_find): Look only at CURRENT_CONTEXT.
49687 (grub_env_context_open): Rewritten to copy exported variables from
49689 (grub_env_context_close): Rewritten according to the new
49690 scheme. Also, add an assertion to prevent the initial context from
49692 (grub_env_insert): Removed the code for the sorted list.
49693 (grub_env_remove): Likewise.
49694 (grub_env_export): Simply mark the variable with
49695 GRUB_ENV_VAR_GLOBAL.
49696 (grub_env_set): A cosmetic change for naming consistency.
49697 (grub_env_get): Likewise.
49698 (grub_env_unset): Likewise.
49699 (grub_env_iterate): Rewritten to sort variables within this
49701 (grub_register_variable_hook): Fixed for naming consistency. Call
49702 grub_env_find again, only if NAME is not found at the first time.
49703 (mangle_data_slot_name): New function.
49704 (grub_env_set_data_slot): Likewise.
49705 (grub_env_get_data_slot): Likewise.
49706 (grub_env_unset_data_slot): Likewise.
49708 * include/grub/env.h (grub_env_var_type): New enum.
49709 (GRUB_ENV_VAR_LOCAL): New constant.
49710 (GRUB_ENV_VAR_GLOBAL): Likewise.
49711 (GRUB_ENV_VAR_DATA): Likewise.
49712 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49714 (grub_env_set): Replace VAR with NAME for consistency.
49715 (grub_register_variable_hook): Likewise.
49716 (grub_env_export): Specify the name of the argument.
49717 (grub_env_set_data_slot): New prototype.
49718 (grub_env_get_data_slot): Likewise.
49719 (grub_env_unset_data_slot): Likewise.
49721 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49723 Extend the loader so that GRUB can accept a loader which comes
49724 back to GRUB when a loaded image exits. Also, this change adds
49725 support for a chainloader on EFI.
49727 * term/efi/console.c: Include grub/misc.h.
49728 (grub_console_checkkey): Display a scan code on the top for
49729 debugging. This will be removed once the EFI port gets stable.
49730 Correct the scan code mapping.
49732 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49733 allocate memory from larger regions, in order to reduce the number
49734 of allocated regions. Otherwise, the MacOSX loader panics.
49735 (filter_memory_map): Avoid less than 1MB for compatibility with
49737 (add_memory_regions): Allocate from the tail of a region, if
49738 possible, to avoid allocating a region near to 1MB, for the MacOSX
49741 * kern/efi/init.c (grub_efi_set_prefix): Specify
49742 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49744 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49745 argument IMAGE_HANDLE and specify it to get a loaded image.
49746 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49747 grub_efi_get_loaded_image.
49748 (grub_efi_get_filename): Divide the length by the size of
49750 (grub_efi_get_device_path): New function.
49751 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49752 the length by the size of grub_efi_char16_t for a file path device
49755 * kern/loader.c (grub_loader_noreturn): New variable.
49756 (grub_loader_set): Accept a new argument NORETURN. Set
49757 GRUB_LOADER_NORETURN to NORETURN.
49758 All callers changed.
49759 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49762 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49764 (grub_efi_get_loaded_image): Take an argument to specify an image
49767 * include/grub/loader.h (grub_loader_set): Added one more argument
49770 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49771 instead of grub_efi_open_protocol.
49772 (grub_efidisk_get_device_name): Likewise.
49773 (grub_efidisk_close): Print a newline.
49774 (grub_efidisk_get_device_handle): Fixed to use
49775 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49776 GRUB_EFI_DEVICE_PATH_TYPE.
49778 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49779 * kern/efi/efi.c (device_path_guid): ... here.
49781 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49783 (kernel_mod_HEADERS): Added efi/disk.h.
49784 (_chain_mod_SOURCES): New variable.
49785 (_chain_mod_CFLAGS): Likewise.
49786 (_chain_mod_LDFLAGS): Likewise.
49787 (chain_mod_SOURCES): Likewise.
49788 (chain_mod_CFLAGS): Likewise.
49789 (chain_mod_LDFLAGS): Likewise.
49791 * DISTLIST: Added include/grub/efi/chainloader.h,
49792 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49794 * include/grub/efi/chainloader.h: New file.
49795 * loader/efi/chainloader.c: Likewise.
49796 * loader/efi/chainloader_normal.c: Likewise.
49798 2006-04-30 Marco Gerards <marco@gnu.org>
49800 * commands/configfile.c (grub_cmd_source): New function.
49801 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49802 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49804 2006-04-30 Marco Gerards <marco@gnu.org>
49806 * normal/execute.c (grub_script_execute_cmd): Change the return
49807 type to `grub_err_t'. Correctly return the error.
49808 (grub_script_execute_cmdline): In case a command line is not a
49809 command or a function, try to interpret it as an assignment.
49811 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49813 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49814 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49815 skip a node whose name is obviously invalid as UTF-16,
49816 i.e. contains a NUL character. Stop the iteration when the last
49817 directory entry is found. Instead of using the return value of
49818 grub_hfsplus_btree_iterate_node, store the value in RET and use
49819 it, because the iterator can be stopped by the last directory
49822 2006-04-30 Marco Gerards <marco@gnu.org>
49824 * include/grub/env.h (grub_env_export): New prototype. Reported
49825 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49827 2006-04-30 Marco Gerards <marco@gnu.org>
49829 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49830 size of the extents in a catalog file record.
49832 2006-04-29 Marco Gerards <marco@gnu.org>
49834 * commands/configfile.c (grub_cmd_configfile): Execute the
49835 configfile within its own context.
49837 * include/grub/env.h (grub_env_context_open): New prototype.
49838 (grub_env_context_close): Likewise.
49840 * kern/env.c (grub_env): Removed.
49841 (grub_env_sorted): Likewise.
49842 (grub_env_context): New variable.
49843 (grub_env_var_context): Likewise.
49844 (grub_env_find): Search both the active context and the global
49846 (grub_env_context_open): New function.
49847 (grub_env_context_close): Likewise.
49848 (grub_env_insert): Likewise.
49849 (grub_env_remove): Likewise.
49850 (grub_env_export): Likewise.
49851 (grub_env_set): Changed to use helper functions to avoid code
49853 (grub_env_iterate): Rewritten so both the current context and the
49854 global context are being used.
49856 * normal/command.c (export_command): New function.
49857 (grub_command_init): Register the `export' function.
49859 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49861 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49862 explicitly to suppress gcc's warnings.
49863 * fs/fat.c (grub_fat_find_dir): Likewise.
49864 (grub_fat_label): Likewise.
49865 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49866 (grub_xfs_mount): Likewise.
49867 (grub_xfs_label): Likewise.
49868 * fs/affs.c (grub_affs_mount): Likewise.
49869 (grub_affs_label): Likewise.
49870 (grub_affs_iterate_dir): Likewise.
49871 * fs/sfs.c (grub_sfs_mount): Likewise.
49872 (grub_sfs_iterate_dir): Likewise.
49873 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49874 * fs/hfs.c (grub_hfs_mount): Likewise.
49875 (grub_hfs_cmp_catkeys): Likewise.
49876 (grub_hfs_find_dir): Likewise.
49877 (grub_hfs_dir): Likewise.
49878 (grub_hfs_label): Likewise.
49879 * fs/jfs.c (grub_jfs_mount): Likewise.
49880 (grub_jfs_opendir): Likewise.
49881 (grub_jfs_getent): Likewise.
49882 (grub_jfs_lookup_symlink): Likewise.
49883 (grub_jfs_label): Likewise.
49884 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49885 (grub_hfsplus_iterate_dir): Likewise.
49886 (grub_hfsplus_btree_iterate_node): Made static.
49888 * util/grub-emu.c (prefix): New variable.
49889 (grub_machine_set_prefix): New function.
49890 (main): Do not set the environment variable "prefix" here. Only
49891 set PREFIX, which is used later by grub_machine_set_prefix.
49893 * include/grub/video.h: Do not include grub/symbol.h.
49894 (grub_video_register): Not exported. This symbol is not defined in
49896 (grub_video_unregister): Likewise.
49897 (grub_video_iterate): Likewise.
49898 (grub_video_setup): Likewise.
49899 (grub_video_restore): Likewise.
49900 (grub_video_get_info): Likewise.
49901 (grub_video_get_blit_format): Likewise.
49902 (grub_video_set_palette): Likewise.
49903 (grub_video_get_palette): Likewise.
49904 (grub_video_set_viewport): Likewise.
49905 (grub_video_get_viewport): Likewise.
49906 (grub_video_map_color): Likewise.
49907 (grub_video_map_rgb): Likewise.
49908 (grub_video_map_rgba): Likewise.
49909 (grub_video_fill_rect): Likewise.
49910 (grub_video_blit_glyph): Likewise.
49911 (grub_video_blit_bitmap): Likewise.
49912 (grub_video_blit_render_target): Likewise.
49913 (grub_video_scroll): Likewise.
49914 (grub_video_swap_buffers): Likewise.
49915 (grub_video_create_render_target): Likewise.
49916 (grub_video_delete_render_target): Likewise.
49917 (grub_video_set_active_render_target): Likewise.
49919 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49921 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49923 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49924 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49925 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49926 instead of $(srcdir)/genkernsyms.sh.
49928 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49929 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49930 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49931 instead of $(srcdir)/genkernsyms.sh.
49933 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49934 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49935 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49936 instead of $(srcdir)/genkernsyms.sh.
49938 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49939 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49940 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49941 instead of $(srcdir)/genkernsyms.sh.
49943 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49946 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49948 (gensymlist.sh): New target.
49949 (genkernsyms.sh): Likewise.
49951 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49952 genkernsyms.sh.in and gensymlist.sh.in.
49954 * genkernsyms.sh: Removed.
49955 * gensymlist.sh: Likewise.
49957 * genkernsyms.sh.in: New file.
49958 * gensymlist.sh.in: Likewise.
49960 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49962 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49963 clobber "prefix", since we may have already set it manually.
49965 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49967 * kern/misc.c (abort): New alias for grub_abort.
49969 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49971 A new machine-specific function "grub_machine_set_prefix" is
49972 defined. This is called after loading modules, so that a prefix
49973 initialization can use modules. Also, this change adds an
49974 intensive debugging feature for the memory manager via the
49975 configure option "--enable-mm-debug".
49977 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
49980 * kern/sparc64/ieee1275/init.c (abort): Removed.
49981 (grub_stop): Likewise.
49982 (grub_exit): New function.
49983 (grub_set_prefix): Renamed to ...
49984 (grub_machine_set_prefix): ... this.
49985 (grub_machine_init): Do not call grub_set_prefix.
49987 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
49988 (grub_machine_set_prefix): ... this.
49989 (grub_machine_init): Do not call grub_set_prefix.
49991 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
49992 (grub_machine_init): Do not set the prefix here.
49994 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
49996 * kern/efi/init.c: Include grub/mm.h.
49997 (grub_efi_set_prefix): New function.
49999 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50000 (grub_efi_get_filename): New function.
50001 (grub_print_device_path): Renamed to ...
50002 (grub_efi_print_device_path): ... this.
50004 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50005 [MM_DEBUG] (grub_realloc): Likewise.
50006 [MM_DEBUG] (grub_free): Likewise.
50007 [MM_DEBUG] (grub_memalign): Likewise.
50008 [MM_DEBUG] (grub_mm_debug): New variable.
50009 [MM_DEBUG] (grub_debug_malloc): New function.
50010 [MM_DEBUG] (grub_debug_free): New function.
50011 [MM_DEBUG] (grub_debug_realloc): New function.
50012 [MM_DEBUG] (grub_debug_memalign): New function.
50014 * kern/misc.c (grub_abort): Print a newline to distinguish
50017 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50018 grub_set_root_dev after loading modules. This is necessary when
50019 setting a prefix depends on modules.
50021 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50022 (grub_efi_print_device_path): ... this.
50023 (grub_efi_get_filename): New prototype.
50024 (grub_efi_set_prefix): Likewise.
50026 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50028 (grub_efidisk_get_device_handle): New prototype.
50029 (grub_efidisk_get_device_name): Likewise.
50031 * include/grub/mm.h: Include config.h.
50032 (MM_DEBUG): Removed.
50033 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50034 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50035 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50036 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50037 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50038 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50039 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50040 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50041 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50043 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50045 * disk/efi/efidisk.c: Include grub/partition.h.
50046 (iterate_child_devices): New function.
50047 (add_device): First, compare only last device path nodes, so that
50048 devices are sorted by the types.
50049 (grub_efidisk_get_device_handle): New function.
50050 (grub_efidisk_get_device_name): Likewise.
50052 * configure.ac (--enable-mm-debug): New option to enable the
50053 memory manager debugging feature. This makes the binary much
50054 bigger, so is disabled by default.
50056 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50058 Use grub_abort instead of grub_stop, and grub_exit must be
50059 define in each architecture now. Also, this change adds support
50062 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50063 (grub_getkey): New function.
50064 (grub_term_get_current): Likewise.
50066 * util/i386/pc/grub-setup.c: Include grub/term.h.
50067 (grub_getkey): New function.
50068 (grub_term_get_current): Likewise.
50070 * util/misc.c (grub_stop): Renamed to ...
50071 (grub_exit): ... this.
50073 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50074 (grub_exit): ... this.
50075 (grub_machine_init): Use grub_abort instead of abort.
50076 (grub_stop): Removed.
50078 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50081 * kern/i386/pc/startup.S (grub_exit): New function.
50082 (cold_reboot): New label.
50084 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50085 (grub_efi_init): Call grub_efidisk_init.
50086 (grub_efi_fini): Call grub_efidisk_fini.
50088 * kern/efi/efi.c: Include grub/mm.h.
50089 (grub_efi_console_control_guid): Renamed to ...
50090 (console_control_guid): ... this.
50091 (grub_efi_loaded_image_guid): Renamed to ...
50092 (loaded_image_guid): ... this.
50093 (grub_efi_locate_handle): New function.
50094 (grub_efi_open_protocol): Likewise.
50095 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50096 GRUB_EFI_CONSOLE_CONTROL_GUID.
50097 (grub_efi_exit): Removed.
50098 (grub_stop): Likewise.
50099 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50100 (grub_exit): New function.
50101 (grub_print_device_path): Likewise.
50103 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50104 (grub_enter_rescue_mode): Register "exit".
50106 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50107 (grub_abort): New function.
50109 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50111 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50113 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50115 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50116 (grub_print_device_path): New prototype.
50117 (grub_efi_locate_handle): Likewise.
50118 (grub_efi_open_protocol): Likewise.
50120 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50121 * disk/efi/efidisk.c: Likewise.
50123 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50125 * include/grub/efi/console_control.h
50126 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50128 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50129 last 8 bytes as an array.
50130 (GRUB_EFI_DISK_IO_GUID): New macro.
50131 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50132 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50133 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50135 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50136 (struct grub_efi_device_path): Rename the member "sub_type" to
50138 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50139 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50140 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50141 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50142 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50143 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50144 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50145 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50146 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50147 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50148 (struct grub_efi_pci_device_path): New structure.
50149 (grub_efi_pci_device_path_t): New type.
50150 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50151 (struct grub_efi_pccard_device_path): New structure.
50152 (grub_efi_pccard_device_path_t): New type.
50153 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50154 (struct grub_efi_memory_mapped_device_path): New structure.
50155 (grub_efi_memory_mapped_device_path_t): New type.
50156 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50157 (struct grub_efi_vendor_device_path): New structure.
50158 (grub_efi_vendor_device_path_t): New type.
50159 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50160 (struct grub_efi_controller_device_path): New structure.
50161 (grub_efi_controller_device_path_t): New type.
50162 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50163 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50164 (struct grub_efi_acpi_device_path): New structure.
50165 (grub_efi_acpi_device_path_t): New type.
50166 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50167 (struct grub_efi_expanded_acpi_device_path): New structure.
50168 (grub_efi_expanded_acpi_device_path_t): New type.
50169 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50170 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50171 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50172 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50173 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50174 (struct grub_efi_atapi_device_path): New structure.
50175 (grub_efi_atapi_device_path_t): New type.
50176 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50177 (struct grub_efi_fibre_channel_device_path): New structure.
50178 (grub_efi_fibre_channel_device_path_t): New type.
50179 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50180 (struct grub_efi_1394_device_path): New structure.
50181 (grub_efi_1394_device_path_t): New type.
50182 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50183 (struct grub_efi_usb_device_path): New structure.
50184 (grub_efi_usb_device_path_t): New type.
50185 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50186 (struct grub_efi_usb_class_device_path): New structure.
50187 (grub_efi_usb_class_device_path_t): New type.
50188 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50189 (struct grub_efi_i2o_device_path): New structure.
50190 (grub_efi_i2o_device_path_t): New type.
50191 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50192 (struct grub_efi_mac_address_device_path): New structure.
50193 (grub_efi_mac_address_device_path_t): New type.
50194 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50195 (struct grub_efi_ipv4_device_path): New structure.
50196 (grub_efi_ipv4_device_path_t): New type.
50197 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50198 (struct grub_efi_ipv6_device_path): New structure.
50199 (grub_efi_ipv6_device_path_t): New type.
50200 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50201 (struct grub_efi_infiniband_device_path): New structure.
50202 (grub_efi_infiniband_device_path_t): New type.
50203 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50204 (struct grub_efi_uart_device_path): New structure.
50205 (grub_efi_uart_device_path_t): New type.
50206 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50207 (struct grub_efi_vendor_messaging_device_path): New structure.
50208 (grub_efi_vendor_messaging_device_path_t): New type.
50209 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50210 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50211 (struct grub_efi_hard_drive_device_path): New structure.
50212 (grub_efi_hard_drive_device_path_t): New type.
50213 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50214 (struct grub_efi_cdrom_device_path): New structure.
50215 (grub_efi_cdrom_device_path_t): New type.
50216 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50217 (struct grub_efi_vendor_media_device_path): New structure.
50218 (grub_efi_vendor_media_device_path_t): New type.
50219 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50220 (struct grub_efi_file_path_device_path): New structure.
50221 (grub_efi_file_path_device_path_t): New type.
50222 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50223 (struct grub_efi_protocol_device_path): New structure.
50224 (grub_efi_protocol_device_path_t): New type.
50225 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50226 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50227 (struct grub_efi_bios_device_path): New structure.
50228 (grub_efi_bios_device_path_t): New type.
50229 (struct grub_efi_disk_io): New structure.
50230 (grub_efi_disk_io_t): New type.
50231 (struct grub_efi_block_io_media): New structure.
50232 (grub_efi_block_io_media_t): New type.
50233 (struct grub_efi_block_io): New structure.
50234 (grub_efi_block_io_t): New type.
50236 * include/grub/misc.h (grub_stop): Removed.
50237 (grub_exit): New prototype.
50238 (grub_abort): Likewise.
50240 * include/grub/disk.h (enum grub_disk_dev_id): Added
50241 GRUB_DISK_DEVICE_EFIDISK_ID.
50243 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50244 disk/efi/efidisk.c.
50245 (kernel_syms.lst): Remove the target if an error occurs.
50247 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50249 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50250 as it was simply too buggy.
50252 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50254 * kern/misc.c (grub_lltoa): New function.
50255 (grub_vsprintf): Added support for the long long suffix,
50258 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50260 * Makefile.in (LDFLAGS): Add variable.
50261 (LD): Remove variable.
50262 * configure.ac: Add -m32 to LDFLAGS.
50263 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50264 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50265 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50266 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50267 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50269 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50270 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50271 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50273 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50275 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50276 length for unknown glyph.
50278 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50280 Add support for pre-loaded modules into the EFI port.
50282 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50283 completely. Accept one more argument DIR. The caller has changed.
50285 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50287 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50288 (grub_efi_loaded_image_guid): New variable.
50289 (grub_efi_get_loaded_image): New function.
50290 (grub_arch_modules_addr): Likewise.
50292 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50295 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50296 (struct grub_efi_loaded_image): New structure.
50297 (grub_efi_loaded_image_t): New type.
50299 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50301 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50302 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50303 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50305 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50307 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50309 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50311 * DISTLIST: Added include/grub/efi/console.h,
50312 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50313 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50315 * include/grub/efi/console.h: New file.
50316 * include/grub/efi/time.h: Likewise.
50317 * include/grub/i386/efi/kernel.h: Likewise.
50318 * kern/efi/init.c: Likewise.
50319 * kern/efi/mm.c: Likewise.
50320 * term/efi/console.c: Likewise.
50322 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50323 (grub_stop): Removed.
50324 (grub_get_rtc): Likewise.
50325 (grub_machine_init): Simply call grub_efi_init.
50326 (grub_machine_fini): Call grub_efi_fini.
50328 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50329 (grub_efi_output_string): Removed.
50330 (grub_efi_stall): New function.
50331 (grub_stop): Likewise.
50332 (grub_get_rtc): Likewise.
50334 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50335 (grub_efi_stall): New prototype.
50336 (grub_efi_allocate_pages): Likewise.
50337 (grub_efi_free_pages): Likewise.
50338 (grub_efi_get_memory_map): Likewise.
50339 (grub_efi_mm_init): Likewise.
50340 (grub_efi_mm_fini): Likewise.
50341 (grub_efi_init): Likewise.
50342 (grub_efi_fini): Likewise.
50344 * include/grub/i386/efi/time.h: Do not include
50345 grub/symbol.h. Include grub/efi/time.h.
50346 (GRUB_TICKS_PER_SECOND): Removed.
50347 (grub_get_rtc): Likewise.
50349 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50350 Added padding. The EFI spec is buggy.
50351 (GRUB_EFI_BLACK): New macro.
50352 (GRUB_EFI_BLUE): Likewise.
50353 (GRUB_EFI_GREEN): Likewise.
50354 (GRUB_EFI_CYAN): Likewise.
50355 (GRUB_EFI_RED): Likewise.
50356 (GRUB_EFI_MAGENTA): Likewise.
50357 (GRUB_EFI_BROWN): Likewise.
50358 (GRUB_EFI_LIGHTGRAY): Likewise.
50359 (GRUB_EFI_BRIGHT): Likewise.
50360 (GRUB_EFI_DARKGRAY): Likewise.
50361 (GRUB_EFI_LIGHTBLUE): Likewise.
50362 (GRUB_EFI_LIGHTGREEN): Likewise.
50363 (GRUB_EFI_LIGHTCYAN): Likewise.
50364 (GRUB_EFI_LIGHTRED): Likewise.
50365 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50366 (GRUB_EFI_YELLOW): Likewise.
50367 (GRUB_EFI_WHITE): Likewise.
50368 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50369 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50370 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50371 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50372 (GRUB_EFI_BACKGROUND_RED): Likewise.
50373 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50374 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50375 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50376 (GRUB_EFI_TEXT_ATTR): Likewise.
50378 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50379 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50380 (kernel_mod_HEADERS): Added efi/time.h.
50382 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50384 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50385 include/grub/efi/api.h, include/grub/efi/console_control.h,
50386 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50387 include/grub/i386/efi/time.h, kern/efi/efi.c,
50388 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50389 and util/i386/efi/grub-mkimage.c.
50391 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50393 * genmk.rb (PModule#rule): Do not export symbols if
50394 #{prefix}_EXPORTS is set to "no".
50396 * conf/i386-efi.mk: New file.
50397 * conf/i386-efi.rmk: Likewise.
50398 * include/grub/efi/api.h: Likewise.
50399 * include/grub/efi/console_control.h: Likewise.
50400 * include/grub/efi/efi.h: Likewise.
50401 * include/grub/efi/pe32.h: Likewise.
50402 * include/grub/i386/efi/time.h: Likewise.
50403 * kern/efi/efi.c: Likewise.
50404 * kern/i386/efi/init.c: Likewise.
50405 * kern/i386/efi/startup.S: Likewise.
50406 * util/i386/efi/grub-mkimage.c: Likewise.
50408 2006-04-17 Marco Gerards <marco@gnu.org>
50410 * include/grub/script.h: Include <grub/parser.h> and
50411 "grub_script.tab.h".
50412 (struct grub_lexer_param): New struct.
50413 (struct grub_parser_param): Likewise.
50414 (grub_script_create_arglist): Pass the state in an argument.
50415 (grub_script_add_arglist): Likewise.
50416 (grub_script_create_cmdline): Likewise.
50417 (grub_script_create_cmdblock): Likewise.
50418 (grub_script_create_cmdif): Likewise.
50419 (grub_script_create_cmdmenu): Likewise.
50420 (grub_script_add_cmd): Likewise.
50421 (grub_script_arg_add): Likewise.
50422 (grub_script_lexer_ref): Likewise.
50423 (grub_script_lexer_deref): Likewise.
50424 (grub_script_lexer_record_start): Likewise.
50425 (grub_script_lexer_record_stop): Likewise.
50426 (grub_script_mem_record): Likewise.
50427 (grub_script_mem_record_stop): Likewise.
50428 (grub_script_malloc): Likewise.
50429 (grub_script_yylex): Likewise.
50430 (grub_script_yyparse): Likewise.
50431 (grub_script_yyerror): Likewise.
50432 (grub_script_yylex): Likewise.
50433 (grub_script_lexer_init): Return the state.
50435 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50436 (grub_script_lexer_done): Likewise.
50437 (grub_script_lexer_getline): Likewise.
50438 (grub_script_lexer_refs): Likewise.
50439 (script): Likewise.
50440 (newscript): Likewise.
50441 (record): Likewise.
50442 (recording): Likewise.
50443 (recordpos): Likewise.
50444 (recordlen): Likewise.
50445 (grub_script_lexer_init): Return the state instead of setting
50447 (grub_script_lexer_ref): Use the newly added argument for state
50448 instead of globals.
50449 (grub_script_lexer_deref): Likewise.
50450 (grub_script_lexer_record_start): Likewise.
50451 (grub_script_lexer_record_stop): Likewise.
50452 (recordchar): Likewise.
50453 (nextchar): Likewise.
50454 (grub_script_yylex2): Likewise.
50455 (grub_script_yylex): Likewise.
50456 (grub_script_yyerror): Likewise.
50458 * normal/parser.y (func_mem): Removed variable.
50459 (menu_entry): Likewise.
50461 (%lex-param): New parser option.
50462 (%parse-param): Likewise.
50463 (script): Always return the AST.
50464 (argument): Pass the state around.
50465 (arguments): Likewise.
50466 (grubcmd): Likewise.
50467 (commands): Likewise.
50468 (function): Likewise.
50469 (menuentry): Likewise.
50470 (if_statement): Likewise.
50473 * normal/script.c (grub_script_memused): Removed variable.
50474 (grub_script_parsed): Likewise.
50475 (grub_script_malloc): Added a state argument. Use that instead of
50477 (grub_script_mem_record): Likewise.
50478 (grub_script_mem_record_stop): Likewise.
50479 (grub_script_arg_add): Likewise.
50480 (grub_script_add_arglist): Likewise.
50481 (grub_script_create_cmdline): Likewise.
50482 (grub_script_create_cmdif): Likewise.
50483 (grub_script_create_cmdmenu): Likewise.
50484 (grub_script_add_cmd): Likewise.
50485 (grub_script_parse): Setup the state before calling the parser.
50487 2006-04-16 Marco Gerards <marco@gnu.org>
50489 * normal/command.c (grub_command_init): Remove the title command.
50491 * normal/lexer.c (grub_script_yylex): Renamed from this...
50492 (grub_script_yylex2): ... to this.
50493 (grub_script_yylex): New function. Temporary
50494 introduced to filter some tokens.
50495 (grub_script_yyerror): Print a newline.
50497 * normal/main.c (read_config_file): Output information about the
50498 lines that contain errors. Wait for a key after all lines have
50499 been processed. Don't return an empty menu.
50501 * normal/parser.y (func_mem): Don't initialize.
50502 (menu_entry): Likewise.
50503 (err): New variable.
50504 (script): Don't return anything when an error was encountered.
50505 (ws, returns): Removed rules.
50506 (argument): Disabled concatenated variable support.
50507 (arguments): Remove explicit separators.
50508 (grubcmd): Likewise.
50509 (function): Likewise.
50510 (menuentry): Likewise.
50512 (commands): Likewise. Add error handling.
50514 * normal/script.c (grub_script_create_cmdline): If
50515 `grub_script_parsed' is 0, assume the parser encountered an error.
50517 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50519 * configure.ac: Add support for EFI. Fix the typo
50520 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50522 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50524 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50525 foreign multibyte characters should be shown correctly.
50527 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50529 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50531 (read_config_file): Made it to close file before returning.
50533 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50535 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50536 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50537 video/i386/pc/vbefill.c.
50539 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50540 video/i386/pc/vbefill.c.
50542 * include/grub/video.h (grub_video_blit_format): New enum.
50543 (grub_video_mode_info): Added new member blit_format.
50544 (grub_video_get_blit_format): New function prototype.
50546 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50547 function prototype.
50548 (grub_video_vbe_map_rgb): Likewise.
50549 (grub_video_vbe_unmap_color): Likewise.
50551 * include/grub/i386/pc/vbeblit.h: New file.
50553 * include/grub/i386/pc/vbefill.h: New file.
50555 * video/video.c (grub_video_get_blit_format): New function.
50556 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50557 (grub_video_vbe_map_rgb): Likewise.
50558 (grub_video_vbe_unmap_color): Likewise.
50560 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50562 (grub_video_vbe_blit_render_target): Changed to use more optimized
50564 (grub_video_vbe_setup): Added detection for optimized settings.
50565 (grub_video_vbe_create_render_target): Likewise.
50567 * video/i386/pc/vbeblit.c: New file.
50569 * video/i386/pc/vbefill.c: New file.
50571 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50573 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50576 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50577 parsing to support both hex and dec ranges. If filename was missing
50578 show usage information.
50580 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50582 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50583 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50585 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50586 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50587 (video_mod_SOURCES): Added.
50588 (video_mod_CFLAGS): Likewise.
50589 (video_mod_LDFLAGS): Likewise.
50590 (gfxterm_mod_SOURCES): Likewise.
50591 (gfxterm_mod_CFLAGS): Likewise.
50592 (gfxterm_mod_LDFLAGS): Likewise.
50593 (videotest_mod_SOURCES): Likewise.
50594 (videotest_mod_CFLAGS): Likewise.
50595 (videotest_mod_LDFLAGS): Likewise.
50596 (vesafb_mod_SOURCES): Removed.
50597 (vesafb_mod_CFLAGS): Likewise.
50598 (vesafb_mod_LDFLAGS): Likewise.
50599 (vga_mod_SOURCES): Likewise.
50600 (vga_mod_CFLAGS): Likewise.
50601 (vga_mod_LDFLAGS): Likewise.
50603 * commands/videotest.c: New file.
50605 * font/manager.c (fill_with_default_glyph): Modified to use
50607 (grub_font_get_glyph): Likewise.
50608 (fontmanager): Renamed from this...
50609 (font_manager): ... to this.
50611 * include/grub/font.h (grub_font_glyph): Added new structure.
50612 (grub_font_get_glyph): Modified to use grub_font_glyph.
50614 * include/grub/misc.h (grub_abs): Added as inline function.
50616 * include/grub/video.h: New file.
50618 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50619 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50620 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50621 (grub_vbe_get_controller_info): Renamed from this...
50622 (grub_vbe_bios_get_controller_info): ... to this.
50623 (grub_vbe_get_mode_info): Renamed from this...
50624 (grub_vbe_bios_get_mode_info): ... to this.
50625 (grub_vbe_set_mode): Renamed from this...
50626 (grub_vbe_bios_set_mode): ... to this.
50627 (grub_vbe_get_mode): Renamed from this...
50628 (grub_vbe_bios_get_mode): ... to this.
50629 (grub_vbe_set_memory_window): Renamed from this...
50630 (grub_vbe_bios_set_memory_window): ... to this.
50631 (grub_vbe_get_memory_window): Renamed from this...
50632 (grub_vbe_bios_get_memory_window): ... to this.
50633 (grub_vbe_set_scanline_length): Renamed from this...
50634 (grub_vbe_set_scanline_length): ... to this.
50635 (grub_vbe_get_scanline_length): Renamed from this...
50636 (grub_vbe_bios_get_scanline_length): ... to this.
50637 (grub_vbe_set_display_start): Renamed from this...
50638 (grub_vbe_bios_set_display_start): ... to this.
50639 (grub_vbe_get_display_start): Renamed from this...
50640 (grub_vbe_bios_get_display_start): ... to this.
50641 (grub_vbe_set_palette_data): Renamed from this...
50642 (grub_vbe_bios_set_palette_data): ... to this.
50643 (grub_vbe_set_pixel_rgb): Removed.
50644 (grub_vbe_set_pixel_index): Likewise.
50646 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50648 (grub_vbe_bios_get_controller_info): ... to this.
50649 (grub_vbe_get_mode_info): Renamed from this...
50650 (grub_vbe_bios_get_mode_info): ... to this.
50651 (grub_vbe_set_mode): Renamed from this...
50652 (grub_vbe_bios_set_mode): ... to this.
50653 (grub_vbe_get_mode): Renamed from this...
50654 (grub_vbe_bios_get_mode): ... to this.
50655 (grub_vbe_set_memory_window): Renamed from this...
50656 (grub_vbe_bios_set_memory_window): ... to this.
50657 (grub_vbe_get_memory_window): Renamed from this...
50658 (grub_vbe_bios_get_memory_window): ... to this.
50659 (grub_vbe_set_scanline_length): Renamed from this...
50660 (grub_vbe_set_scanline_length): ... to this.
50661 (grub_vbe_get_scanline_length): Renamed from this...
50662 (grub_vbe_bios_get_scanline_length): ... to this.
50663 (grub_vbe_set_display_start): Renamed from this...
50664 (grub_vbe_bios_set_display_start): ... to this.
50665 (grub_vbe_get_display_start): Renamed from this...
50666 (grub_vbe_bios_get_display_start): ... to this.
50667 (grub_vbe_set_palette_data): Renamed from this...
50668 (grub_vbe_bios_set_palette_data): ... to this.
50669 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50670 getting corrupted after calling it. Added more pushes and pops.
50671 (grub_vbe_bios_set_mode): Likewise.
50672 (grub_vbe_bios_get_mode): Likewise.
50673 (grub_vbe_bios_get_memory_window): Likewise.
50674 (grub_vbe_bios_set_scanline_length): Likewise.
50675 (grub_vbe_bios_get_scanline_length): Likewise.
50676 (grub_vbe_bios_get_display_start): Likewise.
50677 (grub_vbe_bios_set_palette_data): Likewise.
50679 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50680 (cl_insert): Likewise.
50681 (cl_delete): Likewise.
50683 * term/gfxterm.c: New file.
50685 * term/i386/pc/vesafb.c: Removed file.
50687 * video/video.c: New file.
50689 * video/i386/pc/vbe.c (real2pm): Added new function.
50690 (grub_video_vbe_draw_pixel): Likewise.
50691 (grub_video_vbe_get_video_ptr): Likewise.
50692 (grub_video_vbe_get_pixel): Likewise
50693 (grub_video_vbe_init): Likewise.
50694 (grub_video_vbe_fini): Likewise.
50695 (grub_video_vbe_setup): Likewise.
50696 (grub_video_vbe_get_info): Likewise.
50697 (grub_video_vbe_set_palette): Likewise.
50698 (grub_video_vbe_get_palette): Likewise.
50699 (grub_video_vbe_set_viewport): Likewise.
50700 (grub_video_vbe_get_viewport): Likewise.
50701 (grub_video_vbe_map_color): Likewise.
50702 (grub_video_vbe_map_rgb): Likewise.
50703 (grub_video_vbe_map_rgba): Likewise.
50704 (grub_video_vbe_unmap_color): Likewise.
50705 (grub_video_vbe_fill_rect): Likewise.
50706 (grub_video_vbe_blit_glyph): Likewise.
50707 (grub_video_vbe_blit_bitmap): Likewise.
50708 (grub_video_vbe_blit_render_target): Likewise.
50709 (grub_video_vbe_scroll): Likewise.
50710 (grub_video_vbe_swap_buffers): Likewise.
50711 (grub_video_vbe_create_render_target): Likewise.
50712 (grub_video_vbe_delete_render_target): Likewise.
50713 (grub_video_vbe_set_active_render_target): Likewise.
50714 (grub_vbe_set_pixel_rgb): Remove function.
50715 (grub_vbe_set_pixel_index): Likewise.
50716 (index_color_mode): Remove static variable.
50717 (active_mode): Likewise.
50718 (framebuffer): Likewise.
50719 (bytes_per_scan_line): Likewise.
50720 (grub_video_vbe_adapter): Added new static variable.
50721 (framebuffer): Likewise.
50722 (render_target): Likewise.
50723 (initial_mode): Likewise.
50724 (mode_in_use): Likewise.
50725 (mode_list): Likewise.
50727 2006-03-10 Marco Gerards <marco@gnu.org>
50729 * configure.ac (AC_INIT): Bumped to 1.93.
50731 * DISTLIST: Added `include/grub/hfs.h'.
50733 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50735 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50736 18H, which might help the BIOS falling back to next boot media.
50738 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50740 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50741 Poe Chen <poe.poechen@gmail.com>.
50743 2006-01-17 Marco Gerards <marco@gnu.org>
50745 * include/grub/normal.h: Include <grub/script.h>.
50746 (grub_command_list): Removed struct.
50747 (grub_command_list_t): Removed type.
50748 (grub_menu_entry): Remove members `num' and `command_list'. Add
50749 members `commands' and `sourcecode'.
50750 * include/grub/script.h: Add inclusion guards.
50751 (grub_script_cmd_menuentry): New struct.
50752 (grub_script_execute_menuentry): New prototype.
50753 (grub_script_lexer_record_start): Likewise.
50754 (grub_script_lexer_record_stop): Likewise.
50755 * normal/execute.c (grub_script_execute_menuentry): New function.
50756 * normal/lexer.c (record, recording, recordpos, recordlen): New
50758 (grub_script_lexer_record_start): New function.
50759 (grub_script_lexer_record_stop): Likewise.
50760 (recordchar): Likewise.
50761 (nextchar): Likewise.
50762 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50763 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50764 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50765 (current_menu): New variable.
50766 (free_menu): Mainly rewritten.
50767 (grub_normal_menu_addentry): New function.
50768 (read_config_file): Rewritten.
50769 * normal/menu.c (run_menu_entry): Mainly rewritten.
50770 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50772 (run): Mainly rewritten.
50773 * normal/parser.y (menu_entry): New variable.
50774 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50775 (menuentry): New rule.
50776 (command): Add `menuentry'.
50777 (if_statement): Allow additional returns before `fi'.
50778 * normal/script.c (grub_script_create_cmdmenu): New function.
50780 2006-01-03 Marco Gerards <marco@gnu.org>
50782 * INSTALL: GNU Bison is required.
50783 * configure.ac: Rewritten the test to detect Bison.
50784 * Makefile.in (YACC): New variable. Reported by Xun Sun
50785 <xun.sun.cn@gmail.com>.
50787 2006-01-03 Marco Gerards <marco@gnu.org>
50789 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50790 the HFS+ filesystem to filesystem blocks.
50791 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50792 GCC warning is silenced.
50794 2006-01-03 Marco Gerards <marco@gnu.org>
50796 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50797 read from disk from big endian to host byte order.
50799 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50801 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50803 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50804 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50805 embedded HFS+ filesystem.
50806 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50807 (grub_hfs_sblock): Move from here...
50808 * include/grub/hfs.h: To here... New file.
50809 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50811 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50813 (grub_hfsplus_volheader): Change type of member `magic' to
50815 (grub_hfsplus_data): Add new member `embedded_offset'.
50816 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50818 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50819 Calculate the offset.
50821 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50823 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50825 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50827 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50829 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50830 ENV->NAME is NULL after allocating ENV->VALUE.
50832 2005-12-25 Marco Gerards <marco@gnu.org>
50834 * kern/env.c (grub_env_set): Rewritten the error handling code.
50836 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50838 * geninit.sh: Made more robust, and more portable.
50840 2005-12-25 Marco Gerards <marco@gnu.org>
50842 Add support for Apple HFS+ filesystems.
50844 * fs/hfsplus.c: New file.
50846 * DISTLIST: Added `fs/hfsplus.c'.
50848 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50849 (hfsplus_mod_SOURCES): New variable.
50850 (hfsplus_mod_CFLAGS): Likewise.
50851 (hfsplus_mod_LDFLAGS): Likewise.
50852 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50853 (grub_setup_SOURCES): Likewise.
50854 (grub_mkdevicemap_SOURCES): Likewise.
50855 (grub_emu_SOURCES): Likewise.
50856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50858 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50860 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50862 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50864 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50865 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50866 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50867 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50868 normal/lexer.c, normal/parser.y, normal/script.c, and
50870 Removed kern/sparc64/cache.c.
50872 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50873 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50876 * configure.ac (AC_INIT): Bumped to 1.92.
50878 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50880 * kern/err.c (grub_error_push): Added new function to support error
50882 (grub_error_pop): Likewise.
50883 (grub_error_stack_items): New local variable to support error stacks.
50884 (grub_error_stack_pos): Likewise.
50885 (grub_error_stack_assert): Likewise.
50886 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50888 (grub_print_error): Added support to print errors from error stack.
50890 * include/grub/err.h (grub_error_push): Added function prototype.
50891 (grub_error_pop): Likewise.
50893 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50895 * configure.ac: Accept `powerpc64' as host_cpu.
50896 (amd64): Rename to `biarch32'.
50898 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50899 non-cacheline-aligned addresses.
50901 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50902 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50903 if `size' is non-zero.
50905 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50907 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50908 and `cd' to make sure the filename is not prefixed with a
50910 (pkgdata_MODULES): Add `gpt.mod'.
50911 (gpt_mod_SOURCES): New variable.
50912 (gpt_mod_CFLAGS): Likewise.
50913 (gpt_mod_LDFLAGS): Likewise.
50915 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50917 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50920 * partmap/gpt.c: New file.
50922 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50923 GPT partition map is detected.
50925 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50927 * commands/i386/pc/play.c: New file.
50928 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50929 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50932 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50934 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50935 ((unused))' to silence gcc warning.
50937 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50939 * configure.ac: Correct `AC_PROG_YACC' test.
50941 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50943 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50944 check before installing files.
50946 2005-11-22 Mike Small <smallm@panix.com>
50948 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50949 number regex so multidigit numbers are recognized correctly.
50951 2005-11-22 Mike Small <smallm@panix.com>
50953 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50954 debugging message before attempting to claim memory.
50955 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50956 multiple addresses in case of failure.
50958 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50960 * term/tparm.c (get_space): Remove empty `if' statement.
50962 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50964 * kern/parser.c (check_varstate): Rename `state' to 's'.
50966 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50968 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50969 variable definitions to the beginning of each function. Sort stack
50971 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50972 `buf' argument to `char *'.
50974 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50976 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
50977 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50978 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50979 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50980 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50981 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50982 configfile.mod, search.mod, gzio.mod and test.mod.
50983 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50984 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50985 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50986 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50987 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50988 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50989 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50990 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50991 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50992 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50993 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50994 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50995 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50996 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50997 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50998 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50999 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51000 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51001 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51002 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51003 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51004 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51005 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51007 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51009 (pkgdata_MODULES): Add test.mod.
51011 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51013 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51014 appending to variables with "+=".
51015 (PModule): Use full pathname to generate *.lst filenames.
51017 * Makefile.in: Fixed list rules moved from genmk.rb.
51018 (.DELETE_ON_ERROR): New special target.
51019 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51021 * conf/i386-pc.rmk: Include conf/common.mk.
51022 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51023 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51024 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51025 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51026 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51027 configfile.mod, search.mod, gzio.mod and test.mod.
51028 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51029 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51030 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51031 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51032 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51033 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51034 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51035 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51036 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51037 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51038 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51039 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51040 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51041 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51042 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51043 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51044 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51045 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51046 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51047 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51048 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51049 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51050 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51052 * conf/common.rmk: ... to here. New file.
51054 * conf/common.mk: New file.
51056 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51058 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51059 (grub_script.tab.c): ... here.
51061 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51062 (grub_script.tab.c): ... here.
51064 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51065 (grub_script.tab.c): ... here.
51067 * normal/command.c (grub_command_find): Fixed a memory leak of
51068 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51070 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51072 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51073 "@" which marks the start of a comment on ARM.
51074 (VARIABLE): Likewise.
51076 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51078 Add support for Linux/ADFS partition tables.
51080 * partmap/acorn.c: New file.
51082 * include/grub/acorn_filecore.h: Likewise.
51084 * DISTLIST: Added `partmap/acorn.c' and
51085 `include/grub/acorn_filecore.h'.
51087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51089 (pkgdata_MODULES): Add `acorn.mod'.
51090 (acorn_mod_SOURCES): New variable.
51091 (acorn_mod_CFLAGS): Likewise.
51093 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51095 (pkgdata_MODULES): Add `acorn.mod'.
51096 (acorn_mod_SOURCES): New variable.
51097 (acorn_mod_CFLAGS): Likewise.
51099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51100 (pkgdata_MODULES): Add `acorn.mod'.
51101 (acorn_mod_SOURCES): New variable.
51102 (acorn_mod_CFLAGS): Likewise.
51103 (acorn_mod_LDFLAGS): Likewise.
51105 * include/types.h (grub_disk_addr_t): New typedef.
51107 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51109 * geninit.sh: New file.
51111 * geninitheader.sh: Likewise.
51113 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51114 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51115 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51116 * commands/configfile.c (grub_configfile_init)
51117 (grub_configfile_fini): Likewise.
51118 * commands/default.c (grub_default_init, grub_default_fini):
51120 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51121 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51122 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51123 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51125 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51126 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51128 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51129 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51131 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51133 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51135 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51136 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51137 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51138 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51139 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51140 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51141 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51142 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51143 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51144 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51145 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51146 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51147 * partmap/amiga.c (grub_amiga_partition_map_init)
51148 (grub_amiga_partition_map_fini): Likewise.
51149 * partmap/apple.c (grub_apple_partition_map_init)
51150 (grub_apple_partition_map_fini): Likewise.
51151 * partmap/pc.c (grub_pc_partition_map_init)
51152 (grub_pc_partition_map_fini): Likewise.
51153 * partmap/sun.c (grub_sun_partition_map_init,
51154 grub_sun_partition_map_fini): Likewise.
51155 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51158 * util/grub-emu.c: Include <grub_modules_init.h>.
51159 (main): Don't initialize and de-initialize any modules directly,
51160 use `grub_init_all' and `grub_fini_all' instead.
51162 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51163 `grub_vesafb_mod_init'.
51164 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51166 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51167 `grub_vga_mod_init'. Updated all users.
51168 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51170 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51171 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51174 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51175 Generate a function to initialize the module in utilities.
51176 Updated all callers.
51177 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51178 initialize the module in utilities. Updated all callers.
51180 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51182 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51183 escape sequence and a literal ^L to clear the screen.
51185 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51186 when returning from Open Firmware.
51188 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51190 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51191 (grub_ofconsole_height): Likewise.
51192 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51193 manually insert a '\n'.
51194 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51195 `grub_ofconsole_height'. Return early if these are already set.
51197 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51199 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51200 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51201 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51202 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51203 and `normal/script.c'.
51204 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51205 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51206 (test_mod_SOURCES): New variable.
51207 (test_mod_CFLAGS): Likewise.
51208 (test_mod_LDFLAGS): Likewise.
51209 (pkgdata_MODULES): Add `test.mod'.
51210 (grub_script.tab.c): New rule.
51211 (grub_script.tab.h): Likewise.
51213 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51216 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51217 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51218 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51219 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51220 (test_mod_SOURCES): New variable.
51221 (test_mod_CFLAGS): Likewise.
51222 (pkgdata_MODULES): Add `test.mod'.
51223 (grub_script.tab.c): New rule.
51224 (grub_script.tab.h): Likewise.
51226 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51228 Add initial scripting support.
51230 * commands/test.c: New file.
51231 * include/grub/script.h: Likewise.
51232 * normal/execute.c: Likewise.
51233 * normal/function.c: Likewise.
51234 * normal/lexer.c: Likewise.
51235 * normal/parser.y: Likewise.
51236 * normal/script.c: Likewise.
51238 * configure.ac: Add `AC_PROG_YACC' test.
51240 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51241 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51242 `normal/function.c' and `normal/script.c'.
51243 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51244 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51245 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51247 (pkgdata_MODULES): Add `test.mod'.
51248 (grub_script.tab.c): New rule.
51249 (grub_script.tab.h): Likewise.
51251 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51253 * include/grub/normal.h (grub_test_init): New prototype.
51254 (grub_test_fini): Likewise.
51256 * normal/command.c: Include <grub/script.h>.
51257 (grub_command_execute): Rewritten.
51259 * util/grub-emu.c (main): Call `grub_test_init' and
51262 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51264 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51266 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51267 there are no pending characters.
51269 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51271 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51272 `grub_strndup' to drop device arguments. Replace unnecessary
51273 `grub_strndup' with `grub_strdup'.
51275 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51277 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51278 `debug' environment variable has been set.
51280 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51282 * Makefile.in (install-local): Use $(DATA).
51283 (uninstall): Likewise.
51284 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51285 (sbin_UTILITIES): ... to here.
51286 (sbin_SCRIPTS): New variable.
51287 (grub_install_SOURCES): New variable.
51288 * util/powerpc/ieee1275/grub-install.in: New file.
51289 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51291 (add_segments): Call `grub_util_get_path'.
51293 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51295 From Timothy Baldwin:
51296 * commands/ls.c (grub_ls_list_files): Close FILE with
51298 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51300 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51302 * include/grub/parser.h: New file.
51304 * kern/parser.c: Likewise.
51306 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51307 (grub_setup_SOURCES): Likewise.
51308 (grub_probefs_SOURCES): Likewise.
51309 (grub_emu_SOURCES): Likewise.
51310 (kernel_img_HEADERS): Add `parser.h'.
51312 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51313 (grub_emu_SOURCES): Add `kern/parser.c'.
51314 (grubof_SOURCES): Likewise.
51316 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51317 (grubof_SOURCES): Add `kern/parser.c'.
51319 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51321 * kern/misc.c (grub_split_cmdline): Removed function.
51323 * kern/rescue.c: Include <grub/parser.h>.
51324 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51325 of `grub_split_cmdline'.
51327 * normal/command.c: Include <grub/parser.h>.
51328 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51329 of `grub_split_cmdline'.
51331 * normal/completion.c: Include <grub/parser.h>.
51332 (cmdline_state): New variable.
51333 (iterate_dir): End the filename with a quote depending on the
51334 command line state.
51335 (get_state): new function.
51336 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51337 split the arguments and determine the current argument. When the
51338 argument string is not quoted, escape all spaces.
51340 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51342 * normal/sparc64/setjmp.S: New file.
51344 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51346 * include/grub/sparc64/libgcc.h: New file.
51347 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51348 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51349 normal/sparc64/setjmp.c.
51351 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51353 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51354 * kern/sparc64/cache.S: New file.
51355 * kern/sparc64/cache.c: Removed.
51356 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51357 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51359 (COMMON_LDFLAGS): Add -melf64_sparc.
51360 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51361 (grubof_SOURCES): Use cache.S instead of cache.c.
51362 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51363 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51364 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51366 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51367 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51368 (linux_mod_CFLAGS): Commented out.
51369 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51370 out because module isn't built.
51371 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51372 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51373 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51374 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51375 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51376 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51377 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51378 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51379 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51380 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51381 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51382 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51383 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51384 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51386 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51388 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51389 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51390 longer, because HFS should not be used on PC.
51392 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51394 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51395 consistently within the loop.
51397 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51399 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51400 directory can not be read.
51402 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51404 * configure.ac (AC_INIT): Increase the version number to 1.91.
51406 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51407 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51408 term/i386/pc/serial.c.
51410 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51412 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51413 file size must be permitted.
51415 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51416 between %ah and %al.
51418 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51420 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51422 Call the hook with a NUL-terminated filename.
51423 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51426 * kern/term.c (cursor_state): New variable.
51427 (grub_term_set_current): Reset the cursor state on a new
51429 (grub_setcursor): Rewritten to use CURSOR_STATE.
51430 (grub_getcursor): New function.
51432 * include/grub/term.h (grub_getcursor): New prototype.
51434 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51435 integers on ARM. Reported by Timothy Baldwin
51436 <T.E.Baldwin99@members.leeds.ac.uk>.
51438 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51440 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51442 (grub_sfs_dir): Likewise.
51444 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51446 Add support for the SFS filesystem.
51448 * fs/sfs.c: New file.
51450 * DISTLIST: Added `fs/sfs.c'.
51452 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51453 (grub_probefs_SOURCES): Likewise.
51454 (grub_emu_SOURCES): Likewise.
51455 (pkgdata_MODULES): Add `sfs.mod'.
51456 (sfs_mod_SOURCES): New variable.
51457 (sfs_mod_CFLAGS): Likewise.
51458 (sfs_mod_LDFLAGS): Likewise.
51460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51461 (pkgdata_MODULES): Add `sfs.mod'.
51462 (sfs_mod_SOURCES): New variable.
51463 (sfs_mod_CFLAGS): Likewise.
51465 * util/grub-emu.c (main): Call `grub_sfs_init' and
51468 * include/grub/fs.h (grub_sfs_init): New prototype.
51469 (grub_sfs_fini): Likewise.
51471 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51473 Add support for the AFFS filesystem.
51475 * fs/affs.c: New file.
51477 * DISTLIST: Added `fs/affs.c'.
51479 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51480 (grub_probefs_SOURCES): Likewise.
51481 (grub_emu_SOURCES): Likewise.
51482 (pkgdata_MODULES): Add `affs.mod'.
51483 (affs_mod_SOURCES): New variable.
51484 (affs_mod_CFLAGS): Likewise.
51485 (affs_mod_LDFLAGS): Likewise.
51487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51488 (pkgdata_MODULES): Add `affs.mod'.
51489 (affs_mod_SOURCES): New variable.
51490 (affs_mod_CFLAGS): Likewise.
51492 * util/grub-emu.c (main): Call `grub_affs_init' and
51495 * include/grub/fs.h (grub_affs_init): New prototype.
51496 (grub_affs_fini): Likewise.
51498 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51500 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51502 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51504 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51507 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51510 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51511 (COMMON_LDFLAGS): New variable.
51512 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51513 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51514 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51515 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51516 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51517 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51518 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51519 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51520 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51521 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51522 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51523 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51524 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51525 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51526 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51528 (normal_mod_ASFLAGS): Add `-m32'.
51530 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51531 (grub_host_size_t, grub_host_ssize_t): New types.
51532 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51533 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51534 `GRUB_HOST_SIZEOF_VOID_P'.
51536 * include/grub/kernel.h (struct grub_module_header): Type of
51537 member offset changed to `grub_host_off_t'. Type of member size
51538 changed to `grub_host_size_t'.
51539 (struct grub_module_info): Type of member offset changed to
51540 `grub_host_off_t'. Type of member size changed to
51541 `grub_host_size_t'.
51543 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51545 Make GRUB's kernel compliant to Multiboot Specification.
51547 * kern/i386/pc/startup.S (multiboot_header): New label.
51548 (multiboot_entry): Likewise.
51549 (multiboot_trampoline): Likewise.
51551 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51552 Increased to 0x4A0.
51554 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51555 put parentheses after a question mark.
51556 [!GRUB_UTIL] (my_mod): New variable.
51558 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51560 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51562 Adds support for the XFS filesystem. Btrees are not supported
51565 * fs/xfs.c: New file.
51567 * DISTLIST: Added `fs/xfs.c'.
51569 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51570 (grub_probefs_SOURCES): Likewise.
51571 (grub_emu_SOURCES): Likewise.
51572 (pkgdata_MODULES): Add `xfs.mod'.
51573 (xfs_mod_SOURCES): New variable.
51574 (xfs_mod_CFLAGS): Likewise.
51576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51577 (pkgdata_MODULES): Add `xfs.mod'.
51578 (xfs_mod_SOURCES): New variable.
51579 (xfs_mod_CFLAGS): Likewise.
51581 * util/grub-emu.c (main): Call `grub_xfs_init' and
51584 * include/grub/fs.h (grub_xfs_init): New prototype.
51585 (grub_xfs_fini): Likewise.
51588 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51590 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51591 color modes, allow greater than 16 colors to be configured as
51594 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51596 * normal/completion.c (complete_arguments): Add the qualifier
51597 const into OPTIONS.
51599 From Omniflux <omniflux+lists@omniflux.com>:
51600 * include/grub/terminfo.h: New file.
51601 * include/grub/tparm.h: Likewise.
51602 * include/grub/i386/pc/serial.h: Likewise.
51603 * term/terminfo.c: Likewise.
51604 * term/tparm.c: Likewise.
51605 * term/i386/pc/serial.c: Likewise.
51606 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51608 (terminfo_mod_SOURCES): New variable.
51609 (terminfo_mod_CFLAGS): Likewise.
51610 (serial_mod_SOURCES): Likewise.
51611 (serial_mod_CFLAGS): Likewise.
51613 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51615 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51616 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51617 and kern/powerpc/ieee1275/cmain.c, respectively.
51619 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51620 * kern/powerpc/ieee1275/crt0.S: ... here.
51622 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51623 * kern/powerpc/ieee1275/cmain.c: ... here.
51625 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51626 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51627 instead of boot/powerpc/ieee1275/crt0.S and
51628 boot/powerpc/ieee1275/cmain.c, respectively.
51630 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51631 sectors. It was not used anyway.
51633 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51635 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51636 `unused parameter' warning.
51638 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51640 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51642 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51645 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51647 * include/grub/normal.h (enum grub_completion_type): Added
51648 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51650 * normal/cmdline.c (print_completion): Handle
51651 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51652 * normal/menu_entry.c (store_completion): Likewise.
51654 * normal/completion.c (complete_arguments): New function.
51655 (grub_normal_do_completion): Call `complete_arguments' when the
51656 current words start with a dash.
51658 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51660 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51661 `gzio.mod' instead of `io.mod').
51663 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51665 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51666 (DISTDIRS): Added io and video.
51667 Rewrite the search routine to make an output consistently.
51669 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51670 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51671 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51672 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51673 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51674 util/powerpc/ieee1275/misc.c.
51676 * include/grub/gzio.h: New file.
51677 * io/gzio.c: Likewise.
51679 * kern/file.c (grub_file_close): Call grub_device_close only if
51680 FILE->DEVICE is not NULL.
51682 * include/grub/mm.h [!NULL] (NULL): New macro.
51684 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51687 (pkgdata_MODULES): Added gzio.mod.
51688 (gzio_mod_SOURCES): New variable.
51689 (gzio_mod_CFLAGS): Likewise.
51691 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51692 (pkgdata_MODULES): Added gzio.mod.
51693 (gzio_mod_SOURCES): New variable.
51694 (gzio_mod_CFLAGS): Likewise.
51696 * commands/cat.c: Include grub/gzio.h.
51697 (grub_cmd_cat): Use grub_gzfile_open instead of
51700 * commands/cmp.c: Include grub/gzio.h.
51701 (grub_cmd_cmp): Use grub_gzfile_open instead of
51704 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51705 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51707 (grub_rescue_cmd_module): Likewise.
51709 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51711 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51712 kern/sparc64/ieee1275/init.c because it contains _start.
51713 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51715 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51717 * configure.ac: Add support for sparc64 host with ieee1275
51719 * configure: Generated from configure.ac.
51720 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51722 (grub_ofdisk_read): Likewise.
51723 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51724 pointers as (void *) to remove a warning.
51725 (grub_ofdisk_close): Likewise.
51726 (grub_ofdisk_read): Likewise.
51727 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51728 returns, so make it return void to remove a warning.
51729 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51730 Corresponding prototype change.
51731 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51732 values, and cast the pointers as (void *) to remove a warning.
51733 (grub_mm_dump): Likewise.
51734 * conf/sparc64-ieee1275.mk: New file.
51735 * conf/sparc64-ieee1275.rmk: Likewise.
51736 * include/grub/sparc64/setjmp.h: Likewise.
51737 * include/grub/sparc64/types.h: Likewise.
51738 * include/grub/sparc64/ieee1275/console.h: Likewise.
51739 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51740 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51741 * include/grub/sparc64/ieee1275/time.h: Likewise.
51742 * kern/sparc64/cache.c: Likewise.
51743 * kern/sparc64/dl.c: Likewise.
51744 * kern/sparc64/ieee1275/init.c: Likewise.
51745 * kern/sparc64/ieee1275/openfw.c: Likewise.
51747 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51749 * util/console.c (grub_ncurses_putchar): If C is greater than
51750 0x7f, set C to a question mark.
51751 (grub_ncurses_getcharwidth): New function.
51752 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51755 * normal/menu.c (print_entry): Made aware of Unicode. First,
51756 convert TITLE to UCS-4, and predict the cursor position by
51759 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51761 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51763 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51765 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51766 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51769 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51770 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51771 grub_strcpy and grub_strlen. Take it into account that a space
51772 character is inserted as a delimiter.
51774 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51776 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51777 invalid magic in the error.
51779 * commands/search.c: New file.
51781 * util/grub-emu.c (main): Call grub_search_init and
51784 * kern/rescue.c (grub_rescue_print_disks): Removed.
51785 (grub_rescue_print_devices): New function.
51786 (grub_rescue_cmd_ls): Use grub_device_iterate with
51787 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51788 grub_rescue_print_disks.
51790 * kern/partition.c (grub_partition_iterate): Return the result of
51791 PARTMAP->ITERATE instead of GRUB_ERRNO.
51793 * kern/device.c: Include grub/partition.h.
51794 (grub_device_iterate): New function.
51796 * include/grub/partition.h (grub_partition_iterate): Return int
51797 instead of grub_err_t.
51799 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51801 [GRUB_UTIL] (grub_search_fini): Likewise.
51803 * include/grub/device.h (grub_device_iterate): New prototype.
51805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51807 (pkgdata_MODULES): Added search.mod.
51808 (search_mod_SOURCES): New variable.
51809 (search_mod_CFLAGS): Likewise.
51811 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51812 (pkgdata_MODULES): Added search.mod.
51813 (search_mod_SOURCES): New variable.
51814 (search_mod_CFLAGS): Likewise.
51816 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51817 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51818 All callers changed.
51820 * DISTLIST: Added commands/search.c.
51822 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51824 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51826 (grub_getcharwidth): New function.
51828 * kern/misc.c (grub_utf8_to_ucs4): New function.
51830 * include/grub/term.h (struct grub_term): Added a new member
51832 (grub_getcharwidth): New prototype.
51834 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51836 * term/i386/pc/console.c (map_char): New function. Segregated from
51837 grub_console_putchar.
51838 (grub_console_putchar): Use map_char.
51839 (grub_console_getcharwidth): New function.
51840 (grub_console_term): Specified grub_console_getcharwidth as
51843 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51844 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51846 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51848 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51849 on grub_strtoul completely.
51850 (write_char): Declare local variables in the beginning of the
51852 (grub_vesafb_getcharwidth): New function.
51853 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51856 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51858 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51859 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51860 commands/i386/pc/vbetest.c.
51862 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51863 call grub_vbe_get_controller_info again, because the returned
51864 information is volatile.
51865 (grub_vbe_set_video_mode): Mostly rewritten.
51866 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51867 grub_vbe_status_t correctly.
51868 (grub_vbe_get_video_mode_info): Likewise.
51869 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51870 several if statements.
51872 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51873 * commands/i386/pc/vbeinfo.c: ... this.
51875 * commands/i386/pc/vbe_test.c: Renamed to ...
51876 * commands/i386/pc/vbetest.c: ... this.
51878 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51880 (grub_cmd_vbeinfo): ... this. Save video modes before
51881 iterating. Skip a video mode, if it is not available, not enough
51882 information is given or it is monochrome. Show the memory
51883 model. Leave the interpretation of MODEVAR to grub_strtoul
51885 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51886 (GRUB_MOD_FINI): Likewise.
51888 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51889 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51890 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51891 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51892 grub_strtoul completely.
51893 (real2pm): Removed.
51894 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51895 (GRUB_MOD_FINI): Likewise.
51897 * normal/misc.c: Include grub/mm.h.
51899 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51900 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51901 (vbe_list_modes_mod_SOURCES): Removed.
51902 (vbe_list_modes_mod_CFLAGS): Likewise.
51903 (vbe_test_mod_SOURCES): Likewise.
51904 (vbe_test_mod_CFLAGS): Likewise.
51905 (vbeinfo_mod_SOURCES): New variable.
51906 (vbeinfo_mod_CFLAGS): Likewise.
51907 (vbetest_mod_SOURCES): Likewise.
51908 (vbetest_mod_CFLAGS): Likewise.
51910 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51912 * normal/misc.c: New file.
51914 * DISTLIST: Added normal/misc.c.
51916 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51917 DISK to HOOK. Call HOOK with DISK.
51918 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51919 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51920 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51922 * normal/menu_entry.c (struct screen): Added a new member
51923 "completion_shown".
51924 (completion_buffer): New global variable.
51925 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51926 (store_completion): New function.
51927 (complete): Likewise.
51928 (clear_completions): Likewise.
51929 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51930 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51931 a tab, call complete.
51933 * normal/completion.c (disk_dev): Removed.
51934 (print_simple_completion): Likewise.
51935 (print_partition_completion): Likewise.
51936 (print_func): New global variable.
51937 (add_completion): Do not take the arguments WHAT or PRINT any
51938 longer. Added a new argument TYPE. Instead of printing directly,
51939 call PRINT_FUNC if not NULL.
51940 All callers changed.
51941 (complete_device): Use a local variable DEV instead of
51942 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51943 (grub_normal_do_completion): Take a new argument HOOK. Do not
51944 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51945 empty string, return NULL instead.
51946 All callers changed.
51948 * normal/cmdline.c (print_completion): New function.
51950 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51952 All callers changed.
51954 * kern/disk.c (grub_print_partinfo): Removed.
51956 * include/grub/partition.h (struct grub_partition_map): Add a new
51957 argument DISK into HOOK of ITERATE.
51958 (grub_partition_iterate): Add a new argument DISK to HOOK.
51960 * include/grub/normal.h (enum grub_completion_type): New enum.
51961 (grub_completion_type_t): New type.
51962 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51963 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51964 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51965 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51966 (grub_normal_do_completion): Added a new argument HOOK.
51967 (grub_normal_print_device_info): New prototype.
51969 * include/grub/disk.h (grub_print_partinfo): Removed.
51971 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51972 (normal_mod_SOURCES): Likewise.
51973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51974 (normal_mod_SOURCES): Likewise.
51976 * commands/ls.c (grub_ls_list_disks): Use
51977 grub_normal_print_device_info instead of grub_print_partinfo. Free
51979 (grub_ls_list_files): Use grub_normal_print_device_info instead of
51980 duplicating the code.
51982 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51984 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
51985 follow GCS more precisely.
51986 * commands/i386/pc/vbe_test.c: Likewise.
51987 * include/grub/i386/pc/vbe.h: Likewise.
51988 * term/i386/pc/vesafb.c: Likewise.
51989 * video/i386/pc/vbe.c: Likewise.
51991 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51993 * DISTLIST: Added term/i386/pc/vesafb.c
51994 DISTLIST: Added video/i386/pc/vbe.c
51995 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
51996 DISTLIST: Added commands/i386/pc/vbe_test.c.
51997 * commands/i386/pc/vbe_list_modes.c: New file.
51998 * commands/i386/pc/vbe_test.c: Likewise.
51999 * term/i386/pc/vesafb.c: Likewise.
52000 * video/i386/pc/vbe.c: Likewise.
52001 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52002 (grub_vbe_probe) Added prototype.
52003 (grub_vbe_set_video_mode) Likewise.
52004 (grub_vbe_get_video_mode) Likewise.
52005 (grub_vbe_get_video_mode_info) Likewise.
52006 (grub_vbe_set_pixel_rgb) Likewise.
52007 (grub_vbe_set_pixel_index) Likewise.
52008 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52009 (pkgdata_MODULES): Added vesafb.mod.
52010 (pkgdata_MODULES): Added vbe_list_modes.mod.
52011 (pkgdata_MODULES): Added vbe_test.mod.
52012 (vbe_mod_SOURCES): Added.
52013 (vbe_mod_CFLAGS): Likewise.
52014 (vesafb_mod_SOURCES): Likewise.
52015 (vesafb_mod_CFLAGS): Likewise.
52016 (vbe_list_modes_mod_SOURCES): Likewise.
52017 (vbe_list_modes_mod_CFLAGS): Likewise.
52018 (vbe_test_mod_SOURCES): Likewise.
52019 (vbe_test_mod_CFLAGS): Likewise.
52021 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52023 * normal/command.c (grub_command_execute): If INTERACTIVE is
52024 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52025 CMDLINE. Disable the pager if INTERACTIVE is true.
52026 All callers are changed.
52028 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52029 before reading a config file.
52030 * normal/main.c (read_config_file): Even if a command is not
52031 found, register it if it is within an entry.
52033 * util/grub-emu.c: Include sys/types.h and unistd.h.
52034 (options): Added --hold.
52035 (struct arguments): Added a new member "hold".
52036 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52038 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52039 cleared by a debugger, if it is not zero.
52041 * include/grub/normal.h (grub_command_execute): Add an argument
52044 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52046 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52048 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52050 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52051 program with another one, because the old one didn't detect a bug
52052 in gcc-3.4. Always use regparm 2, because the new test is still
52053 not enough for gcc-4.0. Someone must investigate a simple test
52054 case which detects a bug in gcc-4.0.
52056 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52058 * DISTLIST: Added normal/completion.c.
52060 * normal/completion.c: New file.
52062 * term/i386/pc/console.c (grub_console_getwh): New function.
52063 (grub_console_term): Assign grub_console_getwh to getwh.
52065 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52066 function is defined in normal/completion.c as
52067 grub_normal_do_completion.
52068 (grub_cmdline_get): Use grub_normal_do_completion instead of
52071 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52072 returns non-zero, otherwise return 0.
52073 (grub_partition_iterate): First, probe the partition map. Then,
52074 call ITERATE only for this partition map.
52076 * kern/misc.c (grub_strncmp): Rewritten.
52078 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52079 returns non-zero. Otherwise return 0.
52081 * include/grub/partition.h (grub_partition_map_iterate): Return
52082 int instead of void.
52084 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52086 * include/grub/misc.h (grub_strncmp): Change the type of N to
52089 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52092 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52093 unsigned explicitly before comparing it with I.
52095 * kern/main.c (grub_env_write_root): Add the attribute unused into
52098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52099 normal/completion.c.
52100 (normal_mod_SOURCES): Likewise.
52101 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52102 (normal_mod_SOURCES): Likewise.
52104 * normal/command.c (grub_iterate_commands): If ITERATE returns
52105 non-zero, return one immediately.
52107 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52109 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52110 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52112 (grub_vbe_get_controller_info): New function.
52113 (grub_vbe_get_mode_info): Likewise.
52114 (grub_vbe_set_mode): Likewise.
52115 (grub_vbe_get_mode): Likewise.
52116 (grub_vbe_set_memory_window): Likewise.
52117 (grub_vbe_get_memory_window): Likewise.
52118 (grub_vbe_set_scanline_length): Likewise.
52119 (grub_vbe_get_scanline_length): Likewise.
52120 (grub_vbe_set_display_start): Likewise.
52121 (grub_vbe_get_display_start): Likewise.
52122 (grub_vbe_set_palette_data): Likewise.
52123 * include/grub/i386/pc/vbe.h: New file.
52125 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52127 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52128 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52129 * DISTLIST: Likewise.
52130 * kern/ieee1275/of.c: Moved to ...
52131 * kern/ieee1275/ieee1275.c: ... here.
52133 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52135 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52136 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52137 Pass 0 as `end' parameter to grub_strtoul().
52139 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52141 * include/grub/powerpc/ieee1275/console.h: Do not include
52142 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52144 (grub_console_cur_color): Remove i386-specific prototype.
52145 (grub_console_real_putchar): Likewise.
52146 (grub_console_checkkey): Likewise.
52147 (grub_console_getkey): Likewise.
52148 (grub_console_getxy): Likewise.
52149 (grub_console_gotoxy): Likewise.
52150 (grub_console_cls): Likewise.
52151 (grub_console_setcursor): Likewise.
52152 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52153 Include <grub/machine/console.h>.
52154 * term/ieee1275/ofconsole.c: Likewise.
52156 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52158 * Makefile.in (LIBLZO): New variable.
52160 * configure.ac: Check for LZO version 2.
52162 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52163 lzo/lzo1x.h instead of lzo1x.h.
52165 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52168 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52169 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52171 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52172 copying the data from PARTITION to P.
52174 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52176 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52177 negative, unload the module.
52179 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52180 map is "pc_partition_map" but not "pc".
52181 (usage): Fix the description. The options are --boot-image and
52182 --core-image but not --boot-file or --core-file.
52183 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52184 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52187 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52188 --core-file. Specify INSTALL_DEVICE as an argument.
52190 * util/console.c: Include config.h.
52191 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52192 [HAVE_NCURSES_H]: Include ncurses.h.
52193 [HAVE_CURSES_H]: Include curses.h.
52194 [!A_NORMAL] (A_NORMAL): Defined as zero.
52195 [!A_STANDOUT] (A_STANDOUT): Likewise.
52197 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52199 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52201 * configure.ac: Check for curses libraries and headers.
52203 * Makefile.in (LIBCURSES): New variable.
52205 * genmk.rb (Script::rule): Set the executable bits.
52207 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52208 name of the PC partition map is "pc_partition_map" but not "pc".
52210 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52212 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52213 (modules): Likewise.
52214 (usage): Added descriptions for --modules and --grub-probefs.
52215 Handle --modules and --grub-probefs. Save the arguments in MODULES
52216 and GRUB_PROBEFS, respectively.
52217 Auto-detect a filesystem module against GRUBDIR. If the result is
52218 empty and modules are not specified explicitly, abort the
52219 installation. Add the result to MODULES.
52221 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52222 disk/powerpc/ieee1275/ofdisk.c,
52223 include/grub/powerpc/ieee1275/init.h and
52224 term/powerpc/ieee1275/ofconsole.c.
52225 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52226 term/ieee1275/ofconsole.c.
52228 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52230 * COPYING: Upgraded to the latest version. Only the address of the
52231 FSF office has changed.
52233 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52235 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52236 kern/ieee1275.c with kern/ieee1275/of.c.
52238 * kern/ieee1275.c: Moved to ...
52239 * kern/ieee1275/of.c: ... here.
52241 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52243 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52246 * config.guess: Updated to the latest version from gnulib.
52247 * config.sub: Likewise.
52248 * install.sh: Likewise.
52249 * mkinstalldirs: Likewise.
52251 * include/grub/console.h: Removed. This file is arch-specific. Do
52252 not put this in include/grub.
52254 * include/grub/i386/pc/console.h: Resurrected.
52256 * util/console.c: Include grub/machine/console.h instead of
52258 * util/grub-emu.c: Likewise.
52260 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52262 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52265 From Vincent Pelletier <subdino2004@yahoo.fr>
52266 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52267 Redefined to use grub_getwh.
52268 (grub_term): New member named getwh.
52269 (grub_getwh): New prototype.
52270 * kern/term.c (grub_getwh): New function.
52271 * term/i386/pc/console.c (grub_console_getwh): New function.
52272 (grub_console_term): New member `getwh'.
52273 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52274 (grub_vga_term): New member `getwh'.
52275 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52277 (grub_ofconsole_getw): New function.
52278 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52279 (grub_ofconsole_term): New field named getwh and new initial
52282 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52284 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52285 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52286 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52287 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52288 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52289 of <grub/machine/ieee1275.h>.
52290 * commands/ieee1275/reboot.c: Likewise.
52291 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52292 * kern/ieee1275.c: ... to here. All users updated. Change all
52293 parameter structs to use new type `grub_ieee1275_cell_t'.
52294 * term/powerpc/ieee1275/ofconsole.c: Move ...
52295 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52296 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52297 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52298 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52300 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52301 Remove unused prototypes. All users updated.
52302 * include/grub/powerpc/ieee1275/console.h: Removed.
52303 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52304 `grub_ieee1275_cell_t'.
52305 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52306 Cast comparisons with -1 to the correct type.
52307 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52308 type to match `grub_ieee1275_entry_fn'.
52310 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52312 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52314 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52315 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52317 (grub_probefs_SOURCES): New variable.
52319 * util/i386/pc/grub-probefs.c: New file.
52321 * util/i386/pc/grub-setup.c (main): Call
52322 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52323 grub_hfs_init and grub_jfs_init to initialize the system. Call
52324 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52325 grub_pc_partition_map_fini to finish the system.
52327 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52329 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52331 (grub_multiboot_load_elf32): Likewise.
52332 (grub_multiboot_is_elf64): Likewise.
52333 (grub_multiboot_load_elf64): Likewise.
52334 (grub_multiboot_load_elf): Likewise.
52335 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52336 an ELF32 or ELF64 file.
52337 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52339 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52340 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52341 NULL before calling FS->LABEL.
52342 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52343 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52344 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52345 before calling FS->LABEL.
52347 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52349 * util/i386/pc/grub-install.in (datadir): New variable.
52351 (pkgdatadir): New variable.
52352 (pkglibdir): Removed.
52354 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52356 * DISTLIST: Added util/i386/pc/grub-install.in.
52358 * util/i386/pc/grub-install.in: New file.
52360 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52361 (grub_install_SOURCES): Likewise.
52363 * genmk.rb: Added support for scripts.
52364 (Script): New class.
52365 (scripts): New variable.
52367 * Makefile.in (install-local): Install sbin_SCRIPTS by
52369 (uninstall): Remove sbin_SCRIPTS.
52371 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52372 device, try to get a GRUB device by
52373 grub_util_biosdisk_get_grub_dev.
52376 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52377 description for --device-map.
52379 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52381 Change the semantics of variable hooks. They now return strings
52382 instead of error values.
52384 * util/i386/pc/grub-setup.c: Include grub/env.h.
52385 (setup): Use grub_device_set_root instead of grub_env_set.
52387 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52388 grub_env_get instead of grub_device_set_root and
52389 grub_device_get_root, respectively.
52391 * kern/main.c (grub_env_write_root): New function.
52392 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52393 grub_env_set instead of grub_device_set_root.
52395 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52397 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52398 rather than calling ENV->WRITE_HOOK afterwards.
52399 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52400 passing a pointer of a pointer.
52401 (grub_register_variable_hook): Change the types of "read_hook" and
52402 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52404 Allocate the default empty string on the heap, because this string
52405 may be freed later.
52407 * kern/device.c: Include grub/env.h.
52408 (grub_device_set_root): Removed.
52409 (grub_device_get_root): Likewise.
52410 (grub_device_open): Use grub_env_get instead of
52411 grub_device_get_root.
52413 * include/grub/env.h (grub_env_read_hook_t): New type.
52414 (grub_env_write_hook_t): Likewise.
52415 (grub_env_var): Change the types of "read_hook" and "write_hook"
52416 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52417 (grub_register_variable_hook): Likewise.
52419 * include/grub/device.h (grub_device_set_root): Removed.
52420 (grub_device_set_root): Likewise.
52422 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52423 make sure that DIRNAME terminates with '/', so that
52424 grub_fat_find_dir will fail if PATH is not a directory.
52426 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52428 Use the qualifier auto for print_files and print_files_long.
52429 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52431 Put a newline only if there is no error.
52432 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52435 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52437 * kern/partition.c (grub_partition_probe): Initialize PART to
52438 NULL. Otherwise, when no partition map is registered, this returns
52441 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52443 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52444 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52447 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52449 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52450 information on each device, if it does not have partitions. Print
52451 "Device" instead of "Disk", because this function is not specific
52454 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52455 static to ensure that it is put on the memory rather than a
52458 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52460 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52461 (grub_cat_init): Likewise.
52462 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52463 (options): Likewise.
52464 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52465 (grub_configfile_init): Likewise.
52466 * font/manager.c (GRUB_MOD_INIT): Likewise.
52467 * commands/help.c (GRUB_MOD_INIT): Likewise.
52468 (grub_help_init): Likewise.
52469 * normal/command.c (grub_command_init): Likewise.
52470 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52471 * disk/loopback.c (grub_loop_init): Likewise.
52472 (GRUB_MOD_INIT): Likewise.
52473 * commands/ls.c (grub_ls_init): Likewise.
52474 (GRUB_MOD_INIT): Likewise.
52475 (options): Likewise.
52476 * commands/boot.c (grub_boot_init): Likewise.
52477 (GRUB_MOD_INIT): Likewise.
52478 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52479 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52480 (GRUB_MOD_INIT): Likewise.
52481 * commands/cmp.c (grub_cmp_init): Likewise.
52482 (GRUB_MOD_INIT): Likewise.
52484 * normal/arg.c: Use <> instead of "" to include header files.
52485 (SHORT_ARG_HELP): New macro.
52486 (SHORT_ARG_USAGE): Likewise.
52487 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52488 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52490 (find_short): Check if C is 'h' or 'u' explicitly.
52491 (grub_arg_show_help): Use space characters instead of tabs. Treat
52492 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52493 are shown with --help and --usage only if they are not used for
52494 the command itself.
52495 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52498 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52499 const into "longarg". Change the type of "shortarg" to int.
52501 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52503 * boot/i386/pc/boot.S (boot_drive_check): New label.
52505 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52508 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52509 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52511 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52513 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52514 When turning off Gate A20, skip the check and return immediately,
52515 because this is not fatal usually.
52517 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52519 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52520 be 0x7C00 instead of 0x8000.
52522 * boot/i386/pc/pxeboot.S: Rewritten.
52524 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52526 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52529 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52531 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52532 robustness. This routine now supports a BIOS call and System
52533 Control Port A to modify the gate A20.
52535 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52536 Increased to 0x440.
52538 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52540 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52541 device path and resulting ihandle.
52542 (grub_ofdisk_close): dprintf the ihandle being closed.
52543 (grub_ofdisk_read): dprintf function parameters.
52544 * kern/mm.c (grub_mm_init_region): Likewise.
52545 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52546 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52547 size, and boot arguments.
52548 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52549 before loading into memory.
52550 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52551 before loading into memory.
52553 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52555 * kern/mm.c: Added much documentation.
52556 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52557 8, set to 5 instead of 8.
52559 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52561 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52563 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52564 (grub_mkdevicemap_SOURCES): New variable.
52566 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52567 lib/device.c of GRUB Legacy.
52569 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52571 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52572 instead of PATH is NULL.
52574 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52576 * commands/cmp.c (BUFFER_SIZE): New macro.
52577 (grub_cmd_cmp): Close the right file at the right time. Compare
52578 only data just read. Don't report files of different size as
52579 identical. Dynamically allocate buffers. Move variable
52580 declarations at the beginning of function.
52582 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52584 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52587 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52589 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52590 when backspace is pressed at beginning of line.
52592 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52594 * DISTLIST: Added genfslist.sh.
52596 * normal/main.c (fs_module_list): New variable.
52597 (autoload_fs_module): New function.
52598 (read_fs_list): Likewise.
52599 (grub_normal_execute): Call read_fs_list.
52601 * kern/fs.c (grub_fs_autoload_hook): New variable.
52602 (grub_fs_probe): Added support for auto-loading.
52604 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52605 (grub_fs_module_list_t): New type.
52607 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52608 (grub_fs_autoload_hook): New prototype.
52610 * genfslist.sh: New file.
52612 * genmk.rb: Added a rule to generate a filesystem list.
52614 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52616 * configure.ac: Fix the test for cross-compiling.
52618 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52619 define GRUB_UTIL anymore.
52621 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52622 so this function works on other systems than just big endian.
52623 (load_modules): Likewise.
52624 (add_segments): Likewise.
52626 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52628 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52629 contains `l' modifier, get a long from va_arg().
52631 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52633 * kern/mm.c (grub_free): If the next free block which is being
52634 merged is the first free block, set the first block to the block
52636 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52638 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52640 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52641 `grub_ieee1275_chosen'.
52643 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52645 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52646 (grub_ieee1275_chosen): New variable.
52647 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52649 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52650 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52651 Rename first argument to `phandle' for consistency.
52652 (grub_ieee1275_get_property_length): Likewise.
52653 (grub_ieee1275_next_property): Likewise. Change type of first argument
52654 to grub_ieee1275_phandle_t.
52655 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52656 Move export next to declaration.
52657 (grub_ieee1275_chosen): New variable.
52658 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52659 Correct cosmetic typo.
52660 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52661 `grub_ieee1275_chosen'.
52662 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52663 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52664 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52665 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52666 `grub_ieee1275_chosen'.
52668 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52670 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52672 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52673 /chosen/bootargs as "variable=value" pairs.
52675 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52677 * include/grub/misc.h (grub_dprintf): New macro.
52678 (grub_real_dprintf): New prototype.
52679 (grub_strword): Likewise.
52680 (grub_iswordseparator): Likewise.
52681 * kern/misc.c (grub_real_dprintf): New function.
52682 (grub_strword): Likewise.
52683 (grub_iswordseparator): Likewise.
52685 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52687 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52688 (roundup): Remove macro.
52689 (grub_ieee1275_flags): Make static.
52690 (grub_ieee1275_realmode): Remove.
52691 (grub_ieee1275_test_flag): New function.
52692 (grub_ieee1275_set_flag): Likewise.
52693 (find_options): Rename to `grub_ieee1275_find_options'; update
52694 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52695 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52696 (cmain): New prototype.
52697 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52698 `grub_ieee1275_flags' directly.
52699 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52700 machine/biosdisk.h.
52701 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52702 Don't include grub/machine/init.h.
52703 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52704 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52706 (grub_ieee1275_realmode): Likewise.
52707 (grub_ieee1275_flag): New enum.
52708 (grub_ieee1275_test_flag): New prototype.
52709 (grub_ieee1275_set_flag): New prototype.
52710 * include/grub/powerpc/ieee1275/init.h: Remove file.
52711 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52712 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52713 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52714 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52716 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52717 `grub_ieee1275_test_flag'.
52718 (grub_ieee1275_encode_devname): Likewise.
52720 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52722 * include/grub/powerpc/ieee1275/ieee1275.h
52723 (grub_ieee1275_encode_devname): New prototype.
52724 (grub_ieee1275_get_filename): Likewise.
52725 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52727 (grub_set_prefix): Likewise.
52728 (grub_machine_init): Call grub_set_prefix.
52729 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52730 (grub_parse_type): New enum.
52731 (grub_ieee1275_get_devargs): New function.
52732 (grub_ieee1275_get_devname): Likewise.
52733 (grub_ieee1275_parse_args): Likewise.
52734 (grub_ieee1275_get_filename): Likewise.
52735 (grub_ieee1275_encode_devname): Likewise.
52737 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52739 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52740 `grub_loader_unset'.
52742 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52744 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52745 instead of grub_ieee1275_interpret.
52746 (grub_halt_init): New function.
52747 (grub_halt_fini): Likewise.
52748 (GRUB_MOD_INIT): Correct message grammar.
52749 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52750 instead of grub_ieee1275_interpret.
52751 (grub_reboot_init): New function.
52752 (grub_reboot_fini): Likewise.
52753 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52754 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52755 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52756 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52757 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52759 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52761 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52763 (grub_halt): Likewise.
52764 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52765 (cmain): Remove __attribute__((unused)).
52766 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52767 (grub_heap_len): Likewise.
52768 (grub_machine_fini): New function.
52769 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52770 (grub_halt): Likewise.
52771 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52773 * util/powerpc/ieee1275/misc.c: New file.
52775 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52777 * DISTLIST: New file.
52778 * gendistlist.sh: Likewise.
52780 * Makefile.in (COMMON_DISTFILES): Removed.
52781 (BOOT_DISTFILES): Likewise.
52782 (CONF_DISTFILES): Likewise.
52783 (DISK_DISTFILES): Likewise.
52784 (FS_DISTFILES): Likewise.
52785 (INCLUDE_DISTFILES): Likewise.
52786 (KERN_DISTFILES): Likewise.
52787 (LOADER_DISTFILES): Likewise.
52788 (TERM_DISTFILES): Likewise.
52789 (UTIL_DISTFILES): Likewise.
52790 (DISTFILES): Likewise.
52791 (uninstall): Uninstall files in $(pkgdata_DATA).
52792 (DISTLIST): New target.
52793 (distdir): Use the contents of the file DISTLIST to get a list of
52796 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52798 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52799 descriptor. This is ported from GRUB Legacy.
52801 * gencmdlist.sh: Added an extra semicolon to make it work with
52802 old sed versions. Reported by Robert Bihlmeyer
52803 <robbe@orcus.priv.at>.
52805 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52807 Automatic loading of commands is supported.
52809 * normal/main.c (read_command_list): New function.
52810 (grub_normal_execute): Call read_command_list.
52812 * normal/command.c (grub_register_command): Return zero or CMD.
52813 Allocate CMD->NAME from the heap.
52814 Initialize CMD->MODULE_NAME to zero.
52815 Find the same name as well. If the same command is found and it is
52816 a dummy command, overwrite members. If it is not a dummy command,
52818 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52819 (grub_command_find): If a dummy command is found, load a module
52820 and retry to find a command only once.
52822 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52823 make sure that each command is loaded.
52825 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52827 (struct grub_command): Remove const from the member `name'.
52828 Add a new member `module_name'.
52829 (grub_register_command): Return grub_command_t.
52831 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52832 sure that each command is loaded.
52834 * genmk.rb (PModule::rule): Specify a module name without the
52835 suffix ".mod" to gencmdlist.sh.
52837 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52839 * gencmdlist.sh: New file.
52841 * genmk.rb (PModule::rule): Generate a rule for a command list.
52843 Generate command.lst from $(COMMANDFILES).
52845 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52846 (DATA): Added $(pkgdata_DATA).
52847 (install-local): Install files in $(pkgdata_DATA).
52849 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52851 * term/i386/pc/vga.c (debug_command): Removed.
52852 (GRUB_MOD_INIT): Do not register the command "debug".
52854 From Hollis Blanchard:
52855 * commands/configfile.c: New file.
52856 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52857 commands/configfile.c.
52858 (pkgdata_MODULES): Added configfile.mod.
52859 (configfile_mod_SOURCES): New variable.
52860 (configfile_mod_CFLAGS): Likewise.
52861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52862 commands/configfile.c.
52863 (pkgdata_MODULES): Added configfile.mod.
52864 (configfile_mod_SOURCES): New variable.
52865 (configfile_mod_CFLAGS): Likewise.
52866 * util/grub-emu.c (main): Call grub_configfile_init and
52867 grub_configfile_fini.
52868 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52870 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52872 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52874 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52877 * commands/help.c (grub_cmd_help): Do not print newlines after
52878 the last command in print_command_help.
52880 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52882 * commands/default.h: New file.
52883 * commands/timeout.h: Likewise.
52884 * normal/context.c: Likewise.
52886 * util/misc.c: Do not include sys/times.h.
52887 Include sys/time.h and grub/machine/time.h.
52888 (grub_get_rtc): Rewritten with gettimeofday.
52890 * util/grub-emu.c (main): Call grub_default_init and
52891 grub_timeout_init before grub_normal_init, and call
52892 grub_timeout_fini and grub_default_fini after grub_main.
52894 * util/console.c (grub_ncurses_checkkey): Return the read
52897 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52900 * normal/main.c (read_config_file): Push MENU. If this fails,
52901 print an error and wait for a user input.
52902 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52903 If a menu is empty or an error occurs, pop MENU.
52904 (grub_normal_execute): Pop and free MENU after grub_menu_run
52907 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52909 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52911 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52913 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52915 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52918 * include/grub/normal.h (struct grub_menu_list): New struct.
52919 (grub_menu_list_t): New type.
52920 (struct grub_context): New struct.
52921 (grub_context_t): New type.
52922 (grub_register_command): Got rid of EXPORT_FUNC.
52923 (grub_unregister_command): Likewise.
52924 (grub_context_get): New prototype.
52925 (grub_context_get_current_menu): Likewise.
52926 (grub_context_push_menu): Likewise.
52927 (grub_context_pop_menu): Likewise.
52928 [GRUB_UTIL] (grub_default_init): Likewise.
52929 [GRUB_UTIL] (grub_default_fini): Likewise.
52930 [GRUB_UTIL] (grub_timeout_init): Likewise.
52931 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52933 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52934 commands/timeout.c and normal/context.c.
52935 (pkgdata_MODULES): Added default.mod and timeout.mod.
52936 (normal_mod_SOURCES): Added normal/context.c.
52937 (default_mod_SOURCES): New variable.
52938 (default_mod_CFLAGS): Likewise.
52939 (timeout_mod_SOURCES): Likewise.
52940 (timeout_mod_CFLAGS): Likewise.
52941 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52943 (pkgdata_MODULES): Added default.mod and timeout.mod.
52944 (normal_mod_SOURCES): Added normal/context.c.
52945 (default_mod_SOURCES): New variable.
52946 (default_mod_CFLAGS): Likewise.
52947 (timeout_mod_SOURCES): Likewise.
52948 (timeout_mod_CFLAGS): Likewise.
52950 * Makefile.in (all-local): Added $(MKFILES).
52952 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52954 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52955 (grub_emu_SOURCES): Likewise.
52956 (pkgdata_MODULES): Add `sun.mod'.
52957 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52960 (pkgdata_MODULES): Add `sun.mod'.
52961 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52962 * include/grub/partition.h (grub_sun_partition_map_init): New
52964 (grub_sun_partition_map_fini): Likewise.
52965 * partmap/sun.c: New file.
52966 * util/grub-emu.c (main): Initialize and de-initialize the sun
52967 partitionmap support.
52969 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52971 This implements an Emacs-like menu entry editor.
52973 * normal/menu_entry.c: New file.
52975 * util/console.c (grub_ncurses_putchar): Translate some Unicode
52976 characters to ASCII.
52977 (saved_char): New variable.
52978 (grub_ncurses_checkkey): Rewritten completely.
52979 (grub_ncurses_getkey): Likewise.
52980 (grub_ncurses_init): Call raw instead of cbreak.
52982 * normal/menu.c (print_entry): Do not put a space.
52983 (init_page): Renamed to ...
52984 (grub_menu_init_page): ... this. All callers changed.
52985 (edit_menu_entry): Removed.
52986 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
52988 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
52990 * kern/misc.c (grub_vprintf): Call grub_refresh.
52992 * normal/menu.c (DISP_LEFT): Renamed to ...
52993 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
52994 * normal/menu.c (DISP_UP): Renamed to ...
52995 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
52996 * normal/menu.c (DISP_RIGHT): Renamed to ...
52997 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
52998 * normal/menu.c (DISP_DOWN): Renamed to ...
52999 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53000 * normal/menu.c (DISP_HLINE): Renamed to ...
53001 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53002 * normal/menu.c (DISP_VLINE): Renamed to ...
53003 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53004 * normal/menu.c (DISP_UL): Renamed to ...
53005 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53006 * normal/menu.c (DISP_UR): Renamed to ...
53007 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53008 * normal/menu.c (DISP_LL): Renamed to ...
53009 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53010 * normal/menu.c (DISP_LR): Renamed to ...
53011 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53012 * normal/menu.c (TERM_WIDTH): Renamed to ...
53013 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53014 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53015 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53016 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53017 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53018 * normal/menu.c (TERM_MARGIN): Renamed to ...
53019 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53020 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53021 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53022 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53023 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53024 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53025 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53026 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53027 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53028 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53029 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53030 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53031 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53032 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53033 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53034 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53035 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53036 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53037 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53038 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53039 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53040 All callers changed.
53042 * include/grub/normal.h: New prototype.
53044 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53045 normal/menu_entry.c.
53046 (normal_mod_SOURCES): Likewise.
53047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53048 (normal_mod_SOURCES): Likewise.
53050 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53052 * include/grub/normal.h (grub_halt_init): New prototype.
53053 (grub_halt_fini): Likewise.
53054 (grub_reboot_init): Likewise.
53055 (grub_reboot_fini): Likewise.
53057 * util/grub-emu.c: Include signal.h.
53058 (main_env): New global variable.
53059 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53061 (grub_machine_fini): New function.
53062 (main): Call grub_halt_init and grub_reboot_init before
53063 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53064 Call setjmp with MAIN_ENV to go back afterwards.
53065 Call grub_machine_fini right before return.
53067 * include/grub/util/misc.h: Include setjmp.h.
53068 (main_env): New prototype.
53070 * include/grub/kernel.h (grub_machine_fini): New prototype.
53071 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53072 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53074 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53075 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53076 * term/i386/pc/console.c (grub_console_fini): Likewise.
53078 * util/i386/pc/misc.c: New file.
53080 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53081 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53082 commands/i386/pc/reboot.c.
53084 2005-02-14 Guillem Jover <guillem@hadrons.org>
53086 * include/grub/dl.h (grub_dl_check_header): New prototype.
53087 (grub_arch_dl_check_header): Change return type to grub_err_t,
53088 remove size parameter and export function. Update all callers.
53089 * kern/dl.c (grub_dl_check_header): New function.
53090 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53091 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53092 are inside the core.
53093 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53094 independent ELF header checks.
53095 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53096 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53097 `grub_dl_check_header' instead of explicit checks. Check for the
53099 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53100 `grub_dl_check_header' instead of explicit checks. Remove arch
53101 specific ELF header checks.
53103 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53106 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53108 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53109 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53111 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53113 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53114 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53115 (part_map_iterate): Clear `grub_errno' and return 0 if
53116 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53117 * partmap/amiga.c (amiga_partition_map_iterate): Return
53118 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53119 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53121 2005-02-01 Guillem Jover <guillem@hadrons.org>
53123 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53126 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53128 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53130 (grub_rescue_cmd_linux): New prototype.
53131 (grub_rescue_cmd_initrd): Likewise.
53132 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53134 (grub_linux_release_mem): Release the memory for the initrd.
53135 (grub_load_linux): Renamed from this...
53136 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53137 Changed `entry' not to be static. Loop over memory regions to
53138 find another one when the default fails.
53139 (grub_rescue_cmd_initrd): New function.
53140 (grub_linux_init): Remove function.
53141 (grub_linux_fini): Likewise.
53142 (GRUB_MOD_INIT): Register `initrd'.
53143 (GRUB_MOD_FINI): Unregister `initrd'.
53144 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53146 (grub_linux_normal_fini): Likewise.
53147 (GRUB_MOD_INIT): Register `initrd'.
53148 (GRUB_MOD_FINI): Unregister `initrd'.
53150 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53152 * commands/help.c: New file.
53153 * normal/arg.c (show_help): Renamed to...
53154 (grub_arg_show_help): ... this.
53155 * commands/i386/pc/halt.c: New file.
53156 * commands/i386/pc/reboot.c: Likewise.
53157 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53158 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53159 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53160 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53164 (pkgdata_MODULES): Add `help.mod'.
53165 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53166 * grub/i386/pc/init.h (grub_reboot): New prototype.
53167 (grub_halt): Likewise.
53168 * include/grub/normal.h (grub_arg_show_help): New prototype.
53169 (grub_help_init): Likewise.
53170 (grub_help_fini): Likewise.
53171 * util/grub-emu.c (main): Initialize and deinitialize the help
53174 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53176 * normal/command.c (grub_command_init): Fixed the description of
53177 the `set' and `unset' commands.
53179 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53181 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53183 * commands/ieee1275/halt.c: New file.
53184 * commands/ieee1275/reboot.c: Likewise.
53185 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53186 `__attribute__ ((unused))'. Some GCS related fixed.
53187 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53188 (grub_suspend_fini): Likewise.
53189 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53191 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53192 (halt_mod_CFLAGS): New variables.
53193 * include/grub/powerpc/ieee1275/ieee1275.h
53194 (grub_ieee1275_interpret): New prototype.
53196 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53198 * include/grub/misc.h (memmove): New prototype.
53199 (memcpy): Likewise.
53201 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53203 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53204 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53206 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53208 * kern/misc.c (grub_strndup): Function rewritten.
53210 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53212 * normal/menu.c (TERM_WIDTH): Macro redefined.
53213 (TERM_TOP_BORDER_Y): Likewise.
53214 (draw_border): Replaced while-loop by a for-loop. Make the number
53215 of lines consistent with the number of lines displayed in
53216 print_entries. Added a margin below the rectangle.
53217 (print_entry): Make the entry fit in the rectangle.
53218 (print_entries): Display the scroll arrows next to the right
53221 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53223 * fs/minix.c (grub_minix_find_file): Reserve more space for
53224 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53225 `grub_strncpy' to copy `path' into it.
53227 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53229 Add the loopback device, a device via which files can be accessed
53232 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53233 (pkgdata_MODULES): Add loopback.mod.
53234 (loopback_mod_SOURCES): New variable.
53235 (loopback_mod_CFLAGS): Likewise.
53236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53238 (pkgdata_MODULES): Add loopback.mod.
53239 (loopback_mod_SOURCES): New variable.
53240 (loopback_mod_CFLAGS): Likewise.
53241 * disk/loopback.c: new file.
53242 * include/grub/normal.h (grub_loop_init): New prototype.
53243 (grub_loop_fini): New prototype.
53244 * util/grub-emu.c (main): Initialize and de-initialize loopback
53246 * include/grub/disk.h (grub_disk_dev_id): Add
53247 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53249 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53251 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53253 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53254 (suspend_mod_SOURCES): New variable.
53255 (suspend_mod_CFLAGS): Likewise.
53256 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53258 * commands/ieee1275/suspend.c: New file.
53260 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53262 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53263 ((unused))' to `__attribute__ ((used))'.
53264 (GRUB_MOD_FINI): Likewise.
53265 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53266 * genmk.rb (PModule): Assign space to common symbols when linking
53269 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53271 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53272 `unsigned' arguments to `grub_size_t'.
53273 (grub_malloc): Likewise.
53274 (grub_realloc): Likewise.
53275 (grub_memalign): Likewise.
53276 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53277 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53278 * util/misc.c (grub_malloc): Likewise.
53279 (grub_realloc): Likewise.
53280 * kern/mm.c (get_header_from_pointer): Change the casts to
53281 `unsigned' into a cast to `grub_size_t'.
53283 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53284 point to `currnode' when `currnode' is changed.
53286 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53287 Schottelius <nico-linux@schottelius.org>.
53289 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53291 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53292 (note_path): Remove variable.
53293 (GRUB_IEEE1275_NOTE_NAME): New macro.
53294 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53295 (grub_ieee1275_note_hdr): New structure.
53296 (grub_ieee1275_note_desc): Likewise.
53297 (grub_ieee1275_note): Likewise.
53298 (load_note): Remove `dir' argument. All callers updated. Remove
53299 `note_img' and `path'. Do not load a file from `note_path'.
53300 Initialize a struct grub_ieee1275_note and write that to `out'.
53301 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53303 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53305 * util/misc.c (grub_util_read_image): Revert last change. It
53306 called `grub_util_read_at', which seeks from the beginning of the
53309 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53311 * TODO: Add note about endianness in grub-mkimage.
53312 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53314 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53315 (grub_mkimage_SOURCES): New target.
53316 * include/grub/kernel.h (grub_start_addr): Remove variable.
53317 (grub_end_addr): Likewise.
53318 (grub_total_module_size): Likewise.
53319 (grub_kernel_image_size): Likewise.
53320 (GRUB_MODULE_MAGIC): New constant.
53321 (grub_module_info): New structure.
53322 (grub_arch_modules_addr): New prototype.
53323 (grub_get_end_addr): Remove prototype.
53324 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53325 * include/grub/powerpc/ieee1275/kernel.h: New file.
53326 * include/grub/util/misc.h (grub_util_get_fp_size): New
53328 (grub_util_read_at): Likewise.
53329 (grub_util_write_image_at): Likewise.
53330 * kern/main.c (grub_get_end_addr): Remove function.
53331 (grub_load_modules): Call grub_arch_modules_addr instead of using
53332 grub_end_addr. Look for a grub_module_info struct in memory. Use
53333 the grub_module_info fields instead of calling grub_get_end_addr
53334 as loop conditions. Move grub_add_unused_region code here.
53335 (grub_add_unused_region): Remove function.
53336 * kern/i386/pc/init.c: Include grub/cache.h.
53337 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53338 one call to add_mem_region.
53339 (grub_arch_modules_addr): New function.
53340 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53341 (grub_total_module_size): Likewise.
53342 Include grub/machine/kernel.h.
53343 (grub_arch_modules_addr): New function.
53344 * util/grub-emu.c (grub_end_addr): Remove variable.
53345 (grub_total_module_size): Likewise.
53346 (grub_arch_modules_addr): New function.
53347 * util/misc.c: Include unistd.h.
53348 (grub_util_get_fp_size): New function.
53349 (grub_util_read_at): Likewise.
53350 (grub_util_write_image_at): Likewise.
53351 (grub_util_read_image): Call grub_util_read_at.
53352 (grub_util_write_image): Call grub_util_write_image_at.
53353 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53354 additional memory in kernel_img for a struct grub_module_info.
53355 Fill in that grub_module_info.
53356 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53358 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53360 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53362 * include/grub/powerpc/ieee1275/ieee1275.h
53363 (grub_ieee1275_milliseconds): New prototype.
53364 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53366 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53367 grub_ieee1275_milliseconds.
53369 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53371 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53373 (find_options): New function.
53374 (cmain): Call find_options.
53375 * include/grub/powerpc/ieee1275/ieee1275.h
53376 (grub_ieee1275_realmode): New extern variable.
53377 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53378 grub_map if grub_ieee1275_realmode is false.
53380 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53382 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53383 lines are inserted and make it work like readline. Reported by
53384 Vincent Pelletier <subdino2004@yahoo.fr>.
53386 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53388 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53391 `kern/powerpc/cache.S'.
53393 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53395 * genmk.rb: Handle the `Program' class in the main loop. Written
53396 by Johan Rydberg <jrydberg@gnu.org>.
53397 (Program): New class.
53398 (programs): New variable.
53399 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53400 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53401 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53402 (help_arch): Function removed.
53403 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53404 `powerpc/libgcc.h' and `loader.h'.
53405 (pkgdata_PROGRAMS): New variable.
53406 (sbin_UTILITIES): Variable removed.
53407 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53408 (grubof_SOURCES): Variable re-defined so it only includes the
53409 core functionality.
53410 (grubof_CFLAGS): Remove `-DGRUBOF'.
53411 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53412 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53413 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53414 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53415 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53416 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53417 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53418 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53419 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53420 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53421 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53422 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53423 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53424 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53425 (pc_mod_CFLAGS): New variables.
53426 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53427 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53428 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53429 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53431 * include/grub/i386/pc/init.h (grub_os_area_addr)
53432 (rub_os_area_size): ... to here.
53433 * include/grub/powerpc/ieee1275/ieee1275.h
53434 (grub_ieee1275_entry_fn): Export symbol.
53435 * include/grub/powerpc/ieee1275/init.h: New file.
53436 * include/grub/powerpc/libgcc.h: Likewise.
53437 * include/grub/cache.h: Likewise.
53438 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53439 <hollis@penguinppc.org>.
53440 * kern/dl.c: Include <grub/cache.h>.
53441 (grub_dl_flush_cache): New function.
53442 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53444 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53445 (grub_console_init): Removed prototypes.
53446 (grub_machine_init): Don't initialize the modules anymore.
53447 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53449 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53450 Macro undef removed.
53451 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53452 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53453 relocation `R_PPC_REL32'. Return an error when the relocation is
53455 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53456 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53457 * util/misc.c (grub_arch_sync_caches): Likewise.
53459 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53461 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53462 `symlist.c', add `grubof_symlist.c'.
53463 (symlist.c): Variable removed.
53464 (grubof_HEADERS): Variable added.
53465 (grubof_symlist.c): New target.
53466 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53467 `kernel_img_HEADERS'.
53468 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53469 * kern/powerpc/dl.c: New file.
53470 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53472 (grub_arch_dl_relocate_symbols): Likewise.
53473 (grub_register_exported_symbols): Likewise.
53475 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53477 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53478 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53479 to fail instead. Reported by Vincent Pelletier
53480 <subdino2004@yahoo.fr>.
53482 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53483 it is not allocated. Reported by Vincent Pelletier
53484 <subdino2004@yahoo.fr>.
53486 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53487 output so the output looks better.
53489 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53491 Modulize the partition map support and add support for the amiga
53494 * commands/ls.c: Include <grub/partition.h> instead of
53495 <grub/machine/partition.h>.
53496 * kern/disk.c: Likewise.
53497 * kern/rescue.c: Likewise.
53498 * loader/i386/pc/chainloader.c: Likewise.
53499 * normal/cmdline.c: Likewise.
53500 * kern/powerpc/ieee1275/init.c: Likewise.
53501 (grub_machine_init): Call `grub_pc_partition_map_init',
53502 `grub_amiga_partition_map_init' and
53503 `grub_apple_partition_map_init'.
53504 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53505 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53506 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53507 `partition.h' and `pc_partition.h'.
53508 (grub_setup_SOURCES): Remove
53509 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53510 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53511 (grub_emu_SOURCES): Likewise.
53512 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53513 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53514 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53516 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53517 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53518 (grubof_SOURCES): Likewise.
53519 * disk/i386/pc/partition.c: File removed.
53520 * disk/powerpc/ieee1275/partition.c: Likewise.
53521 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53522 * include/grub/i386/pc/partition.h: Likewise.
53523 * kern/partition.c: New file.
53524 * partmap/amiga.c: Likewise.
53525 * partmap/apple.c: Likewise.
53526 * partmap/pc.c: Likewise.
53527 * include/grub/partition.h: Likewise..
53528 * include/grub/pc_partition.h: Likewise.
53529 * util/grub-emu.c: Include <grub/partition.h> instead of
53530 <grub/machine/partition.h>.
53531 (main): Call `grub_pc_partition_map_init',
53532 `grub_amiga_partition_map_init' and
53533 `grub_apple_partition_map_init' and deinitialize afterwards.
53534 * util/i386/pc/biosdisk.c: Include `#include
53535 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53536 `<grub/machine/partition.h>'.
53537 * util/i386/pc/grub-setup.c: Likewise.
53538 * util/i386/pc/biosdisk.c: Likewise.
53539 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53540 partition information in case of a PC partition.
53541 * util/i386/pc/grub-setup.c: Include `#include
53542 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53543 `<grub/machine/partition.h>'.
53544 (setup): Only access the PC specific partition information in case
53547 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53549 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53550 (grub_longjmp): Likewise.
53551 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53553 * normal/powerpc/setjmp.S: New file.
53554 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53555 `normal/powerpc/setjmp.S'.
53556 (grubof_CFLAGS): Add `-DGRUBOF'.
53557 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53558 [GRUB_UTIL && !GRUBOF].
53560 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53562 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53563 property named `name'. Correctly handle the error returned by
53564 `grub_ieee1275_finddevice' if a device can not be opened.
53566 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53568 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53569 `actual' for negativity.
53570 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53573 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53575 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53576 (PAGE_OFFSET): New macro.
53577 (CRTC_ADDR_PORT): Likewise.
53578 (CRTC_DATA_PORT): Likewise.
53579 (START_ADDR_HIGH_REGISTER): Likewise.
53580 (START_ADDR_LOW_REGISTER): Likewise.
53581 (GRAPHICS_ADDR_PORT): Likewise.
53582 (GRAPHICS_DATA_PORT): Likewise.
53583 (READ_MAP_REGISTER): Likewise.
53584 (INPUT_STATUS1_REGISTER): Likewise.
53585 (INPUT_STATUS1_VERTR_BIT): Likewise.
53586 (page): New variable.
53587 (wait_vretrace): New function.
53588 (set_read_map): Likewise.
53589 (set_start_address): Likewise.
53590 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53592 (check_vga_mem): Take the page into account.
53593 (write_char): Likewise.
53594 (write_cursor): Likewise.
53595 (scroll_up): Likewise. Copy the page to the page that is not
53596 shown and switch between both pages.
53597 (grub_vga_putchar): Fix off by one error.
53598 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53601 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53603 Add support for iso9660 (including rockridge).
53605 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53606 (iso9660_mod_SOURCES): New variable.
53607 (iso9660_mod_CFLAGS): Likewise.
53608 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53609 * include/grub/fs.h (grub_iso9660_init): New prototype.
53610 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53611 * fs/iso9660.c: New file.
53613 * include/grub/misc.h (grub_strncat): New prototype.
53614 * kern/misc.c (grub_strncat): New function.
53616 * fs/hfs.c (grub_hfs_mount): Translate the error
53617 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53618 * fs/jfs.c (grub_jfs_mount): Likewise.
53619 * fs/ufs.c (grub_ufs_mount): Likewise.
53621 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53623 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53624 which initialized BAT registers.
53625 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53626 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53628 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53629 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53631 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53632 (grub_mapclaim): Likewise.
53633 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53634 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53637 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53639 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53640 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53641 -ffreestanding and -msoft-float.
53643 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53645 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53646 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53647 set in grub_ieee1275_flags.
53649 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53651 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53653 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53654 grub_console_init first.
53655 Change the memory range used for grub_ieee1275_claim and
53656 grub_mm_init_region.
53657 Print an error message if the claim fails.
53658 Include <grub/misc.h>.
53660 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53662 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53663 Call grub_children_iterate for device nodes of type `scsi',
53665 (grub_ofdisk_open): Remove manual device alias resolution.
53666 Fix memory leak when device cannot be opened.
53667 * include/grub/powerpc/ieee1275/ieee1275.h
53668 (grub_children_iterate): New prototype.
53669 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53671 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53672 Return -1 if args.size was -1.
53674 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53676 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53677 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53678 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53679 Open Firmware's memory for it; claim memory from _start to _end.
53680 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53681 (_end): New extern.
53682 (_start): Zero BSS from __bss_start to _end.
53683 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53685 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53687 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53689 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53690 -1 if args.base was -1.
53692 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53694 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53695 escape sequence instead of a literal ^L. Also call
53696 grub_ofconsole_gotoxy.
53698 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53700 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53701 void * arguments to grub_addr_t. All callers updated. Also make
53702 the `result' argument optional.
53703 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53704 All callers updated.
53706 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53708 * commands/ls.c (grub_ls_list_files): Use the string following the
53709 initial ')', if present, as the filesystem path.
53710 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53712 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53714 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53716 Make the source code of the menu interface more readable.
53718 * normal/menu.c: Include grub/mm.h.
53719 (TERM_WIDTH): New macro.
53720 (TERM_HEIGHT): Likewise.
53721 (TERM_INFO_HEIGHT): Likewise.
53722 (TERM_MARGIN): Likewise.
53723 (TERM_SCROLL_WIDTH): Likewise.
53724 (TERM_TOP_BORDER_Y): Likewise.
53725 (TERM_LEFT_BORDER_X): Likewise.
53726 (TERM_BORDER_WIDTH): Likewise.
53727 (TERM_MESSAGE_HEIGHT): Likewise.
53728 (TERM_BORDER_HEIGHT): Likewise.
53729 (TERM_NUM_ENTRIES): Likewise.
53730 (TERM_FIRST_ENTRY_Y): Likewise.
53731 (TERM_ENTRY_WIDTH): Likewise.
53732 (TERM_CURSOR_X): Likewise.
53733 (draw_border): Use macros instead of magic numbers.
53734 (print_entry): Likewise.
53735 (print_entries): Likewise.
53736 (run_menu): Likewise. Also, handle the key 'e'.
53737 (run_menu_entry): Ignore empty command lines.
53738 (print_message): Added a new argument EDIT. If EDIT is true,
53739 print a different message.
53740 (init_page): Likewise.
53741 (edit_menu_entry): New function. Not implemented yet.
53743 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53745 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53746 can be loaded from normal mode.
53748 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53750 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53751 (multiboot_mod_CFLAGS): New variables.
53752 * loader/i386/pc/linux_normal.c: New file.
53753 * loader/i386/pc/multiboot_normal.c: Likewise.
53755 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53756 attribute `unused'.
53758 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53759 `fdiro' to read the mode information from instead of `diro'.
53761 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53762 looking up a symlink.
53764 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53766 * normal/command.c (grub_command_execute): Don't parse the
53767 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53768 flags of the command.
53770 * normal/menu.c (grub_menu_run): Fix typo.
53772 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53774 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53776 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53777 `y + 1' instead of `y - 1'.
53779 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53781 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53783 From Hollis Blanchard <hollis@penguinppc.org>:
53784 * kern/misc.c (memmove): New alias for grub_memmove.
53785 (memcmp): New alias for grub_memcmp.
53786 (memset): New alias for grub_memset.
53787 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53788 Change "int handle" to "grub_ieee1275_phandle_t handle".
53789 * include/grub/powerpc/ieee1275/ieee1275.h
53790 (grub_ieee1275_get_property): Likewise.
53792 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53794 Added normal mode command `chainloader' as module chain.mod, which
53795 depends on normal.mod and _chain.mod.
53797 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53798 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53799 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53801 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53802 but arguments parsing moved to ...
53803 (grub_chainloader_cmd): ... here. New function.
53804 * include/grub/i386/pc/chainloader.h: New file.
53805 * loader/i386/pc/chainloader_normal.c: Likewise.
53807 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53809 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53810 (grub_mkimage_LDFLAGS): Likewise.
53811 (grub_emu_SOURCES): Likewise.
53812 (kernel_img_HEADERS): Added fshelp.h.
53813 * fs/ext2.c: Include <grub/fshelp.h>.
53814 (FILETYPE_REG): New macro.
53815 (FILETYPE_INO_REG): Likewise.
53816 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53818 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53820 (grub_fshelp_node): New struct.
53821 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53823 (grub_ext2_get_file_block): Removed function.
53824 (grub_ext2_read_block): New function.
53825 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53826 This function was written.
53827 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53828 (grub_ext2_find_file): Removed function.
53829 (grub_ext2_read_symlink): New function.
53830 (grub_ext2_iterate_dir): Likewise.
53831 (grub_ext2_open): Rewritten.
53832 (grub_ext2_dir): Rewritten.
53833 * include/grub/fshelp.h: New file.
53834 * fs/fshelp.c: Likewise.
53836 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53838 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53839 (print_message): Add a missing newline.
53840 (run_menu): Added timeout support.
53841 (run_menu_entry): New local function.
53842 (grub_menu_run): Added support for booting.
53844 * kern/loader.c (grub_loader_is_loaded): New function.
53846 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53847 (grub_get_rtc): Exported.
53849 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53850 (grub_get_rtc): Exported.
53852 * include/grub/normal.h (struct grub_command_list): Remove
53853 constant from the member `command'.
53855 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53857 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53859 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53861 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53863 Add support for the JFS filesystem.
53865 * fs/jfs.c: New file.
53866 * include/grub/fs.h (grub_jfs_init): New prototype.
53867 (grub_jfs_fini): New prototype.
53868 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53869 (grub_emu_SOURCES): Likewise.
53870 (pkgdata_MODULES): Add jfs.mod.
53871 (jfs_mod_SOURCES): New variable.
53872 (jfs_mod_CFLAGS): Likewise.
53873 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53874 (grubof_SOURCES): Likewise.
53875 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53877 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53878 endian to the host endian.
53879 (grub_fat_utf16_to_utf8): Move function from there...
53880 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53881 the endianness of the source string anymore.
53882 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53884 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53886 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53887 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53888 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53889 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53891 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53892 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53893 for `node_found' and `it_dir'.
53894 (grub_hfs_dir): Add prototype for `dir_hook'.
53896 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53897 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53898 and `indir32' to silence a gcc warning.
53900 * include/grub/fs.h (grub_hfs_init): New prototype.
53901 (grub_hfs_fini): Likewise.
53904 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53906 Each disk device has its own id now. This is useful to make use
53907 of multiple disk devices.
53909 * include/grub/disk.h (grub_disk_dev_id): New enum.
53910 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53911 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53913 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53914 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53916 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53917 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53919 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53920 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53922 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53923 "id" which is used by the cache manager.
53925 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53928 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53930 * fs/hfs.c: New file.
53931 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53932 (grub_emu_SOURCES): Likewise.
53933 (pkgdata_MODULES): Add hfs.mod.
53934 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53935 (grubof_SOURCES): Likewise.
53936 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53938 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53939 * kern/misc.c (grub_strncasecmp): Add function.
53941 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53943 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53946 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53947 (grub_ext2_dir): In case the directory entry type is unknown, read
53950 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53952 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53953 grub_load_linux instead of grub_rescue_cmd_linux as second
53954 argument of grub_rescue_register_command.
53956 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53958 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53960 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53962 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53963 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53964 `loader/powerpc/ieee1275/linux.c',
53965 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53966 * include/grub/powerpc/ieee1275/ieee1275.h
53967 (grub_ieee1275_release): New prototype.
53968 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53969 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53970 normal, boot, linux and linux_normal.
53971 * loader/powerpc/ieee1275/linux.c: New file.
53972 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53974 2004-07-12 Marco Gerards <metgerards@student.han.nl>
53976 * normal/arg.c (grub_arg_parse): Correct error handling after
53977 reallocating the argumentlist (check if `argl' is not null instead
53978 of checking if `args' is not null).
53979 * kern/mm.c (grub_realloc): Return the same pointer when using the
53980 same region, instead of returning the header address.
53982 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53984 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
53985 one block instead of two when looking for the initial partition.
53986 (grub_partition_probe): Initialize the local variable `p' with 0.
53987 Use base 10 for the grub_strtoul call.
53988 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
53989 need for one local variable.
53990 (grub_strtoul): Don't add the new value to `num', instead of that
53993 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53995 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
53996 (pxeboot_img_SOURCES): New variable.
53997 (pxeboot_img_ASFLAGS): Likewise.
53998 (pxeboot_img_LDFLAGS): Likewise.
53999 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54000 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54001 <lode_leroy@hotmail.com>.
54003 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54005 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54006 there was no input.
54008 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54010 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54011 the history buffer logic.
54013 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54015 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54016 (FILETYPE_INO_SYMLINK): New macros.
54017 (grub_ext2_find_file): Check if the node is a directory using the
54018 inode stat information instead of using the filetype in the
54019 dirent. Exclude the first character of an absolute symlink.
54020 (grub_ext2_dir): Mask out the filetype part of the mode member of
54023 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54025 Add support for UFS version 1 and 2. Add support for the minix
54026 filesystem version 1 and 2, both the variants with 14 and 30 long
54029 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54031 (grub_emu_SOURCES): Likewise.
54032 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54033 (ufs_mod_SOURCES): New variable.
54034 (ufs_mod_CFLAGS): Likewise.
54035 (minix_mod_SOURCES): Likewise.
54036 (minix_mod_CFLAGS): Likewise.
54037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54039 (grubof_SOURCES): Likewise.
54040 * fs/ufs.c: New file.
54041 * fs/minix.c: New file.
54042 * include/grub/fs.h (grub_ufs_init): New prototype.
54043 (grub_ufs_fini): Likewise.
54044 (grub_minix_init): Likewise.
54045 (grub_minix_fini): Likewise.
54046 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54049 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54052 commands/ls.c, commands/terminal.c, commands/boot.c,
54053 commands/cmp.c and commands/cat.c.
54054 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54056 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54059 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54061 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54062 and grub_, respectively. Because the conversion is trivial and
54063 mechanical, I omit the details here. Please refer to the CVS
54064 if you need more information.
54066 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54068 * include/pupa: Renamed to ...
54069 * include/grub: ... this.
54070 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54071 * util/i386/pc/grub-mkimage.c: ... this.
54072 * util/i386/pc/pupa-setup.c: Renamed to ...
54073 * util/i386/pc/grub-setup.c: ... this.
54074 * util/pupa-emu.c: Renamed to ...
54075 * util/grub-emu.c: ... this.
54077 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54079 Add support for the newworld apple macintosh (PPC). This has been
54080 tested on the powerbook 2000 only. It only adds support for
54081 generic ieee1275 functions, console and disk support. This should
54082 be easy to port to other architectures with support for Open
54085 * configure.ac: Accept the powerpc as host_cpu. In the case of
54086 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54087 specific tests are only executed while building for the i386.
54088 Inverse test for crosscompile.
54089 * genmk.rb (Utility): Allow assembler files.
54090 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54091 * conf/powerpc-ieee1275.rmk: New file.
54092 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54093 * disk/powerpc/ieee1275/partition.c: Likewise.
54094 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54095 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54096 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54097 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54098 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54099 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54100 * include/pupa/powerpc/ieee1275/loader.h
54101 * include/pupa/powerpc/setjmp.h: Likewise.
54102 * include/pupa/powerpc/types.h: Likewise.
54103 * kern/powerpc/ieee1275/init.c: Likewise.
54104 * kern/powerpc/ieee1275/openfw.c: Likewise.
54105 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54107 These files were written by Johan Rydberg
54108 (jrydberg@night.trouble.net) and I only modified them slightly.
54110 * boot/powerpc/ieee1275/cmain.c: New file.
54111 * boot/powerpc/ieee1275/crt0.S: Likewise.
54112 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54113 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54115 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54117 * Makefile.in: Update copyright.
54118 * genmodsrc.sh: Likewise.
54119 * gensymlist.sh: Likewise.
54120 * term/i386/pc/vga.c: Indent correctly.
54122 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54123 bugreporting address.
54124 * util/i386/pc/pupa-setup.c (usage): Likewise,
54125 (main): Call pupa_ext2_init and pupa_ext2_fini.
54127 * fs/fat.c (log2): Renamed to ...
54128 (fat_log2): ... this.
54129 All callers changed.
54130 * kern/misc.c (memcpy): Alias to pupa_memmove.
54131 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54133 * util/console.c (pupa_ncurses_fini): Return 0.
54135 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54136 Move fail label here.
54137 [__GNU__]: Don't warn when using stat.
54138 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54139 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54140 long int. Use strtol instead of strtoul.
54142 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54144 * commands/boot.c: New file.
54145 * commands/cat.c: Likewise.
54146 * commands/cmp.c: Likewise.
54147 * commands/ls.c: Likewise.
54148 * commands/terminal.c: Likewise.
54149 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54150 (pupa_register_command): Changed interface to match the new
54152 (pupa_command_execute): Changed (almost rewritten) so it uses
54153 pupa_split_command. Added support for setting variables using the
54155 (rescue_command): Changed to work with the new argument parser.
54156 (terminal_command): Moved from here to commands/terminal.c.
54157 (set_command): New function.
54158 (unset_command): New function.
54159 (insmod_command): New function.
54160 (rmmod_command): New function.
54161 (lsmod_command): New function.
54162 (pupa_command_init): Don't initialize the command terminal
54163 anymore. Initialize the commands set, unset, insmod, rmmod and
54165 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54166 (kernel_img_HEADERS): Add arg.h and env.h.
54167 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54168 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54169 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54171 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54173 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54174 (boot_mod_SOURCES): New variable.
54175 (terminal_mod_SOURCES): Likewise.
54176 (ls_mod_SOURCES): Likewise.
54177 (cmp_mod_SOURCES): Likewise.
54178 (cat_mod_SOURCES): Likewise.
54180 * normal/arg.c: New file.
54181 * kern/env.c: Likewise.
54182 * include/pupa/arg.h: Likewise.
54183 * include/pupa/env.h: Likewise.
54184 * font/manager.c (font_command): Changed to match argument parsing
54186 (PUPA_MOD_INIT): Likewise.
54187 * hello/hello.c (pupa_cmd_hello): Likewise.
54188 (PUPA_MOD_INIT): Likewise.
54189 * include/pupa/disk.h: Include <pupa/device.h>.
54190 (pupa_print_partinfo): New prototype.
54191 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54192 (pupa_dl_get_prefix): Likewise.
54193 * include/pupa/misc.h: Include <pupa/err.h>.
54194 (pupa_isgraph): New prototype.
54195 (pupa_isdigit): Likewise.
54196 (pupa_split_cmdline): Likewise.
54197 * include/pupa/normal.h: Include <pupa/arg.h>.
54198 (pupa_command): Changed the prototype of the member `func' to
54199 match the argument parsing interface. Added member `options'.
54200 (pupa_register_command): Updated to match function.
54201 (pupa_arg_parse): New prototype.
54202 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54203 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54204 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54205 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54206 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54207 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54208 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54209 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54210 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54211 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54212 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54213 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54214 * kern/disk.c: Include <pupa/file.h>.
54215 (pupa_print_partinfo): New function.
54216 * kern/dl.c: Include <pupa/env.h>.
54217 (pupa_dl_dir): Variable removed.
54218 (pupa_dl_load): Use the environment variable `prefix' instead of
54219 the variable pupa_dl_dir.
54220 (pupa_dl_set_prefix): Function removed.
54221 (pupa_dl_get_prefix): Likewise.
54222 * kern/i386/pc/init.c: Include <pupa/env.h>.
54223 (pupa_machine_init): Use the environment variable `prefix' instead of
54224 using pupa_dl_set_prefix to set the prefix.
54225 * kern/main.c: Include <pupa/env.h>.
54226 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54227 using pupa_dl_get_prefix to get the prefix.
54228 * kern/misc.c: Include <pupa/env.h>.
54229 (pupa_isdigit): New function.
54230 (pupa_isgraph): Likewise.
54231 (pupa_ftoa): Likewise.
54232 (pupa_vsprintf): Added support for printing values of the type
54233 `double'. Make it possible to format variable output when using
54234 formatting like `%1.2%f'.
54235 (pupa_split_cmdline): New function.
54236 * kern/rescue.c: Include <pupa/env.h>.
54237 (next_word): Removed function.
54238 (pupa_rescue_cmd_prefix): Likewise.
54239 (pupa_rescue_cmd_set): New function.
54240 (pupa_rescue_cmd_unset): New function.
54241 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54242 split the command line instead of splitting it here. Added
54243 support for setting variables using the syntax `foo=bar'. Don't
54244 initialize the prefix command anymore. Initialized the set and
54246 * normal/cmdline.c: Include <pupa/env.h>.
54247 (pupa_tab_complete): Added prototypes for print_simple_completion,
54248 print_partition_completion, add_completion, iterate_commands,
54249 iterate_dev, iterate_part and iterate_dir. Moved code to print
54250 partition information from here to kern/disk.c.
54251 (pupa_cmdline_run): Don't check if the function exists anymore.
54252 * normal/main.c: Include <pupa/env.h>.
54253 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54254 instead of using pupa_dl_get_prefix to get the prefix.
54255 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54256 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54258 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54259 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54260 ((unused))' to silence a gcc warning.
54261 (pupa_vga_setcolor): Likewise.
54262 (debug_command): Changed to match argument parsing
54264 * util/pupa-emu.c: Include <pupa/env.h>.
54265 (options): Added 0's for unused fields to silence a gcc warning.
54267 (main): Use the environment variable `prefix' instead of using
54268 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54269 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54272 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54273 * util/misc.c: Include <malloc.h>.
54274 (pupa_malloc): Rewritten so errors are correctly reported.
54275 (pupa_realloc): Likewise.
54276 (pupa_memalign): Likewise.
54277 (pupa_mm_init_region): Declare unused variables with
54278 `__attribute__ ((unused))' to silence a gcc warning.
54279 * normal/i386/setjmp.S: Remove tab at the end of the file to
54280 silence a gcc warning.
54281 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54282 variables with `__attribute__ ((unused))' to silence a gcc
54284 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54285 local variable i unsigned to silence a gcc warning.
54287 * kern/term.c: Include <pupa/misc.h>.
54288 (pupa_more_lines): New variable.
54289 (pupa_more): Likewise.
54290 (pupa_putcode): When the pager is active pause at the end of every
54292 (pupa_set_more): New function.
54293 * include/pupa/term.h (pupa_set_more): New prototype.
54296 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54298 Now this project is GRUB 2 rather than PUPA. The location of
54299 the CVS repository was moved to GRUB's.
54301 * configure.ac: Use bug-grub as the reporting address.
54302 Use GRUB instead of PUPA.
54303 Change the version number to 1.90.
54305 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54307 * genkernsyms.sh: Updated copyright information.
54308 * genmk.rb: Likewise.
54309 * genmodsrc.sh: Likewise.
54310 * gensymlist.sh: Likewise.
54311 * boot/i386/pc/boot.S: Likewise.
54312 * boot/i386/pc/diskboot.S: Likewise.
54313 * disk/i386/pc/biosdisk.c: Likewise.
54314 * disk/i386/pc/partition.c: Likewise.
54315 * font/manager.c: Likewise.
54316 * fs/ext2.c: Likewise.
54317 * fs/fat.c: Likewise.
54318 * include/pupa/boot.h: Likewise.
54319 * include/pupa/device.h: Likewise.
54320 * include/pupa/disk.h: Likewise.
54321 * include/pupa/dl.h: Likewise.
54322 * include/pupa/elf.h: Likewise.
54323 * include/pupa/err.h: Likewise.
54324 * include/pupa/file.h: Likewise.
54325 * include/pupa/font.h: Likewise.
54326 * include/pupa/fs.h: Likewise.
54327 * include/pupa/kernel.h: Likewise.
54328 * include/pupa/loader.h: Likewise.
54329 * include/pupa/misc.h: Likewise.
54330 * include/pupa/mm.h: Likewise.
54331 * include/pupa/net.h: Likewise.
54332 * include/pupa/normal.h: Likewise.
54333 * include/pupa/rescue.h: Likewise.
54334 * include/pupa/setjmp.h: Likewise.
54335 * include/pupa/symbol.h: Likewise.
54336 * include/pupa/term.h: Likewise.
54337 * include/pupa/types.h: Likewise.
54338 * include/pupa/i386/setjmp.h: Likewise.
54339 * include/pupa/i386/types.h: Likewise.
54340 * include/pupa/i386/pc/biosdisk.h: Likewise.
54341 * include/pupa/i386/pc/boot.h: Likewise.
54342 * include/pupa/i386/pc/console.h: Likewise.
54343 * include/pupa/i386/pc/init.h: Likewise.
54344 * include/pupa/i386/pc/kernel.h: Likewise.
54345 * include/pupa/i386/pc/linux.h: Likewise.
54346 * include/pupa/i386/pc/loader.h: Likewise.
54347 * include/pupa/i386/pc/memory.h: Likewise.
54348 * include/pupa/i386/pc/multiboot.h: Likewise.
54349 * include/pupa/i386/pc/partition.h: Likewise.
54350 * include/pupa/i386/pc/time.h: Likewise.
54351 * include/pupa/i386/pc/vga.h: Likewise.
54352 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54353 * include/pupa/util/getroot.h: Likewise.
54354 * include/pupa/util/misc.h: Likewise.
54355 * include/pupa/util/resolve.h: Likewise.
54356 * kern/device.c: Likewise.
54357 * kern/disk.c: Likewise.
54358 * kern/dl.c: Likewise.
54359 * kern/err.c: Likewise.
54360 * kern/file.c: Likewise.
54361 * kern/fs.c: Likewise.
54362 * kern/loader.c: Likewise.
54363 * kern/main.c: Likewise.
54364 * kern/misc.c: Likewise.
54365 * kern/mm.c: Likewise.
54366 * kern/rescue.c: Likewise.
54367 * kern/term.c: Likewise.
54368 * kern/i386/dl.c: Likewise.
54369 * kern/i386/pc/init.c: Likewise.
54370 * kern/i386/pc/lzo1x.S: Likewise.
54371 * kern/i386/pc/startup.S: Likewise.
54372 * loader/i386/pc/chainloader.c: Likewise.
54373 * loader/i386/pc/linux.c: Likewise.
54374 * loader/i386/pc/multiboot.c: Likewise.
54375 * normal/cmdline.c: Likewise.
54376 * normal/command.c: Likewise.
54377 * normal/main.c: Likewise.
54378 * normal/menu.c: Likewise.
54379 * normal/i386/setjmp.S: Likewise.
54380 * term/i386/pc/console.c: Likewise.
54381 * term/i386/pc/vga.c: Likewise.
54382 * util/console.c: Likewise.
54383 * util/genmoddep.c: Likewise.
54384 * util/misc.c: Likewise.
54385 * util/pupa-emu.c: Likewise.
54386 * util/resolve.c: Likewise.
54387 * util/unifont2pff.rb: Likewise.
54388 * util/i386/pc/biosdisk.c: Likewise.
54389 * util/i386/pc/getroot.c: Likewise.
54390 * util/i386/pc/pupa-mkimage.c: Likewise.
54391 * util/i386/pc/pupa-setup.c: Likewise.
54393 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54395 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54396 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54397 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54398 reading and reset it after reading.
54399 (pupa_ext2_close): Return PUPA_ERR_NONE.
54401 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54403 (struct linux_kernel_header): Add kernel_version and
54405 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54406 pupa_file_read succeeds.
54407 (pupa_rescue_cmd_initrd): Implement.
54409 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54411 * fs/ext2.c (pupa_ext2_label): New function.
54412 (pupa_ext2_fs): Added label.
54413 * fs/fat.c (pupa_fat_label): New function.
54414 (pupa_fat_fs): Added label.
54415 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54417 * kern/misc.c (pupa_strndup): New function.
54418 * include/pupa/misc.h (pupa_strndup): New prototype.
54420 * include/pupa/normal.h: Include <pupa/err.h>.
54421 (pupa_set_history): New prototype.
54422 (pupa_iterate_commands): New prototype.
54423 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54424 <pupa/disk.h>, <pupa/file.h>.
54425 (hist_size): New variable.
54426 (hist_lines): Likewise.
54427 (hist_end): Likewise.
54428 (hist_used): Likewise.
54429 (pupa_set_history): New function.
54430 (pupa_history_get): Likewise.
54431 (pupa_history_add): Likewise.
54432 (pupa_history_replace): Likewise.
54433 (pupa_tab_complete): Likewise.
54434 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54435 completion shows partitionnames while completing partitions, this
54436 feature was suggested by Jeff Bailey.
54437 * normal/command.c (pupa_iterate_commands): New function.
54438 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54439 (pupa_normal_init): Initialize history buffer.
54440 (PUPA_MOD_INIT): Likewise.
54441 (pupa_normal_fini): Free the history buffer.
54442 (PUPA_MOD_FINI): Likewise.
54444 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54447 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54448 * configure.ac [i386]: Check for regparam bug.
54449 (NESTED_FUNC_ATTR) [! i386]: Defined.
54451 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54453 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54454 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54455 (pupa_emu_SOURCES): New variable.
54456 (pupa_emu_LDFLAGS): Likewise.
54457 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54458 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54459 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54460 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54461 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54462 (pupa_jmp_buf): New typedef.
54463 (pupa_setjmp) [PUPA_UTIL]: New macro.
54464 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54465 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54466 (pupa_refresh): New prototype.
54467 * include/pupa/util/getroot.h: New file.
54468 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54470 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54471 (pupa_rescue_cmd_cat): Likewise.
54472 (pupa_rescue_cmd_ls): Likewise.
54473 (pupa_rescue_cmd_testload): Likewise.
54474 (pupa_rescue_cmd_lsmod): Likewise.
54475 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54476 * normal/menu.c (run_menu): Likewise.
54477 * kern/term.c (pupa_cls): Likewise.
54478 (pupa_refresh): New function.
54479 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54480 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54481 * util/console.c: New file.
54483 * util/i386/pc/getroot.c: New file.
54484 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54485 (pupa_putchar): New function.
54486 (pupa_refresh): Likewise.
54487 (xgetcwd): Function moved to ...
54488 (strip_extra_slashes): Likewise.
54489 (get_prefix): Likewise.
54490 * util/i386/pc/getroot.c: ... here.
54491 (find_root_device): Function moved and renamed to...
54492 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54493 Changed all callers.
54494 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54496 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54497 Changed all callers.
54498 * util/misc.c (pupa_memalign): New function.
54499 (pupa_mm_init_region): Likewise.
54500 (pupa_register_exported_symbols): Likewise.
54501 (pupa_putchar): Function removed.
54502 * util/pupa-emu.c: New file.
54504 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54506 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54507 (_multiboot_mod_SOURCES): New variable.
54508 (_multiboot_mod_CFLAGS): Likewise.
54509 * loader/i386/pc/multiboot.c: New file.
54510 * include/pupa/i386/pc/multiboot.h: Likewise.
54511 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54512 (pupa_multiboot_real_boot): New function.
54513 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54514 (pupa_multiboot_real_boot): New prototype.
54515 (pupa_rescue_cmd_multiboot): Likewise
54516 (pupa_rescue_cmd_module): Likewise.
54518 * kern/loader.c (pupa_loader_set): Continue when
54519 pupa_loader_unload_func() fails.
54520 (pupa_loader_unset): New function.
54521 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54523 * kern/misc.c (pupa_stpcpy): New function.
54524 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54526 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54528 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54529 for available extensions.
54531 * include/pupa/i386/pc/time.h: New file.
54532 * kern/disk.c: Include <pupa/machine/time.h>.
54533 (PUPA_CACHE_TIMEOUT): New macro.
54534 (pupa_last_time): New variable.
54535 (pupa_disk_open): Flush the cache when there was a timeout.
54536 (pupa_disk_close): Reset the timer.
54537 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54539 * util/misc.c: Include <sys/times.h>
54540 (pupa_get_rtc): New function.
54542 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54544 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54546 (pupa_ext2_get_file_block): Use blocks member.
54548 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54549 first block. Return -1 instead of pupa_errno on error.
54551 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54553 * README: In the pupa-mkimage example use _chain instead of chain
54554 and ext2 instead of fat.
54555 * TODO: Replace ext2fs with jfs as an example. Add an item for
54556 adding journal playback for ext2fs.
54557 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54558 (pkgdata_MODULES): Added ext2.mod.
54559 (ext2_mod_SOURCES): New variable.
54560 (ext2_mod_CFLAGS): Likewise.
54561 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54562 * include/pupa/misc.h (pupa_strncpy): New prototype.
54563 (pupa_strcat): Likewise.
54564 (pupa_strncmp): Likewise.
54565 * kern/misc.c (pupa_strcat): Enable function.
54566 (pupa_strncpy): New function.
54567 (pupa_strncmp): Likewise.
54568 * fs/ext2.c: New file.
54570 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54571 when the read failed before retrying.
54572 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54573 (_FILE_OFFSET_BITS): Likewise.
54574 * configure.ac: Added AC_SYS_LARGEFILE.
54576 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54578 * genmk.rb (PModule#rule): Make sure to get only symbol names
54579 from the output of nm.
54580 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54582 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54584 I forgot to check in these changes for a long time. This adds
54585 incomplete support for VGA console, and this is still very
54586 buggy. Also, a lot of consideration is required for I18N,
54587 UNICODE, and VGA font issues. Therefore, assume that this is
54588 such that "better than nothing".
54590 * font/manager.c: New file.
54591 * include/pupa/font.h: Likewise.
54592 * include/pupa/i386/pc/vga.h: Likewise.
54593 * term/i386/pc/vga.c: Likewise.
54594 * util/unifont2pff.rb: Likewise.
54596 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54597 (pkgdata_MODULES): Added vga.mod and font.mod.
54598 (vga_mod_SOURCES): New variables.
54599 (vga_mod_CFLAGS): Likewise.
54600 (font_mod_SOURCES): Likewise.
54601 (font_mod_CFLAGS): Likewise.
54603 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54605 * include/pupa/term.h: Include pupa/err.h.
54606 (struct pupa_term): Added init and fini.
54607 Changed the argument of putchar to pupa_uint32_t.
54609 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54610 (pupa_console_real_putchar): New prototype.
54611 (pupa_console_putchar): Removed.
54612 (pupa_console_checkkey): Exported.
54613 (pupa_console_getkey): Likewise.
54615 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54618 * kern/term.c (pupa_term_set_current): Rewritten.
54619 (pupa_putchar): Likewise.
54620 (pupa_putcode): New function.
54622 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54623 (pupa_console_real_putchar): ... this.
54624 (pupa_vga_set_mode): New function.
54625 (pupa_vga_get_font): Likewise.
54627 * normal/command.c: Include pupa/term.h.
54628 (terminal_command): New function.
54629 (pupa_command_init): Register the command "terminal".
54631 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54632 (DISP_UP): Likewise.
54633 (DISP_RIGHT): Likewise.
54634 (DISP_DOWN): Likewise.
54635 (DISP_HLINE): Likewise.
54636 (DISP_VLINE): Likewise.
54637 (DISP_UL): Likewise.
54638 (DISP_UR): Likewise.
54639 (DISP_LL): Likewise.
54640 (DISP_LR): Likewise.
54642 * term/i386/pc/console.c (pupa_console_putchar): New function.
54644 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54646 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54647 FIX. Reverse the path_list.
54649 * include/pupa/normal.h: Export pupa_register_command and
54650 pupa_unregister_command.
54652 * hello/hello.c (pupa_cmd_hello): New module.
54653 * conf/i386-pc.rmk: Added hello.mod.
54655 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54657 * kern/i386/pc/lzo1x.S: New file.
54659 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54660 (compress_kernel): New variable.
54661 (generate_image): Heavily modified to support compressing a
54662 large part of the core image.
54664 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54666 (pupa_util_load_image): New function.
54668 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54669 (pupa_compressed_size): New variable.
54670 (codestart): Enable Gate A20 here.
54671 Decompress the compressed part of the core image.
54672 Rearrange the code to put functions and variables which are
54673 required for initialization in the non-compressed part.
54676 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54679 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54681 * include/pupa/i386/pc/kernel.h
54682 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54683 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54684 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54685 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54686 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54688 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54690 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54691 (Utility#rule): Likewise.
54693 * configure.ac: Check if LZO is available.
54695 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54697 * include/pupa/normal.h: New file.
54698 * include/pupa/setjmp.h: Likewise.
54699 * include/pupa/i386/setjmp.h: Likewise.
54700 * normal/cmdline.c: Likewise.
54701 * normal/command.c: Likewise.
54702 * normal/main.c: Likewise.
54703 * normal/menu.c: Likewise.
54704 * normal/i386/setjmp.S: Likewise.
54706 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54707 (pupa_rescue_cmd_initrd): Likewise.
54709 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54712 * kern/i386/pc/startup.S (translation_table): New variable.
54713 (translate_keycode): New function.
54714 (pupa_console_getkey): Call translate_keycode.
54716 * kern/rescue.c (attempt_normal_mode): New function.
54717 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54718 it failed, print a message.
54720 * kern/mm.c (pupa_real_malloc): Print more information when a
54721 free magic is broken.
54722 (pupa_free): If the first free header is not free actually, set
54725 * kern/main.c (pupa_load_normal_mode): Just load the module
54727 (pupa_main): Don't print the message
54728 "Entering into rescue mode..." here.
54730 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54732 (pupa_rescue_cmd_initrd): Likewise.
54733 (pupa_rescue_cmd_initrd): Likewise.
54735 * include/pupa/symbol.h (FUNCTION): Specify the type.
54736 (VARIABLE): Likewise.
54738 * include/pupa/err.h (pupa_err_t): Added
54739 PUPA_ERR_UNKNOWN_COMMAND.
54741 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54742 (pupa_dl_get_prefix): Likewise.
54744 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54745 Added _chain.mod and _linux.mod instead of chain.mod and
54747 (chain_mod_SOURCES): Renamed to ...
54748 (_chain_mod_SOURCES): ... this.
54749 (chain_mod_CFLAGS): Renamed to ...
54750 (_chain_mod_CFLAGS): ... this.
54751 (linux_mod_SOURCES): Renamed to ...
54752 (_linux_mod_SOURCES): ... this.
54753 (linux_mod_CFLAGS): Renamed to ...
54754 (_linux_mod_CFLAGS): ... this.
54755 (normal_mod_SOURCES): New variable.
54756 (normal_mod_CFLAGS): Likewise.
54757 (normal_mod_ASFLAGS): Likewise.
54759 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54761 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54764 * kern/dl.c (pupa_dl_ref): Refer depending modules
54766 (pupa_dl_unref): Unrefer depending modules recursively.
54767 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54768 a module is unloaded before one depending on that module is
54770 (pupa_dl_unload): Unload depending modules explicitly,
54773 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54775 * include/pupa/i386/pc/linux.h: New file.
54776 * loader/i386/pc/linux.c: Likewise.
54778 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54780 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54781 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54782 of PUPA_CHAINLOADER_BOOT_SECTOR.
54784 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54785 (pupa_linux_prot_size): New variable.
54786 (pupa_linux_tmp_addr): Likewise.
54787 (pupa_linux_real_addr): Likewise.
54788 (pupa_linux_boot_zimage): New function.
54789 (pupa_linux_boot_bzimage): Likewise.
54791 * kern/i386/pc/init.c (struct mem_region): New structure.
54792 (MAX_REGIONS): New macro.
54793 (mem_regions): New variable.
54794 (num_regions): Likewise.
54795 (pupa_os_area_addr): Likewise.
54796 (pupa_os_area_size): Likewise.
54797 (pupa_lower_mem): Likewise.
54798 (pupa_upper_mem): Likewise.
54799 (add_mem_region): New function.
54800 (compact_mem_regions): Likewise.
54801 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54802 the size of the conventional memory and that of so-called upper
54803 memory (before the first memory hole).
54804 Instead of adding each found region to free memory, use
54805 add_mem_region and add them after removing overlaps.
54806 Also, add only 1/4 of the upper memory to free memory. The rest
54807 is used for loading OS images. Maybe this is ad hoc, but this
54808 makes it much easier to relocate OS images when booting.
54810 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54811 (pupa_enter_rescue_mode): Don't register initrd and module.
54813 * kern/mm.c: Include pupa/dl.h.
54815 * kern/main.c: Include pupa/file.h and pupa/device.h.
54817 * kern/loader.c (pupa_loader_load_module_func): Removed.
54818 (pupa_loader_load_module): Likewise.
54820 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54823 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54824 (pupa_linux_tmp_addr): Likewise.
54825 (pupa_linux_real_addr): Likewise.
54826 (pupa_linux_boot_zimage): Likewise.
54827 (pupa_linux_boot_bzimage): Likewise.
54829 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54830 (pupa_upper_mem): Likewise.
54831 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54832 module is too dangerous.
54834 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54835 (pupa_os_area_size): Likewise.
54836 (pupa_loader_set): Remove the first argument. Loader doesn't
54837 manage modules or initrd any longer.
54838 (pupa_loader_load_module): Removed.
54840 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54841 (linux_mod_SOURCES): New variable.
54842 (linux_mod_CFLAGS): Likewise.
54844 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54846 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54847 the length of a blocklist correctly.
54849 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54850 Use ioctl only if the OS file is a block device.
54851 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54852 not very useful for normal files.
54854 * kern/main.c (pupa_set_root_dev): New function.
54855 (pupa_load_normal_mode): Likewise.
54856 (pupa_main): Call those above.
54858 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54861 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54863 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54865 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54866 (setup): Configure the installed partition information and the
54869 * loader/i386/pc/chainloader.c (my_mod): New variable.
54870 (pupa_chainloader_unload): New function.
54871 (pupa_rescue_cmd_chainloader): Refer itself.
54872 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54874 * kern/i386/pc/startup.S (install_partition): Removed.
54875 (version_string): Likewise.
54876 (config_file): Likewise.
54877 (pupa_install_dos_part): New variable.
54878 (pupa_install_bsd_part): Likewise.
54879 (pupa_prefix): Likewise.
54880 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54882 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54884 (make_install_device): New function.
54885 (pupa_machine_init): Set the dl prefix.
54887 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54888 (buf): Renamed to ...
54889 (linebuf): ... this.
54890 (pupa_rescue_cmd_prefix): New function.
54891 (pupa_rescue_cmd_insmod): Likewise.
54892 (pupa_rescue_cmd_rmmod): Likewise.
54893 (pupa_rescue_cmd_lsmod): Likewise.
54894 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54897 * kern/mm.c (pupa_memalign): If failed even after invalidating
54898 disk caches, unload unneeded modules and retry.
54900 * kern/misc.c (pupa_memmove): New function.
54901 (pupa_memcpy): Removed.
54902 (pupa_strcpy): New function.
54903 (pupa_itoa): Made static.
54905 * kern/dl.c (pupa_dl_iterate): New function.
54906 (pupa_dl_ref): Likewise.
54907 (pupa_dl_unref): Likewise.
54908 (pupa_dl_unload): Return if succeeded or not.
54909 (pupa_dl_unload_unneeded): New function.
54910 (pupa_dl_unload_all): Likewise.
54911 (pupa_dl_init): Renamed to ...
54912 (pupa_dl_set_prefix): ... this.
54913 (pupa_dl_get_prefix): New function.
54915 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54916 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54917 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54918 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54919 (pupa_install_dos_part): Declared.
54920 (pupa_install_bsd_part): Likewise.
54921 (pupa_prefix): Likewise.
54922 (pupa_boot_drive): Likewise.
54924 * include/pupa/types.h: Fix a typo.
54926 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54928 (pupa_memmove): Declared.
54929 (pupa_strcpy): Likewise.
54931 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54932 pupa_mod_init takes one argument, its own module.
54933 (pupa_dl_unload_unneeded): Declared.
54934 (pupa_dl_unload_all): Likewise.
54935 (pupa_dl_ref): Likewise.
54936 (pupa_dl_unref): Likewise.
54937 (pupa_dl_iterate): Likewise.
54938 (pupa_dl_init): Renamed to ...
54939 (pupa_dl_set_prefix): ... this.
54940 (pupa_dl_get_prefix): Declared.
54942 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54943 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54945 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54946 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54948 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54949 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54951 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54953 * util/i386/pc/pupa-setup.c (setup): Define the internal
54954 function find_first_partition_start at the top level, because GCC
54955 3.0.x cannot compile internal functions in deeper scopes
54957 (find_root_device): Use lstat instead of stat.
54958 Don't follow symbolic links.
54959 Fix the path-constructing code.
54961 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54962 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54963 by a BLKGETSIZE ioctl first, because block devices don't fill
54964 the member st_mode of the structure stat on Linux.
54965 [__linux__] (linux_find_partition): Use a temporary buffer
54966 REAL_DEV for the working space. Copy it to DEV before returning.
54967 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54968 buffer cache consistent.
54969 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54970 strncmp. The previous value was merely wrong.
54971 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54973 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54974 FAT size is 12. The previous value was merely wrong.
54976 * kern/main.c (pupa_main): Don't split the starting message from
54979 * kern/term.c (pupa_putchar): Put CR after LF instead of before
54980 LF, because BIOS goes crazy about character attributes in this
54983 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54985 * include/i386/pc/util/biosdisk.h: New file.
54986 * util/i386/pc/biosdisk.c: Likewise.
54987 * util/i386/pc/pupa-setup.c: Likewise.
54989 * Makefile.in (INCLUDE_DISTFILES): Added
54990 include/pupa/i386/pc/util/biosdisk.h.
54991 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
54992 directory util/i386/pc.
54993 (install-local): Added a rule for sbin_UTILITIES.
54994 (uninstall): Likewise.
54996 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
54998 * util/misc.c (xrealloc): New function.
54999 (pupa_malloc): Likewise.
55000 (pupa_free): Likewise.
55001 (pupa_realloc): Likewise.
55002 (pupa_stop): Likewise.
55003 (pupa_putchar): Likewise.
55005 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55007 * include/pupa/util/misc.h (xrealloc): Declared.
55009 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55011 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55012 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55014 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55015 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55017 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55018 way should be implemented.
55019 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55021 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55022 the size of NAME for safety.
55023 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55026 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55027 (pupa_setup_SOURCES): Likewise.
55029 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55031 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55033 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55034 bunch of pushl's from pusha, because this destroys the return
55037 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55039 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55040 This means that any missing prototypes could be fatal. Also, you
55041 must take care when writing assembly code. See the comments at
55042 the beginning of startup.S, for more details.
55044 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55045 compilation mechanism.
55046 (pupa_chainloader_real_boot): Likewise.
55047 (pupa_biosdisk_rw_int13_extensions): Likewise.
55048 (pupa_biosdisk_rw_standard): Likewise.
55049 (pupa_biosdisk_check_int13_extensions): Likewise.
55050 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55051 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55052 (pupa_get_memsize): Likewise.
55053 (pupa_get_mmap_entry): Likewise.
55054 (pupa_console_putchar): Likewise.
55055 (pupa_console_setcursor): Likewise.
55056 (pupa_getrtsecs): Use pushl instead of push.
55058 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55059 memory instead of the stack for a mmap entry, because some
55060 BIOSes may ignore the maximum size and overflow.
55062 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55064 * genmk.rb (PModule#rule): Compile automatically generated
55065 sources with module-specific CFLAGS as well as other sources.
55067 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55069 * configure.ac: Check ld.
55070 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55071 respectively, before checking endianness and sizes.
55073 * Makefile.in (LD): New variable.
55075 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55077 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55079 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55081 * Changelog: New file.