1 2014-09-21 Michael Chang <mchang@suse.com>
3 * grub-core/osdep/unix/config.c: Remove extraneous comma.
5 2014-09-21 Peter Jones <pjones@redhat.com>
7 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
8 we don't free a random pointer from the stack.
9 * grub-core/loader/arm64/linux.c: Likewise.
10 * grub-core/loader/i386/linux.c: Likewise.
11 * grub-core/loader/i386/pc/linux.c: Likewise.
12 * grub-core/loader/ia64/efi/linux.c: Likewise.
13 * grub-core/loader/mips/linux.c: Likewise.
14 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
15 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17 2014-09-15 Khem Raj <raj.khem@gmail.com>
19 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
20 _BSD_SOURCE to avoid warnings under glibc 2.20+.
22 2014-09-08 Michael Chang <mchang@suse.com>
24 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
25 check; comparing &data->extent against addresses in the region it
26 points to is unpredictable.
28 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
30 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
32 * configure.ac: Remove -m64 from checks for -mcmodel=large and
33 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
34 already in TARGET_CFLAGS at this point, and they produce incorrect
35 results when building for x32.
36 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
37 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
38 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
39 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
41 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
43 * configure.ac: Remove several unnecessary semicolons.
45 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
47 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
48 Initialise pend to pacify GCC.
50 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
52 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
55 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
57 * grub-core/term/at_keyboard.c: Retry probing keyboard if
58 scancode setup failed.
60 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
62 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
64 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
66 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
67 safety to avoid triggerring VirtualBox bug.
69 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
71 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
73 Fixes hang on virtualbox.
75 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
77 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
78 kernels whose paths contain regex metacharacters.
79 * util/grub.d/10_kfreebsd.in: Likewise.
80 * util/grub.d/10_linux.in: Likewise.
81 * util/grub.d/20_linux_xen.in: Likewise.
83 Reported by: Heimo Stranner.
85 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
87 * docs/grub-dev.texi (Finding your way around): The build system no
88 longer uses AutoGen directly.
90 2014-06-21 Роман Пехов <roman_pekhov>
92 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
94 2014-06-21 Glenn Washburn <development@efficientek.com>
96 * util/grub-install.c: Fix handling of --disk-module.
98 2014-06-21 Stephane Rochoy <sheda>
100 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
103 2014-06-21 Stephane Rochoy <sheda>
105 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
106 EFI system table physical address.
108 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
110 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
112 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
114 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
116 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
118 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
121 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
123 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
125 Reported by: Yves Blusseau <blusseau@zetam.org>.
127 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
129 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
130 GDT in conventional memory.
132 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
134 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
135 UUID. Other parts of grub-mkconfig tolerate these, they were
136 previously allowed here up to commit
137 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
138 practice when the system has active LVM snapshots.
139 Fixes Ubuntu bug #1287436.
141 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
143 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
144 "logical_volumes" block a little more accurately.
146 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
148 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
150 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
152 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
155 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
157 Replace few instances of memcmp/memcpy in the code that should be
158 grub_memcmp/grub_memcpy.
160 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
162 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
165 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
167 btrfs: fix get_root key comparison failures due to endianness
169 * grub-core/fs/btrfs.c (get_root): Convert
170 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
172 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
174 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
176 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
177 no longer to be forgiving of trailing spaces on grub-probe output
178 lines, which among other things means that util/grub.d/10_linux.in
179 no longer detects LVM. To fix this, make grub-probe's output
180 delimiting more consistent. As a bonus, this improves the coverage
183 Fixes Debian bug #735935.
185 * grub-core/disk/cryptodisk.c
186 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
187 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
189 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
191 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
192 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
193 probe_mods): Adjust for extra user-data arguments.
194 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
195 probe_abstraction): Use configured delimiter. Update callers.
197 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
199 * util/grub-probe,c (options): Make -0 work again (broken by
201 (main): Simplify logic.
203 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
205 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
207 2014-03-26 Fu Wei <fu.wei@linaro.org>
209 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
211 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
213 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
214 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
216 Suggested by: Markus Müller.
218 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
220 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
221 if E820 failed to return any regions.
223 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
225 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
226 tables for low memory calculations.
228 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
230 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
233 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
235 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
238 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
240 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
243 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
245 Add bootpath parser for open firmware.
247 It enables net boot even when there is no bootp/dhcp server.
249 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
250 and call it at grub_ieee1275_net_config_real.
251 * grub-core/kern/ieee1275/init.c: Add bootpath to
252 grub_ieee1275_net_config.
253 * include/grub/ieee1275/ieee1275.h: Likewise.
256 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
258 Add grub_env_set_net_property function.
260 * grub-core/net/bootp.c: Remove set_env_limn_ro.
261 * grub-core/net/net.c: Add grub_env_set_net_property.
262 * include/grub/net.h: Likewise.
264 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
266 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
268 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
270 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
272 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
274 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
275 7 seconds to recover if last poweroff was bad.
277 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
279 * grub-core/disk/ahci.c: Properly handle transactions with no
282 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
284 * grub-core/disk/ahci.c: Add safety cleanups.
286 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
288 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
289 slots to avoid pointing to uninited area.
291 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
293 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
294 enabling busmaster for the end.
296 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
298 * util/grub-mkfont.c: Downgrade warnings about unhandled features
301 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
303 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
305 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
307 * .gitignore: add missing files and .exe variants.
309 2014-01-26 Mike Gilbert <floppym@gentoo.org>
311 grub-install: support for partitioned partx loop devices.
313 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
314 /dev/loopX as being the parent of /dev/loopXpY.
316 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
318 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
319 Ensure that pointers are inited to NULL and that pointers are not
322 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
324 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
325 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
326 * include/grub/emu/misc.h: ... and here.
327 * include/grub/err.h: ... and here.
328 * util/import_gcry.py: ... and here (in files g10lib.h).
330 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
332 * util/grub-mkimage.c: Make prefix argument mandatory.
334 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
336 Fix several translatable strings.
338 Suggested by: D. Prévot.
340 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
342 * util/grub-install.c: List available targets.
344 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
346 * util/grub-install.c (write_to_disk): Add an info message.
348 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
350 * Makefile.am: Allow adding extra files to generated Windows ZIP
351 archive by setting GRUB_WINDOWS_EXTRA_DIST.
353 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
355 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
356 Show detected font path in summary.
358 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
360 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
362 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
363 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
364 * grub-core/net/tftp.c (tftp_open): Likewise.
365 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
367 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
369 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
372 In net/net.c there is a while (1) that only exits if there is a stop
373 condition and more then 10 packages or if there is no package received.
375 If GRUB is idle and enter in this loop, the only condition to leave is
376 if it doesn't have incoming packages. In a network with heavy traffic
379 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
381 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
382 EPERM when modifying kern.geom.debugflags. It is only a problem for
383 such things as installing GRUB to the MBR, in which case there'll be
384 an error later anyway, not for opening files during tests.
386 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
388 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
389 instead of MOD_FILES.
390 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
391 both with and without .exe.
392 * grub-core/genemuinitheader.sh: Same.
394 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
396 * util/grub-install.c: Fix a typo.
398 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
400 * grub-core/normal/main.c (read_config_file): Buffer config file.
403 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
405 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
406 symbolic link to directory. It fails in Msys shell on Windows 2003.
408 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
410 * Makefile.am (default_payload.elf): Add modules
411 multiboot cbmemc linux16 gzio echo help.
413 2014-01-18 Mike Gilbert <floppym@gentoo.org>
415 * Makefile.util.def: Link grub-ofpathname with zfs libs.
417 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
419 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
422 Reported by: Andrey Borzenkov.
424 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
426 * include/grub/misc.h: Move macros for compiler features to ...
427 * include/grub/compiler.h: ... new file.
428 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
429 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
430 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
431 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
432 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
433 * grub-core/video/capture.c: Include <grub/misc.h>.
434 * include/grub/command.h: Include <grub/misc.h>.
435 * include/grub/dl.h: Include <grub/misc.h>.
436 * include/grub/procfs.h: Include <grub/misc.h>.
438 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
440 * configure.ac: Add support for BUILD_EXEEXT and use it ...
441 * Makefile.am: ... here.
442 * Makefile.util.def: ... and here.
443 * grub-core/Makefile.am: ... and here.
445 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
447 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
448 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
450 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
452 * grub-core/term/terminfo.c: Recognize keys F1-F12.
454 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
456 * configure.ac: Add support for BUILD_LDFLAGS.
457 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
458 * grub-core/Makefile.am: ... and here.
459 * INSTALL: Mention BUILD_LDFLAGS.
461 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
463 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
465 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
467 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
470 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
472 * NEWS: Add few missing entries.
474 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
476 * util/grub.d/00_header.in (make_timeout): Use && rather than test
478 * util/grub.d/10_windows.in: Likewise.
479 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
481 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
484 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
486 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
487 redundant preprocessor conditional.
489 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
491 * Makefile.util.def (grub-macbless): Change mansection to 8.
493 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
495 * grub-core/loader/arm64/linux.c: correctly set device path end length.
497 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
499 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
500 arm64 to comply with EFI specification. Also use grubaa64.efi for
502 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
504 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
506 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
507 on MinGW-64 when compiling for 32 bits.
509 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
511 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
513 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
515 * NEWS: Add few missing entries. Correct existing ones.
517 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
519 Don't abort() on unavailable coreboot tables if not running on coreboot.
521 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
523 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
526 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
528 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
529 mention of it from 2.02.
531 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
533 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
535 As these functions are used on pre-ARMv6 CPUs as well we don't want
536 to make assembler assume that architecture is higher than default one.
538 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
540 * NEWS: First draft of 2.02 entry.
542 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
544 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
545 * docs/grub.texi (Getting the source code): Likewise.
547 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
549 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
552 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
554 * configure.ac: Set version to 2.02~beta2.
556 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
558 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
560 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
562 * util/grub-probe.c: Improve help message and simplify list handling.
564 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
566 Fix buffer overflow in grub_efi_print_device_path.
568 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
570 Show SATA device path.
572 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
574 Revert grub-file usage in grub-mkconfig.
576 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
578 Make newly-created files other than grub.cfg world-readable.
580 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
582 * util/grub.d/00_header.in: Improve compatibility with old config.
584 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
586 Make rijndael.c respect aliasing rules.
588 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
590 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
592 Make grub_util_device_is_mapped_stat available in grub-emu core.
594 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
596 Add -Qn to TARGET_CFLAGS if it's supported.
597 Fixes compilation on cygwin.
599 Reported by: Andrey Borzenkov.
600 Suggested by: Andrey Borzenkov.
602 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
604 Save TARGET_CC version in modinfo.sh.
606 Suggested by: Andrey Borzenkov.
608 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
610 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
611 follow the same algorithm to avoid method mismatch. Don't assume
612 DMRAID- UUID to mean full disk but instead check that mapping is linear.
614 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
616 Declare GRUB_EFI_VENDOR_APPLE_GUID.
618 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
620 Dump type and vendor specific data when printing device path.
622 2013-12-23 Colin Watson <cjwatson@debian.org>
624 Update some documentation to refer to Git rather than Bazaar.
626 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
628 * po/README: Likewise. Fix spelling mistake.
630 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
632 Don't distribute config.h.
634 * Makefile.am (platform_HEADERS): Move to ...
635 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
636 failure when building from a distributed tarball.
638 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
640 * configure.ac: Fix spelling.
641 * grub-core/commands/parttool.c: Fix grammar.
642 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
643 Embedding Partition".
645 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
647 ARM64 support for grub-mkrescue.
649 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
651 Install modinfo.sh to keep build information around.
653 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
655 * grub-core/modinfo.sh.in: Add build config information.
657 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
659 ARM64 grub-file and grub-mkconfig support.
661 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
663 Remove leftover options defines.
665 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
667 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
669 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
671 * grub-core/loader/arm64/linux.c: Add missing bracket.
673 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
675 Add arm64-efi recognition to grub-file.
677 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
679 Fix ia64-efi recognition in grub-file.
681 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
683 Recognize raspberry pi kernel in grub-file.
685 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
687 Enable cache on ARM U-Boot port.
689 Without it the port is reidiculously slow.
691 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
693 Fix ARM cache maintainance.
695 More code was converted from ASM to C for easier handling.
697 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
699 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
702 Suggested by: Leif Lindholm.
704 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
706 * util/grub-mkconfig.in: Fix Xen platform conditions.
708 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
710 * util/grub-mkrescue.c: Split single help message string in several
711 strings used in previous shell version.
713 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
715 Add arm64 Linux loader.
717 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
719 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
721 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
723 Add module loading and parsing boot time checkpoints.
725 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
727 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
730 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
732 * util/grub-mkconfig.in: Skip non-executable files.
734 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
736 Workaround buggy timer in raspberry pie by using our own timer
739 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
741 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
742 Increase to 16 MiB to allow loading the whole memdisk.
744 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
746 Fix ARM Linux Loader on non-FDT platforms.
748 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
750 * configure.ac: Choose link format based on host_os on emu.
752 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
754 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
756 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
758 * grub-core/kern/emu/main.c: Build fix for emu.
760 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
762 Build fixes for argp.h with older gcc.
764 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
766 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
769 Suggested by: David Prévot.
771 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
773 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
775 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
777 Enable -Wformat=2 if it's supported.
779 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
781 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
782 -Wmissing-declarations if supported.
784 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
786 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
787 u32 as both HFS and HFS+ have 32-bit inodes.
789 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
791 * include/grub/misc.h (grub_strtol): Fix overflow.
793 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
795 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
796 as return type in both conditionals.
798 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
800 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
801 to use uint8_t for color.
803 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
805 * util/misc.c (grub_util_get_image_size): Check for overflow.
807 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
809 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
812 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
814 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
815 for pointer difference.
817 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
819 * util/import_gcry.py: Skip sample keys.
821 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
823 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
825 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
827 * configure.ac: Remove duplicate warning arguments.
829 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
831 Add missing static qualifiers.
833 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
835 Add missing includes.
837 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
839 Inline printf templates when possible to enable format checking.
841 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
843 * include/grub/crypto.h: Don't discard const attribute.
845 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
847 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
850 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
852 * grub-core/lib/crypto.c: Don't discard const attribute.
854 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
856 * grub-core/lib/disk.c: Fix potential overflow.
858 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
860 * grub-core/lib/arg.c: Don't discard const attribute.
862 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
864 * grub-core/kern/dl.c: Don't discard const attribute.
866 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
868 * grub-core/kern/disk.c: Fix potential overflow.
870 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
872 * conf/Makefile.common: Don't include non-existing directory
873 grub-core/lib/libgcrypt-grub/include.
875 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
877 Clarify several translatable messages.
879 2013-12-21 David Prévot <david@tilapin.org>
881 Correct some translatable strings.
883 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
885 * util/grub-mkrescue.c: Rephrase mkrescue description.
887 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
888 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
890 Clarify several translatable messages.
892 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
894 Be more verbose about some configure failures.
896 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
898 Fix various build problems on GNU/Hurd.
900 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
903 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
904 [__GNU__]: Add prototype.
905 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
906 long int using %ld rather than %d.
908 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
910 * util/grub-install.c: Inform user about install platform.
912 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
914 * configure.ac: Set version to 2.02~beta1.
916 2013-12-18 Allen Pais <allen.pais@oracle.com>
917 2013-12-18 Bob Picco <bob.picco@oracle.com>
919 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
921 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
923 Make grub_zlib_decompress handle incomplete chunks.
927 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
929 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
932 2013-12-18 Aleš Nesrsta <starous@volny.cz>
934 * grub-core/disk/usbms.c: Retry on unknown errors.
935 Reuse the same tag on retries.
937 2013-12-18 Aleš Nesrsta <starous@volny.cz>
939 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
941 Avoid confusing them with already completed transfers.
943 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
947 Due to XEN bug it prevents Linux boot. Remove it at least, until
950 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
952 * po/exclude.pot: Add 2 missing excludes.
954 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
956 Add missing license section in macbless.mod and macho.mod.
958 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
960 Allow compilation without thumb-interwork as long as no thumb is
961 involved or only thumb2 is used.
963 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
965 Use -Wl,--no-relax rather than -mno-relax for uniformity.
967 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
969 * INSTALL: Update comment as to why sparc64 clang isn't usable.
971 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
973 Add __attribute__ ((sysv_abi)) only if it's really needed.
975 Some compilers don't support it.
977 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
979 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
981 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
983 Remove -Wold-style-definition.
985 Not very useful and interaction of it with regexp depends on GCC
988 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
990 Make grub_util_get_windows_path_real static.
992 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
994 * grub-core/commands/fileXX.c: Silence cast-align.
995 * grub-core/loader/i386/xen_fileXX.c: Likewise.
997 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
999 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1000 rather than LL suffix.
1002 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1004 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1006 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1008 * grub-core/loader/arm/linux.c: Use common initrd functions.
1010 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1012 Decrease number of strings to translate.
1014 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1016 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1018 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1020 Mark strings for translation and add remaining ones to exclude list.
1022 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1024 * util/grub-file.c (main): Fix sizeof usage.
1026 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1028 Silence spurious warning.
1030 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1032 Remove check_nt_hiberfil as it's been superseeded by file command.
1034 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1036 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1038 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1040 Implement syslinux parser.
1042 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1044 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1046 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1048 Support cpuid --pae.
1050 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1052 Use AT keyboard on Yeeloong 3A.
1054 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1056 Add Yeeloong 3A reboot and halt.
1058 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1060 Add Radeon Yeeloong 3A support.
1062 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1064 Add bonito 3A support.
1066 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1068 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1070 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1072 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1074 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1076 * grub-core/loader/macho.c: Fix compilation on non-i386.
1078 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1080 Add missing format_arg attribute to check that printf with translated
1081 messages has proper arguments.
1083 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1085 Use grub_xasprintf to format translated error messages containing
1088 2013-12-17 Jon McCune <jonmccune@google.com>
1090 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1092 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1094 Unify message for unsupported relocation.
1096 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1098 Mark miscompile error for translation.
1100 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1102 Use %I64 and not %ll when using OS printf if compiling for windows.
1104 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1106 Update Mac code to match new register_efi prototype.
1108 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1110 Implement better integration with Mac firmware.
1112 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1114 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1117 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1119 Include serial module in default_payload.elf.
1121 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1123 Add explicit thumb interwork bx in asm files.
1125 Shouldn't matter for armv >= 5 but let's be safe.
1127 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1129 Implement Truecrypt ISO loader.
1131 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1133 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1135 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1137 Implement grub_file tool and use it to implement generating of config
1140 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1142 Change to v1 xen grants.
1144 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1146 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1148 GRUB relied on %ebx being preserved across hypercall which isn't true.
1150 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1152 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1154 GRUB relied on %rdi being preserved across hypercall which isn't true.
1156 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1158 Implement XEN VFB support.
1160 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1162 Remove grub_bios_interrupt on coreboot.
1164 It's not used currently and cannot be used safely currently.
1166 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1168 Update exclude.pot and mark few strings for translation.
1170 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1172 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1174 Reported by: Jon McCune
1176 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1178 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1179 Add verbose information which firmware directories were tried.
1181 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1183 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1184 function to optionally redirect all three standard descriptors.
1185 Redefine grub_util_exec, grub_util_exec_redirect and
1186 grub_util_exec_redirect_null to use it.
1187 * include/grub/emu/exec.h: Define it.
1188 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1189 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1190 Use grub_util_exec_redirect_all to redirect error to NULL.
1192 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1194 * grub-core/tests/sleep_test.c: Silence spurious warning.
1196 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1198 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1199 linker trying to "fixup" the code.
1201 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1203 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1205 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1207 Add support for converting PE+ to Elf64.
1209 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1211 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1213 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1215 Remove practice of assigning random const pointers to device id.
1217 This is not required as cache code already checks driver id as well.
1219 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1221 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1224 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1226 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1227 mingw or cygwin as API already matches.
1229 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1231 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1233 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1235 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1238 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1240 Handle X86_64_PC64 relocation.
1242 Those are generated by some cygwin compilers.
1244 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1246 Determine the need for mingw-related stubs at compile time rather than
1247 using not very significant $target_os.
1249 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1251 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1252 may not work with ELF.
1254 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1256 Use unix functions for temporary files and special files on cygwin.
1258 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1260 Define functions explicitly rather than using --defsym in tests
1261 whenever possible. Respect locality in remaining cases.
1263 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1265 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1267 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1269 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1270 unlikely errors when getting EFI variables and make exhaustive search
1271 for all BootNNNN variables to find matching one.
1273 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1275 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1277 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1279 New functional test for sleep function.
1281 This test allows to check sleep without qemu. Keep qemu version as
1282 well as functional test won't notice if all clocks are going too fast
1285 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1287 Add explicit sysv_abi on amd64 asm routines.
1289 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1291 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1294 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1296 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1299 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1301 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1304 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1306 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1308 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1310 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1313 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1315 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1317 In case of quick removal of loopback and adding another one it may
1318 get same ID, confusing the cache system.
1320 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1322 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1325 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1327 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1328 than converting to long.
1330 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1332 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1334 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1336 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1337 than almost useless pointer.
1339 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1341 Add gcc_struct to all packed structures when compiling with mingw.
1343 Just "packed" doesn't always pack the way we expect.
1345 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1347 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1349 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1351 * util/grub-pe2elf.c: Fix handling of .bss.
1353 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1355 Implement windows flavour of EFI install routines.
1357 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1359 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1361 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1363 Change grub_install_register_efi interface to pass GRUB device.
1365 This allows grub_install_register_efi to request partition info
1368 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1370 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1372 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1374 Do not use TCHAR string functions as they are not available on cygwin.
1376 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1378 Workaround windows bug when querying EFI system partition parameters.
1380 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1382 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1385 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1387 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1389 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1391 Make i386-* other than i386-pc compileable under cygwin.
1393 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1395 Fix definition of grub_efi_hard_drive_device_path. Take care that
1396 existing code would work even if by some reason bogus definition is
1397 used by EFI implementations.
1399 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1401 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1403 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1405 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1408 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1410 * util/config.c: Remove trailing newline from distributor in simple
1413 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1415 * include/grub/efi/api.h: Rename protocol and interface to avoid
1418 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1420 * .gitignore: add .exe variants. add missing files. remove few outdated
1423 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1425 * grub-core/osdep/exec.c: Use unix version on cygwin.
1427 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1429 Implement multiboot2 EFI BS specification.
1431 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1433 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1434 Crash happened only in some cases like a string starting at the
1435 half of the screen of same length.
1437 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1439 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1440 with EFI counterpart.
1442 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1444 Propagate the EFI commits to x86-efi specific parts.
1446 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1448 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1450 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1452 Introduce grub_efi_packed_guid and use it where alignment is not
1455 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1457 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1458 unaligned u16 rather than u8[2].
1460 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1462 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1463 for relocation range.
1465 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1467 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1468 non-function pcrel21b relocation. It happens with .text.unlikely
1471 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1473 * make MAX_USABLE_ADDRESS platform-specific
1474 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1476 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1478 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1480 2013-12-09 Jon McCune <jonmccune@google.com>
1482 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1483 in grub-install and grub-bios-setup for x86 BIOS targets.
1485 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1487 Add missing compile and link options for sparc64-emu.
1489 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1491 Implement sparc64 trampolines (needed for sparc64-emu).
1493 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1495 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1496 range of R_SPARC_HI22.
1497 Implement R_SPARC_LM22.
1499 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1501 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1502 Do not explicitly check for symbol table as it's already checked in
1503 platform-independent layer.
1505 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1507 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1508 on ia64 as __clear_cache is a dummy on ia64.
1510 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1512 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1513 Do not explicitly check for symbol table as it's already checked in
1514 platform-independent layer.
1516 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1518 * util/grub-mkconfig.in: Add missing newline to output.
1520 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1522 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1523 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1525 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1527 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1528 compilation with GCC <= 4.2.
1529 * grub-core/kern/emu/argp_common.c: Likewise.
1531 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1533 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1534 right platform rather than leaking to sparc64-emu.
1536 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1538 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1539 But ensure that the variables in question are indeed unsigned.
1541 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1543 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1545 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1547 Remove grub_memalign on emu.
1549 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1551 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1552 truncate incomplete lines but instead flushes them.
1554 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1556 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1557 and implement windows variant.
1559 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1561 Fix mips-emu compilation.
1563 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1565 * configure.ac: Check for freetype library usability.
1567 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1571 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1573 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1575 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1577 * docs/grub.texi (Environment): Update color_normal and color_highlight
1578 defaults (light-gray instead of white).
1580 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1582 * grub-core/normal/main.c (INIT): Set default color to light-gray
1583 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1584 and apparently BIOS defaults.
1586 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1588 Transform -C option to grub-mkstandalone to --core-compress available
1589 in all grub-install flavours.
1591 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1593 Merge GRUBFS and GRUB_FS variables.
1595 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1597 Revert commit 69ca97c820, it caused failures when using OS device name
1598 in grub-install. Instead just strip off parenthesis in grub-install
1599 if (hdX) was passed.
1601 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1603 * util/grub-install.c (push_partmap_module): Add helper to convert
1604 partmap names to module names and use it in probe_mods(). Fixes
1605 failure to find partmap modules in diskfilter case.
1607 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1609 * configure.ac: Make unifont mandatory on coreboot.
1611 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1613 * configure.ac: Skip unifont 6.3 pcf and bdf.
1615 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1617 * Makefile.am: Remove partial font files if generation failed.
1619 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1621 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1623 * include/grub/util/misc.h: Define it ...
1624 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1626 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1628 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1631 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1633 Don't add -mlong-calls when compiling with clang.
1635 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1637 * configure.ac: Fix a typo.
1639 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1641 Revamp relocation handling.
1643 Move more code to common dl.c. Add missing veneers for arm and arm64.
1644 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1646 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1648 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1650 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1652 * INSTALL: Raise minimum python version to 2.6.
1653 * gentpl.py: Use python3-style print function.
1655 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1657 * util/grub-install.c: Mention Boot* variable.
1659 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1661 * grub-core/osdep/linux/hostdisk.c
1662 (grub_util_find_partition_start_os): Initialise start to avoid
1663 spurious compiler warning.
1665 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1667 On Linux, read partition start offsets from sysfs if possible, to
1668 cope with block device drivers that don't implement HDIO_GETGEO.
1669 Fixes Ubuntu bug #1237519.
1671 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1673 (sysfs_partition_start): Likewise.
1674 (grub_util_find_partition_start_os): Try sysfs_partition_start
1677 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1679 * grub-core/kern/fdt.c: Update struct size when adding node.
1681 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1683 Handle unaligned .bss on sparc64.
1685 Current code improperly assumes that both __bss_start and _end are
1686 aligned to 8-bytes. Eliminating this assumption and explicitly align
1689 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1691 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1692 so it doesn't land in the middle of loaded image.
1694 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1696 * configure.ac: Move all warning options that may be absent in
1697 gcc >= 3.1 to optional.
1699 Note: while this allows to compile with older GCC, official requirements
1700 remain the same and no support for older GCC.
1702 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1704 Copying the themes directory in grub-shell isn't
1705 parallel-test-friendly and breaks on the second test when the source
1706 directory is read-only (as in "make distcheck"). Instead, add a
1707 hidden --themes-directory option to grub-mkrescue et al, and use it
1710 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1712 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1713 as it's no longer necessarry.
1715 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1717 * configure.ac: Allow compilation with older GCC for ARM.
1719 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1721 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1722 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1725 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1727 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1729 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1731 Pass font config to config.h and not by TARGET_CFLAGS as adding
1732 arguments doesn't work if TARGET_CFLAGS is specified on command
1735 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1737 * configure.ac: Add -Wvla if compiler supports it.
1739 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1741 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1742 Remove variable length arrays.
1743 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1745 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1747 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1749 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1751 * include/grub/types.h: Declare all byteswaps as inline functions
1752 except compile-time ones.
1754 Solves variable shadowing in constructions like
1755 cpu_to_le (le_to_cpu(x) + 1).
1757 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1759 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1761 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1763 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1766 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1768 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1769 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1771 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1773 * grub-core/Makefile.core.def (setjmp): Distribute
1776 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1778 Add a new timeout_style environment variable and a corresponding
1779 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1780 controls hidden-timeout handling more simply than the previous
1781 arrangements, and pressing any hotkeys associated with menu entries
1782 during the hidden timeout will now boot the corresponding menu entry
1785 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1786 generates a warning, and if it shows the menu it will do so as if
1787 the second timeout were not present. Other combinations are
1788 translated into reasonable equivalents.
1790 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1792 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1794 * util/config.c: Add missing pointer adjustment.
1795 Reported by: qwertial
1797 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1799 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1800 directly, not via `cpu' link, to fix libgrub.pp generation.
1802 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1806 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1808 * docs/grub.texi (sleep): Document exit codes.
1810 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1812 Ensure that -mno-unaligned-access or some equivalent option is used.
1814 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1816 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1819 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1821 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1823 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1825 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1826 builds, since we don't have an EPS version of font_char_metrics.png.
1827 Add leading dot to image extension per the Texinfo documentation.
1829 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1831 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1832 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1833 * util/grub-gen-widthspec.c: Likewise.
1834 * util/grub-mkfont.c: Likewise.
1836 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1838 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1839 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1840 failed to install on (hdX).
1841 * util/grub-setup.c (get_device_name): Remove, not needed after
1844 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1846 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1848 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1850 * util/grub-fstest.c: Remove variable length arrays.
1852 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1854 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1856 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1858 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1859 computing crc32 rather than handling with md fundtions directly.
1861 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1863 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1864 checking fwstart.img rather than md fundtions directly.
1866 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1868 * util/grub-mkrescue.c (main): Check that fread succeeded.
1870 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1872 * conf/Makefile.common: Remove -mexplicit-relocs and
1873 -DUSE_ASCII_FALLBACK on yeeloong.
1875 -DUSE_ASCII_FALLBACK is already added by font snippets.
1876 -mexplicit-relocs isn't needed is compiler/assemblera are
1877 configured properly.
1878 If they're not we shouldn't attempt to fix it by ourselves.
1879 Binary compare between before and after shows no difference.
1881 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1883 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1884 sources in dependencies directly.
1886 This was the only instance of "library" in core config. A bug was
1887 reported that -fno-stack-protector wasn't passed to it. Instead of
1888 figuring out why it failed just remove this construction used
1891 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1893 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1896 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1898 * docs/grub.texi (ls): Fix command description in case of a device name
1901 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1903 Eliminate variable length arrays in grub_vsnprintf_real.
1905 A bit tricky because this function has to continue to work without
1906 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1907 but make all stack references use 32-bit offset rather than 8-bit one.
1908 So split va_args preparsing to separate function and put the prealloc
1911 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1913 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1914 Fixes build for windows.
1916 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1918 * gentpl.py: Don't generate platform-dependent conditionals for
1919 platform-independent targets.
1921 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1923 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1924 references to mdadm from otherwise generic code.
1925 (grub_util_exec_pipe): Likewise.
1926 (grub_util_exec_pipe_stderr): Likewise.
1927 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1928 This function calls vgs, not mdadm; adjust variable names
1931 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1933 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1934 of Autogen. The Autogen definitions files remain intact as they
1935 offer a useful abstraction.
1937 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1939 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1940 into no-ops, and use it in programs that copy files but do not need
1941 to take special care to sync writes (grub-mknetdir, grub-rescue,
1944 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1946 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1947 than hardcoding /usr/local/bin/xorriso.
1949 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1951 Add PCI command activation to all PCI drivers as required for coreboot
1952 and maybe some other firmwares.
1954 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1956 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1957 and non-Apple variants of efiemu compile.
1959 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1961 * configure.ac: Add explicit check for linking format of
1962 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1963 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1964 hardcoding linking format.
1966 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1968 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1971 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1972 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1974 Add a --locale-directory option to grub-install and related tools.
1976 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1977 --locale-directory option.
1978 (enum grub_install_options): Add
1979 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1980 * util/grub-install-common.c (grub_install_help_filter): Handle
1981 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1982 (grub_install_parse): Likewise.
1983 (get_localedir): New function to check for a user-provided option
1984 before trying grub_util_get_localedir.
1985 (copy_locales): Use get_localedir rather than
1986 grub_util_get_localedir. Handle differing locale directory layouts.
1987 (grub_install_copy_files): Likewise.
1989 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1991 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1992 Don't rely on PATH_MAX.
1994 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1996 * grub-core/genmoddep.awk: Use more portable && rather than and.
1998 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2000 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2001 an object after data. While it doesn't seem right solution, it
2002 works well enough and OSX isn't main compilation platform.
2004 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2006 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2007 While it doesn't seem right solution, it works well enough and
2008 OSX isn't main compilation platform.
2010 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2012 * configure.ac: Add -static to LDFLAGS when using apple linker to
2013 prevent it from pulling in dynamic linker.
2015 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2017 Apple assembly doesn't handle symbol arithmetic well. So define an
2018 offset symbol in boot.S and use it.
2020 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2022 Apple assembly doesn't handle symbol arithmetic well. So instead
2023 of getting addres of kernel_sector + 4 define kernel_sector_high.
2024 It also makes code more readable.
2026 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2028 With Apple assembly in .macro environvemnt you have to use $$ instead
2029 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2030 to $$x on Apple and to $x on everything else.
2032 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2034 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2037 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2040 and non-Apple. This instruction is shorter and faster,
2041 so no reason not to use it on both.
2043 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2045 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2046 .text when compiling for Apple.
2048 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2050 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2052 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2054 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2055 %dx restore the probe worked on non-existant drive. Reorganize the
2056 code a little bit to free 2 bytes necessary for push/pop.
2058 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2060 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2061 Add missing cast to silence warning.
2063 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2065 * util/grub-install.c (update_nvram): Support --no-nvram flag
2068 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2070 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2072 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2074 * util/garbage-gen.c: Add missing include of sys/time.h.
2076 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2078 Don't add -mflush-func if it's not supported by compiler.
2080 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2082 Move common BIOS/coreboot memory map declarations to
2083 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2085 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2087 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2089 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2091 * INSTALL: Document why older clang versions aren't appropriate.
2093 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2095 * INSTALL: Document about clang for mips.
2097 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2099 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2102 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2104 Add *-xen to the list of grub-install-common platforms.
2106 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2108 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2111 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2113 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2115 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2117 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2118 with -mcmodel=large.
2120 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2122 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2123 range-checking for 32-bit quantities.
2125 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2127 * configure.ac: Compile with -fPIC when compiling with clang on
2130 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2132 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2133 when compiling with clang.
2135 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2137 clang emits calls to abort () under some unknown conditions.
2138 Export abort () when compiling with clang.
2140 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2142 * docs/grub-dev.texi: Document stack and heap sizes.
2144 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2146 * include/grub/i386/pc/memory.h: Decrease
2147 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2148 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2149 The binary doesn't change (checked). It's more to better reflect actual
2152 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2154 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2155 at compile time that enough of scratch size is available.
2157 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2159 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2160 Previously we misaligned stack by 8 in startup.S and compensated
2161 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2162 right behaviour is to align stack in startup.S and keep it aligned
2163 in callwrap.S. startup.S part was committed few commits before. This
2164 takes care of callwrap.S.
2165 Reported by: Gary Lin.
2167 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2169 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2170 .data and .bss. May happen if compiler and assembly use different
2173 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2175 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2178 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2180 Add support for a new magic symbol _gp_disp on mips to handle PIC
2183 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2185 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2187 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2189 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2190 when rest of GRUB is compiled for hisher stepping. Instead use
2191 .set mips3/.set mips1 around cache and sync opcodes.
2193 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2195 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2196 do essentially the same thing, do it in similar way.
2198 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2200 * util/grub-mkrescue.c (main): If a source directory is not
2201 specified, read platform-specific files from subdirectories of
2202 pkglibdir, not pkgdatadir.
2204 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2206 * grub-core/normal/progress.c: Remove unused file.
2208 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2210 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2213 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2215 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2218 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2220 * coreboot.cfg: Add missing file.
2222 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2224 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2226 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2228 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2229 selectively skipping systems.
2231 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2233 * Makefile.util.def (grub-mkimage): Add
2234 grub-core/osdep/aros/config.c to extra_dist.
2235 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2236 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2237 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2238 grub-core/gnulib-no-gets.diff.
2240 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2242 Add automated filesystem checking based on scripts I've used now for
2243 quite some time locally. Most of the test require root so they are
2244 skipped when run without necessarry privelegies.
2246 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2248 * util/grub-install.c (main): Adjust info messages to match
2249 installed paths of grub-bios-setup and grub-sparc64-setup.
2251 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2253 * util/grub-install-common.c (copy_locales): Consistently use
2254 grub_util_get_localedir () rather than LOCALEDIR.
2255 (grub_install_copy_files): Likewise.
2257 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2259 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2260 16-byte boundary, as required by the x86-64 ABI, before calling
2261 grub_main. In some cases, GCC emits code that assumes this
2262 alignment, which crashes if not aligned. The EFI firmware is also
2263 entitled to assume that stack alignment without checking.
2265 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2267 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2268 4k page boundaries as expected by firmware rather than 1k
2270 (grub_mmap_malign_and_register): Likewise.
2272 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2274 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2275 fragmentation 512M is enough.
2277 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2279 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2280 pointer to 32K. This is the size of cache element which is the most
2281 common allocation >1K. This way the pointer is always around blocks
2282 of 32K and so we keep performance while decreasing fragmentation.
2284 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2286 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2287 current memory when allocating large chunks. This significantly
2288 decreases memory fragmentation.
2290 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2292 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2294 * tests/lzocompress_test.in: Skip if lzop is not installed.
2295 * tests/xzcompress_test.in: Skip if xz is not installed.
2297 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2299 * util/grub-mkrescue.c (main): Fix typo.
2301 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2303 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2304 clock frequency to 200 MHz,
2306 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2308 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2310 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2312 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2313 Load config file from (cbfsdisk)/etc/grub.cfg.
2315 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2317 * util/grub-install-common.c (grub_install_copy_files): Fix module
2318 destination directory.
2320 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2322 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2323 files have not been built.
2325 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2327 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2328 Handle errors from mkstemp.
2329 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2331 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2333 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2334 on primary master on pseries.
2336 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2338 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2339 already loaded. This saves memory needed for tests,
2341 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2343 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2346 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2348 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2351 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2353 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2354 master since with some combinations of qemu and firmware only primary
2355 IDE channel is available.
2357 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2359 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2360 low-memory platforms where we don't have enough memory for them.
2361 * grub-core/tests/videotest_checksum.c: Likewise.
2363 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2365 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2366 already loaded. This saves memory needed for tests,
2368 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2370 Fix handling of install lists.
2372 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2374 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2376 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2378 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2379 the devices before accessing them.
2381 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2383 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2386 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2388 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2390 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2392 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2393 (grub_file_close): Free file->name.
2395 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2397 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2398 (grub_load_public_key): Likewise.
2399 (grub_verify_signature_real): Likewise.
2400 (grub_cmd_verify_signature): Likewise.
2402 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2404 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2407 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2409 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2410 (grub_longjmp): Restore r31.
2411 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2413 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2415 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2416 modules to be in line with make_image_abs.
2418 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2420 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2422 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2424 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2426 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2428 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2430 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2431 to leave some memory to firmware.
2433 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2435 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2436 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2437 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2440 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2442 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2443 now needs full arguments.
2445 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2447 * util/grub-mkrescue.c (main): Add trailing \n in
2448 .disk_label.contentDetails to be in line with previous shell script.
2450 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2452 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2454 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2456 * util/grub-install-common.c (grub_install_parse): Recognize
2457 --compress=none like shell script did.
2459 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2461 * include/grub/misc.h: Replace check for __sparc64__ with one for
2462 __sparc__ as __sparc64__ isn't actually defined.
2464 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2466 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2467 counterpart of fixing the naming of escc ports.
2469 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2471 * util/grub-install-common.c (platforms): Fix the order of entries and
2472 remove useless field val.
2474 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2476 * util/grub-install.c: Add new option --no-bootsector to skip
2477 installing of bootsector. Accept --grub-setup=/bin/true as
2478 backwards-compatible synonym.
2480 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2482 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2483 order of qsort arguments (number of elements vs. element size).
2485 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2487 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2488 the function of these files exceeds what can be sanely handled in shell
2489 in posix-comaptible way. Also writing it in C extends the functionality
2490 to non-UNIX-like OS and minimal environments.
2492 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2494 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2495 compiling to thumb2.
2496 * grub-core/kern/arm/cache_armv7.S: Likewise.
2497 * grub-core/lib/arm/setjmp.S: Likewise.
2499 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2501 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2502 in grub_uboot_syscall
2504 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2506 Decrease stack usage in lexer.
2508 We have only 92K of stack and using over 4K per frame is wasteful
2510 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2511 as macros so that compiler would remove useless structure on stack.
2512 Better solution would be to fix flex not to put this structure on
2513 the stack but flex is external program.
2515 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2517 Decrease stack usage in signature verification.
2519 We have only 92K of stack and using over 4K per frame is wasteful
2521 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2523 (grub_verify_signature_real): Likewise.
2525 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2527 Decrease stack usage in mdraid 0.9x.
2529 We have only 92K of stack and using over 4K per frame is wasteful
2531 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2534 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2536 Decrease stack usage in BtrFS.
2538 We have only 92K of stack and using over 4K per frame is wasteful
2540 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2543 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2545 Decrease stack usage in JFS.
2547 We have only 92K of stack and using over 4K per frame is wasteful
2549 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2550 stack. Note: this function is recursive.
2551 (grub_jfs_read_inode): Read only part we care about.
2553 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2555 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2558 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2560 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2562 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2564 * docs/grub.texi (Environment): Document cmdpath.
2566 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2568 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2569 Remove "unused" attribute from arguments, they are used.
2571 2013-11-15 Colin Watson <cjwatson@debian.org>
2573 * .gitignore: Only ignore grub-mk* at the top level.
2575 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2577 * util/grub-reboot.in (usage): Fix a typo.
2579 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2581 Replace libgcc version of ctz with our own.
2583 On upcoming arm64 port libgcc ctz* are not usable in standalone
2584 environment. Since we need ctz* for this case and implementation is
2585 in C we may as well use it on all concerned platforms.
2587 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2589 * configure.ac: Probe for linking format rather than guessing it based
2592 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2594 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2595 "1" prior to handoff.
2597 Reported by: M A Young.
2599 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2601 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2604 Reported by: M A Young.
2606 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2608 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2609 compilation on NetBSD.
2611 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2613 * acinclude.m4: Don't add -P on initial nm test.
2615 Note: even though this patch postdates Andrey's it bears 14 Nov as
2616 date due to timezone difference.
2618 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2620 * grub-core/Makefile.core.def (signature_test): Add missing
2623 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2625 * util/grub-install_header: Set localedir here, since this file is
2627 * util/grub-install.in: Remove setting of localedir.
2628 * util/grub-mkrescue.in: Likewise.
2630 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2632 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2634 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2636 * configure.ac: Move nm checks to the end.
2637 Call grub_PROG_NM_WORKS.
2638 * acinclude.m4: New check grub_PROG_NM_WORKS.
2639 Use $TARGET_CFLAGS -c when compiling test binary.
2641 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2643 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2646 2013-11-14 Matthew Garrett <mjg@redhat.com>
2648 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2649 cmdpath to firmware directory.
2651 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2653 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2654 at the start of second iteration.
2656 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2658 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2660 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2662 * Makefile.am (default_payload.elf): New target for easier coreboot
2665 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2667 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2668 clang (not necessarry with -no-integrated-as).
2669 * include/grub/symbol.h [__arm__]: Likewise.
2671 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2673 * configure.ac: Use -no-integrated-as on arm with clang.
2674 * INSTALL: Mention ARM compilation with clang.
2676 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2678 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2681 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2683 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2684 code for indirect block handling.
2686 Saves 185 bytes on compressed image.
2688 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2692 * Makefile.am: Remove build-grub-* in make clean.
2694 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2696 New files to gitignore.
2698 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2699 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2701 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2703 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2705 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2707 * .gitignore: fix rules for .dep* and add *.a post git migration
2709 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2711 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2714 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2716 * grub-core/kern/misc.c: Don't redirect divisions in the
2718 * include/grub/misc.h: Likewise.
2720 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2722 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2723 systems that require checking the return value of write.
2725 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2727 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2728 efibootmgr quiet when --debug is not used, rather than when it is.
2730 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2732 * gentpl.py (define_macro_for_platform_dependencies): Remove
2733 first (and thus unused) of two definitions for this function.
2734 (platform_dependencies): Likewise.
2736 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2738 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2739 functions, we only need to check this for the target, not the host.
2740 * configure.ac (grub_apple_cc): Likewise.
2742 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2744 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2745 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2746 asm to stay in arm even if surrounding is thumb.
2748 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2750 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2751 helper functions are needed for thumb.
2753 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2755 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2756 level / 3 division explicitly unsigned. Saves few bytes.
2758 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2760 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2762 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2764 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2767 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2769 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2770 grub_uboot_boot_data to asm part.
2772 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2774 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2776 (grub_uboot_syscall): Save/restore r9 and align stack.
2778 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2780 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2782 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2784 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2785 occurencies with END.
2787 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2789 * util/grub-editenv.c (help_filter, argp): Document how to delete
2790 the whole environment block.
2791 Reported by Dan Jacobson. Fixes Debian bug #726265.
2793 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2795 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2798 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2800 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2801 increment/decrement.
2803 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2805 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2806 compiling with clang.
2808 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2810 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2813 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2815 Redirect all divisions to grub_divmod64.
2817 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2819 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2821 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2823 Add missing includes of loader.h.
2825 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2827 * configure.ac: Allow disabling themes.
2829 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2831 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2833 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2835 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2836 until it becomes operational.
2838 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2840 * grub-core/Makefile.core.def (legacy_password_test): Disable
2841 on platforms where no legacycfg is compiled.
2842 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2843 load legacy_password_test.
2845 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2847 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2849 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2851 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2853 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2856 strict-aliasing warning.
2857 (fsync): Silence cast warning.
2859 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2861 * grub-core/commands/verify.c: Remove variable length arrays.
2862 Load gcry_dsa/gcry_rsa automatically.
2864 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2866 * grub-core/tests/signature_test.c: New test.
2868 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2870 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2873 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2875 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2876 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2878 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2880 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2882 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2884 * grub-core/fs/proc.c: Allow \0 in proc files.
2886 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2888 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2890 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2892 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2894 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2896 * grub-core/fs/ext2.c: Remove variable length arrays.
2898 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2900 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2903 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2905 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2906 * grub-core/disk/cryptodisk.c: Likewise.
2907 * grub-core/disk/geli.c: Likewise.
2908 * grub-core/disk/luks.c: Likewise.
2910 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2912 * grub-core/tests/legacy_password_test.c: New test.
2913 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2915 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2917 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2919 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2921 * grub-core/tests/pbkdf2_test.c: New test.
2923 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2925 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2927 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2929 * grub-core/io/lzopio.c: Remove variable length arrays.
2931 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2933 * include/grub/crypto.h: Add maximums on hash size and cipher block
2936 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2938 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2940 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2942 * grub-core/tests/xnu_uuid_test.c: New test.
2944 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2946 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2949 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2951 * grub-core/commands/hashsum.c: Remove variable length arrays.
2953 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2955 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2957 * tests/grub_func_test.in: Increase memory allocation.
2959 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2961 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2962 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2965 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2967 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2968 (grub_util_get_fd_size_os): ...this.
2969 (grub_hostdisk_flush_initial_buffer): New empty function.
2971 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2973 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2974 without --defined-only.
2976 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2978 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2979 rip-relative addressing in prologue.
2981 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2983 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2984 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2986 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2988 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2989 Add missing semicolon.
2991 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2993 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2995 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2997 * configure.ac: Check for lzma.h for enabling liblzma and allow
3000 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3002 Add missing includes of loader.h.
3004 2013-11-11 Fam Zheng <famcool@gmail.com>
3006 * util/grub.d/30_os-prober.in: Add minix entry.
3008 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3010 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3011 right buffer for temporary load.
3013 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3015 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3017 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3019 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3022 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3024 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3026 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3028 (LzmaDec_InitDicAndState): Make static.
3030 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3032 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3034 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3036 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3038 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3040 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3042 * docs/grub-dev.texi: Replace bzr references with git ones.
3044 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3046 * docs/grub.texi (Simple configuration): Remove reference to
3047 grub-reboot from saved default entry description - grub-default
3048 does not use it anymore.
3050 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3052 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3055 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3057 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3059 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3061 Fix grub_machine_fini bitrot.
3063 Reported by: Glenn Washburn.
3065 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3067 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3069 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3071 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3073 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3076 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3078 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3079 Add -march=core2 when testing compile of efiemu64.
3081 Thanks Andrey Borzenkov for spotting this.
3083 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3085 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3086 XEN PV environment and load kernels.
3088 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3091 * grub-core/loader/multiboot_mbi2.c: Likewise.
3093 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3095 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3098 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3100 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3102 Tested by: Denis 'GNUtoo' Carikli.
3104 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3106 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3108 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3110 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3111 Use to get rounded angle rather than truncated.
3113 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3115 * grub-core/term/serial.c: Add option for enabling/disabling
3116 RTS/CTS flow control.
3118 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3120 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3123 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3125 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3126 Use grub_fatal rather than divide by zero.
3127 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3129 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3131 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3133 (grub_fixed_fsf_divide): Likewise.
3135 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3137 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3138 division by-zero and senseless negative divisions.
3140 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3142 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3143 division by-zero and senseless negative divisions.
3144 (circprog_set_property): Don't accept negative num_ticks.
3146 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3148 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3149 division by-zero and senseless negative divisions.
3151 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3153 * configure.ac: Use elf_*_fbsd on kfreebsd.
3155 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3157 * grub-core/tests/div_test.c: New test.
3159 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3161 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3162 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3163 * grub-core/gfxmenu/view.c: Likewise.
3164 * grub-core/video/fb/video_fb.c: Introduce new functions:
3165 grub_video_set_area_status, grub_video_get_area_status,
3166 grub_video_set_region, grub_video_get_region.
3167 * grub-core/video/bochs.c: Likewise.
3168 * grub-core/video/capture.c: Likewise.
3169 * grub-core/video/video.c: Likewise.
3170 * grub-core/video/cirrus.c: Likewise.
3171 * grub-core/video/efi_gop.c: Likewise.
3172 * grub-core/video/efi_uga.c: Likewise.
3173 * grub-core/video/emu/sdl.c: Likewise.
3174 * grub-core/video/radeon_fuloong2e.c: Likewise.
3175 * grub-core/video/sis315pro.c: Likewise.
3176 * grub-core/video/sm712.c: Likewise.
3177 * grub-core/video/i386/pc/vbe.c: Likewise.
3178 * grub-core/video/i386/pc/vga.c: Likewise.
3179 * grub-core/video/ieee1275.c: Likewise.
3180 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3181 * include/grub/video.h: Likewise.
3182 * include/grub/video_fb.h: Likewise.
3183 * include/grub/fbfill.h: Updated render_target structure.
3184 grub_video_rect_t viewport, region, area
3185 int area_offset_x, area_offset_y, area_enabled
3186 * include/grub/gui.h: New helper function
3187 grub_video_bounds_inside_region.
3188 * docs/grub-dev.texi: Added information about new functions.
3190 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3192 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3195 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3197 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3199 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3201 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3203 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3204 simple division on arm and ia64.
3206 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3208 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3211 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3213 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3215 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3217 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3218 prefix symbol, not @.
3220 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3222 * INSTALL: Add note about older gcc and clang.
3224 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3226 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3228 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3230 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3231 NULL pointer dereference.
3233 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3235 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3238 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3240 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3243 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3245 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3247 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3248 * grub-core/disk/geli.c (ascii2hex): Likewise.
3250 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3252 * configure.ac: Run linker tests without -Werror.
3253 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3254 Change all occurences of -static-libgcc resp -lgcc to
3255 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3257 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3259 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3261 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3263 Allow compiling with clang (not really supported though).
3265 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3267 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3268 Add -mrtd -mregparm=3 on i386 when not using clang.
3269 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3271 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3273 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3275 * grub-core/lib/reed_solomon.c: Likewise.
3276 * include/grub/i386/gdb.h: Likewise.
3277 * include/grub/i386/pc/int.h: Likewise.
3278 * include/grub/i386/pc/pxe.h: Likewise.
3279 * include/grub/ieee1275/ieee1275.h: Likewise.
3281 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3283 Import libgcrypt 1.5.3.
3285 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3287 * configure.ac: Don't add -Wcast-align on x86.
3289 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3291 * configure.ac: Add -freg-struct-return on all platforms that
3294 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3296 * acinclude.m4: Use -Werror on parameter tests.
3297 * configure.ac: Likewise.
3299 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3301 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3303 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3305 * configure.ac: Check that -malign-loops works rather than assuming that
3306 either -falign-loops or -malign-loops work.
3308 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3310 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3312 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3314 * configure.ac: Prevent cflags leaking to subsequent tests by always
3315 resetting cflags to target_cflags in target tests.
3317 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3319 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3322 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3324 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3326 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3328 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3330 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3332 * grub-core/normal/cmdline.c (grub_cmdline_get):
3333 Remove nested functions.
3335 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3337 * tests/test_sha512sum.in: Make it work on emu.
3339 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3341 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3343 (grub_bidi_line_logical_to_visual): Likewise.
3345 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3347 Remove vestiges of -Wunsafe-loop-optimisations.
3349 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3350 -Wno-unsafe-loop-optimisations.
3351 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3353 * grub-core/io/gzio.c: Likewise.
3354 * grub-core/script/parser.y: Likewise.
3355 * grub-core/script/yylex.l: Likewise.
3356 * util/grub-mkfont.c: Likewise.
3358 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3360 * util/grub-mkfont.c (process_cursive): Remove nested function.
3362 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3364 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3365 (grub_boot_time): Likewise.
3367 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3369 * include/grub/symbol.h (FUNCTION): Use @function rather than
3371 (VARIABLE): Likewise.
3373 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3375 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3377 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3379 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3380 (parse_dhcp_vendor): Likewise.
3382 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3384 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3386 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3388 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3389 Define after defining type and not before.
3391 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3393 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3395 (grub_gcm_decrypt): Likewise.
3396 (algo_decrypt): Likewise.
3397 (grub_zfs_decrypt_real): Transform error type.
3399 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3401 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3403 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3405 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3406 (grub_usbms_cbi_reset): Likewise.
3407 (grub_usbms_bo_reset): Likewise.
3408 (grub_usbms_reset): Likewise.
3409 (grub_usbms_attach): Likewise.
3410 (grub_usbms_transfer_cbi): Likewise.
3412 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3414 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3415 "checksum = checksum;".
3417 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3419 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3424 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3429 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3431 (grub_ehci_fini_hw): Likewise.
3432 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3434 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3436 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3437 return grub_usb_err_t for cosistency. All users updated.
3439 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3441 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3442 assigning to itself.
3444 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3445 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3447 Issue separate DNS queries for ipv4 and ipv6
3449 Adding multiple questions on a single DNS query is not supportted by
3450 most DNS servers. This patch issues two separate DNS queries
3451 sequentially for ipv4 and then for ipv6.
3453 Fixes: https://savannah.gnu.org/bugs/?39710
3455 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3456 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3457 * (grub_net_dns_lookup): Now using separated dns packages.
3458 * (grub_cmd_nslookup): Add error condition.
3459 * (grub_cmd_list_dns): Print DNS option.
3460 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3461 --prefer-ipv4, and --prefer-ipv6.
3462 * include/grub/net.h (grub_dns_option_t): New enum.
3463 * (grub_net_network_level_address): option added.
3465 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3467 * grub-core/video/fb/video_fb.c: Merge two blit functions
3470 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3472 * grub-core/term/terminfo.c: Add sequences for home and end.
3474 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3476 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3479 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3481 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3484 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3486 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3487 e-mail by Per Öberg.
3489 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3491 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3494 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3496 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3498 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3500 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3502 * docs/grub.texi: Document usage of menuentry id.
3504 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3506 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3508 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3510 * grub-core/commands/i386/nthibr.c: New command.
3512 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3514 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3516 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3518 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3521 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3523 Support GRUB_DISABLE_SUBMENU config.
3525 Inspired by patch from Prarit Bhargava.
3527 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3529 * docs/grub.texi: Mention RSA support.
3531 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3533 * grub-core/commands/verify.c: Add RSA support.
3535 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3537 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3538 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3539 device is known to be ATAPI.
3541 2013-11-03 Mike Frysinger <vapier>
3543 * configure.ac: Don't add target-prefix.
3545 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3547 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3550 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3552 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3553 if language is English.
3555 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3557 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3559 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3561 * configure.ac: Don't add -m32/-m64 on emu.
3565 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3566 broken linux headers.
3568 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3570 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3572 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3574 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3575 Reed-Solomon recovery if more than half of redundancy info is 0.
3577 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3579 * util/grub-mount.c: Handle symlinks to directories.
3581 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3583 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3584 find_file recursively for symlink.
3586 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3588 * tests/util/grub-shell.in: Copy themes.
3590 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3592 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3594 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3596 * configure.ac: Use 0x8000 for address instead of 8000.
3598 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3600 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3603 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3605 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3608 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3610 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3612 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3614 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3615 file_progress_read_hook.
3616 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3618 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3620 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3623 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3625 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3627 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3629 Rewrite blocklist functions in order to get progress when
3630 reading large extents and decrease amount of blocklist hook calls.
3632 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3634 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3637 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3639 Support --base-clock for serial command to handle weird cards with
3640 non-standard base clock.
3642 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3644 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3646 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3647 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3648 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3649 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3650 + strcpy rather than strncpy.
3652 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3654 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3655 (check_pool_label): Likewise. Fixes overflow.
3656 (nvlist_find_value): Fix comparison.
3658 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3660 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3661 more appropriate functions.
3663 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3665 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3668 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3670 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3672 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3674 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3677 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3679 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3681 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3683 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3684 (initialize_tables): reset tl and td to NULL after freeing.
3686 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3688 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3690 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3695 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3697 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3699 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3701 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3704 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3706 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3707 a page in protected space.
3709 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3711 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3712 allocate space for zero-sized modules.
3714 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3716 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3718 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3720 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3722 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3724 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3725 safeguards. Fixes a crash with i386/pc/console.c.
3727 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3729 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3730 and grub_hostfs_init.
3732 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3734 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3735 windows method on other platforms without good stat as well.
3737 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3739 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3741 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3743 Make / in btrfs refer to real root, not the default volume.
3744 Modify mkrelpath to work even if device is mounted with subvolid option.
3746 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3748 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3750 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3753 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3755 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3758 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3760 * docs/autoiso.cfg: New file.
3762 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3764 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3765 COND_GRUB_PE2ELF conditions.
3767 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3769 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3770 "vnd", "rd" and "fd" disks.
3772 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3774 Move grub_disk_write out of kernel into disk.mod.
3776 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3778 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3781 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3783 * grub-core/kern/misc.c (grub_abort): Make static
3785 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3787 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3788 transform invalid unicode codepoints.
3790 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3792 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3795 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3797 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3799 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3801 Consolidate cpuid code.
3803 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3805 Move cpuid code to cpuid.h and TSC code to tsc.c.
3807 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3809 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3811 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3813 * util/grub-mkconfig.in: Replace $0 with $self.
3814 * util/grub-reboot.in: Likewise.
3815 * util/grub-set-default.in: Likewise.
3817 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3819 * docs/osdetect.cfg: New file.
3821 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3823 * tests/util/grub-shell.in: Add new --debug option.
3825 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3827 * tests/test_unset.in: New test.
3829 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3831 * tests/test_sha512sum.in: New test.
3833 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3836 * include/grub/misc.h: Remove strncat.
3837 * grub-core/lib/posix_wrap/string.h: Likewise.
3839 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3841 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3842 Try to handle more than 0xFFFF packets.
3843 Reported by: Bernhard Übelacker <bernhardu>.
3844 He also spotted few overflows in first version of this patch.
3846 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3848 * tests/date_unit_test.c: New test.
3850 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3852 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3853 of first three years after start of validity of unixtime.
3855 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3857 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3858 division as the one making more sense.
3859 (update_screen): Likewise.
3860 (complete): Likewise.
3862 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3864 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3866 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3868 Make char and string width grub_size_t rather than grub_ssize_t.
3870 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3872 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3874 (grub_history_replace): Likewise.
3876 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3878 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3881 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3883 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3886 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3888 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3889 Use unsigned divisions rather than signed variants.
3891 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3893 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3894 unsigned arithmetics.
3897 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3901 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3903 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3904 rather than signed one.
3905 (recovery): Likewise.
3907 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3909 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3911 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3913 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3916 2013-10-25 Jon McCune <jonmccune@google.com>
3918 * docs/grub.texi: Cleanup security documentation around signatures.
3920 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3922 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3924 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3926 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3929 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3931 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3932 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3933 functions when compiling for kernel.
3935 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3937 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3938 unsigned long long when using %llu.
3940 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3942 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3943 terminal after updating progress.
3945 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3947 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3948 argument. We don't disable Gate A20 in this code.
3950 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3952 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3953 Conceptually based on change in branch "vbe-on-coreboot".
3955 2013-10-24 Robert Millan <rmh@gnu.org>
3957 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3958 numeric constants with their symbolic equivalent.
3959 Taken from branch "vbe-on-coreboot".
3961 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3963 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3965 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3967 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3968 divmod64 for offset division.
3970 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3972 Rename .bzrignore to .gitignore. Add "*.o" rule.
3974 * .bzrignore: Renamed to...
3975 * .gitignore: ...this.
3977 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3979 Add new progress module that displays the load progress of files.
3981 * grub-core/lib/progress.c: New file.
3982 * grub-core/Makefile.core.def (progress): New module.
3983 * grub-core/kern/file.c (grub_file_open): File name added.
3984 * (grub_file_read): Progress hook added.
3985 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3986 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3987 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3988 * include/grub/file.h (struct grub_file): Add progress module members.
3989 * include/grub/term.h (struct grub_term_output): Likewise.
3990 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3991 Terminal velocity added.
3992 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3993 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3994 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3995 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3996 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3997 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3998 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3999 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4000 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4001 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4002 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4003 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4005 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4007 Verify signatures of signatures unless --skip-sig is specified.
4009 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4011 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4014 Saves 70 bytes on compressed image.
4016 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4018 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4021 Saves 10 bytes on compressed image.
4023 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4025 * grub-core/kern/misc.c (grub_isprint): Move to ...
4026 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4028 Saves 20 bytes on compressed image due to remving exporting.
4030 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4032 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4034 Saves 5 bytes on compressed image.
4036 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4038 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4041 Saves 379 bytes on compressed image.
4043 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4045 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4047 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4049 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4051 Saves 40 bytes on compressed image.
4053 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4055 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4056 mask rather than 64-bit type.
4058 Saves 20 bytes on compressed image.
4060 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4062 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4063 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4065 Saves 273 bytes on compressed image.
4067 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4069 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4070 variable length arrays.
4072 Saves 50 bytes on compressed image.
4074 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4076 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4078 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4080 * grub-core/fs/ufs.c: Remove variable length arrays.
4082 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4086 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4088 * grub-core/fs/zfs.c: Remove variable length arrays.
4089 Reduces zfs.mod by 160 bytes (208 compressed).
4091 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4093 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4095 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4097 * grub-core/net/arp.c: Remove variable length arrays.
4098 * grub-core/net/bootp.c: Likewise.
4099 * grub-core/net/dns.c: Likewise.
4100 * grub-core/net/icmp6.c: Likewise.
4101 * grub-core/net/net.c: Likewise.
4103 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4105 * grub-core/fs/ntfs.c: Remove variable length arrays.
4106 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4109 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4111 * grub-core/fs/hfs.c: Remove variable length arrays.
4112 Reduces hfs.mod by 8 bytes (52 compressed).
4114 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4116 * grub-core/fs/udf.c: Remove variable length arrays.
4117 Increases udf.mod by 128 bytes (but decreases by 13 when
4120 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4122 * grub-core/fs/iso9660.c: Remove variable length arrays.
4123 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4126 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4128 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4129 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4132 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4134 * grub-core/fs/xfs.c: Remove variable length arrays.
4135 Reduces xfs.mod by 40 bytes (43 compressed).
4137 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4139 * grub-core/fs/fshelp.c: Remove variable length arrays.
4140 Reduces fshelp.mod by 116 bytes (23 compressed).
4142 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4144 * grub-core/normal/completion.c: Remove variable length arrays.
4145 * grub-core/normal/menu_entry.c: Likewise.
4147 Reduces normal.mod by 496 bytes.
4149 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4151 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4152 by 356 bytes (158 compressed).
4154 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4156 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4157 by 364 bytes (169 compressed).
4159 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4161 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4162 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4163 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4165 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4167 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4168 bitmasks to small structures of size chosen to fit in registers.
4170 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4172 * conf/Makefile.common: Use -freg-struct-return on i386. This
4173 decreases code size and improves performance.
4175 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4177 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4179 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4181 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4183 Simplify expressions to save around 256 bytes in kernel.img.
4184 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4186 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4188 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4189 Use GRUB_UTIL_FD_O_* rather than O_*.
4191 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4193 Add haiku-specific functions.
4195 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4199 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4201 Move stat () and device mode checking into OS-dependent files as
4202 long as performance doesn't suffer.
4204 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4206 Split make_system_path_relative_to_its_root into separate file
4207 relpath.c from getroot.c as it's common between unix and haiku
4208 but otherwise haiku doesn't use any functions from unix getroot.c.
4210 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4212 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4214 (grub_util_is_special_file): Likewise.
4216 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4218 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4219 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4221 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4223 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4224 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4226 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4228 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4229 (load_image): Likewise.
4231 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4233 * util/grub-render-label.c: Move backend part to ...
4234 * util/render-label.c: ... here.
4236 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4238 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4239 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4241 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4243 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4245 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4247 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4248 CD-ROM in case when it's declared as having subpartitions.
4250 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4252 Don't add -lm on haiku.
4254 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4256 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4259 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4261 * configure.ac: Use -melf_*_haiku as target on haiku.
4263 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4265 * Makefile.util.def: Add util/setup.c to extra_dist.
4267 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4269 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4270 unknown types through.
4272 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4274 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4275 (grub_util_check_char_device): Likewise.
4276 * include/grub/emu/getroot.h: Likewise.
4278 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4280 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4281 memset rather than inline static function.
4283 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4285 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4286 not doing embedded decompressor.
4288 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4290 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4292 * grub-core/kern/disk.c: Likewise.
4293 * grub-core/kern/misc.c: Likewise.
4294 * include/grub/parser.h: Likewise.
4295 * include/grub/script_sh.h: Likewise.
4296 * include/grub/zfs/zfs.h: Likewise.
4298 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4300 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4302 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4304 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4305 defined before trying to use it.
4307 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4309 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4312 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4314 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4315 Use __unused__ rather than __used__ on gcc < 3.2.
4317 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4319 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4321 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4323 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4325 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4327 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4329 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4330 * include/grub/emu/misc.h: Likewise.
4332 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4334 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4337 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4339 * grub-core/tests/checksums.h: Regenerated due to progress bar
4340 get_minimal_size changes.
4342 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4344 Added `tr' command support.
4346 * grub-core/commands/tr.c: New file.
4347 * grub-core/Makefile.core.def: Build rules for new module.
4349 * tests/grub_cmd_tr.in: New test.
4350 * Makefile.util.def: Build rules for new test.
4352 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4354 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4356 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4358 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4359 * docs/gurb.texi: Likewise.
4361 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4363 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4364 Pixmap highlighted section with east and west slices was displayed
4365 incorrectly due to negative width of the central slice.
4367 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4369 * docs/grub.texi: Graphical options information update.
4370 Removed outdated. Updated current. Inserted missed.
4372 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4374 * docs/grub.texi: Mention few new platform-specific commands.
4376 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4378 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4379 currently used so this doesn't really have any effect.
4380 Reported by: Douglas Ray <dougray>
4382 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4384 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4385 compilation but prevents gcc from displaying messages in non-Latin
4387 * conf/Makefile.common: Likewise.
4389 2013-10-16 Hiroyuki YAMAMORI
4391 Handle Japanese special keys.
4392 Reported by: Hiroyuki YAMAMORI.
4393 Codes supplied by: Hiroyuki YAMAMORI.
4395 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4397 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4399 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4401 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4402 * docs/grub.texi: Likewise.
4404 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4406 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4407 value in case of incomplete read.
4408 (grub_util_fd_write): Likewise.
4410 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4412 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4414 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4416 * util/grub-editenv.c (create_envblk_file): More from here ...
4417 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4419 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4421 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4422 canonicalize file name before doing the rest.
4424 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4426 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4429 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4431 Define grub_util_is_directory/regular/special_file and
4432 use OS-dependent versions rather than to rely on stat().
4434 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4436 * util/grub-mkimage.c: Move backend part to ...
4437 * util/mkimage.c: ... here.
4439 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4441 Allow compilation with mingw64 albeit with warnings due to lack of
4444 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4445 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4446 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4447 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4449 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4451 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4453 Remove leftover references to some of the system headers.
4455 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4457 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4460 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4462 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4465 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4467 Split out blocklist retrieving from setup.c to
4468 grub-core/osdep/blocklist.c and add windows implementation since
4469 generic version doesn't work on NTFS on Windows due to aggressive
4472 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4474 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4477 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4479 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4480 Cut tailing newline. Remove arbitrary limitation. Always use
4481 grub_util_tchar_to_utf8.
4483 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4485 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4486 * tests/printf_unit_test.c (printf_test): Add %% tests.
4487 Reported by: Paulo Flabiano Smorigo.
4489 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4491 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4494 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4496 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4497 use nvlist_lookup_string and don't use nvlist_print.
4499 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4501 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4502 closedir to handle filename charset translation.
4504 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4506 * include/grub/emu/hostdisk.h: Move file operations to
4507 * include/grub/emu/hostfile.h: ... here.
4509 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4511 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4514 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4516 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4518 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4520 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4521 and remove export.h.
4523 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4525 * grub-core/kern/emu/error.c: Removed.
4526 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4527 explicitly as it's already in libgnu.a.
4529 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4531 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4532 config-util.h include.
4534 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4536 Split emunet into platform-dependent and GRUB-binding parts. Keep
4537 platform-dependent part in kernel for easy access to OS functions.
4539 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4541 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4544 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4546 * grub-core/osdep/windows/emuconsole.c: New file.
4548 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4550 * conf/Makefile.extra-dist: Add osdep/*/init.c
4552 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4554 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4556 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4558 * util/grub-probe.c (probe): Separate different drives in hint-str
4559 by spaces and not newlines.
4560 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4562 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4564 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4567 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4569 Pass-through unknown E820 types. It required reorganisation of mmap
4572 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4574 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4576 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4578 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4581 2013-10-14 qwertial <qwertial>
4583 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4585 2013-10-14 Jon McCune <jonmccune@google.com>
4587 * docs/grub.texi: Document new signatures possibility.
4589 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4591 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4593 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4595 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4597 (grub_util_tchar_to_utf8): Likewise.
4599 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4601 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4602 * grub-core/kern/emu/main.c: Add missing include.
4603 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4604 Don't call grub_util_init_nls.
4605 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4608 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4610 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4613 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4615 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4617 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4619 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4621 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4623 Add a wrapper for fopen. On unix-like systems just pass-through. On
4624 windows use unicode version.
4626 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4628 Move set_program_name and init_nls to host_init. On windows
4629 fix in this fuction console and argument charset as well.
4631 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4633 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4634 GRUB_ENABLE_CRYPTODISK.
4636 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4637 GRUB_ENABLE_CRYPTODISK.
4638 * util/grub-mkconfig_lib.in: Likewise.
4640 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4642 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4644 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4646 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4647 error when enabling debug.
4649 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4651 * configure.ac: Use -melf_*_obsd on openbsd.
4653 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4655 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4657 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4659 * include/grub/misc.h: Use gnu_printf rather than printf as format
4660 template since our functions are independent of libc.
4662 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4664 * util/grub-setup.c (setup): Move copying of partition table as
4665 futher up as possible to avoid possible overwrite by floppy routines.
4667 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4669 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4671 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4673 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4674 * docs/grub.texi: Likewise.
4676 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4678 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4679 it's mostly unused. Move vestiges to the callers.
4681 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4683 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4684 version of salt and hash. Use grub_snprintf rather than snprintf.
4686 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4688 * docs/grub.texi: Fix problem with braces.
4690 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4692 * conf/Makefile.extra-dist: Fix extra-dist list.
4693 * grub-core/Makefile.core.def: Likewise.
4695 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4697 * docs/grub.texi: Document disk names used on Windows and AROS.
4699 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4701 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4703 * grub-core/osdep/aros/hostdisk.c: Likewise.
4705 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4707 Avoid including hostfile.h when not necessarry as it pulls
4708 in OS-specific headers which may redefine generic names
4711 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4713 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4714 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4715 scrollbar_bottom_pad
4716 * docs/grub.texi: Likewise.
4718 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4720 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4722 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4724 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4726 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4728 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4730 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4733 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4735 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4738 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4740 Move OS-specific driver configuration to grub_util_fd_open. This
4741 moves OS-dependent parts from kern/emu/hostdisk.c to
4742 grub-core/osdep/*/hostdisk.c.
4744 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4746 * util/grub-mkimage.c (generate_image): Use size_t instead of
4748 * util/grub-mkimagexx.c (locate_sections): Likewise.
4749 (load_image): Likewise.
4751 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4753 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4755 (grub_util_write_image): Likewise.
4757 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4759 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4760 get random when no RNG is available.
4761 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4763 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4765 * include/grub/util/lvm.h: Removed.
4767 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4769 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4770 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4772 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4774 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4776 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4778 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4780 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4782 * grub-core/net/drivers/emu/emunet.c: Move to ..
4783 * grub-core/osdep/linux/emunet.c: ..here.
4785 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4787 * util/ieee1275/ofpath.c: Move to ...
4788 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4789 * grub-core/osdep/basic/ofpath.c: ..here.
4791 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4793 Move password-querying (util-version) routines to grub-core/osdep.
4795 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4797 Move sleep routines to grub-core/osdep.
4799 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4801 Move OS-dependent files to grub-core/osdep and document it.
4803 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4805 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4806 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4808 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4810 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4812 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4814 * util/misc.c: Remove leftover inclusion of malloc.h.
4816 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4818 * include/grub/setjmp.h: Remove leftover GRUBOF.
4820 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4822 * util/raid.c: Fold into ...
4823 * util/getroot_linux.c: ... here. Make all functions static.
4825 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4827 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4828 macros to GRUB ones.
4830 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4832 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4833 occasional bug. If there are too many boot entries or too low
4834 scrollbar height then we need to use another formula to calculate
4835 the position and size of the scrollbar thumb.
4837 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4839 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4841 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4843 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4844 * docs/grub.texi: Likewise.
4846 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4848 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4851 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4853 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4854 minimal width calculations.
4856 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4858 * docs/grub.texi: Update note on colors on emu console.
4860 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4862 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4863 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4864 it's FS and not GRUB limitation.
4866 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4868 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4870 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4872 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4874 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4876 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4877 kernels by version order.
4879 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4881 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4883 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4885 Add AROS hostdisk and getroot routines.
4887 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4889 Make cryptodisk and diskfilter probe data retrievable programmatically
4890 and not just printable.
4892 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4894 Split random retrieving code into separate files.
4896 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4901 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4903 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4905 * grub-core/tests/fake_input.c: Likewise.
4906 * grub-core/tests/cmdline_cat_test.c: Likewise.
4908 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4910 * grub-core/video/capture.c: Do not do finalization when .fini
4911 is called as there is explicit capture_end.
4913 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4915 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4916 changing windows to avoid crash.
4918 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4920 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4922 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4924 * po/exclude.pot: Add several strings to exclude.
4926 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4928 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4930 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4932 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4933 ./util/grub-gen-asciih.c to exclude list.
4935 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4937 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4938 and don't mark error strings for translation.
4940 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4942 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4943 properly in case of missing block size.
4945 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4947 * grub-core/lib/arm/setjmp.S: Add missing license section.
4949 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4951 * po/swiss.sed: Add replacement for key names and for term computer.
4953 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4955 * grub-core/gfxmenu/theme_loader.c: New global options for the
4956 theme background image handling. desktop-image-scale-method,
4957 desktop-image-h-align, desktop-image-v-align.
4958 * grub-core/gfxmenu/view.c: Likewise.
4959 * include/gfxmenu_view.h: Likewise.
4960 * include/bitmap_scale.h: Proportional scale functions introduced.
4961 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4962 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4963 cases of unexpected input variables for scale functions.
4964 * docs/grub.texi: Updated documentation for new options.
4966 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4968 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4970 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4972 * grub-core/tests/checksums.h: Corrected due to changes in
4973 bilinear interpolation function.
4975 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4977 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4978 to eliminate artefacts in bilinear interpolation.
4980 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4982 * grub-core/video/readers/tga.c: Support paletted tga.
4984 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4986 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4987 incorrect cbcr setting when in color mode.
4989 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4991 * grub-core/video/readers/png.c: Support paletted images and clean up
4994 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4996 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4997 usage of wrong table which resulted in mishandling of 4-byte
5000 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5002 * grub-core/term/terminfo.c: Add Home and End key sequences.
5004 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5006 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5007 Fix formula for computing total number of bytes.
5009 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5011 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5012 image processing, fix big-endian and support grayscale.
5014 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5016 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5017 Correctly will with maximum transparency when using index color.
5019 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5021 * grub-core/video/readers/png.c: Support grayscale
5023 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5025 * grub-core/video/readers/jpeg.c: Support grayscale.
5027 2013-09-26 Jon McCune <jonmccune@google.com>
5029 * grub-core/commands/loadenv.c: Support skipping signature check
5030 and variable names filtering.
5032 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5034 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5035 * grub-core/kern/emu/hostfs.c: Likewise.
5036 * util/getroot_unix.c: Likewise.
5038 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5040 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5041 Migrate all explicit defines to this new one.
5043 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5045 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5046 grub_util_fd_strerror when using grub_util_fd_*.
5047 (grub_util_fd_open_device): Likewise.
5048 (grub_util_biosdisk_read): Likewise.
5049 (grub_util_biosdisk_write): Likewise.
5050 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5051 (grub_util_fd_strerror): Likewise.
5052 (grub_util_fd_sync): Likewise.
5053 (grub_util_fd_close): Likewise.
5054 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5055 (grub_util_fd_close): Likewise.
5056 (grub_util_fd_strerror): Likewise.
5057 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5058 function proto rather than macro.
5059 (grub_util_fd_sync): Likewise.
5060 (grub_util_fd_open): Likewise.
5061 (grub_util_fd_strerror): New proto.
5063 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5065 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5066 platforms on which it doesn't work.
5068 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5070 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5071 stat immediately to where it's used.
5073 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5075 * util/getroot.c (grub_util_check_block_device): Move to ...
5076 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5077 * util/getroot.c (grub_util_check_char_device): Move to ...
5078 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5080 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5082 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5085 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5087 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5089 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5091 * docs/grub.texi (File name syntax): Document ZFS filenames
5092 (/volume@snapshot/...).
5094 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5096 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5097 Always return full path. Fixes a problem with mkrelpath.
5099 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5101 * util/grub-install.in: Add GPT PReP support.
5102 * util/grub-probe.c (probe): Support GPT partition type.
5103 (main): Support -t gpt_parttype.
5105 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5107 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5109 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5111 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5113 2013-09-23 Tim Hardeck <thardeck>
5115 * util/grub.d/10_hurd.in: Filter out character for the class.
5116 * util/grub.d/10_kfreebsd.in: Likewise.
5117 * util/grub.d/10_linux.in: Likewise.
5118 * util/grub.d/20_linux_xen.in: Likewise.
5120 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5122 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5125 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5127 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5130 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5132 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5133 doesn't use posix_wrap. Keep literal -fno-builtin however.
5135 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5137 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5139 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5142 * configure.ac: Do not enable -Wmissing-noreturn as its
5143 usefulness is limited and creates problems on some OS notably with
5144 code generated by bison.
5146 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5149 * configure.ac: Do not explicitly enable -Waddress as it's not
5150 supported by all gcc and when it is, it's already enabled by -Wall.
5152 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5154 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5155 desactivated use of EDID at all.
5157 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5160 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5161 video if no text is available.
5163 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5166 * configure.ac: Substitute TARGET_RANLIB.
5168 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5171 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5173 Based on patches from AROS.
5175 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5178 * grub-core/Makefile.am: Override STRIP and RANLIB.
5179 * configure.ac: compute TARGET_RANLIB.
5180 * INSTALL: Document TARGET_RANLIB
5182 Based on patches from AROS.
5184 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5186 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5187 that floppies are unpartitioned.
5189 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5191 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5192 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5194 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5196 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5197 less nice but more portable.
5198 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5200 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5202 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5204 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5206 (grub_cryptodisk_cheat_insert): Likewise.
5207 (grub_cryptodisk_close): Likewise.
5209 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5211 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5212 Use windows path for DEFAULT_DIRECTORY.
5214 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5216 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5217 difference was likely just gcc version, not anything mingw-related.
5219 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5221 Use Winapi on both cygwin and mingw32 to share more code between both.
5223 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5225 * util/grub-install.in: Add --grub-editenv option.
5226 * util/grub-install_header (grub_compress_file): Explicitly check for
5227 plain file to avoid cp error.
5229 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5231 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5232 names; fix LVM driver name (lvm, not lv).
5233 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5236 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5238 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5239 files rather than one file with loads of #if's.
5240 * util/getroot.c: Likewise.
5242 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5244 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5246 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5248 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5249 GNU/Hurd to the list of checked PRNG.
5251 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5253 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5255 2013-09-21 Ales Nesrsta <starous@volny.cz>
5257 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5259 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5261 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5262 * grub-core/disk/lvm.c: Add LVM UUIDs.
5263 * util/getroot.c: Use LVM UUIDs whenever possible.
5265 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5267 * docs/grub.texi (Networking commands): Add documentation for
5268 network related commands.
5270 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5272 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5273 to determine if device is handled by devmapper.
5274 (convert_system_partition_to_system_disk): Likewise.
5275 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5276 already done in grub_util_open_dm.
5278 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5280 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5281 Clean up stack manipulation (sync_caches_armv*)
5283 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5285 * util/lvm.c: Remove since unused. Remove remaining references.
5287 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5289 Handle the case of partitioned LVM properly.
5291 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5292 Stop on meeting LVM, mpath or DMRAID.
5293 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5294 (read_device_map): Likewise.
5295 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5296 device is full disk rather than erroring out on LVM and similar cases.
5298 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5300 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5302 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5304 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5306 Reported by: Leif Lindholm
5308 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5309 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5311 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5314 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5316 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5317 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5319 2013-09-18 Douglas Ray <dougray@cpan.org>
5321 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5324 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5326 * docs/grub.texi: Fix broken link.
5328 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5330 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5331 to break endless loop.
5333 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5335 * util/grub-fstest.c: Fix several printf formats.
5336 * util/grub-mkimage.c: Likewise.
5337 * util/grub-mkimagexx.c: Likewise.
5338 * util/grub-script-check.c: Likewise.
5340 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5342 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5345 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5347 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5349 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5351 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5352 removed in current versions cygwin_conv_*.
5354 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5356 * configure.ac: Disable efiemu runtime on cygwin.
5358 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5360 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5361 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5363 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5365 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5368 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5370 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5372 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5375 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5377 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5378 when on x86 and not cygwin.
5379 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5382 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5384 * configure.ac: Set CPP to build one when checkoing for freetype for
5387 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5389 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5390 [!GRUB_BUILD]: Remove has_argument.
5392 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5394 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5395 Replace with a dummy.
5397 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5399 * configure.ac: Don't change host_os from mingw to cygwin.
5401 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5403 * configure.ac: Change target_os from windows to cygwin.
5405 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5407 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5409 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5410 (build-grub-gen-asciih): Likewise.
5411 (build-grub-gen-widthspec): Likewise.
5412 * Makefile.util.def (grub-pe2elf): Remove.
5413 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5414 * configure.ac: Separate tests for build.
5415 Move ./build-grub-pe2elf to grub-core.
5417 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5418 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5420 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5422 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5423 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5424 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5426 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5428 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5429 mingw32 as well based on grub_util_get_disk_size.
5430 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5431 grub_util_get_fd_size.
5433 (fsync): Moved to ...
5434 * grub-core/kern/emu/misc.c (fsync): ... here.
5436 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5438 * include/grub/mm.h (grub_extend_alloc): Remove.
5439 * grub-core/loader/i386/pc/plan9.c: Use own version of
5440 grub_extend_alloc with appropriate types.
5442 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5444 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5446 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5448 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5450 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5452 Fix dependencies on cygwin.
5454 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5455 dependencies when used and defined.
5456 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5458 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5460 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5461 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5463 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5465 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5466 implementation available to cause compile-time rather than runtime
5469 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5471 * util/grub-fstest.c: Don't check for symlinks on windows.
5473 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5475 * INSTALL: Mention unavailability of man pages when cross-compiling.
5477 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5479 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5481 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5483 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5485 * INSTALL: Document cross-compilation.
5486 * acinclude.m4: Determine whether nm support -P and --defined-only.
5487 * configure.ac: Add TARGET_ to all variables pertaining to target
5488 that don't have it yet.
5489 * gentpl.py: Likewise.
5490 * grub-core/Makefile.am: Likewise.
5491 * grub-core/genmod.sh.in: Likewise.
5492 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5495 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5497 * configure.ac: Remove -Wempty-body. It's not essential and needs
5500 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5502 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5503 * util/getroot.c: Likewise.
5505 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5507 * grub-core/disk/ahci.c: Add needed explicit cast.
5508 * grub-core/lib/backtrace.c: Likewise.
5509 * grub-core/net/ip.c: Likewise.
5510 * grub-core/net/tcp.c: Likewise.
5511 * grub-core/net/udp.c: Likewise.
5513 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5515 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5517 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5519 * util/import_gcry.py: Add final newline in visibility.h.
5521 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5523 * conf/Makefile.common: Fix typo.
5525 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5527 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5529 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5531 * Makefile.am (widthspec.h): Fix typo.
5532 * util/grub-gen-widthspec.c: Likewise.
5534 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5536 Move ascii.h and widthspec.h generation to a separate build-time-only
5539 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5541 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5542 Always fill bootdisk info and improve check for NetBSD disklabel.
5544 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5546 * conf/Makefile.extra-dist: Add util/bin2h.c.
5547 Reported by: floppym.
5549 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5551 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5553 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5555 * configure.ac: Disable unifont and starfield if no freetype was found.
5557 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5559 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5560 on NetBSD and OpenBSD.
5562 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5564 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5566 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5568 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5569 reduced. Inheritant options are processed during the theme loading.
5571 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5573 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5575 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5577 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5579 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5581 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5584 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5586 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5587 remove-potcdate.sed.
5589 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5591 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5592 unused attribute from pull argument.
5594 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5596 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5599 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5601 * util/getroot.c (pull_lvm_by_command): add --separator option
5602 to vgs call to disable padding of output to 10 characters.
5604 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5606 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5608 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5611 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5613 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5616 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5618 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5619 full Canadian cross. Tested with build=x86_64, host=arm,
5620 target=ppc-ieee1275.
5622 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5624 * configure.ac: Error if no $BUILD_CC could be found.
5627 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5629 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5632 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5634 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5635 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5637 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5639 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5640 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5641 falling back to the partition device, otherwise a later call to this
5642 function may fail spuriously.
5643 Reported by Axel Beckert. Fixes Debian bug #708614.
5645 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5647 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5649 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5651 Prevent shadowing of stdlib's devname(3) on BSD.
5653 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5654 and devlast to diskname and disklast, respectively.
5656 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5658 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5660 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5662 * docs/grub.texi: Introduce terminal window position options:
5663 terminal-left: terminal window's left position
5664 terminal-top: terminal window's top position
5665 terminal-width: terminal window's width
5666 terminal-height: terminal window's height
5667 terminal-border: terminal window's border width
5668 * grub-core/gfxmenu/theme-loader.c: Likewise.
5669 * include/grub/gfxmenu_view.h: Likewise.
5670 * po/exlude.pot: Likewise.
5671 * grub-core/gfxmenu/view.c: Likewise.
5672 Also updated minimal window size.
5673 Also terminal_sanity_check function has been introduced.
5674 * grub-core/tests/checksums.h: Update (terminal window height
5675 is adjusted now for low resolution screen)
5677 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5679 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5682 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5684 * po/exclude.pot: Add few recent exceptions.
5686 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5688 * tests/grub_func_test.in: Add unicode.pf2.
5690 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5692 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5693 standard rather than noral color, in line with other terminals.
5695 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5697 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5700 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5702 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5704 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5706 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5707 inappropriate printf.
5709 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5711 * .bzrignore: Remove grub-core/lib/dtc-grub,
5712 grub-core/Makefile.libfdt.def
5713 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5715 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5717 * include/grub/video.h (grub_video_register): Keep double-linked as
5718 well as single-linked invariants.
5719 Reported by: qwertial.
5721 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5723 * grub-core/commands/nativedisk.c (get_uuid): Handle
5724 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5726 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5728 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5729 maximum of NW, N, NE heights instead of N's height and maximum of
5730 NW, W, SW widths instead of W's width. (So the box will be always
5733 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5735 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5736 Fix misuse of variable count.
5738 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5739 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5740 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5742 New ports to arm-uboot and arm-efi.
5743 Mostly by Leif Lindholm with some additions from
5744 Francesco Lavra and cleanup by Vladimir Serbinenko.
5746 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5748 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5750 Reported by: Leon Drugi.
5752 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5754 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5755 Reported by: Paulo Flabiano Smorigo.
5757 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5759 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5761 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5763 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5765 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5767 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5769 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5771 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5773 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5775 * grub-core/net/bootp.c: Export net_* variables.
5776 * grub-core/net/net.c: Likewise.
5778 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5780 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5782 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5784 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5786 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5788 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5790 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5792 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5794 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5796 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5799 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5801 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5804 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5806 * grub-core/fs/zfs/zfs_lz4.c: New file.
5807 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5809 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5811 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5813 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5815 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5816 (check_pool_label): Likewise.
5817 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5819 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5821 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5823 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5825 * docs/grub.texi (Commands): Document postition parameters
5826 for menuentry command.
5828 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5830 * util/grub-mknetdir.in: Remove stray line from help output.
5832 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5834 Remove early sm712 init as there is no reason for it (the "watchdog"
5835 effect was due to wrong GPIO map).
5837 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5839 * grub-core/commands/pcidump.c: Remove static variables.
5841 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5843 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5845 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5847 * configure.ac: Move delimiter after the infos.
5849 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5851 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5853 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5855 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5856 not filling whole 8x16 space.
5858 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5860 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5862 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5864 * configure.ac: Indicate which liblzma is used if any.
5866 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5867 2013-06-21 Craig Sanders <savannah@taz.net.au>
5869 * util/grub-reboot.in: Document submenu usage.
5871 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5873 * .bzrignore: Update with a number of new test-related files.
5875 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5877 * util/grub-script-check.c: Fail on scripts containing no
5878 commands, to guard against corrupted grub-mkconfig setups that
5879 produce no useful output.
5880 * tests/grub_script_no_commands.in: New test.
5881 * Makefile.util.def (grub_script_no_commands): Add.
5882 Reported by Hans Putter. Fixes Debian bug #713886.
5884 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5886 * grub-core/disk/diskfilter.c: Forgot to remove comment
5887 from previous commit.
5889 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5891 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5892 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5894 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5896 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5898 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5900 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5901 rescan diskfilter devices until nothing new is found.
5903 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5905 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5907 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5909 Don't try to detect cbfs on *-emu.
5911 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5913 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5915 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5917 Add support for processed coreboot payload chainloading.
5919 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5921 Enable coreboot information commands even when not loaded as
5922 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5924 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5926 Support for cbfs. Also factor out the part which is common
5927 for all archives to a separate module. This splits tar from cpio
5928 as they are very different but keeps cpio, cpio_be, odc and newc
5929 together since they're very similar.
5931 2013-06-15 David Michael <fedora.dm0@gmail.com>
5933 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5934 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5936 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5938 * tests/grub_script_eval.in: Really add the eval test.
5940 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5942 Move flavour-specific parts out of common cpio.c file and
5943 rename remaining to cpio_common.c
5945 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5947 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5948 off new function grub_script_execute_new_scope. Change callers to use
5949 either of them as appropriate.
5950 * grub-core/commands/eval.c: New command eval.
5951 * docs/grub.texi (Commands): Document it.
5953 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5955 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5956 to fetch values when listing.
5958 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5960 Fix make dist on non-pc.
5962 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5964 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5965 without a device name.
5967 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5969 Remove enable_executable_check as it's not needed anymore.
5970 Reported by: dougray.
5972 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5974 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5975 ambigouos RAID before discovering RAIDs on top of it.
5978 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5980 Fix typo (failback vs fallback).
5982 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5984 * util/grub.d/30_os-prober.in: Add support for probing EFI
5985 System Partition (as of os-prober 1.58).
5987 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5989 * configure.ac: Add yet another path to unifont. For parabola.
5991 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5993 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5994 handling to copy the killed characters to the kill buffer as
5995 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5996 stored as char. Eliminates UCS4 truncation and corruption
5997 observed when killing characters with Ctrl-u and yanking them
6000 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6002 Detach optional parts of gfxterm and integrate in with coreboot init.
6004 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6006 Move blit and fill dispatcher to appropriate files to decrease export
6007 and relocation overhead.
6009 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6011 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6014 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6016 * grub-core/Makefile.am: Fix compilation problem with some
6019 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6021 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6023 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6025 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6028 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6030 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6033 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6035 * grub-core/partmap/dfly.c: New partition map.
6037 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6039 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6041 Reported by: Francesco Lavra.
6043 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6045 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6046 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6048 * conf/Makefile.common: define dist_grubconf_DATA
6050 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6052 Progressively skip menu elements on small terminals rather
6055 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6057 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6058 to avoid losing last column.
6060 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6062 * po/exclude.pot: Add missing string "%C".
6064 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6066 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6069 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6071 * util/grub-install.in: Gettextize "Not found" message.
6073 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6076 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6078 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6080 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6082 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6084 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6086 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6088 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6090 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6091 attribute since structure is not necessarily aligned.
6093 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6095 * docs/grub.texi (Device syntax): Clarify description of network
6098 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6100 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6101 for vasprintf presence.
6103 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6105 * util/grub-install.in: Handle efibootmgr presence check.
6106 Reported by: Leif Lindholm.
6108 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6110 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6111 new strings to translate.
6113 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6115 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6116 yet another string (pun intended) to translate.
6118 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6120 * po/POTFILES-shell.in: Autogenerate it.
6122 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6124 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6126 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6128 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6131 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6133 * docs/grub.texi (Network): Add description of net_default_interface,
6134 net_default_ip and net_default_mac. Rewrite variables description
6135 to emphasize that they are per-interface.
6137 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6139 New test: cmdline and cat.
6141 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6143 * grub-core/commands/cat.c: Show UTF-8 characters.
6145 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6147 * conf/Makefile.common: Poison float and double on non-emu.
6149 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6151 * configure.ac: Don't disable extended registers on emu.
6153 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6155 * configure.ac: Don't use extended registers on x86_64.
6156 Reported by: Peter Jones.
6158 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6160 * grub-core/term/efi/console.c: Fix compile error.
6162 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6164 Compressed HFS+ support.
6166 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6168 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6171 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6175 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6177 * grub-core/tests/setjmp_test.c: New test.
6179 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6181 New variables 'net_default_*' to determine MAC/IP of default interface.
6183 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6185 * tests/gettext_strings_test.in: A test to check for strings not
6186 marked for translation.
6188 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6190 * autogen.sh: Exclude unused libgcrypt files from translation.
6192 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6194 Simplify few strings.
6196 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6198 Mark few forgotten strings for translation.
6200 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6202 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6205 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6207 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6209 * grub-core/video/readers/tga.c: Likewise.
6211 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6213 * tests/priority_queue_unit_test.cc: New test.
6215 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6217 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6220 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6222 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6223 variable for one time boot menu entry.
6225 2013-05-05 Bean <bean123ch@gmail.com>
6227 * grub-core/commands/testspeed.c: New command testspeed.
6229 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6231 Factor-out human-size printing.
6233 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6235 Agglomerate more mallocs to speed-up gfxterm.
6237 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6239 Speed-up gfxterm by slightly agglomerating mallocs.
6241 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6245 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6247 Speed-up gfxterm by saving intermediate results in index+alpha
6250 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6252 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6255 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6257 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6258 line of timeout as it may contain the rest of long line.
6260 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6262 * grub-core/normal/main.c: Fix freed memory dereference.
6264 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6266 Fix several memory leaks.
6268 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6270 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6272 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6274 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6276 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6278 Fix test -a and -o precedence.
6279 Reported by: adrian15.
6281 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6283 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6285 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6287 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6288 and add it as source to functional_test module.
6290 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6292 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6294 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6296 New series of tests for gfxterm and gfxmenu.
6298 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6300 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6301 the theme path relative to $prefix/themes.
6303 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6305 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6307 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6309 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6311 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6314 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6316 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6317 grub_gfxmenu_timeout_notifications.
6318 (grub_gfxmenu_view_destroy): Likewise.
6320 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6322 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6324 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6326 Several fixes to ieee1275 and big-endian video.
6328 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6330 Add missing exports on mips.
6332 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6334 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6335 if no unifont is found.
6336 Restore original keyboard.
6338 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6340 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6341 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6343 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6345 First automated video test (running videotest and comparing results)
6347 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6349 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6350 instead of 2 to have full RGB/CMY test pattern.
6352 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6356 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6358 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6359 ARCS. All users updated.
6361 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6363 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6365 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6367 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6369 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6371 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6372 Reported by: qwertial.
6374 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6376 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6377 with syntax "XXX deg"/"XXX °".
6379 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6381 Make PCI init in i386-qemu port more robust.
6383 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6385 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6386 cached view is reused.
6387 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6390 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6392 Unify more code in grub-install_header.
6394 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6398 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6400 Enforce disabling of firmware disk drivers when native drivers kick in.
6402 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6404 * grub-core/commands/nativedisk.c: Customize the list of modules on
6405 platform. Don't try to search for disks already using native drivers.
6407 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6409 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6412 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6414 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6415 handling of variables containing backslash.
6417 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6419 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6421 Reported by: qwertial.
6423 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6425 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6427 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6429 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6431 Reported by: qwertial.
6433 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6435 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6437 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6439 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6441 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6443 New command `nativedisk'.
6445 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6447 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6448 * grub-core/loader/i386/bsd.c: Likewise.
6450 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6452 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6454 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6456 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6457 grub_get_unaligned16 rather than shifts.
6459 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6461 * grub-core/kern/file.c: Use const char * rather than casting to
6464 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6466 * grub-core/commands/probe.c: Add missing grub_device_close.
6468 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6470 * INSTALL: Document linguas.sh.
6472 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6474 Remove POTFILES.in and regenerate it in autogen.sh.
6476 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6478 Move --directory/--override-directorry to grub-install_header and unify.
6480 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6482 * grub-core/term/morse.c: Macroify dih and dah.
6484 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6486 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6488 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6490 * grub-core/term/ns8250.c: Systematically probe ports by writing
6491 to SR before using them.
6493 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6495 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6497 (check_sas): Get sas_adress info.
6499 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6501 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6504 2013-04-27 Leon Drugi <eyak>
6506 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6509 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6511 Core compression test.
6513 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6515 Implement grub_machine_get_bootlocation for ARC.
6517 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6519 Improve AHCI detection and command issuing.
6521 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6525 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6527 Make 'make check' work on emu.
6529 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6531 Replace libcurses with our own vt100 handling for the ease of testing
6532 and decreasing prerequisites.
6534 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6536 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6538 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6540 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6541 compile when not needed.
6543 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6545 * tests/pseries_test.in: New test.
6547 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6549 Add test to check that different boot mediums work.
6551 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6553 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6554 ofw limited ISO support.
6556 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6558 * configure.ac: Fix loongson conditional.
6560 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6564 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6566 Add serial on ARC platform.
6568 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6570 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6573 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6575 * tests/partmap_test.in: Add missing double semicolon.
6577 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6579 * util/grub-mkrescue.in: Fix loongson filename.
6581 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6583 * util/grub-mkrescue.in: Move all files that don't have a location
6584 set in stone under /boot/grub. Use ISO hard links rather than copies
6587 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6589 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6592 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6594 Make check work on mips-arc.
6596 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6598 * util/grub-mkrescue.in: Alias sashARCS as sash.
6600 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6602 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6605 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6607 * util/grub-install.in: Fix target fo qemu_mips.
6608 Fix extension on EFI.
6610 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6612 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6613 in front of chosen entry to mark it even if highlighting is lost.
6615 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6617 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6618 gfxpayload=keep if cbfb is active.
6620 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6622 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6624 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6626 Add missing video ids to coreboot and ieee1275 video.
6628 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6630 * util/grub-mkrescue.in: Add mips-arc support.
6632 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6634 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6636 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6638 Move mips-arc link address. Previous link address was chosen
6639 in belief that RAM on SGI platforms grows down while in fact it
6640 grows up from an unusual base.
6642 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6644 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6645 Fix a type which prevented CD-ROM and floppy boot.
6647 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6649 Support coreboot framebuffer.
6651 * grub-core/video/i386/coreboot/cbfb.c: New file.
6653 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6655 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6656 detecting too small regions.
6658 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6660 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6662 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6664 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6666 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6668 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6670 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6671 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6672 * grub-core/loader/powerpc/ieee1275/linux.c
6673 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6675 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6677 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6678 Look for /boot-rom as well as /rom/boot-rom.
6680 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6682 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6683 handling when creating text_layer failed.
6684 * grub-core/video/video.c (grub_video_create_render_target):
6685 Set result to 0 on error.
6686 (grub_video_delete_render_target): Do not dereference NULL.
6688 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6690 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6691 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6692 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6693 (grub_linux_load64): Mask out 2 high bits.
6695 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6697 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6700 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6702 Add support for pseries and other bootinfo machines to grub-mkrescue.
6704 Tested by: Paulo Flabiano Smorigo.
6706 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6708 * util/grub-mkrescue.in: Add GPT for EFI boot.
6710 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6712 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6713 It improves performance in qemu.
6715 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6717 * build-aux/snippet: Add missing gnulib files.
6719 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6721 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6723 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6725 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6727 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6728 2013-04-15 Peter Jones <pjones@redhat.com>
6730 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6732 Based on patch by Peter Jones.
6734 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6736 Fix DMRAID partition handling.
6738 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6740 * tests/grub_cmd_date.in: Skip on sparc64.
6742 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6744 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6745 firmware error messages.
6747 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6749 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6750 source and destination differ.
6752 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6754 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6757 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6759 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6760 match config-util.h to avoid warnings and increase compatibility.
6762 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6763 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6765 Add option to compress files on install/image creation.
6767 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6769 * docs/grub-dev.texi: Rearrange menu to match the section order.
6770 Reported by: Bryan Hundven.
6772 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6774 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6776 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6778 Move GRUB out of system area when using xorriso 1.2.9 or later.
6780 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6782 * tests/grub_cmd_date.in: Add missing exit 1.
6784 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6786 * tests/partmap_test.in: Skip on sparc64.
6788 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6790 Support grub-shell on sparc64.
6792 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6794 Support mkrescue on sparc64.
6796 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6798 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6799 Needed on OpenBIOS due to incomplete device tree.
6801 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6803 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6804 would be otherwise excluded.
6806 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6808 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6809 Inline name defines used only once.
6811 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6813 Fix memory leaks in ofnet.
6814 Reported by: Francesco Lavra.
6816 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6818 * docs/man/grub-glue-efi.h2m: Add missing file.
6820 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6822 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6824 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6826 Better support Apple Intel Macs on CD.
6828 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6830 Replace stpcpy with grub_stpcpy in tools.
6832 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6834 Handle Japanese special keys.
6835 Reported by: Hiroyuki YAMAMORI.
6836 Codes supplied by: Hiroyuki YAMAMORI.
6838 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6840 * util/grub-mkimage.c: Document memdisk implying --prefix.
6842 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6844 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6845 much we can do about it anyway.
6847 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6849 Fix handling of split transfers.
6851 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6853 * grub-core/net/http.c: Fix bad free.
6855 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6857 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6860 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6862 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6864 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6866 * tests/util/grub-shell.in: Fix it on powerpc.
6868 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6870 Turn off QEMU ACPI-way since new releases don't have shutdown port
6873 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6875 * docs/grub.texi: Update coreboot status info.
6877 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6879 * tests/grub_cmd_date.in: New test for datetime.
6881 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6883 * tests/partmap_test.in: Fix missing qemudisk setting.
6885 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6887 Support i386-ieee1275 grub-mkrescue and make check on it.
6889 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6891 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6894 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6896 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6897 GRUB_CMDLINE_XEN_DEFAULT.
6898 Reported by: Marc Warne (GigaTux) <gigatux>
6900 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6904 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6906 Use ACPI shutdown intests as traditional port was removed.
6908 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6910 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6913 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6915 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6916 Fix few warining messages and leaks while on it.
6918 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6920 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6921 links under grub-core/lib/libgcrypt-grub/mpi.
6923 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6925 Fix ia64-efi image generation on big-endian machines. Deduplicate
6926 some code while on it.
6927 Reported by: Leif Lindholm.
6929 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6931 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6934 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6936 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6938 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6940 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6943 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6945 * grub-core/normal/term.c: Few more fixes for menu entry editor
6947 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6949 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6951 * grub-core/normal/term.c: Few more fixes for menu entry editor
6953 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6955 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6957 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6958 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6960 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6962 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6963 instead of hardcoding grub.mo.
6965 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6967 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6969 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6971 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6972 grub-core/disk/geli.c.
6974 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6976 * util/grub-mkfont.c: Prefer enum to #define.
6978 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6980 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6982 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6984 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6986 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6988 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6990 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6992 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6994 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6996 * include/grub/bsdlabel.h: Use enums.
6998 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7000 Move GRUB_CHAR_BIT to types.h.
7002 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7004 * docs/grub.texi: Document more user commands.
7006 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7008 * docs/grub.texi: Document menuentry --id option.
7010 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7012 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7014 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7016 Unify file copying setup across different install scripts. Add
7017 options for performing partial install.
7019 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7020 2013-04-04 Peter Jones <pjones@redhat.com>
7022 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7024 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7026 Use TSC as a possible time source on i386-ieee1275.
7028 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7030 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7033 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7035 * util/grub-setup.c (setup): Handle some corner cases.
7037 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7039 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7041 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7043 * grub-core/commands/verify.c: Save verified file to avoid it being
7044 tampered with after verification was done.
7046 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7048 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7049 reported width by one to compensate for curesor algorithm problem.
7051 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7053 Fix screen corruption in menu entry editor and simplify the code
7056 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7058 * util/grub-mount.c (fuse_init): Return error if fuse_main
7061 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7063 * include/grub/elf.h: Add missing ARM relocation codes and fix
7066 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7068 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7070 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7071 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7073 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7074 into account when calculating radius.
7076 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7078 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7080 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7082 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7084 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7086 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7087 missing closing bracket.
7089 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7091 * INSTALL: Mention xorriso requirement.
7093 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7095 * grub-core/commands/verify.c: Fix hash algorithms values for
7096 the first three hashes - they start with 1, not with 0.
7098 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7100 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7101 Try terminating EFI services several times due to quirks in some
7104 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7106 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7107 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7108 BankField extended opcodes.
7109 (get_sleep_type): Add minimal scope handling (just enough to
7110 handle setting the scope to the root path).
7111 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7112 * include/grub/acpi.h: Add enumeration values for Event, Device,
7113 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7115 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7117 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7120 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7122 * grub-core/disk/ahci.c: Give more time for AHCI request.
7124 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7126 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7129 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7131 Replace the region at 0 from coreboot tables to available in BSD
7134 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7136 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7139 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7141 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7144 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7146 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7147 handling of multi-device filesystems.
7149 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7151 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7154 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7156 Add new 'proc' filesystem framework and put luks_script into it.
7158 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7160 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7163 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7165 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7167 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7169 Add ability to generate newc additions on runtime.
7171 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7173 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7176 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7178 * po/POTFILES.in: Regenerate.
7180 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7182 * grub-core/commands/verify.c (hashes): Add several hashes
7185 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7187 Slight improve in USB-related boot-time checkpoints.
7189 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7191 * grub-core/commands/boottime.c: Fix copyright header.
7193 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7195 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7196 coreboot tables content. Support for cbmemc.
7198 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7200 Fix a conflict between ports structures with 2 controllers of
7203 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7205 * include/grub/boottime.h: Add missing file.
7207 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7209 Initialize USB ports in parallel to speed-up boot.
7211 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7213 Fix USB devices not being detected when requested
7214 due to delayed attach.
7216 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7218 Implement boot time analysis framework.
7220 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7222 Remove get_endpoint_descriptor and change all functions needing
7223 descriptor to just receive it as argument rather than endpoint
7226 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7228 Better estimate the maximum USB transfer size.
7230 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7232 Resend a packet if we got the wrong buffer in status.
7234 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7236 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7237 multiplication rather than division.
7239 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7241 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7244 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7246 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7247 operations to have intended shifts and not divisions.
7249 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7251 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7252 intended shifts rather than division.
7254 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7256 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7257 computation for some years before epoch. Avode confusing division
7260 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7262 * grub-core/video/i386/pc/vbe.c
7263 (grub_video_vbe_print_adapter_specific_info): Replace division by
7266 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7268 Adjust types in gdb module to have intended unsigned shifts rather than
7271 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7273 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7274 maximum size is 4G - 1 on hfs
7276 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7278 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7280 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7282 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7285 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7287 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7288 causing gcc error with gcc 4.7.1.
7290 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7292 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7293 dereference null pointer. While the code is technically correct, gcc
7294 may eliminate a null check if pointer is already dereferenced.
7296 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7298 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7300 * grub-core/normal/term.c (read_terminal_list): Likewise.
7302 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7304 Lift up core size limits on some platforms. Fix potential memory
7305 corruption with big core on small memory systems. Document remaining
7308 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7310 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7313 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7315 Remove all trampoline support. Add -Wtrampolines when
7316 present. Remove symbols used for trampolines to make
7317 link fail if trampolines are present.
7319 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7321 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7322 append out of its parent.
7324 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7326 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7329 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7331 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7332 all vars to a macro. All users updated.
7334 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7336 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7339 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7341 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7343 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7345 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7347 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7349 Move to more hookless approach in IEEE1275 devices handling.
7351 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7353 * grub-core/kern/term.c (grub_term_normal_color),
7354 (grub_term_highlight_color): Add back lost defaults.
7356 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7358 Make elfload not use hooks. Opt for flags and iterators instead.
7360 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7362 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7363 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7365 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7367 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7369 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7372 hook pass-through parameter. All users updated and unnested.
7374 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7376 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7379 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7381 * grub-core/fs/hfs.c: Remove nested functions.
7383 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7385 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7386 the context through.
7387 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7389 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7391 * util/grub-editenv.c (list_variables): Move print_var out of its
7394 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7396 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7399 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7401 * grub-core/gentrigtables.c: Make tables const.
7403 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7405 Remove nested functions from videoinfo iterators.
7407 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7409 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7410 for 64-bit platforms.
7412 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7414 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7415 a FOR_CHILDREN macro.
7417 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7419 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7420 platform from firmware path.
7422 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7424 Enable linux16 on non-BIOS systems for i.a. memtest.
7426 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7428 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7430 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7432 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7433 Fix end of table condition.
7435 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7437 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7440 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7442 * grub-core/fs/jfs.c: Remove nested functions.
7444 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7446 * grub-core/fs/minix.c: Remove nested functions.
7448 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7450 * grub-core/fs/iso9660.c: Remove nested functions.
7452 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7454 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7457 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7459 * util/grub-fstest.c: Remove nested functions.
7461 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7463 * grub-core/loader/machoXX.c: Remove nested functions.
7465 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7467 Remove nested functions from disk and file read hooks.
7469 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7470 (struct grub_disk): Add read_hook_data member.
7471 * include/grub/file.h (struct grub_file): Likewise.
7472 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7477 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7479 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7480 Fix off by one error in enumerating extended partitions.
7482 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7484 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7485 memory leak if device name is not found.
7487 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7489 * grub-core/normal/menu_entry.c (update_screen): remove
7490 unused variable `off' which caused scroll down arrow to be always shown.
7492 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7494 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7495 access to unallocated memory.
7497 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7499 * Makefile.util.def: Add partmap/msdos.c to common library.
7500 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7501 * grub-core/disk/ldm.c: Check for existence of
7502 GRUB_PC_PARTITION_TYPE_LDM.
7504 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7506 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7507 sizes and display sector size.
7509 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7511 Implement new command cmosdump.
7513 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7515 Support Openfirmware disks with non-512B sectors.
7517 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7519 * (grub_ofdisk_get_block_size): New function.
7520 * (grub_ofdisk_prepare): Use the correct block size.
7521 * (grub_ofdisk_read): Likewise.
7522 * (grub_ofdisk_write): Likewise.
7523 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7526 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7528 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7530 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7532 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7535 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7537 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7540 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7542 Implement USBDebug (full USB stack variant).
7544 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7546 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7547 unless they have unexpected values.
7549 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7554 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7556 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7557 zero-out of port structure.
7559 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7561 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7562 of extended attributes.
7564 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7566 * util/grub-install.in: change misleading comment about
7569 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7571 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7572 when menu highlight color isn't set.
7574 2013-01-27 C. Masloch <pushbx@38.de>
7576 Improve FreeDOS direct loading support compatibility.
7578 * include/grub/i386/relocator.h (grub_relocator16_state):
7580 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7582 (grub_relocator16_boot): Handle %ebp.
7583 * grub-core/lib/i386/relocator16.S: Likewise.
7584 * grub-core/loader/i386/pc/freedos.c:
7585 Load BPB to pass kernel which partition to load from.
7586 Check that kernel file is not too large.
7587 Set register dl to BIOS unit number as well.
7589 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7591 * util/grub-reboot.in (usage): Document the need for
7593 * util/grub-set-default.in (usage): Likewise.
7594 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7596 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7598 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7599 than defining WORDS_BIGENDIAN manually.
7601 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7603 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7606 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7608 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7610 (blit_comb: add_device_width): Likewise.
7612 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7614 Remove nested functions from USB iterators.
7616 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7617 (grub_usb_controller_iterate_hook_t): Likewise.
7618 (grub_usb_iterate): Add hook_data argument.
7619 (grub_usb_controller_iterate): Likewise.
7620 (struct grub_usb_controller_dev.iterate): Likewise.
7622 Update all implementations and callers.
7624 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7626 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7627 margin when not needed.
7629 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7631 Make color variables global instead of it being per-terminal.
7633 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7635 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7638 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7640 Fix powerpc and sparc64 build failures caused by un-nesting memory
7643 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7645 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7646 parameter declarations.
7648 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7650 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7652 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7654 Improve spkmomdem reliability by adding a separator between bytes.
7656 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7658 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7659 an Acer registration utility with several sightings in the wild.
7660 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7662 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7664 Remove nested functions from filesystem directory iterators.
7666 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7667 (struct grub_fs.dir): Add hook_data argument.
7669 Update all implementations and callers.
7671 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7673 * docs/grub.texi (Multi-boot manual config): Fix typo for
7676 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7678 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7679 until after its use in generate_image.
7681 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7683 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7684 initrd size to addr_min, since the initrd will be allocated after
7687 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7689 * conf/Makefile.common: Fix autogen rules to pass definition
7690 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7692 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7694 * include/grub/elf.h: Update ARM definitions based on binutils.
7696 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7698 Split long USB transfers into short ones.
7700 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7702 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7703 is interrupted by ESC.
7705 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7707 * util/grub-script-check.c (main): Uniform the error message.
7709 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7711 Remove nested functions from ELF iterators.
7713 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7715 Remove nested functions from device iterators.
7717 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7718 (grub_arc_iterate_devs): Add hook_data argument.
7719 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7720 (struct grub_ata_dev.iterate): Add hook_data argument.
7721 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7722 (grub_device_iterate): Add hook_data argument.
7723 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7724 (struct grub_disk_dev.iterate): Add hook_data argument.
7725 (grub_disk_dev_iterate): Likewise.
7726 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7728 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7730 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7732 (struct grub_partition_map.iterate): Add hook_data argument.
7733 (grub_partition_iterate): Likewise.
7734 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7735 (struct grub_scsi_dev.iterate): Add hook_data argument.
7739 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7741 Fix typos for "developer" and "development".
7743 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7745 Add license header to spkmodem-recv.c.
7747 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7749 Rewrite spkmodem to use PIT for timing. Double the speed.
7751 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7753 Add new command pcidump.
7755 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7757 New terminal outputs using serial: morse and spkmodem.
7759 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7761 Improve bidi handling in entry editor.
7763 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7765 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7766 argument to prevent name collision.
7768 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7770 Remove nested functions from script reading and parsing.
7772 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7773 getline_data argument, passed to getline.
7774 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7775 getline_data argument, passed to grub_parser_split_cmdline.
7776 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7777 lexerstate->getline_data to lexerstate->getline.
7778 (grub_script_lexer_init): Add getline_data argument, saved in
7779 lexerstate->getline_data.
7780 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7781 argument, passed to grub_script_parse.
7782 * grub-core/script/script.c (grub_script_parse): Add getline_data
7783 argument, passed to grub_script_lexer_init.
7784 * include/grub/parser.h (grub_parser_split_cmdline): Update
7785 prototype. Update all callers to pass appropriate getline data.
7786 (struct grub_parser.parse_line): Likewise.
7787 (grub_rescue_parse_line): Likewise.
7788 * include/grub/reader.h (grub_reader_getline_t): Add void *
7790 * include/grub/script_sh.h (struct grub_lexer_param): Add
7791 getline_data member.
7792 (grub_script_parse): Update prototype. Update all callers to pass
7793 appropriate getline data.
7794 (grub_script_lexer_init): Likewise.
7795 (grub_normal_parse_line): Likewise.
7797 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7799 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7800 static instead of nested. Rename to ...
7801 (grub_parser_execute_getline): ... this.
7802 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7804 * grub-core/normal/main.c (read_config_file: getline): Make static
7805 instead of nested. Rename to ...
7806 (read_config_file_getline): ... this.
7807 (grub_normal_read_line): Add unused data argument.
7808 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7809 getline): Make static instead of nested. Rename to ...
7810 (grub_script_execute_sourcecode_getline): ... this.
7811 * util/grub-script-check.c (main: get_config_line): Make static
7814 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7816 Remove nested functions from memory map iterators.
7818 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7819 argument, passed to hook.
7820 * grub-core/kern/i386/coreboot/mmap.c
7821 (grub_linuxbios_table_iterate): Likewise.
7822 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7824 (grub_machine_mmap_iterate): Add hook_data argument.
7825 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7826 Add hook_data argument, passed to hook.
7827 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7829 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7831 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7833 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7835 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7837 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7839 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7840 (grub_machine_mmap_iterate): Likewise.
7841 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7842 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7844 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7845 Remove NESTED_FUNC_ATTR from here and from all users.
7846 (grub_mmap_iterate): Update prototype.
7847 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7848 pass appropriate hook data.
7849 (grub_machine_mmap_iterate): Likewise.
7851 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7852 static instead of nested.
7853 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7855 (lsmmap_hook): ... this.
7856 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7858 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7859 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7860 heap_init): Likewise.
7861 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7863 (mmap_iterate_hook): ... this.
7864 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7866 * grub-core/lib/ieee1275/relocator.c
7867 (grub_relocator_firmware_get_max_events: count): Likewise.
7868 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7870 (grub_relocator_firmware_fill_events_iter): ... this.
7871 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7872 hook): Likewise. Rename to ...
7873 (grub_relocator_alloc_chunk_align_iter): ... this.
7874 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7876 (generate_e820_mmap_iter): ... this.
7877 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7879 (count_hook): ... this.
7880 (grub_linux_boot: hook): Likewise. Rename to ...
7881 (grub_linux_boot_mmap_find): ... this.
7882 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7883 (grub_linux_boot_mmap_fill): ... this.
7884 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7885 hook): Likewise. Rename to ...
7886 (grub_fill_multiboot_mmap_iter): ... this.
7887 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7888 hook): Likewise. Rename to ...
7889 (count_hook): ... this.
7890 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7891 hook): Likewise. Rename to ...
7892 (grub_fill_multiboot_mmap_iter): ... this.
7893 * grub-core/loader/powerpc/ieee1275/linux.c
7894 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7895 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7896 Likewise. Rename to ...
7897 (alloc_phys_choose): ... this.
7898 (determine_phys_base: get_physbase): Likewise.
7899 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7900 find_hook): Likewise.
7901 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7902 (malloc_hook: count_hook): Likewise.
7903 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7904 Likewise. Rename to ...
7905 (lower_hook): ... this.
7906 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7907 (upper_hook): ... this.
7908 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7909 (post64_hook): ... this.
7910 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7911 Likewise. Rename to ...
7912 (lower_hook): ... this.
7913 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7914 (upper_hook): ... this.
7915 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7916 (grub_mmap_iterate: fill_hook): Likewise.
7917 (fill_mask): Pass addr and mask within a single struct.
7918 (grub_cmd_badram: hook): Make static instead of nested. Rename
7920 (badram_iter): ... this.
7921 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7922 (cutmem_iter): ... this.
7924 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7926 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7927 delimit path in strings using quotes.
7928 * util/getroot.c (grub_guess_root_devices): Likewise.
7929 (grub_make_system_path_relative_to_its_root): Likewise.
7930 * util/grub-probe.c (probe): Likewise.
7931 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7932 (xrealpath): Likewise.
7934 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7936 Fix compilation with older compilers.
7938 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7939 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7941 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7942 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7943 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7945 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7946 * include/grub/crypto.h: Add type defines.
7947 * util/import_gcrypth.sed: Remove duplicate type defines.
7949 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7951 New command list_trusted.
7953 * grub-core/commands/verify.c (grub_cmd_list): New function.
7955 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7957 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7960 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7962 Remove nested functions from PCI iterators.
7964 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7965 passed to hook. Update all callers to pass appropriate hook data.
7966 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7967 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7968 Remove NESTED_FUNC_ATTR from here and from all users.
7969 (grub_pci_iterate): Update prototype.
7970 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7971 instead of nested. Rename to ...
7972 (grub_cs5536_find_iter): ... this.
7973 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7974 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7976 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7978 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7980 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7982 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7983 * grub-core/video/radeon_fuloong2e.c
7984 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7985 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7986 find_card): Likewise.
7987 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7990 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7992 * grub-core/commands/verify.c: Mark messages for translating.
7994 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7996 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7999 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8001 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8004 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8006 * autogen.sh: Do not try to delete nonexistant files.
8007 * util/import_gcrypth.sed: Add some missing header removals.
8009 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8011 Clean up dangling references to grub-setup.
8012 Fixes Ubuntu bug #1082045.
8014 * docs/grub.texi (Images): Refer generally to grub-install rather
8015 than directly to grub-setup.
8016 (Installing GRUB using grub-install): Remove direct reference to
8018 (Device map) Likewise.
8019 (Invoking grub-install): Likewise.
8020 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8021 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8022 * util/grub-install.in (usage): Likewise.
8024 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8025 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8027 * configure.ac: Remove grub_setup output variable.
8029 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8031 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8032 grub-setup to grub-sparc64-setup.
8034 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8036 Import gcrypt public-key cryptography and implement signature checking.
8038 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8040 * grub-core/fs/ntfs.c: Ue more appropriate types.
8041 * grub-core/fs/ntfscomp.c: Likewise.
8042 * include/grub/ntfs.h: Likewise.
8044 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8046 Support Apple FAT binaries on non-Apple platforms.
8048 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8049 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8051 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8054 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8056 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8059 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8061 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8062 explicitly zeroing elements.
8063 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8064 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8065 of elements in a structure already allocated using grub_zalloc.
8066 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8068 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8070 * docs/grub.texi (grub_cpu): New subsection.
8071 (grub_platform): Likewise.
8073 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8075 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8077 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8079 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8082 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8084 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8085 * grub-core/fs/ntfscomp.c: Likewise.
8086 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8087 (grub_ntfs_comp): Likewise.
8089 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8091 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8093 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8094 of groups_per_block. All users updated.
8096 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8098 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8099 grub_error properly.
8100 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8101 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8103 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8105 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8106 always in /boot/zfs.
8107 Reported by: Yuta Satoh.
8109 2013-01-03 Yuta Satoh <nigoro>
8111 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8114 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8116 * configure.ac: Extend -Wno-trampolines to host.
8118 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8120 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8123 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8125 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8126 (Invoking grub-script-check): Likewise.
8128 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8130 * docs/grub.texi (Invoking grub-mount): New section.
8131 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8133 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8135 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8136 test failures, so that a failing unit test correctly causes 'make
8139 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8141 Fix failing printf test.
8143 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8144 '$' in the correct order when collecting type information.
8146 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8148 * docs/grub.texi (configfile): Explain environment variable
8150 (source): New section.
8151 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8153 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8155 Remove several trivially-unnecessary uses of nested functions.
8157 * grub-core/commands/i386/pc/sendkey.c
8158 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8160 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8162 (legacy_file_getline): ... this.
8163 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8165 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8166 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8168 (probe_dummy_iter): ... this.
8169 * grub-core/kern/i386/coreboot/mmap.c
8170 (grub_linuxbios_table_iterate: check_signature): Likewise.
8171 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8172 check_varstate): Likewise. Mark inline.
8173 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8174 an additional parameter.
8175 (find_long: fnd_long): Likewise. Pass two additional parameters.
8176 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8177 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8178 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8179 Likewise. Rename to ...
8180 (grub_cmos_find_port_iter): ... this.
8181 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8183 (find_rtc_iter): ... this.
8185 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8186 function directly into the function body, since it is only called
8189 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8191 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8192 __attribute__ ((unused)).
8193 * grub-core/video/bochs.c (find_card): Likewise.
8194 * grub-core/video/cirrus.c (find_card): Likewise.
8195 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8196 * grub-core/video/sis315pro.c (find_card): Likewise.
8197 * grub-core/video/sm712.c (find_card): Likewise.
8199 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8201 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8202 Fixes Savannah bug #37821.
8204 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8206 Apply program name transformations at build-time rather than at
8207 run-time. Fixes Debian bug #696465.
8209 * acinclude.m4 (grub_TRANSFORM): New macro.
8210 * configure.ac: Create output variables with transformed names for
8212 * util/bash-completion.d/grub-completion.bash.in: Use
8213 pre-transformed variables for program names.
8214 * util/grub-install.in: Likewise.
8215 * util/grub-kbdcomp.in: Likewise.
8216 * util/grub-mkconfig.in: Likewise.
8217 * util/grub-mkconfig_lib.in: Likewise.
8218 * util/grub-mknetdir.in: Likewise.
8219 * util/grub-mkrescue.in: Likewise.
8220 * util/grub-mkstandalone.in: Likewise.
8221 * util/grub-reboot.in: Likewise.
8222 * util/grub-set-default.in: Likewise.
8223 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8224 * tests/util/grub-shell-tester.in: Remove unused assignment.
8225 * tests/util/grub-shell.in: Likewise.
8226 * util/grub.d/00_header.in: Likewise.
8228 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8230 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8232 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8234 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8236 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8238 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8239 Reported by: Eriks Latosheks <foresterlv>.
8241 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8243 * docs/grub.texi (Network): Update instructions on generating netboot
8246 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8248 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8249 around device name if necessarry.
8251 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8253 * util/grub-install.in: Follow the symbolic link parameter added
8254 to the file command.
8256 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8258 * util/grub-install.in: Remove stale TODO.
8260 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8262 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8263 dynamic allocation for the bootpath buffer.
8265 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8267 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8270 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8272 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8273 argument rather than font name. All users updated.
8274 (grub_gfxterm_set_window): Likewise.
8276 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8278 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8281 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8283 * util/getroot.c (convert_system_partition_to_system_disk): Support
8286 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8288 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8289 infinite loop on corrupted FS.
8291 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8293 Fix big-endian mtime.
8295 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8296 together sec and usec.
8297 (grub_ufs_dir): Use correct byteswapping for UFS time.
8299 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8301 Support big-endian UFS1.
8303 * Makefile.util.def (libgrubmods): Add ufs_be.c
8304 * grub-core/Makefile.core.def (ufs1_be): New module.
8305 * grub-core/fs/ufs_be.c: New file.
8306 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8309 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8311 * include/grub/types.h: Fix functionality unaffecting typo in
8312 GRUB_TARGET_WORDSIZE conditional macro.
8314 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8316 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8318 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8320 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8321 that /netbsd appears first (when it exists).
8323 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8325 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8326 Fixes Savannah bug #37558.
8328 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8330 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8331 description of extract_entries_configfile.
8333 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8335 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8337 (grub_cmd_linux): Likewise.
8338 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8339 preferred_lifetime. Update all users.
8341 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8343 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8344 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8346 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8348 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8349 errors from grub-probe to /dev/null, not stdout.
8351 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8353 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8356 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8358 * util/grub-install.in: Make the error message if $source_dir
8359 doesn't exist more useful.
8361 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8363 Fix grub-emu build on FreeBSD.
8365 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8366 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8368 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8369 implementation is currently Linux-specific.
8370 * util/getroot.c (exec_pipe): Define only on Linux or when either
8371 libzfs or libnvpair is unavailable.
8372 (find_root_devices_from_poolname): Remove unused path variable.
8374 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8376 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8377 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8378 should fit before end == 63.
8380 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8382 * util/grub-setup.c (write_rootdev): Remove unused core_img
8383 parameter. Update all callers.
8384 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8385 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8388 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8390 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8391 (grub_add_tab): New function.
8392 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8393 * util/grub.d/10_illumos.in: Likewise.
8394 * util/grub.d/10_kfreebsd.in: Likewise.
8395 * util/grub.d/10_linux.in: Likewise.
8396 * util/grub.d/10_netbsd.in: Likewise.
8397 * util/grub.d/10_windows.in: Likewise.
8398 * util/grub.d/10_xnu.in: Likewise.
8399 * util/grub.d/20_linux_xen.in: Likewise.
8400 * util/grub.d/30_os-prober.in: Likewise.
8402 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8404 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8405 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8406 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8407 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8408 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8410 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8411 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8413 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8415 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8417 Reported by: BURETTE, Bernard.
8419 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8421 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8424 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8426 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8427 IEEE1275 machines. Fixes powerpc-emu compilation.
8428 * include/grub/terminfo.h: Likewise.
8430 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8432 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8434 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8436 (efiemu_set_variable): Make vendor_guid a const pointer.
8438 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8440 Don't require grub-mkconfig_lib to generate manpages for programs.
8442 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8443 dependencies, don't add grub-mkconfig_lib.
8444 (program): Pass empty adddeps.
8445 (script): Pass grub-mkconfig_lib as adddeps.
8447 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8449 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8450 * util/getroot.c (grub_find_device): Likewise.
8451 (get_mdadm_uuid): Likewise.
8452 (grub_util_is_imsm): Likewise.
8453 (grub_util_pull_device): Likewise.
8454 * util/grub-probe.c (probe): Likewise.
8456 2012-09-10 Benoit Gschwind <gschwind>
8458 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8459 (devs): Add devpath_8.
8461 2012-09-08 Peter Jones <pjones@redhat.com>
8463 * grub-core/Makefile.core.def (efifwsetup): New module.
8464 * grub-core/commands/efi/efifwsetup.c: New file.
8465 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8466 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8468 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8470 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8472 * configure.ac: Add SuSe path.
8474 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8478 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8480 * util/import_gcry.py: Sort cipher_files, to make build system
8481 generation more deterministic.
8483 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8485 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8486 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8487 (grub_set_datetime): Likewise.
8489 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8491 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8494 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8496 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8498 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8500 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8502 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8504 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8505 required for checkouts from bzr, but it may be useful for users or
8506 distributors wishing to update translations against a tarball
8507 distribution, and it can be helpful for the tarball to be a superset
8510 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8512 * Makefile.am (EXTRA_DIST): Add
8513 grub-core/tests/boot/linux.init-mips.S,
8514 grub-core/tests/boot/linux.init-ppc.S, and
8515 grub-core/tests/boot/linux-ppc.cfg.
8517 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8519 * grub-core/mmap/mips/loongson: Remove empty directory.
8521 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8523 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8526 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8528 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8531 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8533 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8535 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8537 * po/POTFILES.in: Regenerated.
8539 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8541 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8542 (NetBSD): New subsection.
8544 2012-07-22 Ales Nesrsta <starous@volny.cz>
8546 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8547 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8549 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8551 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8552 * util/grub.d/10_hurd.in: Add missing quoting.
8553 * util/grub.d/10_illumos.in: Likewise.
8554 * util/grub.d/10_kfreebsd.in: Likewise.
8555 * util/grub.d/10_linux.in: Likewise.
8556 * util/grub.d/20_linux_xen.in: Likewise.
8558 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8560 New command `lsefi'.
8562 * grub-core/Makefile.core.def (lsefi): New module.
8563 * grub-core/commands/efi/lsefi.c: New file.
8564 * include/grub/efi/api.h: Add more GUIDs.
8566 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8568 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8569 (grub_bsd_elf32_hook): Likewise.
8570 (grub_bsd_elf64_size_hook): Likewise.
8571 (grub_bsd_elf64_hook): Likewise.
8572 (grub_bsd_load_elf): Likewise.
8574 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8576 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8577 if hash function is unavailable.
8578 (dec_stream_header): Likewise.
8580 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8582 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8585 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8587 Fix coreboot compilation.
8589 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8590 (grub_vga_text_init_real): ... this.
8591 (grub_vga_text_fini): Rename to ...
8592 (grub_vga_text_fini_real): ... this.
8594 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8596 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8598 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8600 * grub-core/lib/legacy_parse.c: Support clear and testload.
8602 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8604 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8606 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8608 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8610 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8612 * grub-core/net/tftp.c (ack): Fix endianness problem.
8613 (tftp_receive): Likewise.
8614 Reported by: Michael Davidsaver.
8616 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8618 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8620 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8622 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8623 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8624 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8626 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8628 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8630 Reported by: Stuart Hayes.
8632 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8634 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8636 * grub-core/Makefile.core.def (mda_text): New module.
8637 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8638 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8639 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8640 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8642 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8643 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8644 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8646 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8648 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8650 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8652 * grub-core/term/i386/vga_common.c: Removed.
8653 * include/grub/i386/vga_common.h: Likewise.
8654 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8655 (grub_vga_cr_bw_read): Likewise.
8656 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8657 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8658 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8659 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8660 grub_vga_cr_read/grub_vga_cr_write.
8661 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8663 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8665 * configure.ac: Bump version to 2.00.
8666 * grub-core/normal/main.c (features): Add feature_200_final.
8668 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8669 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8671 * NEWS: Fix unclarity and language mistakes.
8673 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8675 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8676 additional size to 3 pages.
8677 Reported by: Stuart Hayes.
8679 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8681 * NEWS: Add 2.00 entry.
8683 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8685 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8686 put explicit "/" for empty path.
8687 (wildcard_expand): Improve dprintf.
8689 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8691 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8692 it's equal to currnode. This can happen with "" symlink.
8694 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8696 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8697 echo shell command by printf command.
8699 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8701 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8702 the value returned by firmware is the maximal position, not diumension.
8703 (grub_terminfo_output_state): Use a more sane fallback.
8705 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8707 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8709 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8711 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8712 frequency to 150 MHz.
8714 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8718 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8720 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8722 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8724 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8726 Handle slash in HFS label.
8728 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8729 (grub_hfs_dir): Tanslate slash.
8730 (grub_hfs_label): Don't translate slash.
8732 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8734 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8735 network protocol listing since it introduces problematic dependency on
8738 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8740 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8742 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8744 Init video early on yeeloong to avoid being rebooted by watchdog.
8746 * grub-core/Makefile.am (gensm712): New target.
8747 (sm712_start.S): Likewise.
8748 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8749 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8750 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8752 * include/grub/vga.h: Move registry definitions to...
8753 * include/grub/vgaregs.h: ... here.
8755 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8757 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8760 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8762 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8763 platforms with firmware disk drivers in the core.
8765 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8767 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8768 informative verbose message.
8769 (read_lv): Handle 64-bit segment size.
8771 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8773 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8775 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8777 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8778 character but still remove trainling spaces.
8779 (grub_fat_label): Ignore archive flag.
8781 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8783 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8784 cast between linux_kernel_header and linux_kernel_params.
8786 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8788 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8790 (grub_raid6_recover_func_t): Likewise.
8791 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8792 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8794 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8796 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8798 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8802 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8803 [__NetBSD__]: Add explicit cast before bitshift.
8805 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8807 * configure.ac: Bump to 2.00~rc1.
8809 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8811 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8814 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8815 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8817 * docs/grub.texi: Fix search syntax.
8818 (Multi-boot manual config): Put msdos rather than GPT example.
8819 Grammar corrections.
8821 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8823 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8825 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8827 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8829 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8831 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8832 message on double free. Put the value of magic in case of mismatch.
8834 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8836 Speed-up video on yeeloong.
8838 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8840 (grub_video_sm712_video_fini): Unmap cached_ptr.
8841 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8842 (grub_video_sm712_set_active_render_target): Removed.
8843 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8844 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8847 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8849 Avoid flushing the same line multiple times on loongson.
8851 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8852 Step in 32 bytes and not 1 byte.
8853 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8856 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8858 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8861 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8863 Implement flow control for http.
8865 * grub-core/net/http.c (parse_line): Handle response 206.
8866 (http_receive): Stall if too many packets are in the queue.
8867 (http_establish): Fix range header.
8868 (http_seek): Fix double free.
8869 (http_close): Likewise.
8870 (http_packets_pulled): New function.
8871 (grub_http_protocol): Set http_seek
8872 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8873 (ack_real): Set window depending on i_stall.
8874 (grub_net_send_tcp_packet): Likewise.
8875 (grub_net_tcp_stall): New function.
8876 (grub_net_tcp_unstall): Likewise.
8877 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8878 (grub_net_tcp_unstall): Likewise.
8880 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8882 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8884 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8886 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8888 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8890 * tests/util/grub-shell.in: Fix a typo.
8892 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8894 Implement flow control for tftp.
8896 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8897 packets but stop only if stop condition is satisfied.
8898 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8899 `stall' instead of `eof' as stop condition.
8900 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8901 (http_err): Likewise.
8902 * grub-core/net/tftp.c (ack): Replace the first argument with data
8904 (tftp_receive): Stall if too many packets are in wait queue.
8905 (tftp_packets_pulled): New function.
8906 (grub_tftp_protocol): Set packets_pulled.
8907 * include/grub/net.h (grub_net_packets): New field count.
8908 (grub_net_put_packet): Increment count.
8909 (grub_net_remove_packet): Likewise.
8910 (grub_net_app_protocol): New field `packets_pulled'.
8911 (grub_net): New field `stall'.
8913 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8915 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8916 sync part to handle them.
8918 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8920 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8921 * grub-core/net/drivers/ieee1275/ofnet.c
8922 (grub_ieee1275_net_config_real): Likewise.
8924 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8926 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8927 the direct route for server/gateway.
8929 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8931 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8932 IP address to server name since we may not hame the DNS.
8934 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8936 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8937 freeing random buffer on failure.
8938 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8940 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8942 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8944 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8946 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8948 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8949 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8950 Handle malloc error correctly.
8952 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8954 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8957 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8959 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8962 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8964 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8965 none is explicitly specified.
8967 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8969 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8972 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8974 Respect netmask from bootp/dhcp.
8976 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8977 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8978 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8980 (grub_net_add_ipv4_local): ... this.
8981 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8982 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8983 (grub_net_add_ipv4_local): New proto.
8985 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8987 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8988 determining EFI memory map size.
8990 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8992 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8994 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8996 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8997 when looking for partition separator.
8999 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9001 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9004 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9006 Restructure FAT driver to avoid hook in label reading as it hits a
9009 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9010 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9011 (grub_fat_iterate_dir): Split into ...
9012 (grub_fat_iterate_init): ... this, ...
9013 (grub_fat_iterate_fini): ... this, ...
9014 (grub_fat_iterate_dir_next): ... and this. All users updated.
9016 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9018 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9019 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9020 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9021 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9022 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9023 New fields last_key and last_key_time.
9024 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9025 extended key-esc into extended key-extended key.
9027 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9029 Avoid unnecessary memcpy of whole video buffer.
9031 * grub-core/video/fb/video_fb.c (dirty): New struct.
9032 (framebuffer): Add members current_dirty and previous_dirty.
9033 (dirty): New function.
9034 (grub_video_fb_fill_rect): Update dirty.
9035 (common_blitter): Likewise.
9036 (grub_video_fb_scroll): Likewise.
9037 (doublebuf_blit_update_screen): Copy only dirty part.
9038 (doublebuf_pageflipping_update_screen): Likewise.
9039 (grub_video_fb_doublebuf_blit_init): Init dirty.
9040 (doublebuf_pageflipping_init): Likewise.
9041 (grub_video_fb_setup): Likewise.
9043 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9045 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9048 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9050 Fix wildcard regexp dot and other special characters handling.
9051 Reported by: Robert Mabee.
9053 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9054 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9055 (split_path): Trigger expansion on '?'.
9056 (unescape): New function.
9057 (wildcard_expand): Unescape parts copied without globbing.
9058 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9059 (grub_script_arglist_to_argv): Don't unescape expansions.
9061 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9063 * include/grub/net.h (grub_net_card): New member txbufsize.
9064 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9065 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9066 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9067 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9069 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9070 compatible property to check for macs. Set
9071 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9072 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9073 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9074 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9075 (send_card_buffer): Use txbuf.
9076 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9077 nested function out of the parent while on it.
9079 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9081 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9083 (grub_ieee1275_net_config_real): Fix config pointer.
9085 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9087 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9088 filename parsing to non-block devices.
9090 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9092 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9094 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9096 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9099 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9101 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9102 UUID search command even if hints probing failed.
9104 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9106 * po/POTFILES.in: Regenerated.
9108 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9110 Speed-up video on fuloong.
9112 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9114 (grub_pci_device_unmap_range): Handle non-cached address.
9115 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9117 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9118 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9119 (grub_video_sis315pro_set_active_render_target): Removed.
9120 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9121 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9122 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9124 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9127 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9129 * docs/grub.texi (Multi-boot manual config): New section.
9131 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9133 Avoid slow read-back from VRAM.
9135 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9137 * grub-core/video/fb/video_fb.c
9138 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9139 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9140 (front_target): Remove front_target. Add pages.
9141 (grub_video_fb_init): Skip setting front_pages.
9142 (grub_video_fb_fini): Likewise.
9143 (doublebuf_blit_update_screen): Use pages.
9144 (grub_video_fb_doublebuf_blit_init): Likewise.
9145 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9146 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9147 (grub_video_fb_setup): Prefer doublebuffing.
9149 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9151 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9154 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9158 * tests/util/grub-shell.in: Handle loongson.
9159 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9161 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9162 Reboot instead of shutdown if REBOOT is defined.
9164 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9166 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9167 sized ports since unlike on real hardware qemu supports only 32-bit
9170 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9172 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9173 * util/grub-mkrescue.in: Handle loongson.
9175 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9177 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9178 Set is_part appropriately.
9179 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9180 names. Canonicalize partition without full disk.
9182 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9184 Revert usb-quiesce since it's wrong.
9186 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9187 (grub_ofdisk_init): Don't do quiesce.
9189 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9191 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9192 PowerMac workaround to Xserves as well.
9193 Information supplied by: Benjamin Herrenschmidt.
9195 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9197 Don't assume that beginning address is also the entry point on ppc.
9199 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9200 (grub_linux_boot): Use linux_entry.
9201 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9202 (grub_linux_load64): Likewise.
9204 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9206 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9208 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9210 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9211 needlessly lose the console.
9213 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9215 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9218 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9220 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9221 than current grub_get_rtc() not implemented when booted with
9222 coreboot without TSC.
9224 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9225 Add machine/time.h to kernel headers on loongson.
9226 * grub-core/Makefile.core.def (kernel): Remove
9227 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9228 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9229 (grub_get_rtc): Likewise.
9230 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9231 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9232 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9233 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9234 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9235 rather than installing known non-working time source.
9236 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9237 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9238 * include/grub/time.h: Don't include machine/time.h.
9239 * include/grub/efi/time.h: Removed.
9240 * include/grub/i386/efi/time.h: Likewise.
9241 * include/grub/i386/ieee1275/time.h: Likewise.
9242 * include/grub/powerpc/ieee1275/time.h: Likewise.
9243 * include/grub/sparc64/ieee1275/time.h: Likewise.
9244 * include/grub/x86_64/efi/time.h: Likewise.
9246 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9248 Remove dot on i and j when combining with above diacritics.
9250 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9252 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9253 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9254 with dotless variants when any combining above is present.
9256 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9258 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9259 text and not binary.
9261 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9263 Stop polling as soon as we have the packet we were waiting for.
9265 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9267 * grub-core/net/arp.c (have_pending): New var.
9268 (pending_req): Likewise.
9269 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9271 (grub_net_arp_receive): Set have_pending.
9272 * grub-core/net/dns.c (recv_data): New field stop.
9273 (recv_hook): Set stop.
9274 (grub_net_dns_lookup): Init stop and use as stop condition.
9275 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9277 * grub-core/net/net.c (grub_net_poll_cards): New argument
9278 stop_condition. Stop when it goes true.
9279 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9281 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9283 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9285 Keep TX and RX buffers on EFI rather than always allocate new ones.
9287 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9288 card. All users updated.
9289 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9290 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9291 (get_card_packet): Likewise.
9292 (grub_efinet_findcards): Init new fields.
9294 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9296 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9297 compilation error on sparc64.
9299 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9301 Use ITC on IA64 rather than broken routine based on daytime.
9303 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9305 (grub_get_rtc) [__ia64__]: Likewise.
9306 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9307 (get_itc): New function.
9308 (grub_rtc_get_time_ms): Likewise.
9309 (grub_machine_init): Calibrate ITC.
9310 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9311 Keep only on non-ia64. Don't export since it's broken and used only
9312 if TSC is unavailable.
9314 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9316 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9318 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9319 Skip if parent is unused.
9321 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9323 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9325 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9327 Fix wildcard escaping.
9329 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9330 * grub-core/script/execute.c (wildcard_escape): .. to here.
9332 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9333 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9335 * grub-core/script/execute.c (gettext_append): Always escape.
9336 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9337 * grub-core/script/yylex.l: Don't cut away the escaping.
9338 * tests/grub_script_echo1.in: Add tests with wildcard.
9340 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9342 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9343 (ftdi_hw_configure): Likewise.
9344 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9346 (real_config): Handle 1.5 stop bits.
9347 (pl2303_hw_configure): Likewise.
9349 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9351 * Makefile.am: Add ppc linux bootcheck.
9352 * grub-core/tests/boot/linux-ppc.cfg: New file.
9353 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9355 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9357 * tests/grub_script_expansion.in: Skip network protocols.
9359 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9361 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9363 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9365 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9369 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9371 ESCC serial driver for conducting sautomated tests in qemu.
9372 Not tested on real hardware.
9374 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9375 * grub-core/term/ieee1275/escc.c: New file.
9376 * grub-core/Makefile.core.def (escc): New module.
9378 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9380 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9382 (serial_hw_fetch): Don't read invalid handle.
9383 (serial_hw_put): Don't write into invalid handle.
9385 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9387 Add a 1.5 stop bits value.
9389 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9390 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9391 GRUB_SERIAL_STOP_BITS_1_5.
9393 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9395 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9396 value rather than let it uninited.
9398 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9400 * grub-core/commands/wildcard.c (+check_file): New function.
9401 (wildcard_expand): Don't expand to non-existing files, expand with
9402 suffix and not attempt to expand if not needed.
9404 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9406 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9407 out of partitions containing other partitions.
9409 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9411 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9412 on some qemu versions with GRUB.
9414 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9416 (grub_openbsd_bootarg_pcibios): New struct.
9417 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9420 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9422 * tests/util/grub-shell.in: Trim firmware output on EFI.
9424 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9426 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9427 and coreboot since it's already in kernel.
9429 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9431 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9432 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9433 to here. New return value start. All users updated.
9434 Recursively scan linear mappings.
9435 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9437 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9438 Use grub_util_get_dm_node_linear_info.
9439 * util/getroot.c (convert_system_partition_to_system_disk): Use
9440 grub_util_info rather than grub_dprintf.
9441 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9443 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9445 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9447 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9448 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9450 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9452 * include/grub/types.h (grub_set_unaligned64): New function.
9453 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9456 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9458 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9459 (grub_ofdisk_fini): Quiesce USB devices.
9461 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9463 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9466 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9468 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9470 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9472 * grub-core/disk/pata.c (grub_pata_pio_read)
9473 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9474 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9476 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9478 Extend automated tests to qemu-mips.
9480 * Makefile.am: reorganise tests and enable qemu-mips.
9481 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9482 * grub-core/tests/boot/linux.init-mips.S: New file.
9483 * tests/partmap_test.in: Handle ata0 disks.
9484 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9487 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9489 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9491 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9494 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9496 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9497 (grub_halt): Likewise.
9498 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9500 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9502 * grub-core/term/serial.c (grub_serial_register)
9503 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9504 the behaviour in line with x86 platforms.
9506 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9508 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9509 (grub_ata_strncpy): Likewise.
9510 (grub_ata_identify): Add missing byteswaps.
9512 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9514 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9516 (screen_read_char): Likewise.
9517 (grub_vga_text_cls): Likewise.
9519 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9521 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9523 (make_file_path): Likewise.
9525 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9527 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9529 Tested by: Paulo Flabiano Smorigo.
9530 Crucial information about API supplied by: Coleen <Last name unknown>.
9531 Reviewed by: Coleen <Last name unknown>.
9533 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9535 * util/grub-mkimage.c: Disable -Wcast-align.
9537 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9539 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9542 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9544 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9546 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9548 * util/grub-probe.c (escape_of_path): Fix double free.
9550 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9552 * grub-core/commands/videoinfo.c (hook): Show pitch.
9554 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9556 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9558 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9560 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9561 (probe): Add ieee1275 to OFW devices.
9563 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9565 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9567 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9569 Handle IBM OFW path.
9571 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9573 (of_path_of_scsi): Handle vdevice.
9575 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9577 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9578 Allocate in multiples of 16 to avoid adding a few bytes free region the
9581 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9583 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9584 Allocate in multiples of 16 to avoid adding a few bytes free region the
9586 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9588 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9590 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9592 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9593 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9595 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9597 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9599 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9601 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9602 resulted in \\ at the end of the line.
9604 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9606 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9607 (grub_parser_cmdline_state): Likewise.
9608 (grub_parser_split_cmdline): Likewise.
9610 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9612 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9613 /dev/root and /dev/dm-*.
9615 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9617 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9618 fix partially stale display.
9620 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9622 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9625 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9627 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9628 Fix MBR remapping workaround.
9629 (grub_util_biosdisk_read) [__linux__]: Likewise.
9631 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9633 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9635 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9637 * configure.ac: Bump to beta6.
9639 2012-05-31 Christer Weinigel <christer@weinigel.se>
9641 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9643 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9645 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9646 (grub_cmd_linux): Likewise.
9648 2012-05-31 Christer Weinigel <christer@weinigel.se>
9652 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9653 (GRUB_EHCI_MULT_TWO): Likewise.
9654 (GRUB_EHCI_MULT_THREE): Likewise.
9655 (GRUB_EHCI_CMASK_MASK): New enum value.
9656 (GRUB_EHCI_SMASK_MASK): Likewise.
9657 (GRUB_EHCI_CMASK_OFF): Likewise.
9658 (GRUB_EHCI_SMASK_OFF): Likewise.
9659 (grub_ehci_pci_iter): Enable periodic schedule.
9660 (grub_ehci_parse_notrun): Likewise.
9661 (grub_ehci_restore_hw): Likewise.
9662 (grub_ehci_setup_qh): Set flags for low speed transfers.
9663 (grub_ehci_find_qh): Use periodic list for low speed.
9664 (grub_ehci_setup_transfer): Check periodic queue as well.
9665 (grub_ehci_check_transfer): Likewise.
9666 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9668 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9670 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9673 2012-05-31 Peter Jones <pjones@redhat.com>
9675 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9676 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9677 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9679 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9681 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9682 uninited variable. Allocate at least setup_sects.
9684 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9686 Fix handling of EFI with big memory maps.
9688 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9689 (real_mode_mem): Likewise.
9690 (real_mode_target): Likewise.
9691 (real_mode_pages): Likewise.
9692 (prot_mode_pages): Likewise.
9693 (linux_params): New var.
9694 (linux_cmdline): Likewise.
9695 (free_pages): Don't set real mode variables.
9696 (allocate_pages): Don't allocate real mode memory.
9697 (grub_e820_add_region): Remove the limit.
9698 (grub_linux_boot): Allocate and copy real mode memory.
9699 (grub_linux_unload): Free linux_cmdline.
9700 (grub_cmd_linux): Use temporary storage for parameters.
9701 (grub_cmd_initrd): Likewise.
9702 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9703 (linux_kernel_params): Make it 1K big.
9705 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9707 * Makefile.util.def: Remove -Wno-format.
9708 * grub-core/Makefile.core.def: Likewise.
9710 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9712 * tests/cmp_unit_test.c: Add missing failure message.
9713 * tests/example_unit_test.c: Likewise.
9714 * tests/printf_unit_test.c: Likewise.
9716 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9718 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9719 relaxation of protective MBR requirements.
9721 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9723 * configure.ac: Add condition for COND_HOST_XNU.
9724 * Makefile.util.def (10_xnu): New script.
9725 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9727 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9729 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9732 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9734 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9735 Binary on other platforms stays identical.
9737 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9739 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9742 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9744 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9746 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9748 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9749 rather than defining size_t ourselves to avoid conflict.
9751 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9753 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9754 initialisation to avoid __bzero reference.
9756 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9758 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9760 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9761 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9762 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9763 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9764 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9766 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9768 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9769 * grub-core/kern/misc.c: Likewise.
9770 * grub-core/loader/i386/xnu.c: Likewise.
9771 * include/grub/i386/tsc.h: Likewise.
9772 * include/grub/symbol.h: Likewise.
9774 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9776 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9777 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9780 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9782 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9783 Implement Apple flavour.
9784 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9786 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9788 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9789 (memmove) [__APPLE__]: Likewise.
9790 (memcpy) [__APPLE__]: Likewise.
9791 (memset) [__APPLE__]: Likewise.
9792 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9793 (memmove) [__APPLE__]: Likewise.
9794 (memcpy) [__APPLE__]: Likewise.
9795 (memset) [__APPLE__]: Likewise.
9797 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9799 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9802 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9804 * grub-core/normal/main.c (read_config_file): Provide config_file and
9806 * util/grub.d/41_custom.in: Use config_directoy when available.
9808 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9810 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9811 (grub_bfs_dir): Likewise.
9813 2012-05-27 Peter Jones <pjones@redhat.com>
9815 The old code gives arguments to a printf function which can't work
9816 correctly, and the compiler complains.
9818 * grub-core/tests/example_functional_test.c (example_test): Add
9820 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9821 * include/grub/test.h (grub_test_assert_helper): New declaration.
9822 (grub_test_assert): Use grub_test_assert_helper.
9824 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9826 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9827 (exfctest): ... this to avoid overlong filenames.
9830 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9832 Handle "." and ".." on squashfs.
9834 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9835 Make inode numbers into stack.
9836 (grub_squash_read_symlink): Use stack.
9837 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9838 (make_root_node): Fill stack.
9839 (grub_squash_open): Use stack.
9841 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9843 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9846 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9848 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9849 stderr on test calls.
9851 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9853 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9855 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9857 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9859 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9861 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9864 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9866 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9867 (grub_hfsplus_iterate_dir): Add "." and "..".
9869 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9871 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9872 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9874 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9876 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9877 (find_path): Handle "." and "..".
9879 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9881 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9882 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9883 (grub_affs_iterate_dir): Handle hardlinks.
9885 2012-05-26 Matthew Garrett <mjg@redhat.com>
9887 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9888 (grub_efi_console_fini): Likewise.
9889 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9890 (grub_video_gop_fill_mode_info): Rename to ...
9891 (grub_video_gop_fill_real_mode_info): ... this.
9892 (grub_video_gop_fill_mode_info): New function.
9893 (grub_video_gop_setup): Setup double framebuffer.
9894 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9896 (grub_video_gop_swap_buffers): Copy framebuffer.
9897 (grub_video_gop_fini): Free offscreen buffer.
9898 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9900 (grub_efi_gop_blt_pixel): New struct.
9902 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9904 * gentpl.py: Remove error disabling for objconv.
9906 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9908 * configure.ac: Remove -Wunitialized as it's not available on older
9911 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9913 Fix extent overflow comparator.
9915 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9916 (grub_hfsplus_read_block): Set type.
9917 (grub_hfsplus_cmp_extkey): Compare type.
9919 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9921 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9923 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9925 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9928 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9930 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9931 (dejavu_bold_14.pf2): New target.
9933 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9935 * configure.ac: Fix djvu font detection.
9937 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9939 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9940 ext* instead of ext2.
9942 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9944 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9947 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9949 * docs/grub-dev.texi: Remove dot from .png.
9951 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9953 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9954 protective entry in any slot.
9955 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9956 if protective entry is found in any slot.
9958 Protective entry in non-first slot make no sense but is a widespread
9961 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9963 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9965 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9967 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9969 (grub_reiserfs_open): Don't free root.
9971 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9973 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9974 after freeing for safety.
9976 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9978 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9979 Reported by: Jordan Uggla.
9981 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9983 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9984 actual implementation. Specifically, clarify that the grub menu will
9985 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9988 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9990 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9993 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9995 Remove unjustified hard dependency of normal.mod on gfxterm.
9997 * include/grub/term.h (grub_term_output): New member fullscreen.
9998 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9999 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10000 (grub_gfxterm): Set .fullscreen.
10001 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10002 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10004 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10006 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10007 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10008 Mention case-insensitive AFFS, SFS and JFS.
10010 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10012 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10014 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10016 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10019 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10021 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10022 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10024 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10026 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10027 (grub_jfs_mount): Fill caseins.
10028 (grub_jfs_find_file): Respect caseins.
10030 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10032 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10035 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10037 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10038 New argument origpath. All users updated.
10040 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10042 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10043 (read_attr): Ensure that we read start of possibly compressed block.
10045 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10047 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10048 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10051 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10053 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10054 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10055 (dejavu.pf2): Replace with ...
10056 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10059 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10061 * util/grub.d/20_linux_xen.in: Add missing line.
10063 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10065 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10066 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10067 (grub_utf16_to_utf8): Likewise.
10069 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10071 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10072 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10073 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10074 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10075 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10076 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10078 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10080 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10083 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10085 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10086 (grub_udf_read_symlink): Handle read_string failure.
10088 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10090 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10093 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10095 Fix handling of UDF symlinks.
10097 * grub-core/fs/udf.c (read_string): New argument outbuf.
10099 (grub_ufs_read_symlink): Rename to ...
10100 (grub_udf_read_symlink): ... this. All users updated.
10101 Handle symlinks with more than one component.
10103 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10105 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10106 symlinks. Replace leading colon with a slash.
10108 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10110 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10113 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10115 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10116 match in inner node.
10118 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10120 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10121 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10122 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10123 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10124 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10125 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10126 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10127 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10128 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10130 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10132 Use grub-probe and not cmp to check that disk is empty.
10134 * util/grub-install.in: Use grub-probe for zero-check.
10135 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10136 (probe): Handle PRINT_ZERO_CHECK.
10137 (argp_parser): Handle -t zero_check.
10139 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10141 Flush block cache on adding disk to device map.
10143 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10144 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10146 (read_device_map): Likewise.
10147 (open_device): Flush on opening.
10149 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10151 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10152 (handle_symlink): Fix off-by-one error.
10153 Canonicalize the target.
10154 (grub_cpio_dir): Canonicalize the name.
10157 (grub_cpio_open): Canonicalize the name.
10159 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10161 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10164 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10166 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10167 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10169 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10171 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10172 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10175 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10177 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10180 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10182 Fix UFS1 big file support.
10184 * grub-core/fs/ufs.c (INODE): Removed.
10185 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10187 (INODE_MODE): Simplify.
10188 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10189 (grub_ufs_lookup_symlink): Don't use INODE.
10191 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10193 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10195 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10196 (grub_minix_data): Replace log_block_size with block_size.
10197 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10198 (grub_minix_mount): Fill block_size.
10200 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10202 * configure.ac: Bump to beta5.
10204 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10206 Fix wrapped HFS+ handling.
10208 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10209 blocks_start. All users updated.
10210 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10212 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10214 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10216 Fix long symlinks on reiserfs.
10218 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10219 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10220 (grub_reiserfs_iterate_dir): Save size for non-directories.
10221 (grub_reiserfs_open): Don't reread stat block as we already know the
10223 (grub_reiserfs_read): Split into...
10224 (grub_reiserfs_read_real): ... and ...
10225 (grub_reiserfs_read): ...this.
10227 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10229 Fix non-indexed JFS.
10231 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10232 (grub_jfs_data): New field namecomponentlen.
10233 (grub_jfs_mount): Fill namecomponentlen.
10234 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10236 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10238 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10239 * tests/grub_script_echo1.in: Add tests.
10241 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10243 * util/grub-install.in: Ignore empty devicetree directory.
10245 2012-05-08 Bean <bean123ch@gmail.com>
10247 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10249 (free_rsm): Free header as well.
10250 (free_old_fragments): Fix memory leak.
10251 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10252 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10253 (destroy_pq): Likewise.
10254 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10256 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10258 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10259 resulting hash as a precaution.
10261 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10263 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10264 '_' in variable names.
10265 * grub-core/net/net.c (grub_net_network_level_interface_register):
10268 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10270 Fix AFFS with non-512B blocks.
10272 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10273 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10274 (grub_affs_data): Replace blocksize with log_blocksize.
10275 (grub_affs_read_block): Fix non-512B blocks.
10276 (grub_affs_read_symlink): Likewise.
10277 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10278 (grub_affs_read): Fix non-512B blocks.
10279 (grub_affs_label): Likewise.
10280 (grub_affs_mtime): Likewise.
10281 (grub_affs_mount): Fix block detection routine.
10283 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10285 Add filesystem mtime to AFFS.
10287 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10288 (aftime2ctime): New function.
10289 (grub_affs_dir): Use aftime2ctime.
10290 (grub_affs_label): Fix return value.
10291 (grub_affs_mtime): New function.
10292 (grub_affs_fs): Add mtime.
10294 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10296 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10299 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10301 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10304 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10306 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10308 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10310 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10312 (FLAGS_CASE_SENSITIVE): New enum value.
10313 (cache_entry): New struct.
10314 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10315 cache_size and cache.
10316 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10317 Add log_blocksize and fshelp_flags.
10318 (grub_sfs_read_extent): Handle non-512 blocks.
10319 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10320 (grub_sfs_read_file): Handle non-512 blocks.
10321 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10323 (grub_sfs_read_symlink): Handle non-512 blocks.
10324 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10325 (grub_sfs_dir): Free cache.
10326 (grub_sfs_close): Likewise.
10328 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10330 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10333 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10335 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10337 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10339 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10341 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10343 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10344 (grub_sfs_read_extent): Likewise.
10345 (grub_sfs_read_block): Likewise.
10346 (grub_sfs_mount): Likewise.
10347 (grub_sfs_iterate_dir): Likewise.
10348 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10349 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10351 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10353 Fix errors on compressed NTFS with 512B clusters.
10355 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10357 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10359 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10360 Relax check for inline extents.
10361 (ntfscomp): Return correct -1 on error and not 0.
10363 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10365 * util/grub-install.in: Fix handling of prefix containing spaces.
10367 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10369 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10370 (grub_squash_read_data): Fix offset byte-swapping.
10372 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10374 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10375 per common usage and preffered in several parts of code.
10376 (grub_memcmp): Likewise.
10377 (grub_strncmp): Likewise.
10378 * include/grub/misc.h (grub_strcasecmp): Likewise.
10379 (grub_strncasecmp): Likewise.
10380 * Makefile.util.def (cmp_test): New test.
10381 (grub_script_strcmp): Likewise.
10382 * tests/cmp_unit_test.c: New file.
10383 * tests/grub_script_strcmp.in: Likewise.
10384 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10386 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10388 * include/grub/pci.h: Move enums into no-asm part.
10390 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10392 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10394 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10396 * util/getroot.c (find_hurd_root_device): Try to make error message
10397 and comments to translators clearer.
10399 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10401 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10403 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10405 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10408 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10410 * docs/grub.cfg: Update.
10412 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10414 * docs/grub.texi (PXE): Remove not present variables.
10416 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10418 * grub-core/net/net.c (defserver_set_env): New function.
10419 (defserver_get_env): Likewise.
10420 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10422 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10424 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10427 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10429 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10430 * grub-core/kern/emu/hostdisk.c: Likewise.
10432 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10434 Handle hurd userspace partitions.
10436 * util/getroot.c (find_hurd_root_device): New function.
10437 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10439 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10441 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10443 Reported by: Bastian Blank.
10445 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10447 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10448 crossing page boundary.
10450 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10452 Fix B-tree search in BFS, especially in presence of non-ASCII
10455 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10456 (find_in_b_tree): Use standard bsearch + btree algorithm.
10458 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10460 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10463 2012-05-03 Matthew Garrett <mjg@redhat.com>
10464 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10466 Suspend broadcom cards in order to stop their DMA.
10468 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10469 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10470 (pci): Don't build on x86 EFI.
10471 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10472 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10474 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10475 stop_broadcom if running on EFI.
10476 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10477 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10478 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10479 (grub_pci_find_capability): New proto.
10481 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10483 * docs/grub.texi: Remove dot from the extension as it apparently
10484 doesn't work with some makeinfo versions.
10486 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10488 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10489 with GRUB expectance.
10491 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10493 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10495 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10497 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10498 zero after directory block since last entry may be not 0-terminated if
10499 it ends on block boundary. Use continue instead of if spanning whole
10502 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10504 Support 4K sectors UDF inline files.
10506 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10507 (grub_udf_extended_file_entry): Likewise.
10508 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10510 (get_fshelp_size): New function.
10511 (grub_udf_read_icb): Read whole block.
10512 (grub_udf_iterate_dir): Likewise.
10513 (grub_udf_dir): Likewise.
10514 (grub_udf_open): Likewise.
10516 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10518 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10520 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10522 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10523 inline symlinks in addition to workaround.
10525 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10527 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10529 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10531 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10533 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10535 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10537 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10539 Fix reiserfs big seek times.
10541 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10542 exact. All users updated.
10543 (grub_reiserfs_read): Use nearest btree search for seeking.
10544 Fix return value on error.
10546 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10548 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10550 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10551 * docs/grub.texi: Update menuentry description.
10553 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10555 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10556 crash when embedding onto filesystem.
10558 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10560 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10563 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10565 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10567 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10569 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10572 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10573 2012-05-01 Bean <bean123ch@gmail.com>
10575 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10577 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10579 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10580 Special behaviour for len = 0 to read whole file isn't used anywhere and
10581 can cause buffer ovewrflows in several places.
10583 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10585 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10587 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10589 Handle RAIDZ on non-512B sectors.
10591 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10592 max_children_ashift.
10593 (fill_vdev_info_real): Fill max_children_ashift.
10594 (read_device): Use max_children_ashift.
10596 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10598 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10600 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10602 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10604 * docs/grub.texi: Update device.map parts.
10606 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10608 Don't scan into non-diskfilter devices having diskfilter names.
10610 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10611 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10613 (scan_disk_hook): New function.
10615 2012-04-29 Bean <bean123ch@gmail.com>
10617 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10620 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10622 * configure.ac: Detect starfield theme font path
10623 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10625 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10627 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10628 geometry on serial consoles.
10630 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10632 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10633 because of network consoles.
10635 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10637 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10640 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10642 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10643 falls on Q syndrom.
10645 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10647 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10648 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10650 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10652 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10653 Allocate at lest 8192 for temporary buffer as required for lzo.
10655 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10657 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10658 to cluster_bits, since it's already added in.
10659 (grub_fat_read_data): Likewise.
10661 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10663 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10664 as long as cluster size is multiple of 512 bytes.
10666 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10668 * util/grub-mkrescue.in: Fix locale directory.
10670 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10672 * grub-core/kern/emu/hostdisk.c (map): Make static.
10674 2012-04-23 Bean <bean123ch@gmail.com>
10676 * util/grub-fstest.c (fstest): Add missing break.
10678 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10682 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10683 not define nr variable.
10684 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10685 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10686 grub_find_device): Do not define.
10688 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10690 Fix kfreebsd compile and behaviour.
10692 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10694 * util/getroot.c: Fix wait.h include.
10695 (grub_guess_root_devices): Error if grub_find_device fails.
10696 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10697 (grub_util_get_dev_abstraction): Likewise.
10698 (grub_util_pull_device): Likewise.
10699 (grub_util_get_grub_dev): Likewise.
10700 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10702 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10704 Fix and unify wholedisk detection.
10706 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10707 is_part. All users updated.
10708 (device_is_wholedisk): Removed.
10709 (grub_util_biosdisk_get_grub_dev): Use is_part.
10711 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10713 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10716 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10718 * configure.ac: Bump to beta4.
10720 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10722 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10723 --fs-uuid --set UUID syntax.
10725 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10727 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10730 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10732 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10734 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10736 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10738 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10740 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10742 2012-04-18 Bean <bean123ch@gmail.com>
10744 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10747 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10749 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10751 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10752 corresponding to GRUB partitions.
10753 (grub_util_biosdisk_write): Likewise.
10755 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10757 Scan mdraid before LVM.
10759 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10760 (grub_diskfilter_register_front): ... this.
10761 (grub_diskfilter_register_back): New function.
10762 All users of grub_diskfilter_register updated.
10764 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10766 * util/grub-install.in: Fix an automatic target detection bug.
10768 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10770 * util/grub-install.in: New option --efi-directory.
10772 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10774 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10775 boot services if we have no other choice.
10777 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10779 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10781 * tests/util/grub-shell.in: Update to --directory.
10783 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10785 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10787 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10789 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10790 (grub_minix_read_file): Likewise.
10791 (grub_minix_read_inode): Likewise.
10792 (grub_minix_find_file): Likewise.
10793 (grub_minix_dir): Likewise.
10795 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10797 * util/grub-setup.c (setup): Fix partition handling and blocklist
10800 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10802 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10803 redundant buggy overlap check.
10805 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10807 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10810 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10812 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10813 kh.loadflags on pre-2.00 kernels.
10815 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10817 Terminate UNDI and PXE before launching the payload to avoid problems
10820 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10821 (grub_loader_flags): ... this. All users updated.
10822 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10823 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10824 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10825 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10827 (grub_pxe_restore): Likewise.
10828 (fini_hnd): New var.
10829 (GRUB_MOD_INIT): Register shutdown hook.
10830 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10831 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10832 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10833 (grub_loader_set): Rename second argument to flags.
10835 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10837 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10839 (grub_get_num_of_utf8_bytes): New function.
10840 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10841 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10843 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10844 (grub_ucs4_to_utf8): Change return type.
10846 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10848 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10850 * grub-core/fs/bfs.c (hop_level): Likewise.
10851 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10853 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10855 * grub-core/lib/adler32.c: Recode due to license unclearness.
10857 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10859 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10860 (test_header): Likewise.
10862 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10864 Fix --help formatting.
10866 * util/grub-mkconfig_lib.in (print_option_help): New function.
10867 (grub_fmt): Likewise.
10868 * util/grub-install.in: Use print_option_help and grub_fmt.
10869 * util/grub-kbdcomp.in: Likewise.
10870 * util/grub-mkconfig.in: Likewise.
10871 * util/grub-mknetdir.in: Likewise.
10872 * util/grub-mkrescue.in: Likewise.
10873 * util/grub-mkstandalone.in: Likewise.
10874 * util/grub-reboot.in: Likewise.
10875 * util/grub-set-default.in: Likewise.
10876 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10878 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10880 * linguas.sh: Remove autogenerated *.po.
10882 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10884 * po/README: Move language fetcing to ...
10885 * linguas.sh: ... here.
10886 * po/README: Point to linguas.sh.
10888 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10890 * po/README: Exclude ko.po due to disclaimer problems.
10892 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10894 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10896 (grub_gettext_translate_real): Handle 0th string.
10897 (grub_gettext_translate): Ensure that "" isn't translated.
10899 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10901 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10902 TRANSLATORS comment.
10903 (grub_diskfilter_print_partmap): Propagate changing of error into
10906 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10908 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10909 to uint64_t to prevent overflow.
10910 (grub_diskfilter_lv): Increase start_extent and extent_count
10911 to uint64_t to prevent overflow.
10913 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10915 * configure.ac: Increase version.
10917 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10919 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10921 * po/Rules-translit: New file.
10922 * po/arabic.sed: Likewise.
10923 * po/cyrillic.sed: Likewise.
10924 * po/greek.sed: Likewise.
10925 * po/hebrew.sed: Likewise.
10926 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10927 * po/Makefile.in.in: Add extra_dist4.
10929 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10931 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10933 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10934 modify names. Introduce MODE_BIGENDIAN.
10935 * grub-core/fs/minix_be.c: New file.
10936 * grub-core/fs/minix2_be.c: Likewise
10937 * grub-core/fs/minix3_be.c: Likewise.
10938 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10940 * grub-core/Makefile.core.def (minix_be): New module.
10941 (minix2_be): Likewise.
10942 (minix3_be): Likewise.
10944 2012-04-01 Felix <email@hamburg.de>
10946 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10947 (devs): Add MBP 2011.
10949 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10951 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10953 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10955 * grub-core/normal/cmdline.c (print_completion): New field
10957 (grub_cmdline_get): Handle width properly.
10959 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10961 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10963 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10965 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10966 after 29th of February.
10968 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10970 Fix exfat endianness handling.
10972 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10973 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10974 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10975 Byte-swap utf16 when necessary.
10976 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10978 2012-03-31 Anton Blanchard <anton@samba.org>
10979 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10981 Fix btrfs endianness handling.
10983 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10984 (lower_bound): Make root uint64_t. Use root in le.
10985 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10986 (find_path): Fix template key init.
10987 (grub_btrfs_dir): Fix mtime byteswap.
10988 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10990 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10992 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10993 recursion_depth. Break infinite resursions. All users updated.
10995 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10997 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10999 Reported by: Peter Jones.
11001 2012-03-31 Anton Blanchard <anton@samba.org>
11003 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11006 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11008 * util/grub-install.in: Fix nvram call for PreP.
11010 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11012 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11013 the error when some elements are missing into a warning.
11015 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11017 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11019 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11021 * docs/grub.texi (Invoking grub-probe): New section.
11022 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11024 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11026 Fix tab and wide character handling in editor and menu.
11028 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11029 agglomerate control characters with combining marks.
11030 (bidi_line_wrap): Allow break on tab.
11031 (grub_unicode_get_comb_start): New function.
11032 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11034 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11036 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11037 fixed_tab_size. All users updated.
11038 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11039 (grub_term_getcharwidth): Handle \t.
11040 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11043 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11045 Handle big-endian mdraid.
11047 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11048 * grub-core/Makefile.core.def (mdraid09_be): New module.
11049 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11050 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11051 * grub-core/disk/mdraid_linux_be.c: New file.
11053 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11055 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11057 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11059 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11060 missing quotes which caused confusion among translators.
11062 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11064 * util/grub-mkconfig_lib.in: Fix typo.
11066 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11068 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11070 * tests/grub_script_leading_whitespace.in: New file.
11071 * Makefile.util.def (grub_script_leading_whitespace): New test.
11073 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11075 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11078 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11080 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11081 starts with control character.
11083 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11085 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11087 (grub_gdb_outbuf): Likewise.
11089 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11091 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11092 zero terminator. Fixes a crash.
11094 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11096 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11098 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11099 images independently of preffered adderss field.
11101 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11103 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11104 * grub-core/commands/regexp.c: Likewise.
11105 * grub-core/loader/i386/linux.c: Likewise.
11106 * grub-core/partmap/msdos.c: Likewise.
11107 * grub-core/script/execute.c: Likewise.
11108 * grub-core/term/gfxterm.c: Likewise.
11110 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11112 Add variable parsing in $"..." and fix several mismatches with bash.
11114 * Makefile.util.def (grub_script_gettext): New test.
11115 * grub-core/script/execute.c (parse_string): New function.
11116 (gettext_append): Likewise.
11117 (grub_script_arglist_to_argv): Use gettext_append.
11118 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11119 * tests/grub_script_gettext.in: New file.
11121 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11123 Fix handling of leading spaces in scripts.
11125 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11127 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11128 other than skipping \r. All users updated.
11129 * tests/grub_script_echo1.in: Add space-related tests.
11130 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11132 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11134 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11136 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11138 * configure.ac: Bump up the version to beta2.
11140 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11142 Fix gettext reload bugs (e.g. inability to disable gettext
11145 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11146 main_context and secondary_context. All functions updated.
11147 (grub_gettext_translate): Rename to ...
11148 (grub_gettext_translate_real): ... this. Return NULL on failed
11150 (grub_gettext_translate): Handle secondary context.
11151 (grub_gettext_delete_list): Close file and zero-out the context.
11152 (grub_mofile_open): Don't call grub_gettext_delete_list.
11154 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11155 if locale="" to avoid pointless error message.
11156 (grub_gettext_env_write_lang): Update lang even if load fails.
11157 Handle secondary context.
11158 (grub_gettext_reread_prefix): New function.
11159 (read_main): Likewise.
11160 (read_secondary): Likewise.
11161 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11162 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11163 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11164 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11166 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11168 * configure.ac: Decrease warning level to avoid spurious warnings and
11169 to be able to compile with GCC 4.2.
11170 * Makefile.util.def: Remove -Wno-error=logical-op.
11172 2012-03-10 William Bittner <william.bittner@gmail.com>
11174 * util/import_unicode.py: Add missing brackets around string for
11177 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11179 Fix efi chainloader on network root.
11181 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11183 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11186 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11188 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11189 unused show_text member.
11190 * docs/grub.texi: Document "text" property.
11192 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11194 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11197 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11199 Fix IMSM handling on Fedora.
11201 * util/getroot.c (grub_util_is_imsm): New function.
11202 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11204 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11206 * Makefile.am: Strip gold section.
11207 * conf/Makefile.common: Likewise.
11208 * gentpl.py: Likewise.
11209 * grub-core/Makefile.core.def: Likewise.
11210 * grub-core/genmod.sh.in: Likewise.
11212 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11214 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11215 * util/grub.d/20_linux_xen.in: Likewise.
11216 Based on Debian patch.
11218 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11220 * util/grub.d/10_linux.in: Fix syntax error resulting in
11221 Richard Laager's patch.
11222 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11224 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11226 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11229 2012-03-10 Richard Laager <rlaager@wiktel.com>
11231 * util/grub.d/10_linux.in: Fix ZFS root passing.
11233 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11235 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11236 * grub-core/commands/xnu_uuid.c: Likewise.
11237 * grub-core/loader/efi/appleloader.c: Likewise.
11238 * grub-core/script/execute.c: Likewise.
11239 * grub-core/script/main.c: Likewise.
11240 * util/grub-mkfont.c: Likewise.
11242 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11244 * util/grub-mkfont.c (options): Use more appropriate "select" that
11245 "set" for face index.
11247 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11249 * util/grub-editenv.c (options): Gettextize command summaries.
11251 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11253 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11254 "out of memory" error messagge.
11256 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11258 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11259 of diskfilter for diskfilter on diskfilter support.
11261 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11263 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11265 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11267 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11270 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11272 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11274 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11276 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11278 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11280 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11283 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11285 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11287 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11289 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11291 * util/grub-install.in: Fix and gettextize error message.
11293 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11295 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11297 * util/grub-mount.c (options): Likewise.
11299 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11301 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11303 * grub-core/commands/search_wrap.c (options): Likewise.
11305 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11307 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11309 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11311 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11313 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11316 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11318 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11319 "temporary" since it's used in identifier and is limited in space.
11321 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11323 * po/POTFILES.in: Regenerate. Include *.h since they contain
11324 translatable strings as well.
11326 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11328 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11329 byte-swap on big-endian.
11330 Reported by: Lennart Sorensen
11332 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11334 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11335 (allocate_pages): Improve dprintf.
11336 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11337 code32_start. Fill code32_start and kernel_alignment in params.
11338 (grub_cmd_initrd): Use prot_init_space.
11340 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11342 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11344 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11346 * util/grub-install.in: Add missing dot at the end of sentence.
11348 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11350 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11351 * grub-core/commands/videotest.c: Likewise.
11352 * grub-core/loader/i386/linux.c: Likewise.
11354 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11356 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11358 Reported by: Milo Casagrande.
11360 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11362 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11363 * grub-core/commands/gptsync.c: Likewise.
11364 * grub-core/commands/hashsum.c: Likewise.
11365 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11366 * grub-core/commands/legacycfg.c: Likewise.
11367 * grub-core/io/gzio.c: Likewise.
11368 * grub-core/net/net.c: Likewise.
11369 * grub-core/term/gfxterm.c: Likewise.
11370 * grub-core/term/terminfo.c: Likewise.
11371 * grub-core/tests/test_blockarg.c: Likewise.
11372 * grub-core/video/video.c: Likewise.
11373 * util/grub-install.in: Likewise.
11374 * util/grub-mkfont.c: Likewise.
11376 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11378 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11380 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11382 * grub-core/commands/search_wrap.c (options): Fix a typo.
11383 Reported by: David Prévot.
11385 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11387 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11390 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11392 * util/grub-script-check.c (main): Fix a syntax error message which was
11395 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11397 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11399 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11401 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11404 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11406 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11408 * util/grub-mount.c (options): Likewise.
11410 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11412 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11414 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11416 * grub-core/net/http.c: Add TRANSLATORS comments.
11417 * grub-core/normal/cmdline.c: Likewise.
11418 * grub-core/normal/misc.c: Likewise.
11419 * grub-core/partmap/msdos.c: Likewise.
11420 * grub-core/parttool/msdospart.c: Likewise.
11421 * grub-core/script/execute.c: Likewise.
11422 * grub-core/script/main.c: Likewise.
11423 * grub-core/term/terminfo.c: Likewise.
11424 * grub-core/video/bitmap.c: Likewise.
11425 * util/grub-install.in: Likewise.
11426 * util/grub-mkimage.c: Likewise.
11427 * util/grub-mklayout.c: Likewise.
11428 * util/grub-setup.c: Likewise.
11430 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11432 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11433 with similar messages in grub-fstest.
11435 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11437 * util/grub-install.in: Unify "option requires an argument" message
11438 with similar messages in other files.
11439 * util/grub-mkconfig.in: Likewise.
11441 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11443 * util/grub-set-default.in: Replace printf with gettext_printf (the
11444 string in in question is already translated from grub-reboot)
11446 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11448 * configure.ac: Bump up the version to beta1.
11450 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11452 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11453 case when min_align = 0.
11455 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11457 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11458 and fix a case when line_start overflows.
11460 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11462 * util/grub-reboot.in (usage): Mention id posibility.
11463 * util/grub-set-default.in (usage): Likewise.
11465 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11467 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11468 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11469 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11470 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11471 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11472 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11473 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11475 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11477 * grub-core/commands/menuentry.c (options): Remove
11478 GRUB_ARG_OPTION_REPEATABLE.
11479 Reported by: Andreas Vogel
11481 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11483 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11485 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11487 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11490 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11492 Use sort -V by the idea of Georgi Georgiev.
11494 * util/grub-mkconfig_lib.in (version_sort): New function.
11495 (version_test_numeric): Use version_sort.
11497 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11499 Use submenus in grub-mkconfig.
11501 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11502 * util/grub-mkconfig_lib.in (grub_quote): New function.
11503 (gettext_printf): Use gettext and not gettext_quoted to fix several
11505 * util/grub.d/10_hurd.in: Use submenus.
11506 * util/grub.d/10_kfreebsd.in: Likewise.
11507 * util/grub.d/10_linux.in: Likewise.
11508 * util/grub.d/10_netbsd.in: Likewise.
11509 * util/grub.d/20_linux_xen.in: Likewise.
11510 * util/grub.d/30_os-prober.in: Likewise.
11511 * util/grub.d/10_illumos.in: Add missing quoting.
11512 * util/grub.d/10_windows.in: Likewise.
11514 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11516 Fix menu title instability bug.
11518 * grub-core/commands/menuentry.c (options): New option --id.
11519 (grub_normal_add_menu_entry): New argument id. All users updated.
11520 (grub_cmd_menuentry): Handle --id.
11521 (grub_menu_init): Accept unknown arguments.
11522 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11523 feature_menuentry_options.
11524 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11526 (get_entry_number): Match with id as well.
11527 * include/grub/menu.h (grub_menu_entry): New member id.
11528 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11529 * util/grub.d/00_header.in: Define menuentry_id_option.
11530 * util/grub.d/10_hurd.in: Define id.
11531 * util/grub.d/10_illumos.in: Likewise.
11532 * util/grub.d/10_kfreebsd.in: Likewise.
11533 * util/grub.d/10_linux.in: Likewise.
11534 * util/grub.d/10_netbsd.in: Likewise.
11535 * util/grub.d/10_windows.in: Likewise.
11536 * util/grub.d/20_linux_xen.in: Likewise.
11537 * util/grub.d/30_os-prober.in: Likewise.
11539 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11541 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11542 "scope" with "body".
11544 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11546 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11547 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11548 prot_size and prot_file_size.
11550 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11552 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11553 All users updated. If easily=1 require raid-5/-6 to be full.
11554 (is_node_readable): Likewise.
11555 (scan_devices): Scan incomplete but readable LVs at the end.
11556 (grub_diskfilter_memberlist): Pull missing devices.
11557 (insert_array): Skip scanning until device is complete or scan is
11559 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11561 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11562 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11564 2012-03-03 Matthew Garrett <mjg@redhat.com>
11565 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11567 Avoid EFI boot services when loading Linux.
11569 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11570 avoid_efi_bootservices. All users updated.
11571 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11572 argument avoid_efi_bootservices. All users updated.
11573 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11574 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11575 align, min_align, relocatable, prefered_address. All users updated.
11576 Allocate avoiding boot services if kernel is relocatable.
11577 (grub_cmd_linux): Check if kernel is relocatable.
11578 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11579 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11580 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11581 avoid_efi_boot_services.
11582 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11583 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11584 (linux_kernel_params): Likewise.
11586 2012-03-03 Matthew Garrett <mjg@redhat.com>
11587 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11591 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11593 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11594 modes. Set gop_handle.
11595 (grub_video_gop_get_edid): New function.
11596 (grub_gop_get_preferred_mode): Likewise.
11597 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11598 (grub_video_efi_gop_adapter): Set .get_edid.
11599 * include/grub/efi/edid.h: New file.
11600 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11602 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11604 * util/grub-install.in: Load efivars unconditionally.
11606 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11608 * po/Rules-piglatin: Change suffix from .po-update-en to
11609 .po-update-en-piglatin.
11611 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11615 * po/piglatin.sed: New file.
11616 * po/en@piglatin.header: Likewise.
11617 * po/Rules-piglatin: Likewise.
11618 * po/README: Add en@piglatin to autogenerated languages.
11620 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11622 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11624 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11625 "Check" since we don't check anything.
11626 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11628 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11629 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11630 (grub_md_sha512_real): Likewise.
11632 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11634 * grub-core/commands/gptsync.c: Fix typographic quoting.
11635 * grub-core/commands/ieee1275/suspend.c: Likewise.
11636 * grub-core/commands/parttool.c: Likewise.
11637 * grub-core/commands/search_wrap.c: Likewise.
11638 * grub-core/commands/videoinfo.c: Likewise.
11639 * grub-core/gfxmenu/gui_label.c: Likewise.
11640 * grub-core/hello/hello.c: Likewise.
11641 * grub-core/kern/emu/main.c: Likewise.
11642 * grub-core/net/net.c: Likewise.
11643 * grub-core/normal/menu.c: Likewise.
11644 * grub-core/normal/menu_text.c: Likewise.
11645 * grub-core/normal/misc.c: Likewise.
11646 * util/grub-editenv.c: Likewise.
11647 * util/grub-install.in: Likewise.
11648 * util/grub-kbdcomp.in: Likewise.
11649 * util/grub-mkconfig.in: Likewise.
11650 * util/grub-mknetdir.in: Likewise.
11651 * util/grub-mkrescue.in: Likewise.
11652 * util/grub-mkstandalone.in: Likewise.
11653 * util/grub-reboot.in: Likewise.
11654 * util/grub-set-default.in: Likewise.
11655 * util/grub-setup.c: Likewise.
11656 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11658 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11660 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11661 * grub-core/commands/keystatus.c: Likewise.
11662 * grub-core/commands/loadenv.c: Likewise.
11663 * grub-core/commands/probe.c: Likewise.
11664 * grub-core/commands/regexp.c: Likewise.
11665 * grub-core/commands/true.c: Likewise.
11666 * grub-core/commands/videoinfo.c: Likewise.
11667 * grub-core/disk/cryptodisk.c: Likewise.
11668 * grub-core/disk/ldm.c: Likewise.
11669 * grub-core/disk/loopback.c: Likewise.
11670 * grub-core/disk/luks.c: Likewise.
11671 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11672 * grub-core/kern/disk.c: Likewise.
11673 * grub-core/kern/emu/hostdisk.c: Likewise.
11675 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11677 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11678 * util/grub-install.in: Add missing quote in the comment.
11680 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11682 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11683 * grub-core/commands/lsmmap.c: Likewise.
11684 * grub-core/commands/minicmd.c: Likewise.
11685 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11686 * grub-core/commands/regexp.c: Likewise.
11687 * grub-core/gdb/gdb.c: Likewise.
11688 * grub-core/term/gfxterm.c: Likewise.
11689 * util/grub-mkconfig.in: Likewise.
11690 * util/grub-mkfont.c: Likewise.
11691 * util/grub-mklayout.c: Likewise.
11692 * util/grub-mknetdir.in: Likewise.
11693 * util/grub-mkrescue.in: Likewise.
11694 * util/grub.d/30_os-prober.in: Likewise.
11696 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11698 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11699 with "Direct color" and "Packed" with "Packed pixel".
11700 (grub_cmd_videoinfo): Simplify legend.
11702 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11704 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11705 absolutely unclear error message.
11707 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11709 * util/grub-mkstandalone.in: Remove confusing leftover print.
11711 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11713 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11715 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11716 (GRUB_MOD_INIT): Likewise.
11717 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11719 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11721 * util/grub-install.in (usage): Likewise.
11722 Spell ID in whole letters.
11723 Add missing ending dot.
11725 * util/grub-reboot.in: Fix capitalisation.
11726 * util/grub-set-default.in: Likewise.
11728 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11730 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11731 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11732 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11733 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11734 Disable -Werror for -Wdeprecated-declarations.
11735 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11736 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11737 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11738 (grub_util_get_grub_dev): Make luks handling dependent on
11739 HAVE_DEVICE_MAPPER and not __linux__.
11740 (get_win32_path): Fix format security.
11741 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11742 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11743 Don't try grub_find_zpool_from_dir.
11744 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11745 #ifdef-out paresdir.
11747 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11749 * util/grub-pe2elf.c (usage): Add missing noreturn.
11750 (write_section_data): Rename name to shname to avoid shadowing.
11751 (write_symbol_table): Rename name to symname to avoid shadowing.
11752 Fix write_reloc_section call.
11754 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11756 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11757 to ensure that it's after the last byte of .text.
11759 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11761 * util/ieee1275/ofpath.c (my_isdigit): New function.
11762 (trailing_digits): Use my_isdigit.
11763 (strip_trailing_digits): Likewise.
11765 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11767 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11768 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11770 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11772 * grub-core/kern/i386/pc/startup.S: Define __start.
11774 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11776 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11777 strip already transforms he format.
11779 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11781 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11783 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11785 * util/grub-install.in: Add missing gettext init.
11786 * util/grub-kbdcomp.in: Likewise.
11787 * util/grub-mkconfig.in: Likewise.
11788 * util/grub-mknetdir.in: Likewise.
11789 * util/grub-mkrescue.in: Likewise.
11790 * util/grub-mkstandalone.in: Likewise.
11791 * util/grub-reboot.in: Likewise.
11792 * util/grub-set-default.in: Likewise.
11793 * util/grub.d/00_header.in: Likewise.
11794 * util/grub.d/10_hurd.in: Likewise.
11795 * util/grub.d/10_windows.in: Likewise.
11796 * util/grub.d/30_os-prober.in: Likewise.
11797 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11799 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11801 * po/Rules-swiss: Fix header comment.
11803 2012-02-29 Andreas Vogel <anvoit>
11805 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11806 resulted in leak of arguments.
11808 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11810 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11811 reed_solomon_size const definition instead of computing it since
11812 Apple assembler doesn't support the later.
11814 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11816 * gentpl.py (kernel): Rewrite Apple part.
11818 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11820 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11822 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11824 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11826 (load_image): Likewise.
11828 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11830 * configure.ac: Fix a typo in previous commit.
11832 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11834 Don't add -Wl,-N on Apple platform.
11836 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11837 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11839 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11841 * grub-core/Makefile.core.def (lzma_decompress): Use
11842 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11844 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11846 * grub-core/genmod.sh.in: Rewrite the Apple part.
11848 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11850 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11853 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11855 * acinclude.m4 (grub_CHECK_PIC): New test.
11856 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11858 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11860 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11861 to avoid the warning.
11863 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11865 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11866 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11867 after. All users updated.
11869 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11871 Use the common size routine in hostfs so we can read disks as well.
11873 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11874 (grub_util_get_fd_size): ... this. Return size in bytes.
11876 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11877 grub_util_get_fd_size.
11879 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11881 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11882 Add blocksize retrieval.
11884 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11886 * configure.ac: Restore CFLAGS after efiemu check.
11888 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11890 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11893 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11895 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11897 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11899 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11900 (grub_cmd_halt): Likewise.
11902 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11904 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11905 for local arithmetics.
11906 Break %sp init into 2 instructions.
11907 Add 0 byte at the end.
11909 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11911 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11914 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11916 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11919 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11921 * grub-core/disk/ldm.c (make_vg): Init part.name.
11922 (grub_ldm_detect): Silence spurious warning.
11923 (grub_util_is_ldm): Likewise.
11925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11927 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11928 sane value to avoid a spurious warning.
11930 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11932 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11933 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11935 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11937 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11938 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11940 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11942 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11943 hardcoding the relevant info.
11945 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11947 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11948 missing const qualifiers.
11949 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11951 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11953 * util/getroot.c [__APPLE__]: Add missing includes.
11954 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11956 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11958 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11960 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11962 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11965 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11967 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11969 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11971 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11972 and grub_file_close call.
11974 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11976 Add LZSS Mach-O support (needed for new xnu kernelcache).
11978 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11979 * grub-core/loader/lzss.c: New file.
11980 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11981 on Mach-O open failure.
11982 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11983 Don't free cmdsXX in uncompressedXX is set.
11984 (grub_macho_file): Init new fields.
11985 New argument is_64bit. All users updated.
11986 Handle compressed. Error out if no suitable architecture is found.
11988 (grub_macho_open): New argument is_64bit. All users updated.
11989 * grub-core/loader/macho32.c: Add defines for new fields.
11990 * grub-core/loader/macho64.c: Likewise.
11991 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11992 (grub_macho_parse): Handle compressed.
11993 Defer actual processing if compressed.
11994 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11995 "filename". All users updated.
11996 (grub_macho_size): New argument "filename". All users updated.
11997 (grub_macho_get_entry_point): Likewise.
11998 (grub_macho_load): Handle compressed.
11999 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12000 (GRUB_MACHO_LZSS_OFFSET): New define.
12001 (grub_decompress_lzss): New proto.
12002 * include/grub/machoload.h (grub_macho_file): New fields to handle
12004 (grub_macho_contains_macho64): Remove proto.
12005 (grub_macho_contains_macho32): Likewise.
12006 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12008 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12010 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12012 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12016 * Makefile.am (starfield_theme_files): New var.
12017 (starfield_DATA): Use starfield_theme_files.
12018 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12019 Add bootcheck-related files.
12020 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12021 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12022 and font_char_metrics.txt.
12023 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12024 (setjmp): Add lib/ia64/longjmp.S.
12025 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12026 * po/POTFILES.in: Regenerate.
12027 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12028 DISTFILES.common.extra1.
12029 * util/devicemap.c: Removed.
12030 * grub-core/lib/i386/relocator_backward.S: Likewise.
12031 * util/import_gcry.py: Remove unused files. Add extra_dist for
12034 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12036 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12037 grub_gettext_delete_list before changing grub_gettext_max to avoid
12038 running out of array bounds.
12040 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12042 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12043 grub_vga_text_init/grub_vga_text_fini.
12045 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12047 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12049 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12051 * configure.ac: Bump to 2.00~beta0.
12053 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12055 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12056 missing initialisation.
12058 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12060 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12062 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12064 Support v2 xnu boot arguments.
12066 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12067 New argument fsbfreq_out.
12068 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12069 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12071 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12073 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12074 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12075 (grub_xnu_boot_params): Rename to ...
12076 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12077 (grub_xnu_boot_params_v2): New struct.
12079 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12081 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12082 zeroing of CRC field before computing CRC.
12084 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12086 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12087 Change order of allocations to decrease fragmentation.
12089 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12091 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12093 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12095 Use write-combining MTRR to speed up video with buggy BIOSes.
12097 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12098 (cpuid): New define.
12101 (mtrr_base): Likewise.
12102 (mtrr_mask): Likewise.
12103 (grub_vbe_enable_mtrr_entry): New function.
12104 (grub_vbe_enable_mtrr): Likewise.
12105 (grub_vbe_disable_mtrr): Likewise.
12106 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12107 control off to BIOS.
12108 (grub_video_vbe_init): Fill mtrr.
12109 (grub_video_vbe_fini): Disable mtrr.
12110 (grub_video_vbe_get_info_and_fini): Likewise.
12111 (grub_video_vbe_setup): Enable mtrr.
12113 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12115 * include/grub/partition.h (grub_partition_map): Change prototype of
12116 embed to take a maximum value for nsectors.
12117 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12118 * include/grub/fs.h (grub_fs): Likewise.
12119 * grub-core/partmap/msdos.c (embed_signatures): New array.
12120 (pc_partition_map_embed): Check for and avoid sectors matching any
12121 of the signatures in embed_signatures, up to max_nsectors.
12122 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12123 returned sector map to max_nsectors.
12124 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12125 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12126 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12127 * util/grub-setup.c (setup): Allow for the embedding area being
12128 split into multiple blocklists. Tell dest_partmap->embed the
12129 maximum number of sectors we care about.
12131 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12133 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12134 Specify blocklist_install and reserver_first_sector for all fs.
12135 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12138 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12140 * util/grub-install.in: Clarify strings.
12141 Fix source dir check.
12143 2012-02-27 Richard Laager <rlaager@wiktel.com>
12145 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12146 "zfs" and "fuse.zfs" as synonyms.
12148 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12150 * configure.ac: Put platform and target_cpu substitutions back since
12151 they are used for directories.
12153 2012-02-27 Richard Laager <rlaager@wiktel.com>
12154 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12156 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12157 * util/grub.d/20_linux_xen.in: Likewise.
12159 2012-02-27 Richard Laager <rlaager@wiktel.com>
12161 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12164 2012-02-27 Richard Laager <rlaager@wiktel.com>
12166 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12169 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12171 Don't use insecure popen in getroot.
12173 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12174 (exec_pipe): ... here.
12175 (find_root_devices_from_poolname): Use exec_pipe.
12177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12179 Remove platform and target_cpu replacement.
12181 * configure.ac: Remove platform and target_cpu substitutions.
12182 * tests/util/grub-shell.in: Use modinfo.
12183 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12186 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12188 Autodetect platform in grub-install but allow override.
12190 * util/grub-install.in: Autodetect platform. Support --target and
12191 --directory. Read platform from modinfo.sh.
12193 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12195 Support btrfs multi-volume probe.
12197 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12198 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12199 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12200 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12201 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12202 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12203 grub_find_root_devices_from_btrfs if on btrfs.
12205 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12207 Remove any awareness of *.c util files about target.
12209 * Makefile.util.def (grub-setup): Split to ...
12210 (grub-bios-setup): ... and this.
12211 (grub-sparc64-setup): ... and this.
12212 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12213 * docs/man/grub-setup.h2m: Split into ...
12214 * docs/man/grub-sparc64-setup.h2m: ... this.
12215 * docs/man/grub-bios-setup.h2m: ... and this.
12216 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12217 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12218 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12219 (grub_target_addr_t): Remove.
12220 (grub_target_size_t): Remove.
12221 (grub_target_ssize_t): Remove.
12222 * util/grub-install.in: Use new grub-*-setup.
12223 * util/grub-mkimagexx.c (Elf_Word): New define.
12224 (Elf_Half): Likewise.
12225 (Elf_Section): Likewise.
12226 (ELF_ST_TYPE): Likewise.
12227 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12228 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12230 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12232 Replace grub_target_addr with more appropriate types.
12234 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12235 grub_target_addr with grub_addr.
12236 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12237 grub_target_addr with grub_port.
12238 (grub_cmd_write): Likewise.
12239 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12240 grub_target_addr with grub_addr.
12241 (grub_cmd_write): Likewise.
12242 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12244 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12246 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12247 const qualifier for vendor_guid.
12249 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12251 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12253 (efiemu_memequal): Likewise.
12254 (find_variable): Likewise.
12256 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12258 Fix missing console prototype on qemu-mips.
12260 * include/grub/mips/qemu_mips/console.h: New file.
12262 2012-02-27 Matthew Garrett <mjg@redhat.com>
12263 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12265 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12266 * include/grub/efi/efi.h: Likewise.
12267 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12268 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12269 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12270 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12271 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12272 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12274 2012-02-27 Matthew Garrett <mjg@redhat.com>
12276 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12278 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12280 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12285 * configure.ac: Remove inappropriate use of program_transform_name
12286 on grubdir and bootdir but allow explicit specification of those
12289 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12291 * util/grub-mknetdir.in (grub_prefix): Removed.
12292 (subdir): Use @bootdirname@ and @grubdirname@.
12294 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12296 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12298 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12300 * po/POTFILES.in: Regenerated.
12302 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12304 Remove improper use of program_transform_name on pkglibrootdir.
12306 * configure.ac (pkglibrootdir): Removed.
12307 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12308 * util/grub-mkimage.c: Likewise.
12310 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12312 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12315 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12317 * util/grub-install.in: Use file identifier if no UUID is available
12318 or user explicitly prompted for it.
12320 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12322 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12323 (freebsd_get_zfs): New function.
12324 (grub_freebsd_boot): Pass zfs UUID.
12325 (grub_cmd_freebsd): Set zfs UUID.
12327 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12329 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12332 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12334 Add configure flag to control libzfs integration.
12336 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12338 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12340 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12342 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12345 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12347 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12348 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12349 be used on non-modules.
12351 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12352 Rename to grub_boot_init.
12353 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12354 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12355 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12356 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12357 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12358 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12359 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12360 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12362 (grub_machine_init): Remove empty inits.
12363 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12365 (grub_machine_init): Remove empty inits.
12366 * grub-core/term/arc/console.c: Remove explicit proto.
12367 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12368 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12369 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12370 grub_at_keyboard_fini.
12371 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12372 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12373 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12375 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12376 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12377 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12379 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12380 * grub-core/term/serial.c (GRUB_MOD_INIT)
12381 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12382 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12384 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12385 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12386 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12387 grub_terminfo_fini.
12388 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12389 (GRUB_MOD_FINI): Likewise.
12390 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12391 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12392 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12393 grub_video_radeon_fuloong2e_fini.
12394 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12395 [LOONGSON]: Rename to grub_video_sis315pro_init.
12396 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12397 grub_video_sis315pro_fini.
12398 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12399 [LOONGSON]: Rename to grub_video_sm712_init.
12400 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12401 grub_video_sm712_fini.
12402 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12403 (grub_at_keyboard_fini): Likewise.
12404 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12405 Don't declare grub_{modname}_init.
12406 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12407 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12409 (grub_keylayouts_fini) [!EMU]: Likewise.
12410 * include/grub/serial.h (grub_serial_init) [!EMU]:
12412 (grub_serial_fini) [!EMU]: Likewise.
12413 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12415 (grub_terminfo_fini) [!EMU]: Likewise.
12416 * include/grub/video.h (grub_font_init) [!EMU]:
12418 (grub_font_fini) [!EMU]: Likewise.
12419 (grub_gfxterm_init) [!EMU]: Likewise.
12420 (grub_gfxterm_fini) [!EMU]: Likewise.
12421 (grub_video_sm712_init) [!EMU]: Likewise.
12422 (grub_video_sm712_fini) [!EMU]: Likewise.
12423 (grub_video_sis315pro_init) [!EMU]: Likewise.
12424 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12425 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12426 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12428 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12430 Make nand a prefix for nand devices.
12432 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12434 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12436 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12437 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12439 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12441 * include/grub/env.h (grub_env_find): Remove prototype.
12442 * grub-core/kern/env.c (grub_env_find): Make static.
12443 (grub_env_set): Remove useless set.
12445 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12447 * grub-core/kern/i386/realmode.S: Remove useless align.
12449 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12451 * include/grub/dl.h (grub_dl_load_file): Don't export.
12453 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12455 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12458 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12460 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12462 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12463 not reloading whole superblock but only the part which is really needed.
12464 Remove useless grub_errors.
12465 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12468 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12470 Don't export grub_get_rtc.
12472 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12473 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12475 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12477 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12479 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12481 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12482 argument since it can be deduced from diskfilter. All users updated.
12484 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12488 * include/grub/list.h (grub_prio_list): Removed.
12489 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12490 GRUB_COMMAND_PRIO_MASK.
12491 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12492 GRUB_COMMAND_FLAG_ACTIVE.
12493 (grub_prio_list_insert): Removed.
12494 (grub_prio_list_remove): Likewise.
12495 (GRUB_AS_PRIO_LIST): Likewise.
12496 (GRUB_AS_PRIO_LIST_P): Likewise.
12497 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12498 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12499 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12500 * grub-core/kern/command.c (grub_register_command_prio): Inline
12501 the prio_list code.
12502 (grub_unregister_command): Likewise.
12504 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12506 Fix interrupt mixup from previous commit.
12508 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12509 (grub_realidt): New var.
12510 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12512 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12514 (grub_relocator16_boot): Set grub_relocator16_idt.
12515 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12516 (LOCAL(realidt)): ... this.
12517 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12518 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12519 (grub_realidt): New variable.
12521 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12523 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12524 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12525 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12526 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12528 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12529 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12530 * po/POTFILES.in: Regenerate.
12532 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12534 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12537 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12539 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12541 (add_length): Likewise.
12543 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12544 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12546 GDB serial and backtrace support.
12548 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12549 (prot_to_real): Likewise.
12550 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12551 * grub-core/Makefile.core.def (backtrace): New module.
12553 * grub-core/gdb/cstub.c: New file.
12554 * grub-core/gdb/gdb.c: Likewise.
12555 * grub-core/gdb/i386/idt.c: Likewise.
12556 * grub-core/gdb/i386/machdep.S: Likewise.
12557 * grub-core/gdb/i386/signal.c: Likewise.
12558 * grub-core/lib/i386/backtrace.c: Likewise.
12559 * grub-core/lib/backtrace.c: Likewise.
12560 * include/grub/backtrace.h: Likewise.
12561 * include/grub/gdb.h: Likewise.
12562 * include/grub/i386/gdb.h: Likewise.
12564 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12566 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12568 (add_length): Likewise.
12569 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12570 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12572 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12573 __argp_get_display_len.
12575 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12577 $"..." support in scripts.
12579 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12580 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12581 * grub-core/script/yylex.l: Likewise.
12582 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12585 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12587 * gentpl.py: Remove obsolete pkglib_DATA handling.
12589 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12591 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12594 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12595 * util/grub-kbdcomp.in: Likewise.
12596 * util/grub-mkconfig.in: Likewise.
12597 * util/grub-mkconfig_lib.in: Likewise.
12598 * util/grub-mknetdir.in: Likewise.
12599 * util/grub-mkrescue.in: Likewise.
12600 * util/grub-mkstandalone.in: Likewise.
12601 * util/grub-reboot.in: Likewise.
12602 * util/grub-set-default.in: Likewise.
12603 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12605 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12607 Remove GRUB_PREFIX.
12609 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12610 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12611 used for backward compatibility.
12613 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12615 Add new all_video module.
12617 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12618 * grub-core/Makefile.core.def (all_video): New module.
12619 * grub-core/genmoddep.awk: Generate dependency of all_video from
12621 * grub-core/lib/fake_module.c: New file.
12622 * grub-core/normal/main.c (features): Add feature_all_video_module.
12623 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12624 don't do explicit search again.
12625 insmod all_video in load_video if available.
12627 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12629 Another round of string clarification and adding TRANSLATORS comments.
12631 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12633 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12635 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12637 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12639 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12640 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12642 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12644 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12645 trailing newline implicitly. All users updated.
12647 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12649 Implement serial on IEEE1275 and EFI.
12651 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12652 on emu. Mention arc and emu as the only platforms without serial
12654 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12655 ieee1275 platforms.
12656 * grub-core/term/efi/serial.c: New file.
12657 * grub-core/term/ieee1275/serial.c: Likewise.
12658 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12659 specification if no ns8250 driver is available.
12660 (grub_cmd_serial): Likewise.
12661 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12662 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12663 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12664 (grub_efi_parity_type_t): New type.
12665 (grub_efi_stop_bits_t): Likewise.
12666 (grub_efi_serial_io_interface): New struct.
12667 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12668 available for all interfaces.
12669 Add EFI and IEEE1275 fields.
12670 (grub_ofserial_init): New proto.
12671 (grub_efiserial_init): Likeiwse.
12672 * util/grub.d/00_header.in: Don't check for the presence of serial
12675 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12677 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12678 name as if it was an alias.
12680 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12682 * grub-core/commands/lsacpi.c (options): Fix typo.
12684 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12686 Convert grub-emu to argp.
12688 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12690 * util/argp_common.c: Rename to ...
12691 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12692 Add missing includes.
12693 * grub-core/kern/emu/main.c: Convert to argp.
12694 * po/POTFILES.in: Regenerate.
12695 * util/grub-install.in (usage): Make first letter lowcase in messages
12697 * util/grub-setup.c (options): Likewise.
12699 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12701 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12702 Put back accidently commented-out code.
12704 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12706 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12707 loop check using Brent algorithm.
12708 (grub_hfsplus_btree_search): Likewise.
12710 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12712 * util/grub-install.in: Fix usage of wrong device for PreP install.
12714 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12716 * conf/Makefile.common (CFLAGS_GNULIB): Add
12717 -Wno-unsafe-loop-optimizations.
12718 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12720 * grub-core/commands/legacycfg.c: Add pragma to skip
12721 -Wunsafe-loop-optimizations.
12722 (check_password_md5_real): Fix loop counter type.
12723 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12725 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12726 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12728 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12729 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12730 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12732 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12733 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12734 avoid possible infinite loops.
12735 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12736 and -Wunsafe-loop-optimizations.
12737 * grub-core/script/yylex.l: Likewise.
12738 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12739 (print_glyphs): Avoid infinite loops.
12740 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12742 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12744 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12745 to avoid infinite loop.
12746 (disp_acpi_rsdt_table): Likewise.
12748 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12750 * grub-core/font/font.c (grub_font_load): Add support for default
12751 path for fonts ($prefix/fonts).
12752 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12753 for checking if string is a path.
12754 * grub-core/normal/main.c (features): Add feature_default_font_path.
12755 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12756 * util/grub.d/00_header.in: Use default directory if possible.
12757 * util/grub-install.in: Install unicode.pf2.
12759 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12761 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12762 * po/Rules-swiss: New file.
12763 * po/swiss.sed: Likewise.
12765 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12767 * grub-core/fs/btrfs.c (find_device): Fix typos.
12768 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12769 * util/grub-mkrelpath.c (argp_parser): Likewise.
12770 Reported by: Yuri Chornoivan.
12772 2012-02-23 Dalet Omega <daletomega@gmail.com>
12774 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12775 for usual informative messages.
12777 2012-02-23 Dalet Omega <daletomega@gmail.com>
12781 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12782 * conf/Makefile.common: Define starfielddir.
12783 * configure.ac: Configure starfield.
12784 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12785 * themes/starfield/README: Likewise.
12786 * themes/starfield/blob_w.png: Likewise.
12787 * themes/starfield/boot_menu_c.png: Likewise.
12788 * themes/starfield/boot_menu_e.png: Likewise.
12789 * themes/starfield/boot_menu_n.png: Likewise.
12790 * themes/starfield/boot_menu_ne.png: Likewise.
12791 * themes/starfield/boot_menu_nw.png: Likewise.
12792 * themes/starfield/boot_menu_s.png: Likewise.
12793 * themes/starfield/boot_menu_se.png: Likewise.
12794 * themes/starfield/boot_menu_sw.png: Likewise.
12795 * themes/starfield/boot_menu_w.png: Likewise.
12796 * themes/starfield/slider_c.png: Likewise.
12797 * themes/starfield/slider_n.png: Likewise.
12798 * themes/starfield/slider_s.png: Likewise.
12799 * themes/starfield/src/blob_nw.xcf: Likewise.
12800 * themes/starfield/src/bootmenu/: Likewise.
12801 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12802 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12803 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12804 * themes/starfield/src/slider_c.xcf: Likewise.
12805 * themes/starfield/src/slider_n.xcf: Likewise.
12806 * themes/starfield/src/slider_s.xcf: Likewise.
12807 * themes/starfield/src/terminalbox/: Likewise.
12808 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12809 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12810 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12811 * themes/starfield/starfield.png: Likewise.
12812 * themes/starfield/terminal_box_c.png: Likewise.
12813 * themes/starfield/terminal_box_e.png: Likewise.
12814 * themes/starfield/terminal_box_n.png: Likewise.
12815 * themes/starfield/terminal_box_ne.png: Likewise.
12816 * themes/starfield/terminal_box_nw.png: Likewise.
12817 * themes/starfield/terminal_box_s.png: Likewise.
12818 * themes/starfield/terminal_box_se.png: Likewise.
12819 * themes/starfield/terminal_box_sw.png: Likewise.
12820 * themes/starfield/terminal_box_w.png: Likewise.
12821 * themes/starfield/theme.txt: Likewise.
12823 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12825 * util/grub.d/00_header.in: Add missing export theme.
12827 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12829 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12831 Reported by: Eren D.
12833 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12835 * conf/Makefile.common (grubdatadir): Removed.
12836 (Makefile.am): Move eveything grubdata to pkgdata.
12838 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12840 * grub-core/commands/acpihalt.c (get_sleep_type):
12841 Remove unused variable.
12843 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12845 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12846 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12847 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12848 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12849 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12850 i18n with gettext no-op.
12851 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12852 GRUB_ACPI_OPCODE_STRING_CONST.
12853 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12854 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12856 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12858 * po/POTFILES.in: Regenerate.
12860 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12862 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12863 -Wno-error=missing-noreturn.
12865 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12867 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12868 condition to avoid possibly infinite loops.
12869 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12870 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12872 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12874 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12875 condition to avoid possibly infinite loops.
12877 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12879 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12882 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12884 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12886 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12888 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12890 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12892 * util/bin2h.c (usage): Add missing attribute noreturn.
12894 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12896 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12897 if the size isn't divisible by 512.
12899 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12901 Make list_push and list_remove functions rather than inline functions
12902 to decrease size and avoid aliasing violations.
12904 * include/grub/list.h (grub_list_push): Move to ...
12905 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12906 * include/grub/list.h (grub_list_remove): Move to ...
12907 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12909 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12911 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12912 and -Wunused-result.
12914 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12916 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12917 Reported by: Seth Goldberg
12919 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12921 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12923 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12925 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12926 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12928 * docs/grub.texi (Simple configuration): Document
12929 GRUB_CMDLINE_GNUMACH.
12931 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12933 * conf/Makefile.common (platform_SCRIPTS): New variable.
12934 (platform_PROGRAMS): Likewise.
12935 * gentpl.py: Mark *,module and *.image for install.
12936 * grub-core/gdb_grub.in: Add a notice of expected environment.
12937 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12938 (gmodule.pl): Likewise.
12940 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12942 Replace grub_checkkey with grub_getkey_noblock.
12944 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12945 (grub_getkey_noblock): ... this. All users updated.
12947 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12949 * grub-core/kern/emu/console.c: Move to ...
12950 * grub-core/term/emu/console.c: ...here.
12951 (grub_ncurses_getkey): Fix return value if no key is detected.
12953 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12955 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12956 (grub_unit_test_fini): Likewise.
12957 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12959 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12961 * include/grub/test.h (GRUB_UNIT_TEST)
12963 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12965 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12966 Better error handling.
12967 (grub_script_return): Likewise.
12968 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12970 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12972 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12973 rimplicit redifinition.
12975 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12977 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12980 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12982 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12983 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12986 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12988 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12989 as GRUB_ERR_BUG. Don't malloc if no device is available.
12991 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12993 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12994 Mark calling with invalid term as GRUB_ERR_BUG.
12996 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12998 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12999 packets rather than raising an error.
13001 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13003 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13006 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13008 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13009 diagnostic to dprintf.
13010 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13012 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13014 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13017 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13019 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13020 (grub_ntfs_iterate_dir): Likewise.
13022 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13024 Efiemu stylistic fixes and gettext.
13026 * grub-core/efiemu/i386/loadcore32.c
13027 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13028 * grub-core/efiemu/i386/loadcore64.c
13029 (grub_arch_efiemu_relocate_symbols64): Likewise.
13030 * grub-core/efiemu/i386/pc/cfgtables.c
13031 (grub_machine_efiemu_init_tables): Likewise.
13032 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13033 (grub_efiemu_loadcore_initXX): Add a filename argument.
13035 Improved error message.
13036 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13037 Add a filename argument.
13039 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13040 Reclassify double relocation as GRUB_ERR_BUG.
13042 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13044 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13047 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13049 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13052 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13054 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13056 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13058 Improve string. Gettextize.
13060 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13062 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13064 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13066 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13068 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13069 [GRUB_UTIL]: New function.
13070 (insert_array) [GRUB_UTIL]: Store partmaps.
13071 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13073 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13074 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13075 (probe_abstraction): Print diskfilter and not raid.
13076 Reported by: Lennart Sorensen
13078 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13080 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13081 * util/grub-mkimagexx.c (MASK3): New define.
13082 (add_value_to_slot_20b): Use MASK3.
13083 (add_value_to_slot_21): Likewise.
13084 (relocate_addresses): Fix format specification.
13085 (load_image): Explicitly init symtab_section.
13087 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13089 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13090 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13092 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13094 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13096 Reported by: Lennart Sorensen
13098 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13100 * gentpl.py: Add missing license header.
13101 * docs/grub.texi: Update copyright year.
13103 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13105 Source grub-mkconfig_lib from the build directory at build time.
13106 Suggested by: Vladimir Serbinenko.
13108 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13109 * util/grub-install.in: Define pkgdatadir if not already set, and source
13110 grub-mkconfig_lib from there.
13111 * util/grub-kbdcomp.in: Likewise.
13112 * util/grub-mkconfig.in: Likewise.
13113 * util/grub-mknetdir.in: Likewise.
13114 * util/grub-mkrescue.in: Likewise.
13115 * util/grub-mkstandalone.in: Likewise.
13116 * util/grub-reboot.in: Likewise.
13117 * util/grub-set-default.in: Likewise.
13118 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13120 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13122 Increase warning level.
13124 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13125 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13126 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13127 (TARGET_CFLAGS): Likewise.
13128 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13129 * grub-core/Makefile.core.def (decompressor_xz): Add
13130 -Wno-unreachable-code.
13131 (normal): Add -Wno-redundant-decls.
13132 (xzio): Add -Wno-unreachable-code.
13133 (lzopio): Add -Wno-redundant-decls -Wno-error.
13134 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13135 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13136 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13137 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13138 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13139 * grub-core/kern/i386/coreboot/init.c: Add exception to
13140 -Wsuggest-attribute=noreturn.
13141 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13142 * grub-core/kern/ia64/dl_helper.c: Likewise.
13143 * grub-core/kern/mips/dl.c: Likewise.
13144 * grub-core/kern/sparc64/dl.c: Likewise.
13145 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13146 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13147 (memcmp): Likewise.
13148 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13149 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13150 * grub-core/loader/mips/linux.c: Likewise.
13151 * grub-core/loader/multiboot_elfxx.c: Likewise.
13152 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13153 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13154 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13155 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13157 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13158 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13161 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13163 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13166 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13168 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13169 Avoid improper use of strings.
13170 (grub_cmd_legacy_initrdnounzip): Likewise.
13172 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13174 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13176 (grub_util_info): Likewise.
13177 (grub_util_error): Likewise.
13179 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13181 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13182 * util/grub-fstest.c (fstest): Likewise.
13184 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13186 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13187 (grub_md_sha512_real): Likewise.
13188 (grub_util_get_geli_uuid): Likewise.
13189 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13190 (grub_util_biosdisk_open): Fix format specification.
13191 Respect format security.
13192 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13193 (xrealloc): Likewise.
13194 (xasprintf): Likewise.
13196 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13198 * util/import_gcry.py: Include grub/crypto.h in init.c.
13200 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13202 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13203 (generate_image): Make prefix a const char *.
13204 Fix format specifications. Respect format security.
13205 Avoid void * arithmetics.
13207 (argp_parser): Remove unused variable. Respect format security.
13208 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13209 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13210 (count_funcs): Remove unused variable.
13211 (relocate_addresses): Fix format specification.
13212 Disable x86-64 with elf32. Remove unused variables.
13213 (add_fixup_entry): Avoid shadowing.
13214 (make_reloc_section): Fix format specification.
13216 (locate_sections): Fix format specifications.
13217 (load_image): Avoid shadowing.
13219 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13221 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13222 Fix format specifications. Respect format security.
13223 Don't translate already translated grub_errmsg.
13224 (argp_parser): Remove unused variable
13226 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13228 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13230 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13232 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13233 (main): Likewise. Use xmalloc. Respect format security.
13235 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13237 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13239 (argp_parser): Remove unused variable.
13241 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13243 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13244 (add_pixel): Make static.
13245 (add_font): Likewise.
13246 (write_string_section): Make name and str a const char *.
13247 (write_be16_section): Make name a const char *.
13248 (print_glyphs): Make static.
13249 (write_font_ascii_bitmap): Likewise.
13250 (write_font_width_spec): Likewise.
13251 (write_font_pf2): Likewise.
13252 (argp_parser): Remove unused variable.
13253 Respect format security.
13254 (main): Avoid shadowing. Respect format security.
13256 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13258 * util/grub-editenv.c (argp_parser): Make static.
13259 (create_envblk_file): Use xmalloc.
13260 (open_envblk_file): Likewise.
13261 Resepect format security.
13262 (set_variables): Respect format security.
13264 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13266 * util/getroot.c (grub_find_device): Respect format security.
13267 (get_mdadm_uuid): Remove unused variable.
13268 (grub_util_pull_device): Dont call gettext on already translated
13270 (find_system_device): Remove unused variable.
13271 (grub_util_get_grub_dev): Likewise.
13272 (grub_make_system_path_relative_to_its_root): Respect format security.
13274 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13276 * util/grub-fstest.c (execute_command): Make first argument
13278 (read_file): Avoid shadowing.
13279 Reuse underlying error message if device open fails.
13280 (cmd_cmp): Respect format security.
13281 (root): Make const char *.
13282 (fstest): Remove args argument and use global copy.
13283 Respect format security.
13284 (argp_parser): Make static.
13285 (main): Make default_root const char *.
13287 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13289 * util/grub-mount.c (root): Make const char *.
13290 (execute_command): Make first argument a const char *.
13291 (fuse_init): Respect format security.
13292 (argp_parser): Make static. Remove unused variable.
13293 (main): Make default_root a const char *.
13294 Respect format security.
13296 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13298 * util/grub-probe.c (probe): Don't call gettext on already translated
13300 Remove unused variables.
13301 (argp_parser): Remove unused variable.
13303 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13305 * util/grub-script-check.c (argp_parser): Remove unused variable.
13306 (main): Rename read to curread to avoid shadowing.
13308 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13310 * util/misc.c (grub_util_write_image_at): Fix format specification.
13311 (grub_util_write_image): Likewise.
13312 (grub_script_execute_argument_to_string): Removed (unused).
13313 (grub_script_execute_menuentry): Likewise.
13314 (grub_putchar): Likewise.
13316 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13318 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13319 (FUNCTION) [GRUB_UTIL]: Likewise.
13320 (VARIABLE) [GRUB_UTIL]: Likewise.
13322 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13324 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13325 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13327 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13329 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13332 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13334 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13335 (LzmaEnc_SaveState): Removed (unused).
13336 (LzmaEnc_RestoreState): Likewise.
13337 (LzmaEnc_InitPriceTables): Made static.
13338 (LzmaEnc_Construct): Likewise.
13339 (LzmaEnc_FreeLits): Likewise.
13340 (LzmaEnc_Destruct): Likewise.
13341 (LzmaEnc_Init): Likewise.
13342 (LzmaEnc_InitPrices): Likewise.
13343 (LzmaEnc_Finish): Likewise.
13344 (LzmaEnc_PrepareForLzma2): Removed (unused).
13345 (LzmaEnc_MemPrepare): Likewise.
13346 (LzmaEnc_GetNumAvailableBytes): Likewise.
13347 (LzmaEnc_GetCurBuf): Likewise.
13348 (LzmaEnc_CodeOneMemBlock): Likewise.
13350 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13352 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13353 (grub_util_ldm_embed): Likewise.
13355 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13357 * util/grub-editenv.c (print_var): Rename name to varname to
13359 (main): Rename index to curindex to avoid shadowing.
13360 Make filename a const char *.
13362 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13364 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13365 to arg_getline to avoid shadowing.
13367 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13369 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13370 disk_ to avoid shadowing.
13372 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13374 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13375 curindex to avoid shadowing.
13377 (MatchFinder_GetNumAvailableBytes): Make static.
13379 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13381 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13386 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13387 argument from encrypt to do_encrypt to avoid shadowing.
13389 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13391 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13392 incorrect nesting of #if's.
13394 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13396 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13397 checks which are always false on some platforms.
13398 (grub_cmd_lsacpi): Likewise.
13399 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13400 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13403 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13405 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13406 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13408 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13410 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13411 re_dfa_t to avoid breaking alignment invariants.
13412 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13413 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13415 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13417 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13418 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13420 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13422 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13425 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13427 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13428 conserve alignment invariants.
13429 (grub_ehci_ehcc_read16): Likewise.
13430 (grub_ehci_oper_read32): Likewise.
13431 (grub_ehci_oper_write32): Likewise.
13432 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13433 Conserve alignment invariants.
13435 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13437 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13438 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13441 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13443 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13444 Remove unused variable.
13446 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13448 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13451 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13453 * include/grub/net.h: Remove double declarations.
13455 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13457 Remove "payload" command in ia64 Linux loader since I couldn't
13458 find any evidence of it being used for anything.
13459 Replace "relocate" command with an environment variable
13461 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13463 (ia64_boot_payload): Removed.
13464 (last_payload): Likewise.
13465 (RELOCATE_OFF): Likewise.
13466 (RELOCATE_ON): Likewise.
13467 (RELOCATE_FORCE): Likewise.
13468 (relocate): Likewise.
13469 (free_pages): Don't free payloads.
13470 (grub_load_elf64): Use common error messages.
13471 Use "linux_relocate" variable.
13472 Increase the space after boot_params.
13473 (grub_cmd_payload): Removed.
13474 (grub_cmd_relocate): Likewise.
13475 (grub_cmd_fpswa): Improve messages.
13476 (cmd_payload): Removed.
13477 (cmd_relocate): Likewise.
13478 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13479 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13481 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13483 Convert UHCI to DMA framework.
13485 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13486 (grub_uhci_pci_iter): Fill new members
13487 (grub_alloc_td): Use P2V and V2P functions.
13488 (grub_free_queue): Likewise.
13489 (grub_alloc_qh): Likewise.
13490 (grub_uhci_setup_transfer): Likewise.
13491 (grub_uhci_check_transfer): Likewise.
13493 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13495 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13496 Remove assignment in if while on it.
13498 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13500 * util/grub-mkstandalone.in: Fix modules directory.
13502 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13504 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13506 (argp_parser): Accept "auto" as compression specification.
13508 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13510 Fix `help' with unloaded modules.
13512 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13513 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13514 (grub_dyncmd_dispatcher): Small stylistic fix.
13515 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13516 explicit help is requested.
13518 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13520 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13521 Explicitly init restart while on it.
13523 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13525 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13528 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13530 * util/grub-mknetdir.in: Use . rather than source for POSIX
13533 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13535 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13537 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13539 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13542 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13544 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13547 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13549 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13551 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13553 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13554 iteration of partitions.
13556 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13558 Improve gettext support. Stylistic fixes and error handling fixes while
13561 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13563 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13564 part. Instead setup the correct stack in RM.
13565 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13567 * include/grub/i386/relocator_private.h: New file.
13569 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13571 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13573 * util/grub-fstest.c (options): Add missing DEVICE part.
13575 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13577 Clarify and unify messages.
13579 * grub-core/commands/hashsum.c (options): Unify messages.
13580 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13581 literal-only message as translatable.
13582 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13583 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13584 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13586 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13587 key, not the key used to unlock. Clarify what it's used for.
13588 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13589 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13590 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13591 * util/grub-editenv.c (options): Unify "verbose" message.
13592 * util/grub-fstest.c (read_file): Unify error message.
13593 (fstest): Add quotes around commands.
13594 (options): Unify "verbose" message.
13595 * util/grub-install.in: Add quotes around variable name.
13596 * util/grub-kbdcomp.in: Unify error message.
13597 * util/grub-mkfont.c (main): Likewise.
13598 * util/grub-mkrescue.in: Likewise.
13599 * util/grub-mklayout.c (options): Unify "verbose" message.
13600 * util/grub-mkstandalone.in: Unify help and verbose messages.
13601 * util/grub-mount.c (options): Unify "verbose" message.
13602 * util/grub-probe.c (options): Likewise.
13603 * util/grub-script-check.c (options): Likewise.
13604 * util/grub-setup.c (setup): Unify no-terminator message.
13605 (options): Use DEVICE and not DEV.
13606 Unify "verbose" message.
13607 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13609 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13611 Improve and unify messages.
13613 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13614 name. All users updated.
13615 Print filename in error.
13616 (read_device_map): Print filename in error.
13617 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13618 (grub_util_get_os_disk): Likewise.
13619 (grub_util_biosdisk_get_grub_dev): Likewise.
13620 (grub_util_check_block_device): Likewise.
13621 (grub_util_check_char_device): Likewise.
13622 (grub_make_system_path_relative_to_its_root): Likewise.
13623 * util/grub-editenv.c (create_envblk_file): Likewise.
13624 (open_envblk_file): Likewise.
13625 (write_envblk): Likewise.
13626 * util/grub-fstest.c (cmd_cp): Likewise.
13627 (cmd_cat): Likewise.
13628 (cmd_cmp): Likewise.
13629 * util/grub-menulst2cfg.c (main): Likewise.
13630 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13631 (write_font_width_spec): Likewise.
13632 (write_font_pf2): Likewise.
13633 * util/grub-mkimage.c (generate_image): New argument outname.
13635 Remove unreacheable message.
13636 (options): Unify messages.
13637 (help_filter): Likewise.
13638 * util/grub-mklayout.c (usage): Removed (unused).
13639 (main): Print filename in error.
13640 * util/grub-mkrescue.in: Fix wrong quoting.
13641 * util/grub-setup.c (setup): Print filename in error.
13642 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13643 (check_sas): Likewise.
13644 * util/misc.c (grub_util_get_fp_size): Removed.
13645 (grub_util_get_image_size): Print filename in error.
13646 (grub_util_read_at): Removed.
13647 (grub_util_read_image): Print filename in error.
13648 (grub_util_load_image): Likewise.
13649 (grub_util_write_image_at): New argument filename. All users updated.
13650 Print filename in error.
13651 (grub_util_write_image): New argument filename. All users updated.
13652 Print filename in error.
13653 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13654 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13656 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13658 * grub-core/Makefile.core.def (pxechain): New module.
13659 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13660 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13662 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13663 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13665 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13667 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13668 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13669 * include/grub/err.h (grub_error_saved): New struct.
13670 (grub_errmsg): Make array size explicit.
13671 * include/grub/misc.h (grub_error_save): New function.
13672 (grub_error_load): Likewise.
13673 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13674 (grub_error_push): Update `errno' member name.
13675 (grub_error_pop): Likewise
13676 * grub-core/net/tftp.c (tftp_data): New member save_err.
13677 (tftp_receive): Save error.
13678 (tftp_open): Restore error.
13680 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13682 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13683 to real mode down to execute A20-related code in protected mode as
13686 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13688 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13689 NULL when the argument `level' has an unexpected value.
13691 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13693 Move platform-dependent files from $prefix to $prefix/$platform.
13695 * config.h.in (GRUB_TARGET_CPU): New definition.
13696 (GRUB_PLATFORM): Likewise.
13697 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13698 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13699 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13700 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13701 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13702 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13703 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13704 * grub-core/normal/term.c (read_terminal_list): Likewise.
13705 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13707 (grub_gettext_init_ext): Likewise.
13708 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13710 * util/grub-install.in: Update directories.
13711 * util/grub-mknetdir.in: Likewise.
13712 * util/grub-mkrescue.in: Likewise.
13714 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13716 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13717 grub_error framework. All users updated.
13719 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13721 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13722 lists (by always binsearching), improve caching (cache strings
13723 used for binsearch, not only results), improve
13724 maintainability (by using more structured binary search) and correct
13727 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13729 * grub-core/script/execute.c (grub_script_return): Fix warning.
13731 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13733 * grub-core/script/execute.c (grub_script_return): Fix potential
13735 Reported by: Jim Meyering.
13737 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13739 * po/POTFILES.in: Regenerate.
13740 * util/grub-install.in: Gettextize the strings missed in first pass.
13742 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13744 * Makefile.util.def (grub-mkdevicemap): Removed.
13745 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13746 * include/grub/util/deviceiter.h: Removed.
13747 * util/deviceiter.c: Likewise.
13748 * util/getroot.c (grub_util_get_os_disk): New function.
13749 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13750 replacement for EFI.
13751 * util/grub-mkdevicemap.c: Removed.
13752 * util/grub-probe.c (probe): Handle PRINT_DISK.
13753 (argp_parser): Handle -t disk.
13755 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13757 * util/grub-mkfont.c: Migrate to argp.
13758 * util/grub-mklayout.c: Likewise.
13759 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13760 * util/grub-mkrelpath.c: Likewise.
13761 * util/grub-probe.c: Likewise.
13762 * util/grub-script-check.c: Likewise.
13764 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13766 * util/grub-reboot.in: Add missing datarootdir.
13767 Add missing newline.
13768 * util/grub-set-default.in: Add missing datarootdir.
13769 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13770 * util/grub-mkrescue.in: Likewise.
13772 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13774 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13776 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13778 * util/grub-kbdcomp.in: Add decent help and gettextize.
13779 * docs/man/grub-kbdcomp.h2m: New file.
13781 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13783 Migrate grub-mkimage.c to argp.
13785 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13786 (grub-setup): Likewise.
13787 * util/grub-setup.c (print_version): Move to ...
13788 * util/argp_common.c (print_version): ... here.
13789 * util/grub-setup.c (argp_program_version_hook): Move to ...
13790 * util/argp_common.c (argp_program_version_hook): ... here.
13791 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13793 * util/grub-mkimage.c (main): Migrate to argp.
13795 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13797 * util/grub-mkrescue.in: Use same message as
13798 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13799 for better translations.
13801 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13803 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13804 options with generic grub-mkrescue.in with the goal of future
13807 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13809 * grub-core/kern/mm.c: Add missing include of i18n.h
13810 * grub-core/lib/relocator.c: Likewise.
13812 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13814 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13816 (allocate_pages): Check return value.
13817 Replace fatal with error.
13818 (grub_linux_boot): Replace printf with dprintf.
13819 Check find_mmap_size return value.
13820 Replace fatal with error.
13821 Don't call grub_machine_fini.
13822 (grub_load_elf64): Replace printf with dprintf.
13823 (grub_cmd_linux): Likewise.
13824 (grub_cmd_initrd): Likewise.
13825 (grub_cmd_payload): Likewise.
13827 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13829 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13831 * grub-core/video/radeon_fuloong2e.c
13832 (grub_video_radeon_fuloong2e_setup): Likewise.
13833 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13834 * grub-core/video/video.c (grub_video_set_mode): Don't override
13835 standard out of memory message.
13837 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13839 NetBSD disk wedge support.
13841 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13842 [__NetBSD__]: Handle NetBSD disk wedges.
13843 * util/getroot.c (convert_system_partition_to_system_disk)
13844 [__NetBSD__]: Likewise.
13846 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13848 * util/grub-mkconfig.in: Use umask rather than chmod to create
13849 grub.cfg.new to avoid insecure grub.cfg.
13851 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13853 * grub-core/commands/ls.c: Gettextize.
13854 * grub-core/commands/setpci.c: Likewise.
13855 * grub-core/commands/videotest.c: Likewise.
13856 * grub-core/disk/geli.c: Likewise.
13857 * grub-core/kern/mm.c: Likewise.
13858 * grub-core/lib/relocator.c: Likewise.
13859 * grub-core/loader/efi/appleloader.c: Likewise.
13860 * grub-core/loader/i386/xnu.c: Likewise.
13861 * grub-core/loader/ia64/efi/linux.c: Likewise.
13862 * grub-core/loader/xnu.c: Likewise.
13863 * grub-core/net/dns.c: Likewise.
13864 * grub-core/net/net.c: Likewise.
13865 * grub-core/script/lexer.c: Likewise.
13866 * grub-core/script/parser.y: Likewise.
13867 * grub-core/script/yylex.l: Likewise.
13868 * util/getroot.c: Likewise.
13869 * util/grub-setup.c: Likewise.
13871 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13873 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13876 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13878 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13880 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13882 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13884 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13885 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13887 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13889 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13890 * util/grub-install.in: Gettextize.
13891 * util/grub-mkconfig.in: Likewise.
13892 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13894 (grub_warn): Gettextize.
13895 * util/grub-mknetdir.in: Gettextize.
13896 * util/grub-mkrescue.in: Likewise.
13897 * util/grub-mkstandalone.in: Likewise.
13898 * util/grub-reboot.in: Likewise.
13899 * util/grub-set-default.in: Likewise.
13900 * util/grub.d/00_header.in: Likewise.
13901 * util/grub.d/10_hurd.in: Likewise.
13902 * util/grub.d/10_kfreebsd.in: Likewise.
13903 * util/grub.d/10_linux.in: Likewise.
13904 * util/grub.d/10_netbsd.in: Likewise.
13905 * util/grub.d/10_windows.in: Likewise.
13906 * util/grub.d/20_linux_xen.in: Likewise.
13907 * util/grub.d/30_os-prober.in: Likewise.
13908 * po/POTFILES-shell.in: Regenerate.
13910 2012-02-03 Richard Laager <rlaager@wiktel.com>
13912 * util/grub-mkimage.c (main): Fix format-security warning.
13913 * util/grub-mkrelpath.c (main): Likewise.
13914 * util/grub-probe.c (main): Likewise.
13916 2012-02-03 Richard Laager <rlaager@wiktel.com>
13918 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13920 Put back lost PRINT_DRIVE.
13922 2012-02-03 Richard Laager <rlaager@wiktel.com>
13924 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13925 (grub_guess_root_devices): Replace strlen with sizeof.
13927 (find_root_devices_from_poolname): Remove unused variable.
13930 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13932 Support install on multi-device filesystems.
13934 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13935 (grub_guess_root_devices): ...this. Return char **. All users updated.
13936 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13938 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13939 (find_root_devices_from_poolname): ... here.
13940 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13942 (grub_guess_root_device): Rename to ...
13943 (grub_guess_root_devices): ... this. Return char **. All users updated.
13944 * util/grub-install.in: Handle multi-device filesystems.
13945 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13946 argument. All users updated.
13947 Handle multi-device filesystems.
13948 Use 'delim' as separator.
13949 Remove device check to allow filesystems on file.
13950 (main): Support -0 argument. Handle multi-device.
13951 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13952 Fix a cross-device check while on it.
13953 (arguments): Remove root_dev.
13954 (argp_parser): Remove -r.
13955 (main): Remove root_dev.
13957 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13959 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13961 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13963 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13965 Reported by: NODA, Kai <nodakai>.
13967 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13971 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13973 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13974 (grub_ehci_setup_qh): Likewise.
13975 (grub_ehci_find_qh): Likewise.
13976 (grub_ehci_transaction): Likewise.
13977 (grub_ehci_setup_transfer): Likewise.
13978 (grub_ehci_check_transfer): Likewise.
13979 (grub_ehci_portstatus): Likewise.
13980 (grub_ehci_detect_dev): Likewise.
13981 (grub_ehci_transfer_controller_data): New field td_last_phys.
13982 (grub_ehci_setup_transfer): Fill td_last_phys.
13983 (grub_ehci_check_transfer): Use td_last_phys.
13985 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13987 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13988 if no submenu is present.
13990 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13994 * include/grub/usb.h (grub_usbms_protocol_t): New values
13995 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13996 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13997 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13998 (grub_usbms_dev): Add subclass, protocol and intrpt.
13999 Remove in_maxsz and out_maxsz.
14000 (grub_usbms_reset): Rename to ...
14001 (grub_usbms_bo_reset): .. this.
14002 (grub_usbms_cbi_cmd): New function.
14003 (grub_usbms_cbi_reset): Likewise.
14004 (grub_usbms_reset): Likewise.
14005 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14006 (grub_usbms_transfer): Rename to ...
14007 (grub_usbms_transfer_bo): ... this.
14008 (grub_usbms_transfer_cbi): Likewise.
14009 (grub_usbms_transfer): Likewise.
14011 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14012 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14014 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14015 the support for the CS5536 modification thereos and few bugfixes.
14017 * grub-core/Makefile.core.def (ehci): New module.
14018 * grub-core/bus/usb/ehci.c: New file.
14019 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14020 port and hubaddr. All users updated.
14021 Save port and hubaddr into dev structure.
14022 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14024 * include/grub/pci.h (grub_dma_phys2virt): New function.
14025 (grub_dma_virt2phys): Likewise.
14026 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14028 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14030 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14031 check as some mkfs implementations omit it.
14033 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14035 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14037 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14039 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14040 Add new member volname2.
14041 (grub_jfs_label): Use volname2 if available.
14043 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14045 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14046 over last_mounted as seen in image generated by mkfs.nilfs2.
14047 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14049 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14051 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14052 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14053 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14055 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14057 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14060 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14062 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14063 subvolume name (by removing a bogus and useless check).
14065 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14067 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14068 sizeof while on it.
14070 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14072 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14073 (grub_scsi_read_capacity10): ... this.
14074 (grub_scsi_read_capacity16): New function.
14075 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14077 Fix off-by-one error.
14078 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14080 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14081 (grub_scsi_read_capacity10): ... this.
14082 (grub_scsi_read_capacity_data): Rename to ...
14083 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14084 (grub_scsi_read_capacity16): New struct.
14085 (grub_scsi_read_capacity16_data): Likewise.
14086 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14087 grub_scsi_cmd_read_capacity10.
14088 New command grub_scsi_cmd_read_capacity16.
14090 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14092 SCSI >2TiB support.
14094 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14095 (grub_scsi_write16): Likewise.
14096 (grub_scsi_read): Use read16 when necessary.
14097 (grub_scsi_write): Likewise.
14098 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14099 (grub_scsi_write16): Likewise.
14100 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14102 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14104 SCSI write support (for usbms mainly).
14106 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14108 (grub_scsi_write): Implement.
14109 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14111 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14113 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14116 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14118 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14120 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14122 * po/POTFILES.in: Regenerate.
14124 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14126 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14127 with grub_printf to avoid unnecessary fatal failure.
14129 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14131 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14132 (INT_MAX): Likewise.
14133 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14134 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14135 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14136 (strcpy): Likewise.
14137 (strstr): Likewise.
14138 (strchr): Likewise.
14139 (strncpy): Likewise.
14140 (strcat): Likewise.
14141 (strncat): Likewise.
14142 (strcoll): Likewise.
14143 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14144 (GRUB_INT_MAX): Likewise.
14146 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14148 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14150 (optimize_utf8): Likewise.
14151 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14153 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14155 * grub-core/boot/i386/pc/lnxboot.S: Use
14156 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14157 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14159 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14161 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14163 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14165 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14166 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14167 now to avoid double free.
14168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14170 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14171 * util/grub-probe.c (escape_of_path): Always return a new copy.
14172 (print_full_name): Escape path.
14173 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14174 Fix hints on abstractions.
14176 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14178 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14179 Don't add "root" line if no compatibility hont is available.
14180 Suggested by: Seth Goldberg.
14182 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14184 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14185 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14186 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14187 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14189 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14191 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14193 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14195 * util/grub-pe2elf.c (ehdr): Make static.
14197 (num_sections): Likewise.
14198 (offset): Likewise.
14200 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14202 Eliminate ofpath limits and possible overflows.
14204 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14205 (OF_PATH_MAX): Removed.
14206 (MAX_DISK_CAT): New const.
14207 (find_obppath): Use allocated rather than preallocated buffer.
14208 Return result. Argument of_path removed. All users updated.
14209 Add missing fdstat.
14210 (xrealpath): New function.
14211 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14212 Allocate rather than use preallocated buffer. All users updated.
14213 (__of_path_common): Use allocated rather than preallocatecd buffer.
14214 Return result. Argument of_path removed. All users updated.
14215 (vendor_is_ATA): Read only needed part form the file.
14216 (check_sas): Allocate depending on contents rather than fixed.
14217 (main) [STANDALONE]: Handle NULL result.
14219 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14221 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14223 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14225 Cryptodisk write support.
14227 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14228 (grub_cryptodisk_decrypt): Moved logic to ...
14229 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14230 (grub_cryptodisk_write): Implement.
14231 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14232 (grub_util_fd_write): ... this. Make global.
14233 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14235 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14237 * include/grub/list.h (grub_list_remove): Don't crash if element is
14240 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14242 Rename ofconsole to console.
14244 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14245 as sysnonym to console.
14246 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14247 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14248 Rename grub_ofconsole_ to grub_console_. All users updated
14249 (grub_console_term_output): Rename "ofconsole" to "console".
14250 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14253 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14255 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14257 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14258 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14259 GRUB_DISK_DEVICE_FILE_ID.
14261 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14263 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14264 and improve performance.
14266 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14268 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14269 missing ieee1275/ prefix on whole disk.
14271 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14273 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14274 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14276 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14278 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14280 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14282 Merge common RAID and LVM logic to an abstract diskfilter.
14283 Add LDM support using the same framework.
14285 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14286 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14287 (libgrubmods): Remove grub-core/disk/raid.c and
14288 grub-core/partmap/gpt.c.
14289 * grub-core/Makefile.core.def (ldm): New module.
14290 (raid): Renamed to diskfilter. All users updated.
14291 * grub-core/disk/raid.c: Moved to ...
14292 * grub-core/disk/diskfilter.c: ... here.
14293 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14295 (find_array): Renamed to ...
14296 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14297 (grub_is_array_readable): Renamed to ...
14298 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14299 (insert_array): New argument id.
14300 (is_node_readable): New function.
14301 (scan_device): Rename to ...
14302 (scan_disk): .. this. Restrict to one disk.
14303 (scan_devices): New function.
14304 (grub_diskfilter_iterate): Support multi-LV.
14305 Skip invisible and nameless LVs.
14306 (grub_diskfilter_memberlist): Support multi-LV.
14307 (grub_diskfilter_read_node): New function.
14308 (grub_raid_read): Most of logic moved to ...
14309 (read_segment): ... here
14310 (read_lv): New function.
14311 (grub_diskfilter_get_vg_by_uuid): New function.
14312 (grub_diskfilter_make_raid): Likewise.
14313 * grub-core/disk/ldm.c: New file.
14314 * grub-core/disk/lvm.c (vg_list): Removed.
14315 (lv_count): Likewise.
14316 (scan_depth): Likewise.
14317 (is_lv_readable): Likewise.
14318 (grub_lvm_getvalue): Advance pointer past the number.
14319 (find_lv): Removed.
14320 (do_lvm_scan): Refactored into ...
14321 (grub_lvm_detect): ... this. Support raid.
14322 (grub_lvm_iterate): Removed.
14323 (grub_lvm_memberlist): Likewise.
14324 (grub_lvm_open): Likewise.
14325 (grub_lvm_close): Likewise.
14326 (read_lv): Likewise.
14327 (read_node): Likewise.
14328 (is_node_readable): Likewise.
14329 (is_lv_readable): Likewise.
14330 (grub_lvm_read): Likewise.
14331 (grub_lvm_write): Likewise.
14332 (grub_lvm_dev): Use diskfilter
14333 (GRUB_MOD_INIT): Likewise.
14334 (GRUB_MOD_FINI): Likewise.
14335 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14337 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14338 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14339 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14340 grub_diskfilter_read_node.
14341 Fix a bug with xor.
14342 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14343 grub_diskfilter_read_node.
14344 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14345 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14346 (grub_disk_dev_iterate): Move from here...
14347 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14348 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14350 (grub_hostdisk_find_partition_start): Likewise.
14351 (grub_hostdisk_os_dev_to_grub_drive): New function.
14352 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14353 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14354 * util/getroot.c (make_device_name): ... here.
14355 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14357 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14358 * grub-core/kern/emu/hostdisk.c
14359 (convert_system_partition_to_system_disk): Move to ...
14360 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14361 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14362 * util/getroot.c (device_is_wholedisk): ... here.
14363 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14364 * util/getroot.c (find_system_device): ... here.
14365 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14367 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14368 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14370 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14372 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14374 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14375 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14376 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14378 * include/grub/raid.h: Renamed to ...
14379 * include/grub/diskfilter.h: ... this.
14380 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14381 (GRUB_RAID_LAYOUT_*): Make into array.
14382 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14383 (grub_diskfilter_vg): New struct.
14384 (grub_diskfilter_pv_id): Likewise.
14385 (grub_raid_member): Removed.
14386 (grub_raid_array): Likewise.
14387 (grub_diskfilter_pv): New struct.
14388 (grub_diskfilter_lv): Likewise.
14389 (grub_diskfilter_segment): Likewise.
14390 (grub_diskfilter_node): Likewise.
14391 (grub_diskfilter_get_vg_by_uuid): New proto.
14392 (grub_raid_register): Inline.
14393 (grub_diskfilter_unregister): Likewise.
14394 (grub_diskfilter_make_raid): New proto.
14395 (grub_diskfilter_vg_register): Likewise.
14396 (grub_diskfilter_read_node): Likewise.
14397 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14398 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14399 (grub_util_is_ldm): Likewise.
14400 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14401 (grub_hostdisk_find_partition_start): Likewise.
14402 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14403 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14405 (grub_gpt_partition_map_iterate): New proto.
14406 * include/grub/lvm.h (grub_lvm_vg): Removed.
14407 (grub_lvm_pv): Likewise.
14408 (grub_lvm_lv): Likewise.
14409 (grub_lvm_segment): Likewise.
14410 (grub_lvm_node): Likewise.
14411 * util/getroot.c [...]
14412 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14413 (probe_abstraction): Likewise.
14414 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14415 (main): Remove dead logic.
14417 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14419 Simplify root device discover and don't fail when trying to open
14422 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14424 (get_diskname_from_path): Likewise.
14425 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14428 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14430 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14432 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14434 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14437 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14439 * util/grub-install.in: Add missing \.
14440 Reported by: gentoofan
14442 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14444 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14445 (direct_read): Use correct compressed size.
14446 (grub_squash_read_data): Likewise.
14448 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14450 * docs/grub.texi (Platform limitations): New section.
14451 (Platform-specific operations): Likewise.
14452 * docs/grub-dev.texi (Porting): Likewise.
14454 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14456 IEEE1275 disk write support.
14458 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14460 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14461 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14462 and seek loginc to ...
14463 (grub_ofdisk_prepare): ... here.
14464 (grub_ofdisk_write): Implement.
14466 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14468 ARC disk write support.
14470 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14471 (reopen): New argument writable. All users updated.
14472 Handle required access mode.
14473 (grub_arcdisk_write): Implement.
14474 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14475 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14477 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14479 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14480 (read_sblock): Don't attempt to read superblocks outside the disk size.
14482 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14484 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14485 first superblock to find the second one when possible.
14487 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14489 * util/grub-install.in: Fix an ARC bug.
14490 Print a warning if no platform-specific setup is available.
14492 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14494 Use static allocation rather than scratch pointer in reed_solomon.
14495 It decreases its size significantly and avoids a variable in .text.
14497 * grub-core/lib/reed_solomon.c (scratch): Removed.
14498 (chosenstat): New const or static array.
14500 (errpot): Likewise.
14501 (errpos): Likewise.
14504 (errvals): Likewise.
14505 (eqstat): Likewise.
14506 (pol_evaluate): Replace x with log_x argument. All users updated.
14507 (syndroms): Removed.
14508 (gauss_solve): Use statically allocated arrays.
14509 (rs_recover): Likewise.
14510 Calculate syndroms directly.
14511 (decode_block): Use statically allocated arrays.
14512 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14513 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14515 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14517 Eliminate fixed limit on reed solomon decoder length.
14519 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14520 rather than hardcoding the address.
14521 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14522 no_reed_solomon_length.
14523 Move gate_a20 to no-reed-solomon part.
14524 Don't force a particular size of no reed-solomon part.
14525 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14527 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14528 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14530 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14532 * grub-core/commands/wildcard.c (match_files): Handle filenames
14533 without explicit device.
14534 (wildcard_expand): Don't add explicit device if not already present.
14535 * tests/grub_script_echo1.in: Add a new expansion test.
14537 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14539 Replace single-linked with double-linked lists. It results in more
14540 compact and more efficient code.
14542 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14543 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14544 (grub_list_remove): Moved from here ...
14545 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14546 (grub_prio_list_insert): Set prev.
14547 * include/grub/list.h (grub_list): Add prev. All users updated.
14549 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14551 Handle newer autotools. Add some missing quotes while on it.
14553 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14554 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14555 (pkgdata_DATA): ... here.
14556 * Makefile.util.def (update-grub_lib): Removed.
14557 * conf/Makefile.common (pkglib_DATA): Removed.
14558 (pkglib_SCRIPTS): Likewise.
14559 (pkgdata_DATA): New variable.
14560 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14562 Add missing quotes.
14563 Remove unused variable while on it.
14564 * tests/util/grub-shell.in: Likewise.
14565 * util/grub-install.in: Likewise.
14566 * util/grub-mkconfig.in: Likewise.
14567 * util/grub-mknetdir.in: Likewise.
14568 * util/grub-mkrescue.in: Likewise.
14569 * util/grub-mkstandalone.in: Likewise.
14570 * util/grub.d/00_header.in: Likewise.
14571 * util/grub.d/10_hurd.in: Likewise.
14572 * util/grub.d/10_illumos.in: Likewise.
14573 * util/grub.d/10_kfreebsd.in: Likewise.
14574 * util/grub.d/10_linux.in: Likewise.
14575 * util/grub.d/10_netbsd.in: Likewise.
14576 * util/grub.d/10_windows.in: Likewise.
14577 * util/grub.d/20_linux_xen.in: Likewise.
14578 * util/grub.d/30_os-prober.in: Likewise.
14579 * util/update-grub_lib.in: Removed.
14581 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14583 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14584 a workaround for intel problem.
14586 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14587 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14588 2012-01-23 pfsmorigo
14590 * util/grub-install.in: Support dd'in into PreP partition.
14591 * util/grub-probe.c (probe): Support discovering partition type.
14592 (main): Support -t msdos_parttype.
14594 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14596 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14597 infinite recursion using counter.
14598 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14599 init to skip it if the magic check fails.
14600 (dec_stream_header): Init s->crc32.
14602 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14603 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14604 2012-01-22 Richard Laager <rlaager@wiktel.com>
14606 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14608 (find_bestub): Determine correct size.
14609 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14610 (scan_disk): Align the size down.
14611 Call check pool before find_bestub to have ashift.
14613 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14615 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14616 dprintf in no-malloc zone.
14618 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14620 * configure.ac: Add back in test for limits.h.
14622 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14624 Support 4K-sector NTFS.
14626 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14627 (grub_ntfs_data): Remove blocksize.
14628 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14629 Remove data argument. All users updated.
14631 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14633 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14634 being in .text to avoid dprel references.
14635 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14636 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14637 (grub_arch_highmemsize): Likewise.
14638 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14639 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14640 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14642 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14644 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14646 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14647 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14649 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14651 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14653 (grub_set_datetime_cmos): Likewise.
14655 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14657 Make XZ compression parameters dependent on target and not host CPU.
14659 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14660 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14662 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14664 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14665 set but not used variable.
14667 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14669 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14670 created when no uuid support is compiled into mkfs.reiser.
14672 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14674 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14675 (utf8_to_macroman): Do the opposite.
14676 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14678 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14680 * configure.ac: Refise build qemu_mips w/o unifont.
14682 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14684 Eliminate grub_min/grub_max prone to overflow usage.
14686 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14687 (poll_nonroot_hub): Likewise.
14688 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14689 (grub_affs_label): Likewise.
14690 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14691 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14692 (grub_hfs_label): Likewise.
14693 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14694 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14695 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14696 (zap_leaf_array_get): Likewise.
14697 (dnode_get_path): Likewise.
14698 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14699 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14700 * grub-core/script/execute.c (grub_script_break): Likewise.
14701 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14703 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14704 * include/grub/misc.h (grub_min): Removed.
14705 (grub_max): Likewise.
14707 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14709 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14712 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14714 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14716 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14718 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14720 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14722 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14723 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14725 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14727 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14728 rather than a hack for grub_strncasemap.
14730 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14732 Support multiple initrds
14733 Note: part of this was accidently committed in r3739.
14735 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14737 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14738 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14739 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14740 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14741 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14743 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14745 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14746 disks with unknown size.
14747 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14749 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14751 Remove defines pertaining to arbitrary limits not affecting GRUB
14754 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14755 (EXT2_MAX_SYMLINKCNT): Likewise.
14756 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14757 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14758 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14759 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14760 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14761 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14762 (DN_MAX_OBJECT_SHIFT): Likewise.
14763 (DN_MAX_OFFSET_SHIFT): Likewise.
14764 (DN_MAX_OBJECT): Likewise.
14765 (DNODES_PER_LEVEL_SHIFT): Likewise.
14766 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14767 (SPA_MAXBLOCKSIZE): Likewise.
14768 (SPA_BLOCKSIZES): Likewise.
14769 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14770 (MZAP_MAX_BLKSZ): Likewise.
14772 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14774 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14775 handle NULL appropriately.
14778 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14782 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14784 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14785 * configure.ac: Fix efiemu check.
14787 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14789 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14791 Reported by: adamwill
14793 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14795 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14797 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14799 Fix handling of wide characters in gfxterm.
14801 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14802 (clear_char): Likewise.
14803 (paint_char): Skip code == NULL chars.
14804 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14806 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14808 * grub-core/normal/charset.c: Move comment to right place.
14810 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14812 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14813 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14814 (grub_affs_mount): Revert the correct version checking.
14816 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14818 * docs/grub.texi (Unicode): Mention several other unsupported features.
14820 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14822 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14823 case statements as compile-time one.
14824 (direct_read): Prevent spurious warnings.
14825 (grub_squash_read_data): Likewise.
14827 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14829 Various squash4 fixes and LZO and XZ support.
14831 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14832 Add xzembed source files.
14833 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14834 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14835 (grub_squash_inode): New subtype long_dir.
14836 (SQUASH_TYPE_LONG_DIR): New inode type.
14837 (COMPRESSION): New enum.
14838 (XZBUFSIZ): New const.
14839 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14840 (read_chunk): Use data->decompress.
14841 (zlib_decompress): New function.
14842 (lzo_decompress): Likewise.
14843 (xz_decompress): Likewise.
14844 (squash_mount): Set new data fields.
14845 (grub_squash_iterate_dir): Handle long dir.
14846 (squash_unmount): Free xzdec and xzbuf.
14847 (grub_squash_open): Check ino type.
14848 (direct_read): Stylistic fixes. Use data->decompress.
14849 (grub_squash_read_data): Likewise.
14850 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14851 (get_byte): Likewise.
14852 (grub_zlib_disk_read): Removed.
14853 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14854 (GRUB_POSIX_BOOL_DEFINED): New define.
14855 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14856 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14857 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14858 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14860 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14862 Don't override more informative errors.
14864 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14865 * grub-core/font/font.c (open_section): Likewise.
14866 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14867 filename. Don't override errors.
14868 (grub_cmd_openbsd_ramdisk): Don't override errors.
14869 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14870 (grub_cmd_initrd): Likewise.
14871 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14872 (grub_cmd_initrd): Likewise.
14873 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14874 (grub_cmd_linux): Likewise.
14875 (grub_cmd_initrd): Likewise.
14876 (grub_cmd_payload): Likewise.
14877 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14878 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14879 (grub_cmd_module): Likewise.
14880 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14881 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14882 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14883 (grub_cmd_xnu_mkext): Likewise.
14884 (grub_cmd_xnu_ramdisk): Likewise.
14885 (grub_xnu_check_os_bundle_required): Likewise.
14886 (grub_xnu_load_kext_from_dir): Likewise.
14887 (grub_cmd_xnu_kextdir): Likewise.
14888 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14890 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14892 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14893 as 1024 in block size field. Found on one of my test images.
14894 Small optimisation while on it.
14896 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14898 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14899 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14900 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14901 performance fixes while on it.
14902 (grub_sfs_close): Fix memory leak while on it.
14903 (grub_sfs_label): Convert Latin1 to UTF-8.
14905 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14907 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14908 space to avoid overflows.
14909 (grub_hfs_label): Convert from macroman to UTF-8.
14911 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14913 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14915 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14917 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14919 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14921 * unicode: Import Unicode 6.0 data.
14923 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14925 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14928 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14930 Avoid cutting in the middle of UTF-8 character.
14932 * include/grub/charset.h (grub_getend): New function.
14933 * grub-core/script/function.c (grub_script_function_find): Use
14935 * grub-core/normal/completion.c (add_completion): Likewise.
14937 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14939 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14940 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14941 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14942 (GRUB_UNICODE_TAG_END): Likewise.
14943 (GRUB_UNICODE_LAST_VALID): Likewise.
14945 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14947 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14948 len and make it smaller. All users updated.
14949 * util/import_unicode.py: Put length and not end character.
14952 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14954 Make better Unicode-compliant and unify some UTF-8 code pathes.
14956 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14958 (grub_is_valid_utf8): Use grub_utf8_process.
14959 Check resulting code range.
14960 (grub_utf8_to_ucs4): Use grub_utf8_process.
14961 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14964 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14966 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14968 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14970 * docs/grub.texi (Filesystems): Mention AFS.
14972 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14974 * docs/grub.texi (Filesystems): Clarify restrictions.
14975 (Regexp): Mention non-Unicode regexp behaviour.
14976 (Other): Mention non-Unicode matching behaviour.
14978 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14980 Make HFS implementation use MacRoman.
14982 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14983 (macroman): New const array.
14984 (macroman_to_utf8): New function.
14985 (utf8_to_macroman): Likewise.
14986 (grub_hfs_find_dir): Use utf8_to_macroman.
14987 (grub_hfs_dir): Use macroman_to_utf8.
14988 Set case_insensitive.
14990 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14992 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14994 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14996 Integrate hints into autogeneration scripts.
14998 * docs/grub.texi (Filesystems): Add a hostdisk example.
14999 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15000 (grub-probe): Add ofpath.
15001 * gentpl.py: Remove group nosparc64.
15002 * grub-core/commands/search.c (cache_entry): New struct.
15004 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15005 * grub-core/commands/search_wrap.c (options): Add platform-specific
15007 (grub_cmd_search): Handle platform-specific hints.
15008 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15009 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15010 (grub_util_biosdisk_data): Likewise.
15011 (grub_util_biosdisk_open): Set device_map.
15012 (read_device_map): Handle "" as indication of no map.
15014 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15015 (grub_util_biosdisk_get_compatibility_hint): New function.
15016 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15017 * include/grub/emu/hostdisk.h
15018 (grub_util_biosdisk_get_compatibility_hint): New proto.
15019 * util/grub-install.in: Don't call grub-mkdevicemap.
15020 Add platform-specific hint to load.cfg.
15021 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15022 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15023 hints. Set root preliminary to compatibility hint, not to OS name.
15024 * util/grub-probe.c (PRINT_*): Add hints.
15025 (print): Make static.
15026 (escape_of_path): New function.
15027 (guess_bios_drive): Likewise.
15028 (guess_efi_drive): Likewise.
15029 (guess_baremetal_drive): Likewise.
15030 (print_full_name): Likewise.
15031 (probe): Handle hints.
15033 * util/ieee1275/devicemap.c: Removed.
15034 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15036 (grub_util_devname_to_ofpath): Return NULL on failure.
15038 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15040 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15042 * po/POTFILES.in: Regenerated.
15044 Allow purely long options
15046 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15047 (SHORT_ARG_USAGE): Likewise.
15048 (grub_arg_show_help): Compare opt with help_options.
15049 (parse_option): Receive opt as argument. If makes big simplificatons.
15052 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15054 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15055 Restructure to avoid warning.
15057 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15059 * util/grub-install.in: Account for possible escaped comma in device
15062 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15064 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15067 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15069 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15070 allocation and zero-setting.
15071 (grub_ieee1275_get_devname): Check that alias is complete.
15073 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15075 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15076 unaligned segments.
15078 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15080 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15082 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15083 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15084 Add ieee1275 prefix.
15086 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15088 * docs/grub.texi (Filesystems): Update.
15090 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15092 Support odc, newc and bigendian cpio formats.
15094 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15095 * grub-core/Makefile.core.def (newc): New module.
15097 (cpio_be): Likewise.
15098 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15100 (MAGIC2): Likewise.
15101 (head) [MODE_ODC]: Adapt for the format.
15102 (head) [MODE_NEWC]: Likewise.
15103 (head) [!MODE_*]: Write fields of interest as arrays.
15104 (MAGIC_USTAR): Removed.
15105 (read_number) [MODE_NEWC]: Change to hex.
15106 (read_number) [!MODE_*]: Parse binary arrays.
15107 (grub_cpio_find_file): Factor out the code for better structure and
15108 always use read_number.
15109 (grub_cpio_mount): Use MAGIC and MAGIC2.
15110 (grub_cpio_dir): Exit on first hook non-0 return.
15111 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15112 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15113 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15114 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15115 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15116 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15117 * grub-core/fs/newc.c: New file.
15118 * grub-core/fs/odc.c: Likewise.
15119 * grub-core/fs/cpio_be.c: Likewise.
15121 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15123 Fix handling of tar numbers occupying the whole field.
15125 * grub-core/fs/cpio.c (read_number): New function.
15126 (grub_cpio_find_file): Use read_number instead of strtoull.
15128 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15130 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15131 occupying the whole field size.
15133 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15135 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15137 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15139 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15141 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15143 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15144 TARGET_IMG_LDFLAGS.
15146 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15148 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15149 (mountinfo_entry): Increase the field size to take escaping into
15151 (find_root_device_from_libzfs): Add one byte to size of strings for
15154 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15156 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15158 * util/grub-setup.c (setup): Likewise.
15160 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15162 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15165 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15167 * docs/grub.texi (Internationalisation): New section.
15169 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15171 * docs/grub.texi (Loopback booting): New section.
15173 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15175 * util/grub-mkstandalone.in: Fix minor typo errors.
15177 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15179 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15181 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15182 net/icmp.c and net/icmp6.c.
15183 (http): New module.
15184 (priority_queue): Likewise.
15185 * grub-core/io/bufio.c: Rewritten.
15186 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15187 TYPE_WITH_CONFIGFILE_OPTION.
15188 (legacy_commands): Add bootp and dhcp.
15189 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15190 (grub_legacy_parse): Likewise.
15191 * grub-core/lib/priority_queue.c: New file.
15192 * grub-core/net/arp.c: Add missing license header.
15193 (arp_find_entry): Removed.
15194 (arp_find_entry): Likewise.
15195 (grub_net_arp_resolve): Rename to ...
15196 (grub_net_arp_send_request): ...this.
15197 (grub_net_arp_receive): New card argument.
15198 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15199 Set router and DNS server.
15200 (grub_net_configure_by_dhcp_ack): Handle routing information.
15201 (grub_cmd_bootp): Set checksum.
15202 (grub_bootp_init): Remove net_dhcp.
15203 * grub-core/net/dns.c: New file.
15204 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15206 (get_card_packet): Handle allocation.
15207 (grub_efinet_findcards): Set mtu.
15208 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15209 (get_card_packet): Handle allocation.
15210 (emucard): Set mtu.
15211 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15212 (GRUB_MOD_INIT): Set mtu.
15213 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15215 (get_card_packet): Handle allocation.
15216 (grub_ofnet_findcards): Set mtu.
15217 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15219 (grub_net_recv_ethernet_packet): Handle IPv6.
15220 * grub-core/net/http.c: New file.
15221 * grub-core/net/icmp.c: Likewise.
15222 * grub-core/net/icmp6.c: Likewise.
15223 * grub-core/net/ip.c (ip6addr): New type.
15224 (ip6hdr): Likewise.
15225 (reassemble): Likewise.
15226 (cmp): New function.
15227 (reassembles): New variable.
15228 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15229 (id): New variable.
15230 (send_fragmented): New function.
15231 (grub_net_send_ip_packet): Rename to ...
15232 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15234 (grub_net_recv_ip_packets): Rename to ...
15235 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15236 (free_rsm): New function.
15237 (free_old_fragments): Likewise.
15238 (grub_net_recv_ip4_packets): New function.
15239 (grub_net_send_ip6_packet): Likewise.
15240 (grub_net_send_ip_packet): Likewise.
15241 (grub_net_recv_ip6_packets): Likewise.
15242 (grub_net_recv_ip_packets): Likewise.
15243 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15244 (LINK_LAYER_CACHE_SIZE): New const.
15245 (link_layer_find_entry): New function.
15246 (grub_net_link_layer_add_address): Likewise.
15247 (grub_net_link_layer_resolve_check): Likewise.
15248 (grub_net_link_layer_resolve): Likewise.
15249 (grub_net_ipv6_get_slaac): Likewise.
15250 (grub_net_ipv6_get_link_local): Likewise.
15251 (grub_cmd_ipv6_autoconf): Likewise.
15252 (parse_ip): Handle one number representation.
15253 (parse_ip6): New functoion.
15254 (match_net): Handle IPv6.
15255 (grub_net_resolve_address): Handle IPv6 and DNS.
15256 (grub_net_resolve_net_address): Handle IPv6.
15257 (route_cmp): New function.
15258 (grub_net_route_address): Find best route.
15259 (grub_net_addr_to_str): Handle IPv6.
15260 (grub_net_addr_cmp): New function.
15261 (grub_net_add_addr): Register local route.
15262 (print_net_address): Handle net address.
15263 (grub_net_poll_cards): Retransmit TCP.
15264 (grub_net_poll_cards_idle_real): Likewise.
15265 (have_ahead): New function.
15266 (grub_net_seek_real): Use underlying seek.
15267 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15268 * grub-core/net/tcp.c: New file.
15269 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15270 (cmp): New function.
15272 (tftp_receive): Handle unordered input.
15273 (destroy_pq): New function.
15274 (tftp_close): Close pq.
15275 * grub-core/net/udp.c: Put missing license header.
15276 (grub_net_udp_socket): New function.
15277 (udp_socket_register): Likewise.
15278 (grub_net_udp_close): Likewise.
15279 (grub_net_recv_udp_packet): Check checksum.
15280 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15281 * include/grub/misc.h (grub_memchr): New function.
15282 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15283 (grub_net_card_driver): Return buf in recv.
15284 (grub_net_slaac_mac_list): New struct.
15285 (grub_network_level_protocol_id): Add ipv6.
15286 (grub_net_network_level_addr): Likewise.
15287 (grub_net_network_level_net_addr): Likewise.
15288 (grub_net_app_protocol): Add seek.
15289 (grub_net_socket): Removed.
15290 (grub_net_sockets): Likewise.
15291 (grub_net_socket_register): Likewise.
15292 (grub_net_socket_unregister): Likewise.
15293 (FOR_NET_SOCKETS): Likewise.
15294 (grub_net_add_addr): Add const.
15295 (GRUB_NET_BOOTP_*): New enum.
15296 (grub_net_addr_cmp): New proto.
15297 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15298 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15299 (grub_net_hwaddr_to_str): NEw proto.
15300 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15301 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15302 (grub_dns_init): New proto.
15303 (grub_dns_fini): Likewise.
15304 (grub_net_tcp_retransmit): Likewise.
15305 (grub_net_link_layer_add_address): Likewise.
15306 (grub_net_link_layer_resolve_check): Likewise.
15307 (grub_net_link_layer_resolve): Likewise.
15308 (grub_net_dns_lookup): Likewise.
15309 (grub_net_add_dns_server): Likewise.
15310 (grub_net_remove_dns_server): Likewise.
15311 (GRUB_NET_TRIES): New const.
15312 (GRUB_NET_INTERVAL): Likewise.
15313 * include/grub/net/arp.h: Mostly rewritten.
15314 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15315 * include/grub/net/ip.h: Mostly rewritten.
15316 * include/grub/net/netbuff.h: Indent.
15317 * include/grub/net/tcp.h: New file.
15318 * include/grub/net/udp.h: Mostly rewritten.
15319 * include/grub/priority_queue.h: New file.
15320 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15321 (grub_swap_bytes64_compile_time): Likewise.
15322 (grub_cpu_to_be16_compile_time): Likewise.
15323 (grub_cpu_to_be32_compile_time): Likewise.
15324 (grub_cpu_to_be64_compile_time): Likewise.
15325 (grub_be_to_cpu64_compile_time): Likewise.
15327 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15329 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15330 UINT_TO_PTR with cast.
15332 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15334 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15337 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15339 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15342 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15344 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15347 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15349 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15350 Add missing const attribute.
15351 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15353 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15356 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15358 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15360 (serpent_setkey): Likewise.
15361 (serpent_encrypt_internal): Likewise.
15362 (serpent_decrypt_internal): Likewise.
15363 (serpent_encrypt): Don't put an alignment-increasing cast.
15364 (serpent_decrypt): Likewise.
15365 (serpent_test): Likewise.
15367 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15369 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15371 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15373 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15375 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15377 (PTR_TO_UINT64): Likewise.
15378 (PTR_TO_UINT32): Likewise.
15380 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15382 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15384 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15387 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15389 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15390 text_width > available width a bit more gracefully.
15392 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15394 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15395 current address calculation.
15397 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15399 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15401 (encode_block): Likewise.
15403 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15405 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15408 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15410 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15411 non-RS part to avoid RS messing with GDT.
15412 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15413 Increase to suit in realmode routines.
15415 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15417 * grub-core/kern/i386/realmode.S: Increase alignment.
15418 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15420 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15422 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15424 (syndroms): Compute 0 syndrom.
15425 (rs_recover): Use 0 syndrom.
15427 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15429 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15431 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15433 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15436 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15438 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15440 (get_top_pad): Likewise.
15441 (get_right_pad): Likewise.
15442 (get_bottom_pad): Likewise.
15444 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15446 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15448 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15450 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15451 attribute as the structure isn't guaranteed to be properly aligned.
15452 (grub_efi_pci_device_path): Likewise.
15453 (grub_efi_pccard_device_path): Likewise.
15454 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15455 specify the size of `memory_type'.
15456 (grub_efi_vendor_device_path): Likewise.
15457 (grub_efi_controller_device_path): Likewise.
15458 (grub_efi_acpi_device_path): Likewise.
15459 (grub_efi_expanded_acpi_device_path): Likewise.
15460 (grub_efi_atapi_device_path): Likewise.
15461 (grub_efi_scsi_device_path): Likewise.
15462 (grub_efi_fibre_channel_device_path): Likewise.
15463 (grub_efi_1394_device_path): Likewise.
15464 (grub_efi_usb_device_path): Likewise.
15465 (grub_efi_usb_class_device_path): Likewise.
15466 (grub_efi_i2o_device_path): Likewise.
15467 (grub_efi_mac_address_device_path): Likewise.
15468 (grub_efi_ipv4_device_path): Likewise.
15469 (grub_efi_ipv6_device_path): Likewise.
15470 (grub_efi_infiniband_device_path): Likewise.
15471 (grub_efi_uart_device_path): Likewise.
15472 (grub_efi_vendor_messaging_device_path): Likewise.
15473 (grub_efi_hard_drive_device_path): Likewise.
15474 (grub_efi_cdrom_device_path): Likewise.
15475 (grub_efi_vendor_media_device_path): Likewise.
15476 (grub_efi_file_path_device_path): Likewise.
15477 (grub_efi_protocol_device_path): Likewise.
15478 (grub_efi_piwg_device_path): Likewise.
15479 (grub_efi_bios_device_path): Likewise.
15481 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15483 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15484 (grub_ucs4_to_utf8_alloc): Likewise.
15485 (grub_ucs4_to_utf8): Likewise.
15486 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15487 (grub_ucs4_to_utf8_alloc): Likewise.
15489 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15491 AFFS never uses unicode.
15493 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15494 (grub_latin1_to_utf8): New inline function.
15495 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15497 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15499 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15504 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15505 (grub_squash_dirent_header): Likewise.
15506 (read_chunk): Don't double swap.
15507 (grub_squash_iterate_dir): Fix swap sizes.
15509 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15511 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15513 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15515 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15516 (grub_hfs_iterate_dir): Likewise.
15518 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15520 Fix video on platforms where unaligned access is forbidden.
15521 Make several optimisations while on it.
15523 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15524 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15525 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15526 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15528 (grub_video_fbblit_replace_16bit_1bit):
15529 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15530 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15531 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15532 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15533 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15534 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15535 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15536 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15537 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15538 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15539 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15540 (grub_video_fbblit_replace_index_RGB888): Likewise.
15541 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15542 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15543 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15544 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15545 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15546 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15547 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15549 (grub_video_fbblit_blend_XXX565_1bit):
15550 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15551 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15552 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15554 * grub-core/video/fb/video_fb.c (common_blitter)
15555 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15556 (grub_video_fb_create_render_target_from_pointer)
15557 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15558 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15559 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15561 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15563 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15565 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15566 HH22 and HM10 relocations.
15568 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15570 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15572 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15574 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15575 allocation succeeded.
15577 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15579 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15580 argument a u8 pointer. All users updated.
15581 Handle unaligned buffers.
15583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15585 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15586 add_part to workaround compiler bug.
15588 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15590 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15592 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15594 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15595 Reserve alignment invariants.
15596 (grub_multiboot_load): Likewise.
15597 (retrieve_video_parameters): Likewise.
15598 (grub_multiboot_make_mbi): Likewise.
15600 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15602 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15605 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15607 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15608 (grub_pata_pio_write): Likewise.
15610 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15612 Add noreturn attributes and remove unreachable code.
15614 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15616 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15617 code. Mark as noreturn.
15618 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15619 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15620 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15622 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15623 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15624 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15625 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15626 * include/grub/kernel.h (grub_main): Mark as noreturn.
15627 * include/grub/reader.h (grub_rescue_run): Likewise.
15629 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15631 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15632 redundant declaration.
15634 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15636 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15637 redundant declaration.
15638 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15640 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15642 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15643 to ensure alignment.
15644 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15645 alignment. Ensure tmp alignment.
15646 (grub_cmd_hdparm): Ensure buf alignment.
15647 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15648 to ensure alignment.
15649 (grub_ata_dumpinfo): Ensure text alignment.
15650 (grub_atapi_identify): Preserve alignment invariant.
15651 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15653 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15655 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15656 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15657 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15658 * include/grub/misc.h (grub_reboot)
15659 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15660 (grub_halt) [__mips__]: Likewise.
15662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15664 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15665 Remove redundant declaration.
15666 (grub_mmap_get_post64): Likewise.
15667 (grub_mmap_get_upper): Likewise.
15668 (grub_mmap_get_lower): Likewise.
15670 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15672 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15673 uint32_t * to ensure alignment.
15674 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15676 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15678 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15679 uint16_t * to ensure alignment.
15680 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15683 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15685 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15686 to ensure alignment.
15687 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15689 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15691 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15692 Handle unaligned pointers.
15695 (fixup): Use byte access instead of v16at.
15696 (find_attr): Fix imporper usage of v32at.
15697 (read_data): Likewise.
15698 (list_file): Handle byte-swapping and unaligned strings.
15699 (grub_ntfs_label): Likewise.
15701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15703 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15704 as it's not necessarily aligned.
15706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15708 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15709 redundant declaration.
15710 (grub_serial_init): Likewise.
15711 (grub_terminfo_init): Likewise.
15713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15715 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15717 (ZAP_HASH_IDX): Likewise.
15718 (ZAP_LEAF_HASH_SHIFT): Likewise.
15719 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15720 (LEAF_HASH): Likewise.
15721 (ZAP_LEAF_NUMCHUNKS): Likewise.
15722 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15723 alignment invariants. Return pointer. All users updated.
15724 (ZAP_LEAF_ENTRY): Make into inline function.
15727 (xor_out): Use grub_crypto_xor.
15728 (dnode_get_path): Use grub_get_unaligned.
15729 (nvlist_find_value): Likewise.
15730 (grub_zfs_nvlist_lookup_uint64): Likewise.
15731 (grub_zfs_nvlist_lookup_string): Likewise.
15732 (get_nvlist_size): Likewise.
15733 (grub_zfs_open): Likewise.
15734 (fill_fs_info): Likewise.
15735 (grub_zfs_dir): Likewise.
15736 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15737 alignment invariants.
15738 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15739 necessarily aligned.
15741 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15743 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15745 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15747 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15748 arithmetic to conserve alignment invariants.
15750 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15752 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15753 redundant declaration.
15754 (grub_efiemu_mm_obtain_request): Likewise.
15755 (grub_efiemu_prepare): Likewise.
15757 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15762 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15764 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15765 case of aunaligned recptr.
15766 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15768 (grub_hfsplus_btree_search): Handle unaligned index.
15770 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15772 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15773 to get freetag and skip.
15775 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15777 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15779 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15780 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15782 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15784 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15785 name for checksum and fix allocation algorithm.
15787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789 * include/grub/types.h (grub_properly_aligned_t): New type.
15790 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15791 (grub_get_unaligned16): Add explicit casts.
15792 (grub_get_unaligned32): Likewise.
15793 (grub_get_unaligned64): Likewise.
15794 (grub_set_unaligned16): New function.
15795 (grub_set_unaligned32): Likewise.
15797 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15799 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15801 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15803 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15804 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15805 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15807 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15809 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15812 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15814 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15815 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15817 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15819 Unify and improve RAID and crypto xor.
15821 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15822 changed to grub_crypto_xor
15823 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15824 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15825 Use bigger types when possible.
15827 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15829 * grub-core/disk/raid.c (scan_devices): Fix condition.
15831 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15833 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15834 Make name a const ptr.
15836 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15838 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15839 first argument a const pointer.
15840 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15841 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15843 (grub_children_iterate): Likewise.
15844 (grub_machine_mmap_iterate): Remove redundant declaration.
15846 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15848 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15849 (grub_cmd_acpi) [!x86]: Disable EBDA.
15851 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15853 Enable UTF8 in gnulib regexp.
15855 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15856 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15857 (isupper): Use grub_isupper.
15858 (isascii): New inline function.
15859 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15860 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15861 * grub-core/normal/charset.c (grub_utf8_process): New function.
15862 (grub_utf8_to_utf16): Use grub_utf8_process.
15863 (grub_encode_utf8_character): New function.
15864 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15865 * include/grub/charset.h (grub_utf8_process): New declaration.
15866 (grub_encode_utf8_character): Likewise.
15867 * include/grub/misc.h (grub_islower): New inline function.
15868 (grub_isupper): Likewise.
15869 (grub_strchrsub): Moved down to fix the definitions.
15871 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15873 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15878 * include/grub/loader.h (grub_loader_register_preboot_hook):
15879 Use struct preboot * and not void * for handle. All users updated.
15880 (grub_loader_unregister_preboot_hook): Likewise.
15882 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15884 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15885 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15886 UTF-16-BE. All users updated.
15887 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15888 (grub_hfsplus_iterate_dir): Likewise.
15889 (grub_hfsplus_label): Likewise.
15891 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15893 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15895 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15897 Add missing const qualifiers.
15899 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15900 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15901 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15902 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15903 (grub_lvm_check_flag): Likewise.
15904 * grub-core/efiemu/i386/coredetect.c
15905 (grub_efiemu_get_default_core_name): Likewise
15906 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15907 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15908 * grub-core/fs/ntfs.c (fixup): Likewise.
15909 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15910 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15911 (fzap_lookup): Likewise.
15912 (zap_lookup): Likewise.
15913 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15914 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15915 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15916 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15917 (grub_freebsd_add_meta_module): Likewise.
15918 (grub_cmd_freebsd_module): Likewise.
15919 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15920 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15921 (grub_xnu_writetree_get_size): Likewise.
15922 (grub_xnu_writetree_toheap_real): Likewise.
15923 (grub_xnu_find_key): Likewise.
15924 (grub_xnu_create_key): Likewise.
15925 (grub_xnu_create_value): Likewise.
15926 (grub_xnu_register_memory): Likewise.
15927 (grub_xnu_check_os_bundle_required): Likewise.
15928 (grub_xnu_scan_dir_for_kexts): Likewise.
15929 (grub_xnu_load_kext_from_dir): Likewise.
15930 * grub-core/normal/color.c (color_list): Likewise.
15931 * grub-core/normal/completion.c (current_word): Likewise.
15932 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15933 * grub-core/term/serial.c (grub_serial_find): Likewise.
15934 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15935 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15937 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15938 (grub_freebsd_add_meta_module): Likewise.
15939 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15940 * include/grub/net.h (grub_net_card_driver): Likewise.
15941 (grub_net_card): Likewise.
15942 (grub_net_app_protocol): Likewise.
15943 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15944 * include/grub/serial.h (grub_serial_find): Likewise.
15945 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15946 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15947 (grub_xnu_create_value): Likewise.
15948 (grub_xnu_find_key): Likewise.
15949 (grub_xnu_scan_dir_for_kexts): Likewise.
15950 (grub_xnu_load_kext_from_dir): Likewise.
15952 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15953 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15954 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15955 Moved from here ...
15956 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15958 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15960 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15962 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15964 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15965 (read_device): Fix size calculation.
15967 2011-11-25 Robert Millan <rmh@gnu.org>
15969 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15970 (find_root_device_from_libzfs): Add zpool output parser to be used
15971 as fallback when libzfs isn't available.
15973 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15975 * po/Makefile.in.in: Add missing escape-continuation.
15977 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15979 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15981 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15983 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15985 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15987 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15989 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15991 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15993 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15995 * grub-core/lib/adler32.c: Add missing license specification.
15996 * grub-core/lib/crc64.c: Likewise.
15997 * grub-core/loader/i386/pc/plan9.c: Likewise.
15998 * grub-core/partmap/plan.c: Likewise.
16000 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16002 Add facility to debug GRUB with gdb under qemu.
16004 * grub-core/gdb_grub.in: New file.
16005 * grub-core/gmodule.pl.in: Likewise.
16006 * grub-core/Makefile.core.def (gmodule.pl): New script.
16007 (gdb_grub): Likewise.
16009 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16011 * util/grub-mount.c (argp_parser): Accept relative pathes.
16012 * util/grub-fstest.c (argp_parser): Likewise.
16014 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16018 * Makefile.util.def (libgrubmods): Add
16019 grub-core/partmap/plan.c.
16020 * docs/grub.texi: Notice Plan9 support.
16021 * grub-core/Makefile.core.def (plan9): New module.
16022 (part_plan): Likewise.
16023 * grub-core/loader/i386/pc/plan9.c: New file.
16024 * grub-core/partmap/plan.c: Likewise.
16025 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16027 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16028 * include/grub/mm.h (grub_extend_alloc): New inline function.
16030 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16032 Make Reed-Solomon faster by using power of generator representation of
16035 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16036 (gf_double_t): Likewise.
16037 (gf_invert): Removed.
16038 (gf_powx): New array.
16039 (gf_powx_inv): Likewise.
16040 (scratch): Move higher.
16041 (gf_reduce): Removed.
16042 (gf_mul): Use powx.
16043 (gf_invert): Likewise.
16044 (init_inverts): Replaced with ...
16045 (init_powx): ...this. All users updated.
16046 (pol_evaluate): Replace multiplications with additions.
16047 (rs_encode): Likewise.
16048 (gauss_eliminate): Call gf_invert.
16049 (grub_reed_solomon_add_redundancy): Call init_powx.
16050 (grub_reed_solomon_recover): Call init_powx unconditionally.
16052 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16054 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16056 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16058 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16059 disk->partiton for safety.
16061 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16063 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16065 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16067 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16069 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16071 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16073 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16075 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16077 Fix spaces handling in proc/self/mountinfo.
16079 * util/getroot.c (unescape): New function.
16080 (grub_find_root_device_from_mountinfo): Use unescape.
16082 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16084 Support ZFS embedding.
16086 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16087 (grub_zfs_fs): Register grub_zfs_embed.
16089 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16091 Fix MIPS compilation.
16093 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16094 * include/grub/offsets.h: Rename decompressor fields from
16095 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16096 * util/grub-mkimage.c (image_targets): Use new names.
16098 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16100 Defer multiboot device parsing until we're in compressed part.
16102 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16103 bsd_part. setdevice has fallen into disuse.
16104 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16105 (bsd_part): Likewise.
16106 (boot_dev): New variable.
16107 (multiboot_trampoline): Don't parse multiboot device.
16108 Pass multiboot device in %edx.
16109 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16111 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16113 * grub-core/kern/i386/pc/startup.S: Save edx.
16114 (grub_boot_drive): Removed.
16115 (grub_install_dos_part): Likewise.
16116 (grub_install_bsd_part): Likewise.
16117 (grub_boot_device): New variable.
16118 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16119 (grub_install_bsd_part): Likewise.
16120 (grub_boot_drive): Likewise.
16121 (grub_boot_device): New variable.
16122 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16124 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16125 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16126 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16127 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16128 * util/grub-install.in: Remove redundant condition.
16130 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16132 Fix bug introduced by previous commit.
16134 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16136 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16138 Use decompressors framework on i386-pc. It increases core size
16139 by 46 bytes but improves compatibility and maintainability.
16141 * grub-core/Makefile.core.def (lzma_decompress): New image.
16142 (kernel): Add i386_pc_ldflags.
16143 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16144 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16145 to real_to_prot, prot_to_real and device info.
16146 * include/grub/offsets.h: Renamed decompressor offsets.
16147 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16148 (image_target_desc): Remove raw_size and rename decompressor fields.
16149 (compress_kernel): Handle lzma.
16150 (generate_image): Handle decompressors on i386-pc.
16152 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16154 * configure.ac: Add -fno-asynchronous-unwind-tables.
16156 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16158 Move assembly code to C by using intwrap. It increases core size
16159 by 88 bytes but improves compatibility and maintainability.
16161 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16162 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16163 ... here. Translated to C.
16164 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16165 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16166 ... here. Translated to C.
16167 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16168 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16169 ... here. Translated to C.
16170 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16171 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16172 ... here. Translated to C.
16173 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16174 * grub-core/term/i386/pc/console.c (grub_console_cls):
16175 ... here. Translated to C.
16176 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16177 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16178 ... here. Translated to C.
16179 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16180 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16182 * grub-core/term/i386/pc/console.c (int10_9): New function.
16183 (grub_console_putchar): Likewise.
16184 * include/grub/i386/pc/console.h: Removed the not anymore shared
16187 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16189 Move grub_chainloader_real_boot out of the kernel.
16191 * grub-core/Makefile.am: Remove machine/loader.h.
16192 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16194 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16196 (grub_relocator16_keep_a20_enabled): Likewise.
16197 (grub_relocator16_boot): Fill new variables.
16198 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16199 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16201 (grub_chainloader_unload): Likewise.
16202 (grub_chainloader_cmd): Likewise.
16203 * include/grub/i386/pc/loader.h: Removed.
16204 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16205 and esi. All initialisers updated.
16207 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16208 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16210 * Makefile.util.def (grub-mount): New util.
16211 * .bzrignore: Add grub-mount.
16212 * configure.ac: Check for fuse and enable grub-mount if available.
16213 * docs/man/grub-mount.h2m: New file.
16214 * util/grub-mount.c: Likewise.
16216 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16218 * grub-core/commands/efi/fixvideo.c: Gettextize.
16219 * grub-core/commands/hashsum.c: Likewise.
16220 * grub-core/commands/i386/cmostest.c: Likewise.
16221 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16222 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16223 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16224 * grub-core/commands/lsmmap.c: Likewise.
16225 * grub-core/commands/menuentry.c: Likewise.
16226 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16227 * grub-core/commands/setpci.c: Likewise.
16228 * grub-core/loader/i386/bsd.c: Likewise.
16229 * grub-core/loader/i386/linux.c: Likewise.
16230 * util/getroot.c: Likewise.
16231 * util/grub-editenv.c: Likewise.
16232 * util/grub-fstest.c: Likewise.
16233 * util/grub-mkfont.c: Likewise.
16234 * util/grub-mkimage.c: Likewise.
16235 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16236 * util/grub-pe2elf.c: Likewise.
16237 * util/grub-probe.c: Likewise.
16238 * util/grub-setup.c: Likewise.
16239 * util/ieee1275/ofpath.c: Likewise.
16240 * util/misc.c: Likewise.
16241 * util/raid.c: Likewise.
16243 2011-11-11 Robert Millan <rmh@gnu.org>
16245 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16246 __attribute__((unused)) from `os_dev', which *is* being used.
16248 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16250 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16252 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16253 GRUB_IA64_DL_GOT_ALIGN.
16254 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16255 GRUB_IA64_DL_TRAMP_ALIGN.
16257 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16259 Replace grub_fatal with normal errors in i386 linux loader.
16261 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16262 (allocate_pages): Check find_efi_mmap_size return value.
16263 (grub_e820_add_region): Return error.
16264 (grub_linux_boot): Check mmap return value.
16266 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16268 * grub-core/commands/acpihalt.c: Gettextized.
16269 * grub-core/commands/cacheinfo.c: Likewise.
16270 * grub-core/commands/cmp.c: Likewise.
16271 * grub-core/commands/efi/loadbios.c: Likewise.
16272 * grub-core/commands/gptsync.c: Likewise.
16273 * grub-core/commands/ieee1275/suspend.c: Likewise.
16274 * grub-core/commands/legacycfg.c: Likewise.
16275 * grub-core/commands/memrw.c: Likewise.
16276 * grub-core/commands/minicmd.c: Likewise.
16277 * grub-core/commands/parttool.c: Likewise.
16278 * grub-core/commands/time.c: Likewise.
16279 * grub-core/commands/videoinfo.c: Likewise.
16280 * grub-core/disk/geli.c: Likewise.
16281 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16282 * grub-core/disk/luks.c: Likewise.
16283 * grub-core/disk/lvm.c: Likewise.
16284 * grub-core/font/font_cmd.c: Likewise.
16285 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16286 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16287 * grub-core/gfxmenu/view.c: Likewise.
16288 * grub-core/kern/emu/hostdisk.c: Likewise.
16289 * grub-core/kern/emu/main.c: Likewise.
16290 * grub-core/kern/emu/misc.c: Likewise.
16291 * grub-core/kern/emu/mm.c: Likewise.
16292 * grub-core/kern/mips/arc/init.c: Likewise.
16293 * grub-core/kern/mips/loongson/init.c: Likewise.
16294 * grub-core/kern/partition.c: Likewise.
16295 * grub-core/lib/i386/halt.c: Likewise.
16296 * grub-core/lib/mips/arc/reboot.c: Likewise.
16297 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16298 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16299 * grub-core/loader/i386/xnu.c: Likewise.
16300 * grub-core/loader/multiboot.c: Likewise.
16301 * grub-core/net/bootp.c: Likewise.
16302 * grub-core/net/net.c: Likewise.
16303 * grub-core/normal/term.c: Likewise.
16304 * grub-core/partmap/bsdlabel.c: Likewise.
16305 * grub-core/parttool/msdospart.c: Likewise.
16306 * grub-core/term/gfxterm.c: Likewise.
16307 * grub-core/term/terminfo.c: Likewise.
16308 * grub-core/video/i386/pc/vbe.c: Likewise.
16309 * util/grub-menulst2cfg.c: Likewise.
16310 * util/grub-mkdevicemap.c: Likewise.
16311 * util/grub-mklayout.c: Likewise.
16312 * util/grub-mkrelpath.c: Likewise.
16313 * util/grub-script-check.c: Likewise.
16314 * util/ieee1275/grub-ofpathname.c: Likewise.
16315 * util/resolve.c: Likewise.
16317 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16319 Support %1$d syntax.
16321 * tests/printf_unit_test.c: New file.
16322 * Makefile.util.def (printf_test): New test.
16323 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16325 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16327 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16330 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16332 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16334 * grub-core/font/font.c (grub_font_load): Likewise.
16336 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16338 * util/grub-macho2img.c: Add comment concerning gettext.
16339 * grub-core/lib/legacy_parse.c: Likewise.
16341 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16343 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16344 (grub_xvasprintf): Likewise.
16346 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16348 Add const keyword to grub_env_get and gettextize week days.
16350 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16351 (grub_read_hook_datetime): Return const char *.
16352 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16354 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16356 (grub_get_weekday_name): Return const char *. Call gettext.
16357 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16358 char * and len as the argument. All users updated.
16359 (grub_script_argv_split_append): Receive const char *.
16360 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16361 * include/grub/env.h (grub_env_get): Likewise.
16362 (grub_env_read_hook_t): Return const char *.
16363 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16364 (grub_script_argv_split_append): Likewise.
16366 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16368 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16370 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16372 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16373 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16375 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16377 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16380 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16382 Fix mips compilation.
16384 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16386 (hashes): Use in embed decoder as well (for sizes).
16387 (dec_stream_header): Fix embed decompressor logic.
16388 (dec_stream_footer): Likewise.
16390 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16392 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16393 an error and not a fatal on unrecognised relocation types.
16395 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16397 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16398 Issue error rather than printf on unknown arguments.
16400 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16402 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16405 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16407 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16410 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16412 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16413 leftover debug printf.
16415 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16417 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16419 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16421 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16424 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16426 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16428 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16430 Allow all modules to perform serial IO
16432 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16433 * include/grub/serial.h (grub_serial_port_configure): New inline
16435 (grub_serial_port_fetch): Likewise.
16436 (grub_serial_port_put): Likewise.
16437 (grub_serial_port_fini): Likewise.
16438 (grub_serial_find): New proto.
16440 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16442 Put symlink at the end of the node and fix a potential
16445 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16446 Make symlink into an array.
16447 (set_rockridge): Set have_symlink and alloc_dirents.
16448 (grub_iso9660_read_symlink): Use new layout.
16449 (grub_iso9660_iterate_dir): Fix memory corruption.
16451 (grub_iso9660_dir): Set have_symlink.
16452 (grub_iso9660_open): Likewise.
16454 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16456 Remove local keyword.
16458 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16459 (version_test_gt): Likewise.
16460 (version_find_latest): Likewise.
16461 (gettext_printf): Likewise.
16462 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16464 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16466 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16468 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16470 Fix ZFS memory and resource leaks.
16472 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16475 (fill_vdev_info): New parameter inserted. All users updated.
16476 (check_pool_label): Likewise.
16477 (scan_disk): Likewise.
16478 (scan_devices): Close non-inserted disks.
16479 (fzap_iterate): Free l.
16480 (unmount_device): Free children descripto memory.
16482 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16484 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16485 argument (access out of bounds).
16487 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16489 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16492 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16494 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16497 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16499 Fix several memory leaks.
16501 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16502 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16503 (grub_cpio_dir): Likewise.
16504 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16505 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16506 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16507 (grub_romfs_label): Likewise.
16508 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16509 (squash_unmount): New function.
16510 (grub_squash_dir): Fix memory leak.
16511 (grub_squash_open): Likewise.
16512 (grub_squash_read): Likewise.
16513 (grub_squash_mtime): Likewise.
16514 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16515 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16516 * util/grub-fstest.c (fstest): Likewise.
16518 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16520 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16521 avoid accessing beyond the array.
16523 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16525 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16527 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16529 Several AFFS fixes.
16531 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16532 (GRUB_AFFS_FLAG_FFS): Removed.
16533 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16534 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16535 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16536 (grub_fshelp_node): Make block 32-bit.
16537 Add block_cache and last_block_cache.
16538 (grub_affs_read_block): Fill and use block cache.
16539 (grub_affs_read_file): Removed.
16540 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16542 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16544 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16546 (grub_affs_close): Free block cache.
16547 (grub_affs_read): Use grub_fshelp_read_file directly.
16549 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16551 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16554 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16556 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16558 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16561 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16563 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16565 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16566 byteswap when needed.
16568 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16570 Fix FreeBSD compilation.
16572 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16573 to avoid circular dependency.
16574 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16575 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16576 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16578 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16580 Fix ZFS crypto error types.
16582 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16583 (grub_gcm_decrypt): Likewise.
16584 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16587 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16591 * Makefile.util.def (10_illumos): New script.
16592 * configure.ac: Set COND_HOST_ILLUMOS.
16593 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16594 Support Illumos calls.
16595 (find_partition_start) [__sun__]: Likewise.
16596 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16597 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16598 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16599 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16601 * util/grub-probe.c (probe) [__sun__]: Do character check.
16602 * util/grub.d/10_illumos.in: New file.
16604 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16606 Support escaped commas in hostdisk.
16608 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16609 (find_grub_drive): Use unescape_cmp.
16610 (make_device_name): Escape commas.
16612 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16614 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16616 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16618 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16621 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16623 Support trampoline jumps on powerpc.
16625 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16627 (grub_dl_load_segments): Set mod->sz.
16628 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16630 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16632 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16634 (trampoline): New struct.
16635 (trampoline_template): New const.
16636 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16637 * include/grub/dl.h (grub_dl): Add sz element.
16638 [__powerpc__]: Follow __ia64__.
16639 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16640 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16641 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16642 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16644 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16646 ZFS crypto support.
16648 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16649 * grub-core/Makefile.core.def (zfscrypt): New module.
16650 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16651 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16652 it. All users updated.
16653 (grub_zfs_decrypt): New var.
16654 (grub_zfs_load_key): Likewise.
16655 (zio_checksum_functions): Add SHA256+MAC.
16656 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16657 (zio_read): Handle encrypted blocks.
16658 (zap_verify): Remove incorrect check.
16659 (fzap_iterate): Handle non-standard fzap.
16660 (zap_iterate): Likewise.
16661 (zap_iterate_u64): New function.
16662 (dnode_get_fullpath): Load keys.
16663 * grub-core/fs/zfs/zfscrypt.c: New file.
16664 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16665 (grub_crypto_ecb_encrypt): Make input const.
16666 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16667 (grub_crypto_ecb_encrypt): Make input const.
16668 (GRUB_CIPHER_AES): New macro.
16669 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16670 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16671 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16672 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16673 prefix. All users updated.
16674 (grub_zfs_add_key): New proto.
16675 (grub_zfs_decrypt): Likewise.
16676 (grub_zfs_load_key): Likewise.
16677 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16678 * util/grub-fstest.c (options): Add -K option.
16679 (argp_parser): Likewise.
16681 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16683 Support zle compression on ZFS.
16685 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16686 (decomp_table): Add zle.
16687 * include/grub/zfs/zio.h (zio_compress): Add zle.
16689 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16691 Support BtrFS embedding.
16693 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16694 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16695 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16696 * util/grub-setup.c (setup): Use fs embedding if available.
16697 Add additional sanity check.
16699 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16701 * util/grub-install.in: Fix condition for config_opt.
16703 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16705 Support third redundancy strip on raidz3.
16707 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16708 Return error on singularity. All users updated.
16709 (read_device): Don't stop on 3rd failure on raidz3.
16711 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16713 Support case-insensitive ZFS subvolumes.
16715 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16717 (zap_hash): Likewise.
16718 (name_cmp): New function.
16719 (zap_leaf_array_equal): New parameter case_insensitive.
16721 (zap_leaf_lookup): Likewise.
16722 (fzap_lookup): Likewise.
16723 (zap_lookup): Likewise.
16724 (dnode_get_path): New parameter case_insensitive. Retrieve case
16725 sensitiviness of a volume. All users updated.
16726 (dnode_get_fullpath): New parameter case_insensitive.
16728 (grub_zfs_dir): Set info.case_insensitiveness.
16730 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16732 Support second redundancy strip on raidz(2,3).
16734 * grub-core/fs/zfs/zfs.c (powx): New array.
16735 (powx_inv): Likewise.
16737 (xor_out): New function.
16738 (gf_mul): Likewise.
16739 (recovery): Likewise.
16740 (read_device): Use second redundancy strip.
16742 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16744 Use a power of generator representation of GF(256) multiplication group
16745 to save space time and complexity.
16747 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16748 (raid6_table2): Likewise.
16750 (powx_inv): Likewise.
16752 (grub_raid_block_mul): Replace with ...
16753 (grub_raid_block_mulx): ...this.
16754 (grub_raid6_init_table): Rewritten.
16755 (grub_raid6_recover): Use power of generator representation.
16757 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16759 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16760 for the right device.
16762 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16764 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16765 expected by grub-mkimage and it's more clear since there is no implicit
16768 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16770 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16772 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16774 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16776 * util/grub-mkrescue.in: Fix handling xorriso option.
16778 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16780 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16783 2011-11-03 crocket <crockabiscuit@gmail.com>
16785 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16787 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16789 XZ CRC64 and SHA256 support.
16791 * Makefile.util.def (libgrubmods): Add crc64.c.
16792 * grub-core/Makefile.core.def (crc64): New module.
16793 * grub-core/lib/crc64.c: New file.
16794 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16795 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16797 (MAX_HASH_SIZE): New define.
16798 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16799 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16800 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16801 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16802 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16803 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16804 Handle non-crc32 hashes.
16805 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16806 (dec_stream_header): Handle non-crc32 hashes.
16807 (dec_stream_footer): Likewise.
16808 (dec_block_header): Likewise.
16809 (dec_main): Likewise.
16810 (xz_dec_init): Likewise.
16811 (xz_dec_reset): Likewise.
16812 (xz_dec_end): Likewise.
16813 * util/import_gcry.py: Add CRC64 line.
16815 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16817 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16820 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16822 Make reiserfs label retrieval similar to other *_label functions.
16824 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16825 (REISERFS_MAX_LABEL_LENGTH): Removed.
16826 (REISERFS_LABEL_OFFSET): Likewise.
16827 (grub_reiserfs_label): Rewritten.
16829 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16831 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16834 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16836 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16838 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16840 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16841 drive failure on both raidz and raidz2.
16843 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16845 Fix RAIDZ(2) for >= 5 devices.
16847 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16848 asize argument. All users updated.
16850 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16854 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16855 (fill_vdev_info_real): Set ashift.
16856 (read_device): Rewrite RAIDZ part based on reverse engineering.
16858 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16860 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16861 don't report potentially unavialiable fields in debug output.
16862 (find_path): Fix double-free and memory leak.
16864 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16866 Read label on UFS1.
16868 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16869 (grub_ufs_fs): Always set .label.
16871 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16875 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16876 (grub_ufs_data): New field log2_blksz.
16877 (grub_ufs_read_file): Use shifts.
16878 (grub_ufs_mount): Check block size and logarithm it.
16880 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16882 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16885 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16887 Handle symlinks and long names on tar and cpio.
16889 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16890 (ATTR_FILE): Likewise.
16891 (ATTR_DIR): Likewise.
16892 (ATTR_LNK): Likewise.
16893 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16894 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16896 (grub_cpio_mount): Zero-fill data.
16897 (handle_symlink): New function.
16898 (grub_cpio_dir): Handle symlinks.
16899 (grub_cpio_open): Likewise.
16900 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16902 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16904 Fix iso9660 filename limitations and fix memory leaks.
16906 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16907 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16909 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16911 Fix JFS file name length limitations.
16913 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16914 (grub_jfs_diropen): Fix maximum filename length.
16915 (grub_jfs_getent): Fix filename length.
16916 (grub_jfs_lookup_symlink): Fix size checks.
16918 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16920 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16923 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16925 Leverage BFS implementation to read AFS.
16927 * Makefile.util.def (libgrubmods): Add afs.c.
16928 * grub-core/Makefile.core.def (afs): New module
16929 * grub-core/fs/afs.c: New file.
16930 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16932 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16934 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16936 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16938 * grub-core/fs/bfs.c: Run indent.
16940 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16942 BFS implementation based on the specification.
16944 * grub-core/fs/bfs.c: New file.
16945 * Makefile.util.def (libgrubmods): Add bfs.c.
16946 * grub-core/Makefile.core.def (bfs): New module.
16948 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16950 * util/grub-fstest.c (cmd_cp): Clarify error message.
16951 (cmd_cmp): Likewise.
16953 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16955 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16958 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16960 Remove afs and befs because of copyright problem.
16962 * grub-core/fs/afs.c: Removed.
16963 * grub-core/fs/afs_be.c: Removed.
16964 * grub-core/fs/befs.c: Removed.
16965 * grub-core/fs/befs_be.c: Removed.
16966 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16967 * grub-core/Makefile.core.def (afs): Removed.
16968 (afs_be): Likewise.
16970 (befs_be): Likewise.
16972 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16974 Prefer rockridge over Joliet.
16976 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16978 (set_rockridge): ... here.
16979 (grub_iso9660_mount): Check rockridge on the primary label when
16980 discovering. Ignore Joliet if Rockridge is present.
16982 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16984 Use shifts in nilfs2.
16986 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16987 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16988 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16989 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16990 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16991 (grub_nilfs2_entries_per_block): Replaced with ...
16992 (grub_nilfs2_log_entries_per_block_log): ... this.
16993 (grub_nilfs2_blocks_per_group): Replaced with ...
16994 (grub_nilfs2_blocks_per_group_log): ... this.
16995 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16996 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16997 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16998 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16999 (grub_nilfs2_palloc_entry_offset): Replaced ...
17000 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17001 (grub_nilfs2_dat_translate): Use shifts.
17002 (grub_nilfs2_read_inode): Likewise.
17003 (GRUB_MOD_INIT): Ensure that logs are correct.
17005 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17007 Use shifts in minix filesystem.
17009 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17010 (GRUB_MINIX_ZONE2SECT): Likewise.
17011 (grub_minix_data): Replace block_size with log_block_size.
17012 (grub_minix_read_file): Use shifts.
17013 (grub_minix_mount): Check block size and take a logarithm.
17015 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17017 Use shifts in squash4.
17019 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17020 (squash_mount): Check block size and take logarithm.
17021 (direct_read): Use shifts.
17023 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17025 Correct befs block counting logic.
17027 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17028 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17029 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17030 (grub_afs_read_inode): Use block_shift.
17031 (RANGE_SHIFT): New definition.
17032 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17033 unexpected conditions, use shifts and appropriate types.
17034 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17036 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17038 * grub-core/disk/raid.c (scan_devices): Check partition.
17039 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17041 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17043 Support BFS (befs) UUID.
17045 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17046 (grub_afs_small_data_element_header): New struct.
17047 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17048 (grub_afs_read_attribute) [MODE_BFS]: New function.
17049 (grub_afs_iterate_dir): Allocate for complete inode.
17050 (grub_afs_mount): Likewise.
17051 (grub_afs_uuid) [MODE_BFS]: New function.
17052 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17054 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17056 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17057 (zfs_unmount): Fix memory leak.
17059 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17061 Support NTFS reparse points.
17063 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17064 (symlink_descriptor): New struct.
17065 (grub_ntfs_read_symlink): New function.
17066 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17067 (grub_ntfs_open): Likewise.
17069 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17071 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17073 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17075 fstest xnu_uuid subcommand.
17077 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17078 grub-core/commands/xnu_uuid.c.
17079 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17080 (fstest): Handle xnu_uuid.
17081 (options): Document xnu_uuid.
17082 (argp_parser): Parse xnu_uuid.
17084 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17086 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17087 -l argument. Add newline at the end if printing.
17088 (GRUB_MOD_INIT): Document -l.
17090 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17092 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17094 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17096 ZFS multi-device and version 33 support.
17098 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17099 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17100 (grub_zfs_data): Add multidev-ice-related fields.
17101 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17102 (dva_get_offset): Make dva const.
17103 (zfs_fetch_nvlist): New function.
17104 (fill_vdev_info_real): Likewise.
17105 (fill_vdev_info): Likewise.
17106 (check_pool_label): Likewise.
17107 (scan_disk): Likewise.
17108 (scan_devices): Likewise.
17109 (read_device): Likewise.
17110 (read_dva): Likewise.
17111 (zio_read_gang): Use read_dva.
17112 (zio_read_data): Likewise.
17113 (zap_leaf_lookup): Add missing endian conversion.
17114 (zap_verify): Add missing endian conversion. All users updated.
17115 (fzap_lookup): Likewise.
17116 (fzap_iterate): Likewise.
17117 (dnode_get_path): Handle SA bonus.
17118 (nvlist_find_value): Make input const. All users updated.
17119 (unmount_device): New function.
17120 (zfs_unmount): Use unmount_device.
17121 (zfs_mount): Use scan_disk.
17122 (zfs_mtime): New function.
17123 (grub_zfs_open): Handle system attributes.
17124 (fill_fs_info): Likewise.
17125 (grub_zfs_dir): Likewise.
17126 (grub_zfs_fs): Add mtime.
17127 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17128 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17129 (SA_MTIME_OFFSET): Likewise.
17130 (SA_SYMLINK_OFFSET): Likewise.
17131 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17132 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17133 (fstest): Support zfsinfo.
17134 (argp_parser): Likewise.
17136 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17138 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17141 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17145 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17146 sharing the same block. Iterate over correct number of indices.
17147 (dnode_get_path): Handle symlinks correctly.
17149 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17151 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17153 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17155 Read label on HFS+.
17157 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17158 (grub_hfsplus_btree_search): Fix types.
17159 (grub_hfsplus_label): Implement.
17161 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17163 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17165 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17167 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17169 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17171 Fix symlink handling on iso9660.
17173 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17175 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17176 (grub_iso9660_read_symlink): Moved most of code ...
17177 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17179 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17181 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17182 Use union to avoid breaking strict-aliasing rules.
17184 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17186 Support multi-extent iso files.
17188 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17190 (grub_fshelp_node): Revamp. All users updated.
17191 (FLAG_*): New enum.
17192 (read_node): New function.
17193 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17195 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17196 (get_node_size): New function.
17197 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17199 Fix memory leak on . and ..
17200 (grub_iso9660_read): Use read_node.
17201 (grub_iso9660_close): Free node.
17203 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17205 Fix tar 4G limit and handle paths containing dot.
17207 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17208 (canonicalize): New function.
17209 (grub_cpio_find_file): Use canonicalize. Store offs in
17211 (grub_cpio_dir): Use grub_disk_addr_t.
17212 (grub_cpio_open): Likewise.
17214 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17216 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17218 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17220 (grub_squash_inode): Add long_file and block_size.
17221 (grub_squash_cache_inode): New struct.
17222 (grub_squash_dirent): Make types into enum.
17223 (SQUASH_TYPE_LONG_REGULAR): New type.
17224 (grub_squash_frag_desc): Add field size.
17225 (SQUASH_BLOCK_FLAGS): New enum.
17226 (grub_squash_data): Use grub_squash_cache_inode.
17227 (grub_fshelp_node): Make ino_chunk 64-bit.
17228 (read_chunk): Minor argument change. All users updated.
17229 (squash_mount): Use correct le_to_cpu.
17230 (grub_squash_open): Handle LONG_REGULAR.
17231 (direct_read): New function.
17232 (grub_squash_read_data): Handle blocks correctly.
17234 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17236 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17238 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17240 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17242 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17244 Fix 2G limit on ZFS.
17246 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17248 (uberblock_verify): Likewise.
17249 (dmu_read): Likewise.
17250 (grub_zfs_read): Likewise. Remove invalid cast.
17252 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17254 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17255 (grub_jfs_blkno): Fix incorrect shift.
17256 (grub_jfs_read_file): Use more appropriate types.
17258 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17260 Support triple indirect on minix2 and minix3.
17262 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17263 Declare triple_indir_zone.
17264 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17267 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17271 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17272 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17273 Rename ctime to mtime. All users updated.
17274 (grub_minix_get_file_block): Fix types and double indirect computations.
17276 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17278 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17279 if no label is found.
17280 (grub_fat_iterate_dir): Fix file size type.
17281 (grub_fat_iterate_dir): Likewise.
17283 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17285 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17287 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17288 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17290 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17292 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17294 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17296 * util/import_gcry.py: Accept space between # and include.
17298 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17300 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17302 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17304 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17306 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17307 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17309 * grub-core/script/yylex.l: Add fine-grained #pragma.
17311 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17313 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17314 New inline function.
17315 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17317 (memset) [GRUB_UTIL]: Likewise.
17318 (memcmp) [GRUB_UTIL]: Likewise.
17320 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17322 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17323 inline function rather than a define.
17325 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17327 * util/grub-setup.c: Add missing include.
17329 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17331 * util/ieee1275/grub-ofpathname.c: Add missing include.
17333 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17335 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17336 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17339 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17341 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17344 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17346 * util/grub-install.in: Add datarootdir as per automake manual
17348 * util/grub-mknetdir.in: Likewise.
17350 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17352 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17354 * util/grub.d/10_kfreebsd.in: Likewise.
17355 * util/grub.d/10_linux.in: Likewise.
17356 * util/grub.d/10_netbsd.in: Likewise.
17357 * util/grub.d/10_windows.in: Likewise.
17358 * util/grub.d/20_linux_xen.in: Likewise.
17360 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17362 Remove redundant grub_kernel_image_size.
17364 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17366 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17367 the small code. It moves it only by few bytes but simplifies the code.
17368 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17370 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17371 (grub_kernel_image_size): Removed.
17372 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17373 (grub_kernel_image_size): Removed.
17374 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17375 compiled with Apple toolchain.
17376 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17377 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17378 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17379 (grub_total_module_size): Likewise.
17380 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17382 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17383 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17384 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17385 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17386 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17387 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17388 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17389 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17391 (grub_total_module_size): Removed.
17392 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17393 (image_targets): Likewise.
17394 Set .compressed_size to no field on sparc.
17395 (generate_image): Remove kernel_image_size handling.
17397 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17399 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17400 NULL pointer dereference.
17402 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17404 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17405 done with a dedicated section.
17407 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17408 Ensure the correct position of boot_path.
17409 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17410 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17412 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17413 * include/grub/boot.h: Removed. All references removed.
17414 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17416 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17418 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17420 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17423 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17425 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17427 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17429 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17430 Don't add the bogus brackets.
17432 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17436 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17437 * grub-core/Makefile.core.def (exfat): New module.
17438 * grub-core/fs/exfat.c: New file.
17439 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17440 (GRUB_FAT_ATTR_*): Make into an enum.
17441 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17442 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17443 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17444 (GRUB_FAT_MAXFILE): Removed.
17445 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17446 (grub_current_fat_bpb_t): New type.
17447 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17448 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17449 (grub_fat_dir_node_t): New type.
17450 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17451 (fat_log2) [MODE_EXFAT]: Removed.
17452 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17453 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17454 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17455 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17456 (grub_fat_label) [MODE_EXFAT]: New function.
17457 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17458 reserved_first_sector to 0.
17460 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17462 Move grub_reboot out of the kernel.
17464 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17465 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17466 * grub-core/lib/efi/reboot.c: ... here.
17467 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17468 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17469 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17470 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17471 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17472 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17473 * grub-core/lib/ieee1275/reboot.c: ... here.
17474 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17475 * grub-core/lib/mips/arc/reboot.c: ... here.
17476 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17477 * grub-core/lib/mips/loongson/reboot.c: ...here.
17478 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17479 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17480 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17481 * include/grub/i386/reboot.h: New file.
17482 * include/grub/mips/loongson/ec.h: Fix includes.
17483 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17484 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17485 * grub-core/lib/i386/reboot.c: New file.
17487 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17489 Make grub_prefix into module to fix the arbitrary limit and save
17492 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17493 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17494 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17495 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17496 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17497 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17498 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17499 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17500 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17501 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17502 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17503 * include/grub/ia64/efi/kernel.h: Removed.
17504 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17505 (grub_prefix): Removed.
17506 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17507 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17508 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17509 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17510 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17511 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17512 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17513 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17514 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17515 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17516 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17517 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17518 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17519 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17520 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17521 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17522 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17523 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17524 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17525 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17526 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17527 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17528 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17529 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17530 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17531 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17532 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17533 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17534 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17536 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17538 (image_targets): Likewise.
17539 (generate_image): Put prefix as a module.
17541 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17543 Replace grub_module_iterate with FOR_MODULES.
17545 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17546 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17547 (grub_efi_modules_addr): ...this.
17548 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17549 (grub_efi_init): Set grub_modbase.
17550 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17551 (grub_modbase): New variable.
17552 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17553 (grub_modbase): New variable.
17554 (grub_machine_init): Set grub_modbase.
17555 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17556 (grub_modbase): New variable.
17557 (grub_machine_init): Set grub_modbase.
17558 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17559 (grub_modbase): New variable.
17560 (grub_machine_init): Set grub_modbase.
17561 * grub-core/kern/main.c (grub_module_iterate): Remove.
17562 (grub_modules_get_end): Use grub_modbase.
17563 (grub_load_modules): Use FOR_MODULES.
17564 (grub_load_config): Likewise.
17565 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17566 (grub_modbase): New variable.
17567 (grub_machine_init): Set grub_modbase.
17568 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17569 (grub_modbase): New variable.
17570 (grub_machine_init): Set grub_modbase.
17571 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17573 (grub_modbase): New variable.
17574 (grub_machine_init): Set grub_modbase.
17575 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17576 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17577 (grub_module_iterate): Likewise.
17578 (grub_modbase): New variable declaration.
17579 (FOR_MODULES): New macro.
17581 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17583 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17584 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17586 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17588 Fix few obvious type discrepancies.
17590 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17591 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17592 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17594 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17595 and connected types.
17596 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17598 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17599 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17600 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17601 and connected types.
17603 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17605 Fix python 3.x incompatibilities.
17607 * gentpl.py: Put brackets around print strings.
17608 * util/import_gcry.py: Open explicitly as utf-8.
17609 Use in instead of has_key.
17611 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17613 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17614 (GRUB_XFS_INO_AGBITS): Make into inline function.
17615 (GRUB_XFS_INO_INOINAG): Likewise.
17616 (GRUB_XFS_INO_AG): Likewise.
17617 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17618 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17619 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17620 (GRUB_XFS_EXTENT_SIZE): Likewise.
17621 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17622 (GRUB_XFS_NEXT_DIRENT): Likewise.
17623 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17624 (grub_xfs_read_file): Fix offset type.
17626 2011-10-15 Robert Millan <rmh@gnu.org>
17628 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17630 2011-10-15 Robert Millan <rmh@gnu.org>
17632 Fix build problem on FreeBSD and GNU/kFreeBSD.
17634 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17636 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17638 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17640 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17642 (grub_hfsplus_btree_recoffset): Likewise.
17643 (grub_hfsplus_btree_recptr): Likewise.
17644 (grub_hfsplus_find_block): Likewise.
17645 (grub_hfsplus_btree_search): Likewise.
17646 (grub_hfsplus_read_block): Likewise.
17647 (grub_hfsplus_read_file): Likewise.
17648 (grub_hfsplus_mount): Likewise.
17649 (grub_hfsplus_btree_iterate_node): Likewise.
17650 (grub_hfsplus_btree_search): Likewise.
17651 (grub_hfsplus_iterate_dir): Likewise.
17652 (grub_hfsplus_read): A small code simplification.
17654 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17656 * grub-core/kern/emu/hostdisk.c
17657 (convert_system_partition_to_system_disk): Don't assume that children
17658 of mapper nodes are mapper nodes.
17660 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17662 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17663 * include/grub/misc.h (grub_isxdigit): New function.
17664 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17665 switched to grub_isxdigit.
17666 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17667 number starting with a letter.
17669 2011-10-09 Robert Millan <rmh@gnu.org>
17671 LVM support for FreeBSD and GNU/kFreeBSD.
17673 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17675 (LVM_DEV_MAPPER_STRING): Move from here ...
17676 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17677 * util/getroot.c: Include `<grub/util/lvm.h>'.
17678 (grub_util_get_dev_abstraction): Enable
17679 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17680 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17681 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17682 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17684 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17686 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17687 when LVM abstraction is required for ${GRUB_DEVICE}.
17689 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17691 Add support for LZO compression in GRUB:
17692 - import of minilzo library,
17693 - LZO decompression for btrfs,
17694 - lzop files decompression.
17696 * grub-core/io/lzopio.c: New file.
17697 * grub-core/lib/adler32.c: Likewise.
17698 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17699 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17700 * grub-core/lib/minilzo/minilzo.c: Likewise.
17701 * grub-core/lib/minilzo/minilzo.h: Likewise.
17702 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17703 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17704 grub-core/lib/minilzo/minilzo.c to common.
17705 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17706 cflags in cppflags.
17707 * grub-core/Makefile.core.def (btrfs): Likewise.
17708 * grub-core/Makefile.core.def (lzopio): New module.
17709 (adler32): Likewise.
17710 * grub-core/fs/btrfs.c: Include minilzo.h.
17711 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17712 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17713 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17714 (grub_btrfs_lzo_decompress): New function.
17715 (grub_btrfs_extent_read): Add support for LZO compression type.
17716 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17717 (GRUB_USHRT_MAX): Likewise.
17718 (GRUB_UINT_MAX): Likewise.
17719 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17720 (UINT_MAX): Likewise.
17721 (CHAR_BIT): Likewise.
17722 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17723 grub-core/lib/posix_wrap/limits.h
17724 (UCHAR_MAX): Likewise.
17725 * include/grub/file.h (grub_file_filter_id): New compression filter
17726 GRUB_FILE_FILTER_LZOPIO.
17727 * include/grub/file.h (grub_file_filter_id): Set
17728 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17729 * include/grub/types.h (grub_get_unaligned16): New function.
17730 (grub_get_unaligned32): Likewise.
17731 (grub_get_unaligned64): Likewise.
17732 * util/import_gcry.py (cryptolist): Add adler32.
17734 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17736 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17737 in perspective decreases the complexity of build system and fixes
17738 compilation right now.
17740 2011-10-01 Ales Nesrsta <starous@volny.cz>
17742 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17743 (fixed problem related to using UHCI with coreboot).
17745 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17747 * gentpl.py: Use Autogen macros so that the output template file
17748 (Makefile.tpl) size is reduced.
17750 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17752 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17755 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17757 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17758 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17760 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17762 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17765 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17767 Remove extra declaration of sleep for mingw32.
17769 * util/misc.c (sleep) [__MINGW32__]: Removed.
17770 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17772 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17774 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17776 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17778 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17779 (grub_netbsd_btinfo_bootwedge): New struct.
17780 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17782 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17784 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17786 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17789 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17791 Fix incorrect identifiers in bash-completion.
17793 * util/bash-completion.d/grub-completion.bash.in
17794 (_grub_mkpasswd-pbkdf2): Rename to ...
17795 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17796 (_grub_script-check): Rename to ...
17797 (_grub_script_check): ... this. All users updated.
17799 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17801 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17802 Return 0 if disk isn't biosdisk.
17804 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17806 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17808 * Makefile.util.def (grub-fstest): Likewise.
17810 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17812 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17813 Get sector size from disk label.
17815 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17817 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17818 */README* as well as README*.
17819 Reported by: Axel Beckert.
17821 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17823 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17824 case of less than 256 MiB of RAM.
17826 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17828 * grub-core/commands/wildcard.c (make_regex): Handle @.
17830 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17832 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17834 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17836 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17837 AC_LANG_CONFTEST macros.
17839 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17841 Add grub-fstest option to uncompress data for commands.
17843 * util/grub-fstest.c (uncompress): New var.
17844 (options): New option -u.
17846 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17848 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17849 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17851 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17853 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17854 file type was not recognized correctly (not gzip or corrupted).
17856 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17858 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17859 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17861 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17863 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17865 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17866 video_radeon_fuloong2e.
17867 * grub-core/video/radeon_fuloong2e.c: New file.
17868 * include/grub/video.h (grub_video_id_t): Add new ID
17869 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17871 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17873 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17875 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17876 that PRID matches the detected subplatform and reset the subplatform
17879 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17881 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17883 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17885 Fix PCI iterating on functions >= 4.
17887 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17888 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17890 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17891 (grub_pci_read): Fix bitmask.
17892 (grub_pci_read_word): Likewise.
17893 (grub_pci_read_byte): Likewise.
17894 (grub_pci_write): Likewise.
17895 (grub_pci_write_word): Likewise.
17896 (grub_pci_write_byte): Likewise.
17898 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17900 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17901 can still be specified in TARGET_CFLAGS)
17903 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17905 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17907 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17908 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17909 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17910 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17911 (FULOONG): Rename to ...
17912 (FULOONG2F): ... this. All users updated.
17913 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17914 (machtype_fuloong2f_str): ... this.
17915 (machtype_fuloong2e_str): New string.
17916 Check for machtype_fuloong2e_str.
17917 * grub-core/loader/mips/linux.c (loongson_machtypes)
17918 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17919 * grub-core/term/serial.c (loongson_defserial)
17920 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17921 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17922 loongson_defserial.
17923 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17925 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17926 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17927 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17928 to IMAGE_FULOONG2F_FLASH. All users updated.
17929 (image_targets): Rename images.
17930 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17932 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17934 Make enable of disk cache statistics code configurable.
17936 * configure.ac: --enable-cache-stats added.
17937 * config.h.in (DISK_CACHE_STATS): New define.
17938 * grub-core/Makefile.core.def (cacheinfo): New command.
17939 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17940 * grub-core/commands/cacheinfo.c: New file.
17941 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17942 moved to cacheinfo.c.
17943 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17945 * include/grub/disk.h: Likewise.
17947 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17949 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17950 * grub-core/Makefile.am: Likewise.
17952 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17954 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17957 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17959 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17961 (grub_jfs_lookup_symlink): Use correct starting inode.
17963 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17965 * util/grub-setup.c (main): Add missing gcry initialisation.
17967 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17969 Don't accept text modes on EFI when booting Linux.
17971 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17972 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17974 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17975 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17977 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17978 use of "/path/.." as in grub-install for EFI as well as handling
17979 symlinks correctly.
17980 Fixes Debian bug #637768.
17982 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17984 * util/grub-probe.c: Remove duplicate #include.
17986 2011-08-10 Robert Millan <rmh@gnu.org>
17988 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17990 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17992 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17993 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17995 2011-08-03 Robert Millan <rmh@gnu.org>
17997 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17998 la_array as packed.
17999 Reported by: Zachary Bedell
18001 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18003 * configure.ac: The Loongson port requires grub-mkfont due to its
18004 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18007 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18009 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18010 processing arguments (otherwise help2man fails when GRUB has not yet
18013 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18015 New script grub-mkstandalone.
18017 * Makefile.util.def (grub-mkstandalone): New script.
18018 * docs/man/grub-mkstandalone.h2m: New file.
18019 * util/grub-mkstandalone.in: Likewise.
18021 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18023 Support ATA disks with 4K sectors.
18025 * include/grub/ata.h (grub_ata): New member log_sector_size.
18026 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18027 (grub_ata_identify): Read sector size.
18028 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18030 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18032 * util/grub-install.in: Don't use uhci outside of x86.
18034 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18036 * util/grub-mkrescue.in: Add missing quotes.
18038 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18040 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18043 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18045 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18047 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18049 * include/grub/video.h: add missing EXPORT_FUND on
18050 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18052 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18054 * include/grub/mips/kernel.h: Fix define conflict.
18056 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18058 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18061 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18063 Preferred resolution detection for VBE.
18065 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18066 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18067 the Flat Panel extension, in line with the X.org VESA driver.
18068 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18070 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18071 (grub_vbe_bios_read_edid): Likewise.
18072 (grub_vbe_get_preferred_mode): Likewise.
18073 (grub_video_vbe_setup): When the mode is "auto", try to get the
18074 preferred mode from VBE, and use the largest mode that is no larger
18075 than the preferred mode (some BIOSes expose a preferred mode that is
18076 not in their mode list!). If this fails, fall back to 640x480 as a
18077 safe conservative choice.
18078 (grub_video_vbe_get_edid): New function.
18079 (grub_video_vbe_adapter): Add get_edid.
18080 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18081 (struct grub_video_adapter): Add get_edid.
18082 (grub_video_edid_checksum): Add prototype.
18083 (grub_video_edid_preferred_mode): Likewise.
18084 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18087 * grub-core/commands/videoinfo.c (print_edid): New function.
18088 (grub_cmd_videoinfo): Print EDID if available.
18090 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18091 is more appropriate on a wider range of platforms than 640x480.
18092 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18095 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18097 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18099 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18101 * po/POTFILES.in: Regenerate.
18103 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18105 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18106 incorrect memory usage.
18108 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18110 * util/grub-install.in: Source grub-mkconfig_lib.
18112 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18114 Remove getroot.c from core on emu platform.
18116 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18118 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18120 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18121 * util/getroot.c (get_win32_path): ... here.
18122 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18123 * util/getroot.c (fini_libzfs): ... here.
18124 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18125 * util/getroot.c (grub_get_libzfs_handle): ... here.
18126 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18128 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18129 * grub-core/kern/emu/misc.c
18130 (grub_make_system_path_relative_to_its_root): Moved from here...
18131 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18132 * grub-core/kern/emu/getroot.c: Moved from here ...
18133 * util/getroot.c: ... here. All users updated.
18134 * grub-core/kern/emu/raid.c: Moved from here ...
18135 * util/raid.c: ... here. All users updated.
18137 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18139 * po/POTFILES.in: Regenerate.
18141 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18143 Fix compilation on GNU/Linux.
18145 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18147 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18148 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18149 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18151 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18152 2011-07-07 Michael Gorven <michael@gorven.za.net>
18153 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18155 LUKS and GELI support.
18157 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18158 grub-core/disk/luks.c, grub-core/disk/geli.c,
18159 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18160 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18161 grub-core/lib/arg.c.
18162 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18163 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18164 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18165 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18166 (grub-bin2h): Add libgcry.a.
18167 (grub-mkimage): Likewise.
18168 (grub-mkrelpath): Likewise.
18169 (grub-script-check): Likewise.
18170 (grub-editenv): Likewise.
18171 (grub-mkpasswd-pbkdf2): Likewise.
18172 (grub-pe2elf): Likewise.
18173 (grub-fstest): Likewise.
18174 (grub-mkfont): Likewise.
18175 (grub-mkdevicemap): Likewise.
18176 (grub-probe): Likewise.
18177 (grub-ofpath): Likewise.
18178 (grub-mklayout): Likewise.
18179 (example_unit_test): Likewise.
18180 (grub-menulst2cfg): Likewise.
18181 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18182 * grub-core/Makefile.core.def (cryptodisk): New module.
18185 * grub-core/disk/AFSplitter.c: New file.
18186 * grub-core/disk/cryptodisk.c: Likewise.
18187 * grub-core/disk/geli.c: Likewise.
18188 * grub-core/disk/luks.c: Likewise.
18189 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18191 (grub_util_get_dm_abstraction): New function.
18192 (grub_util_follow_gpart_up): Likewise.
18193 (grub_util_get_geom_abstraction): Likewise.
18194 (grub_util_get_dev_abstraction): Use new functions.
18195 (grub_util_pull_device): Pull GELI and LUKS.
18196 (grub_util_get_grub_dev): Handle LUKS and GELI.
18197 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18198 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18199 (follow_geom_up): Removed.
18200 (grub_util_fd_seek): New function.
18201 (open_device): Use grub_util_fd_seek.
18202 (nread): Rename to ..
18203 (grub_util_fd_read): ... this. All users updated.
18204 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18205 (grub_crypto_cbc_decrypt): Likewise.
18206 (grub_crypto_hmac_write): Likewise.
18207 (grub_crypto_hmac_buffer): Likewise.
18208 (grub_password_get): Extend to util.
18209 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18210 New member modname.
18211 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18212 * include/grub/cryptodisk.h: New file.
18213 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18214 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18216 (grub_util_follow_gpart_up): New proto.
18217 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18218 (grub_util_fd_read): Likewise.
18219 (grub_cryptodisk_cheat_mount): Likewise.
18220 (grub_util_cryptodisk_print_uuid): Likewise.
18221 (grub_util_get_fd_sectors): Likewise.
18222 * util/grub-fstest.c (mount_crypt): New var.
18223 (fstest): Mount crypto if requested.
18224 (options): New option -C.
18225 (argp_parser): Parse -C.
18226 (main): Init and fini gcry.
18227 * util/grub-install.in: Support cryptodisk install.
18228 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18229 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18231 (prepare_grub_to_access_device): Likewise.
18232 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18233 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18234 (probe_cryptodisk_uuid): New function.
18235 (probe_abstraction): Likewise.
18236 (probe): Use new functions.
18237 * util/import_gcry.py: Create Makefile.utilgcry.def.
18238 Add modname member.
18240 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18242 Lazy device scanning.
18244 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18245 (grub-setup): Remove util/raid.c.
18246 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18247 * grub-core/disk/lvm.c (scan_depth): New variable.
18248 (grub_lvm_iterate): Rescan if necessary.
18249 (find_lv): New function based on grub_lvm_open.
18250 (grub_lvm_open): Use find_lv. Rescan on error.
18251 (is_node_readable): New function.
18252 (is_lv_readable): Likewise.
18253 (grub_lvm_scan_device): Skip already found disks.
18254 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18255 Stop if searched device is found and readable.
18256 * grub-core/disk/raid.c (inscnt): New variable.
18257 (scan_depth): Likewise.
18258 (scan_devices): New function based on grub_raid_register. Abort if
18259 looked for device is found.
18260 (grub_raid_iterate): Rescan if needed.
18261 (find_array): NEw function based on -grub_raid_open.
18262 (grub_raid_open): Use find_array and rescan.
18263 (insert_array): Set became_readable_at.
18264 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18265 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18267 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18268 (grub_util_pull_device): New function.
18269 (grub_util_get_grub_dev): Call grub_util_pull_device.
18270 * util/raid.c: Moved to ..
18271 * grub-core/kern/emu/raid.c: ... here.
18272 (grub_util_raid_getmembers): New parameter "bootable".
18273 All users updated. Support 1.x.
18274 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18276 * include/grub/disk.h (grub_disk_pull_t): New enum.
18277 (grub_disk_dev): Change iterate prototype.
18279 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18281 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18282 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18283 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18284 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18286 * include/grub/util/raid.h: Removed.
18288 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18290 * po/POTFILES.in: Regenerate.
18292 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18294 Unify sparc init with other ieee1275.
18296 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18297 instead of kern/sparc64/ieee1275/init.c.
18298 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18299 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18300 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18301 grub/machine/kernel.h.
18302 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18303 (grub_claim_heap) [__sparc__]: Use sparc version.
18304 (grub_machine_init): Moved args parsing to
18305 (grub_parse_cmdline): ...this.
18306 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18307 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18309 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18311 Move BOOTP to separate file.
18313 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18314 * grub-core/net/net.c: Move all BOOTP functions to
18315 * grub-core/net/bootp.c: ... here.
18317 Use frame interface on PXE.
18319 * grub-core/Makefile.core.def (pxecmd): Removed.
18320 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18321 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18322 * grub-core/i386/pc/pxe.c: Moved from here ...
18323 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18324 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18325 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18327 EFI network support.
18329 * grub-core/Makefile.core.def (efinet): New module.
18330 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18332 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18334 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18335 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18336 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18337 * grub-core/net/drivers/efi/efinet.c: New file.
18338 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18339 (grub_efi_net_config): New extern var.
18341 Various cleanups and bugfixes.
18343 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18345 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18346 disk declared as partition.
18347 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18349 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18350 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18351 (grub_debug_zalloc): Likewise.
18352 (grub_debug_realloc): Likewise.
18353 (grub_debug_memalign): Likewise.
18354 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18355 Check that target is IPv4.
18356 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18357 local-mac-address as fallback.
18358 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18360 * grub-core/net/ip.c (ipchksum): Rename to ...
18361 (grub_net_ip_chksum): ... this. All users updated.
18362 (grub_net_recv_ip_packets): Special handling for DHCP.
18363 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18365 Unify prefix handling
18367 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18368 (grub_machine_get_bootlocation): ... this.
18369 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18370 (grub_machine_get_bootlocation): ... this.
18371 (grub_prefix): New variable.
18373 (root_dev): New variable.
18375 (main): Use new variables.
18376 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18378 (grub_machine_get_bootlocation): ... this.
18379 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18380 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18381 (grub_machine_get_bootlocation): ... this.
18382 (grub_machine_set_prefix): Removed.
18383 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18384 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18386 (grub_machine_get_bootlocation): ... this.
18387 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18388 (grub_set_prefix_and_root): ... this. All users updated.
18389 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18391 (grub_machine_get_bootlocation): ... this.
18392 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18393 (grub_machine_get_bootlocation): New proto.
18394 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18396 Less intrusive and more reliable seek on network implementation.
18398 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18399 (grub_file_seek): Don't call grub_file_net_seek.
18400 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18401 (grub_net_fs_read_real): .. this.
18402 (grub_net_seek_real): Use net->offset.
18403 (grub_net_fs_read): Seek if necessary.
18405 Unify IEEE1275 netwotk config with the other platforms.
18407 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18409 (grub_machine_get_bootlocation): Support network.
18410 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18411 Support type and device parsing.
18412 (grub_ieee1275_get_device_type): New function.
18413 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18415 (grub_ieee1275_net_config_real): ... this.
18416 (grub_ofnet_probecards): Removed.
18417 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18418 * include/grub/ieee1275/ofnet.h: Removed.
18419 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18421 (grub_ieee1275_get_device_type): New function.
18423 Unify network device closing across platforms and make more robust.
18425 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18427 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18429 * grub-core/net/net.c (grub_net_network_level_interface_register):
18431 (grub_net_card_unregister): Close all interfaces.
18432 (receive_packets): Don't poll if no iterfaces are registered.
18434 (grub_net_fini_hw): New function.
18435 (grub_net_restore_hw): Likewise.
18436 (fini_hnd): New variable.
18437 (GRUB_MOD_INIT): Register preboot hook.
18438 (GRUB_MOD_FINI): Run and unregister preboot hook.
18440 Poll network cards when idle.
18442 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18443 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18444 * grub-core/net/net.c (receive_packets): Save last poll time.
18445 (grub_net_poll_cards_idle_real): New function.
18446 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18447 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18448 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18450 Rename ofnet interfaces.
18452 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18453 (grub_ofnet_findcards): Use ofnet_%s names.
18455 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18457 Cleanup socket opening.
18459 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18460 (grub_net_fs_close): Likewise.
18461 (grub_net_fs_read_real): Use eof member.
18462 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18463 (+grub_net_udp_close): New inline function.
18465 * include/grub/net/tftp.h: Moved to the top of ...
18466 * grub-core/net/tftp.c: ... here.
18467 * include/grub/net/ip.h: Moved mostly to the top of ...
18468 * grub-core/net/ip.c: ... here.
18469 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18470 * grub-core/net/ethernet.c: ... here.
18472 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18474 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18477 * include/grub/net/ip.h (ipv4_ini): Removed.
18478 (ipv4_fini): Likewise.
18480 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18481 (grub_net_send_ip_packets): Likewise.
18483 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18485 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18486 grub_read_cmos prototype.
18488 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18490 VGA text support in qemu-mips
18492 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18493 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18494 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18496 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18497 * grub-core/kern/vga_init.c: ... this.
18498 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18499 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18500 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18502 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18503 GRUB_MACHINE_PCI_IO_BASE.
18505 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18507 MIPS qemu flash support.
18509 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18511 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18512 (grub_machine_init): Probe memory if its size isn't known.
18513 * util/grub-mkimage.c (image_targets): Add flash targets.
18514 (generate_image): Handle flash targets.
18516 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18518 MIPS qemu at_keyboard support.
18520 * gentpl.py (videoinkernel): Add qemu-mips.
18521 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18522 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18523 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18525 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18526 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18527 * grub-core/term/serial.c (grub_serial_register)
18528 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18530 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18532 CMOS support on sparc.
18534 * gentpl.py (cmos): Add powerpc and sparc.
18535 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18537 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18538 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18539 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18540 grub_set_datetime_cmos.
18541 * grub-core/lib/ieee1275/cmos.c: New file.
18542 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18543 (find_rtc): Set no_ieee1275_rtc on error.
18544 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18545 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18546 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18547 fail. Move value to argument. All users updated
18548 (grub_cmos_write): Likewise.
18549 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18550 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18551 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18552 grub_get_datetime_cmos and grub_set_datetime_cmos.
18554 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18556 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18557 sourcing grub-mkconfig_lib.
18558 * util/update-grub_lib.in: Likewise.
18559 * util/grub.d/00_header.in: Likewise.
18560 * util/grub.d/10_hurd.in: Likewise.
18561 * util/grub.d/10_kfreebsd.in: Likewise.
18562 * util/grub.d/10_linux.in: Likewise.
18563 * util/grub.d/10_netbsd.in: Likewise.
18564 * util/grub.d/10_windows.in: Likewise.
18565 * util/grub.d/20_linux_xen.in: Likewise.
18566 * util/grub.d/30_os-prober.in: Likewise.
18568 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18570 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18571 default_bg_color rather than black.
18572 (grub_gfxterm_fullscreen): Likewise.
18573 (grub_gfxterm_background_color_cmd): Save new background color in
18576 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18578 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18580 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18582 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18585 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18587 Chainloading on coreboot support.
18589 * grub-core/Makefile.core.def (chain): Add coreboot.
18590 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18592 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18594 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18597 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18599 Implement time command.
18601 * grub-core/Makefile.core.def (time): New module.
18602 * grub-core/commands/time.c: New file.
18603 * grub-core/script/parser.y: Remove "time" keyword.
18604 * grub-core/script/yylex.l: Likewise.
18606 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18608 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18610 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18612 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18613 when handling leftovers.
18615 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18617 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18618 so that help2man doesn't fail.
18620 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18622 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18623 type in pointers on sparc64.
18624 (get_card_packet): Likewise.
18626 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18628 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18630 (grub_cmd_videoinfo): Fetch current video mode.
18632 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18634 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18635 because of underlying system restrictions.
18637 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18639 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18642 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18644 Coreboot video support.
18646 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18648 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18649 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18651 * grub-core/kern/i386/int.S: ... here.
18652 * grub-core/video/i386/pc/vbe.c: Updated includes.
18653 * grub-core/video/i386/pc/vga.c: Likewise.
18654 * include/grub/i386/coreboot/memory.h
18655 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18656 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18657 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18658 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18659 Disable interrupts.
18660 * include/grub/i386/pc/vga.h: Removed. All users updated.
18662 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18664 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18665 definitions for dprintf.
18666 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18668 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18670 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18672 (get_card_packet): Likewise.
18674 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18676 Display the path of the file when file is not found
18678 * grub-core/fs/fat.c: Display the filename when file is not found.
18679 * grub-core/fs/fshelp.c: Likewise.
18680 * grub-core/fs/hfs.c: Likewise.
18681 * grub-core/fs/jfs.c: Likewise.
18682 * grub-core/fs/minix.c: Likewise.
18683 * grub-core/fs/ufs.c: Likewise.
18684 * grub-core/fs/btrfs.c: Likewise.
18685 * grub-core/commands/i386/pc/play.c: Likewise.
18687 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18689 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18690 pointer checks before calling grub_free().
18691 * grub-core/commands/wildcard.c (match_devices): Likewise.
18692 * grub-core/commands/wildcard.c (match_files): Likewise.
18693 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18694 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18695 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18696 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18697 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18698 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18699 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18700 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18701 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18703 2011-06-25 Patrick <p55@mailinator.com>
18705 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18707 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18709 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18710 (grub_pxe_send): Likewise.
18711 (GRUB_MOD_INIT): Fix types.
18713 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18715 * grub-core/io/xzio.c: Fix code style issues
18717 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18718 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18720 Network infrastructure.
18721 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18723 * include/grub/net/arp.h: New file.
18724 * include/grub/net/device.h: Likewise.
18725 * include/grub/net/ethernet.h: Likewise.
18726 * include/grub/net/ip.h: Likewise.
18727 * include/grub/net/netbuff.h: Likewise.
18728 * include/grub/net/tftp.h: Likewise.
18729 * include/grub/net/udp.h: Likewise.
18730 * include/grub/ieee1275/ofnet.h: Likewise.
18731 * include/grub/emu/export.h: Likewise.
18732 * include/grub/net.h: Likewise.
18733 * grub-core/net/arp.c: Likewise.
18734 * grub-core/net/ethernet.c: Likewise.
18735 * grub-core/net/ip.c: Likewise.
18736 * grub-core/net/udp.c: Likewise.
18737 * grub-core/net/tftp.c: Likewise.
18738 * grub-core/net/netbuff.c: Likewise.
18739 * grub-core/net/net.c: Likewise.
18740 * grub-core/net/drivers/emu/emunet.c: Likewise.
18741 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18742 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18744 * grub-core/Makefile.core.def (net): New module.
18747 (emunet): Likewise.
18748 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18750 * grub-core/kern/device.c (grub_net_open) : New variable.
18751 (grub_device_open): Handle network device.
18752 (grub_device_close): Likewise.
18753 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18754 (grub_grubnet_fini): Likewise.
18755 (grub_file_seek): Seek in network device.
18756 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18757 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18759 (grub_machine_fini): Call grub_grubnet_fini.
18760 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18762 (grub_ieee1275_get_aliasdevname): New function.
18763 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18764 Add unofficial Solaris network info.
18765 (grub_multiboot_make_mbi): Likewise.
18766 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18767 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18768 * include/grub/device.h (grub_fs): Removed.
18769 * include/grub/err.h (grub_err_t): Add network-related values.
18770 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18771 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18772 (grub_ieee1275_get_aliasdevname): New proto.
18773 * include/grub/net.h: Rewritten.
18775 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18777 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18780 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18782 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18783 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18784 it truncates the output.
18785 Reported by: Ximin Luo.
18787 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18789 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18791 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18793 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18794 partmap before abstraction.
18796 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18798 * util/grub-mkconfig_lib.in: Add missing quotes.
18800 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18802 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18803 old method if mountinfo would return /dev/root and /dev/root doesn't
18806 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18810 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18811 (decomp_table): Add zlib entries.
18812 (zio_read): USe 8 bits for compression function rather than 3.
18813 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18815 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18817 * grub-core/disk/ahci.c: Add missing license statements.
18818 * grub-core/fs/romfs.c: Likewise.
18819 * grub-core/lib/ia64/setjmp.S: Likewise.
18820 * grub-core/loader/i386/pc/freedos.c: Likewise.
18821 * grub-core/loader/ia64/efi/linux.c: Likewise.
18822 * grub-core/video/colors.c: Likewise.
18823 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18825 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18829 * grub-core/Makefile.core.def (ata_pthru): Removed.
18830 (ahci): New module.
18832 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18834 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18836 (grub_hdparm_do_check_powermode_cmd): Likewise.
18837 (grub_hdparm_do_smart_cmd): Likewise.
18838 (grub_hdparm_set_val_cmd): Likewise.
18839 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18840 * grub-core/disk/ahci.c: New file.
18841 * grub-core/disk/ata.c: Factor out the low-level part into ...
18842 * grub-core/disk/pata.c: ... here.
18843 * grub-core/disk/ata_pthru.c: Contents moved to ...
18844 * grub-core/disk/pata.c: ... here.
18845 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18846 (grub_scsi_iterate): Use grub_scsi_names.
18847 (grub_scsi_open): Likewise.
18848 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18849 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18850 (grub_ata_regs_t): New struct.
18851 (grub_disk_ata_pass_through_parms): Likewise.
18852 (grub_ata_device): Renamed to ...
18853 (grub_ata): ... this.
18854 (grub_ata_dev): New struct.
18855 Removed all low-level inline functions.
18856 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18857 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18858 iterate hooks and open. All users updated.
18859 * util/grub-install.in: Handle AHCI disk module.
18861 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18863 Add support for DRI and RSTn markers in JPEG files.
18865 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18866 (JPEG_MARKER_RST0): Likewise.
18867 (JPEG_MARKER_RST1): Likewise.
18868 (JPEG_MARKER_RST2): Likewise.
18869 (JPEG_MARKER_RST3): Likewise.
18870 (JPEG_MARKER_RST4): Likewise.
18871 (JPEG_MARKER_RST5): Likewise.
18872 (JPEG_MARKER_RST6): Likewise.
18873 (JPEG_MARKER_RST7): Likewise.
18874 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18875 (grub_jpeg_decode_dri): New function.
18876 (grub_jpeg_decode_sos): Move image data related part into
18877 grub_jpeg_decode_data function.
18878 (grub_jpeg_decode_data): New function.
18879 (grub_jpeg_reset): New function.
18880 (grub_jpeg_decode_jpeg): Handle new markers.
18882 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18884 * util/ieee1275/ofpath.c (check_sas): Close fd.
18885 (main): Free of_path.
18886 Reported by: David Volgyes <dvolgyes>.
18888 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18890 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18891 Reported by: David Volgyes <dvolgyes>.
18893 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18895 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18897 Reported by: David Volgyes <dvolgyes>.
18899 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18901 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18903 Reported by: David Volgyes <dvolgyes>.
18905 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18907 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18908 Prevent memory leak.
18910 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18912 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18913 (main): Close file.
18914 Reported by: David Volgyes <dvolgyes>.
18916 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18918 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18919 to continue if allocation is failed.
18921 Reported by: David Volgyes <dvolgyes>.
18923 2011-06-23 David Volgyes <dvolgyes>
18925 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18928 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18930 Fix spurious warning.
18932 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18933 (acorn_partition_map_find): Use .bin member.
18935 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18937 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18938 /dev/root as a valid device.
18940 2011-06-23 Jim Meyering <meyering@redhat.com>
18942 Avoid NULL deref in grub_device_open.
18944 * grub-core/kern/device.c (grub_device_open): Don't dereference
18945 a NULL pointer upon failed grub_env_get.
18947 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18949 Support non-512B sectors and agglomerate reads.
18951 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18952 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18953 (disk_io_guid): Removed.
18954 (make_devices): Locate solely by BlockIO.
18955 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18956 (grub_efidisk_read): Use read_blocks.
18957 (grub_efidisk_write): Use write_blocks.
18958 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18960 (get_safe_sectors): Handle non-512B sectors.
18961 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18963 (grub_biosdisk_write): Handle non-512B sectors.
18964 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18965 (grub_scsi_read): Remove special non-512B block handling (now handled
18967 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18968 and do sanity checks.
18969 (grub_disk_adjust_range): Handle non-512B sectors.
18970 (transform_sector): New function.
18971 (grub_disk_read_small): Likewise.
18972 (grub_disk_read): Rewritten.
18973 (grub_disk_write): Handle non-512B sectors.
18974 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18976 (open_device): Use log_sector_size.
18977 (grub_util_biosdisk_read): Likewise.
18978 (grub_util_biosdisk_write): Likewise.
18979 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18981 (pc_partition_map_embed): Likewise.
18982 * include/grub/disk.h (grub_disk): New field log_sector_size.
18983 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18984 (GRUB_DISK_CACHE_BITS): Increased to 6.
18985 * util/grub-fstest.c (fstest): New command testload.
18986 (argp_parser): Likewise.
18988 2011-06-16 Robert Millan <rmh@gnu.org>
18990 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18991 `ata' driver on kernel of FreeBSD 9.
18993 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18994 (get_ataraid_disk_name): New functions.
18995 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18996 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18997 get_ataraid_disk_name() and get_ada_disk_name().
18999 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19001 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19004 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19006 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19007 `ftp.gnu.org' for `alpha.gnu.org'.
19009 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19011 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19012 partitions under /dev/disk/by-id/.
19014 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19016 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19017 after ten consecutive open failures. Scanning all the way up to
19018 10000 is excessive and can cause serious performance problems in
19019 some configurations.
19020 Fixes Ubuntu bug #787461.
19022 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19024 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19027 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19028 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19030 Don't stat devices unless we have to.
19032 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19033 dir == /dev/mapper.
19034 (grub_guess_root_device): Use already known os_dev if possible.
19035 * grub-core/kern/emu/hostdisk.c
19036 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19037 if device is known to be a dm one.
19039 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19041 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19042 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19043 Reported by: Pawel Tecza.
19045 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19047 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19048 (lsefisystab): Likewise.
19050 (lsefimmap): Likewise.
19051 (hdparm): Enable on qemu-mips.
19052 (setjmp): Add ia64 nodist.
19053 (serial): Simplify tags.
19055 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19057 * Makefile.util.def (grub-ofpathname): Install manual page.
19059 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19061 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19063 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19065 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19067 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19069 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19072 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19074 Use full 64-bit division.
19076 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19077 (grub_divmod64): ... this.
19078 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19081 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19083 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19086 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19088 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19089 to avoid accidents when debugging with 'sh -x'.
19090 * grub-core/gensyminfo.sh.in: Likewise.
19091 * tests/example_scripted_test.in: Likewise.
19092 * tests/grub_cmd_regexp.in: Likewise.
19093 * tests/grub_script_blanklines.in: Likewise.
19094 * tests/grub_script_dollar.in: Likewise.
19095 * tests/grub_script_expansion.in: Likewise.
19096 * tests/grub_script_final_semicolon.in: Likewise.
19097 * tests/partmap_test.in: Likewise.
19098 * tests/util/grub-shell-tester.in: Likewise.
19099 * tests/util/grub-shell.in: Likewise.
19101 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19103 Move gfxmenu color handling to video, so that gfxterm can use it
19106 * grub-core/gfxmenu/named_colors.c: Move to ...
19107 * grub-core/video/colors.c: ... here. Rename
19108 grub_gui_get_named_color to grub_video_get_named_color.
19109 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19110 * grub-core/video/colors.c (my_isxdigit): ... here.
19111 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19113 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19114 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19116 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19118 * include/grub/gui.h (grub_gui_color_t): Move to ...
19119 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19120 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19121 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19122 * include/grub/gui.h (grub_gui_map_color): Move to ...
19123 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19124 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19126 * include/grub/video.h (grub_video_get_named_color): ... here.
19127 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19128 * include/grub/video.h (grub_video_parse_color): ... here.
19130 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19132 (gfxmenu): Remove gfxmenu/named_colors.c.
19133 (video) [videomodules]: Add video/colors.c.
19135 Add a background_color command.
19137 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19139 (GRUB_MOD_INIT): Register background_color command.
19140 (GRUB_MOD_FINI): Unregister background_color command.
19141 (redraw_screen_rect): Allow blend/replace of text layer to be
19142 controlled independently from whether there is a background bitmap.
19143 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19146 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19148 Patch BPB in ntldr and chainloader --bpb.
19150 * grub-core/fs/fat.c: Include grub/fat.h.
19151 (grub_fat_bpb): Moved to ...
19152 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19153 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19155 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19157 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19159 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19161 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19162 (GRUB_MOD_INIT): Show --bpb.
19163 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19164 * grub-core/normal/main.c (features): New variable.
19165 (GRUB_MOD_INIT): Set feature_* variables.
19166 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19168 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19170 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19172 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19175 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19177 FreeDOS direct loading support.
19179 * docs/grub.texi (Supported OS): Add FreeDOS.
19180 * grub-core/Makefile.core.def (freedos): New module.
19181 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19183 (grub_relocator16_boot): Handle %ebx.
19184 * grub-core/lib/i386/relocator16.S: Likewise.
19185 * grub-core/loader/i386/pc/freedos.c: New file.
19187 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19189 Long Linux command line support.
19191 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19192 (maximal_cmdline_size): New variable.
19193 (allocate_pages): Use maximal_cmdline_size.
19194 (grub_cmd_linux): Set and use maximal_cmdline_size.
19195 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19196 (allocate_pages): Use maximal_cmdline_size.
19197 (grub_cmd_linux): Set and use maximal_cmdline_size.
19198 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19199 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19202 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19203 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19205 Improve devmapper support
19207 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19208 (grub_util_is_lvm): New function.
19209 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19210 than lvm if not dmraid.
19211 Handle mapped md nodes.
19212 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19213 (grub_util_device_is_mapped): ... this. Make always available. All users
19215 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19216 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19218 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19220 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19222 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19224 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19225 * grub-core/modinfo.sh.in: New file.
19226 * grub-core/Makefile.core.def (modinfo.sh): New script.
19227 * util/grub-mknetdir.in: Use modinfo.sh.
19228 * util/grub-mkrescue.in: Likewise.
19230 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19232 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19233 Fix potential usage of Elf32 instead of Elf64 when compiling on
19234 32-bit architecture. Add endianness macros while on it.
19236 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19238 Use mipsel- rather than mips- in directories involving mipsel ports to
19239 allow both endiannesses coexist.
19241 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19242 mips. All conditions adjusted.
19243 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19245 * util/grub-install.in: Adjust conditions to take renaming into account.
19246 * util/grub-mkimage.c (image_targets): Likewise. New target
19247 mips-qemu_mips-elf for bigendian mips.
19249 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19251 Avoid unnecessary copying on MIPS.
19253 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19254 early if src == dest.
19255 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19256 compression is none.
19258 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19260 Reduce memory footprint on SGI by putting modules before the kernel
19261 as opposed to after.
19263 * grub-core/Makefile.core.def (kernel): Increase linking address.
19264 (none_decompress): Likewise.
19265 (xz_decompress): Likewise.
19266 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19268 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19270 (grub_arch_modules_addr): New function.
19271 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19272 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19273 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19275 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19276 (grub_total_modules_size): ... this. Make global.
19277 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19278 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19280 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19281 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19282 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19283 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19284 * util/grub-mkimage.c (image_target_desc): New flag
19285 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19286 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19287 (generate_image): Handle images with modules before kernel.
19289 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19291 Prevent potential loss of memory map by overwrite on qemu-mips.
19293 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19294 Save ram size in $s4.
19295 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19296 All users changed to grub_arch_memsize.
19297 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19299 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19300 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19301 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19304 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19306 * .bzrignore: Remove grub-dumpbios.
19308 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19310 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19311 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19312 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19313 existing options which append).
19314 * docs/grub.texi (Simple configuration): Document new options.
19315 Reported by: Ian Jackson. Fixes Debian bug #617538.
19317 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19319 * util/grub-fstest.c (cmd_cat): New function.
19320 (fstest): Handle CMD_CAT.
19321 (options): Add cat.
19322 (argp_parser): Handle cat.
19324 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19326 * Makefile.util.def (grub-bin2h): Don't install.
19327 * docs/man/grub-bin2h.h2m: Remove.
19329 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19331 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19334 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19336 Reenable qemu-mips port.
19338 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19339 Fix small arc bug while on it.
19340 * gentpl.py: Handle qemu_mips.
19341 * grub-core/Makefile.am: Likewise.
19342 * grub-core/Makefile.core.def: Likewise.
19343 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19344 inappropriate includes.
19345 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19346 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19347 * grub-core/kern/main.c (grub_modules_get_end)
19348 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19349 * grub-core/kern/mips/qemu-mips: Moved to ..
19350 * grub-core/kern/mips/qemu_mips: ... this.
19351 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19352 (grub_machine_init): Call terminfo_init and serial_init.
19353 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19354 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19356 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19358 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19359 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19360 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19361 * include/grub/mips/qemu_mips/cmos.h: New file.
19362 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19363 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19365 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19366 Use correct mips-style address.
19367 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19368 (GRUB_TICKS_PER_SECOND): Removed.
19369 (grub_get_rtc): Likewise.
19370 (grub_cpu_idle): Likewise.
19371 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19373 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19374 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19375 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19376 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19377 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19378 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19379 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19380 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19382 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19386 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19387 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19389 * configure.ac: New target mips-arc.
19390 * gentpl.py: Likewise.
19391 * grub-core/Makefile.am: Likewise.
19392 * grub-core/Makefile.core.def: Likewise.
19393 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19394 (none_decompress): Likewise.
19395 (lsdev): New module.
19396 (datetime): Use lib/arc/datetime.c on ARC.
19397 (part_dvh): New module.
19398 * grub-core/commands/arc/lsdev.c: New file.
19399 * grub-core/disk/arc/arcdisk.c: Likewise.
19400 * grub-core/kern/mips/arc/init.c: Likewise.
19401 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19403 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19405 (grub_arch_dl_relocate_symbols): Likewise.
19406 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19407 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19408 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19410 * grub-core/lib/arc/datetime.c: New file.
19411 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19412 pci.h on non-loongson.
19413 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19414 (grub_linux_boot): Set unused registers to 0.
19415 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19416 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19417 * grub-core/mmap/mips/uppermem.c: ...here.
19418 * grub-core/partmap/dvh.c: New file.
19419 * grub-core/term/arc/console.c: Likewise.
19420 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19421 (grub_terminfo_set_current): Add terminal "arc".
19422 (grub_terminfo_readkey): Support ARC sequences.
19423 * include/grub/arc/arc.h: New file.
19424 * include/grub/arc/console.h: Likewise.
19425 * include/grub/disk.h (grub_disk_dev_id): Add
19426 GRUB_DISK_DEVICE_ARCDISK_ID.
19427 * include/grub/mips/arc/kernel.h: New file.
19428 * include/grub/mips/arc/memory.h: Likewise.
19429 * include/grub/mips/arc/time.h: Likewise.
19430 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19431 * include/grub/mips/kernel.h (grub_halt): ... here.
19432 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19434 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19435 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19436 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19437 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19439 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19441 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19442 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19443 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19444 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19445 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19446 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19447 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19448 (grub_phys_addr_t): Moved from here ...
19449 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19450 (grub_vtop): Moved from here ...
19451 * include/grub/mips/memory.h (grub_vtop): ... here.
19452 (grub_map_memory): Moved from here ...
19453 * include/grub/mips/memory.h (grub_map_memory): ... here.
19454 (grub_unmap_memory): Moved from here ...
19455 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19456 (grub_machine_mmap_iterate): Moved from here ...
19457 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19458 (grub_mmap_get_lower): Moved from here ...
19459 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19460 (grub_mmap_get_upper): Moved from here ...
19461 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19462 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19464 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19465 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19467 * include/grub/mips/time.h (grub_get_rtc): ... here.
19468 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19470 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19471 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19473 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19474 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19476 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19477 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19478 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19479 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19480 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19481 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19482 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19483 (GRUB_MACHINE_LINK_ADDR): Likewise.
19484 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19486 * util/grub-install.in: Run dvhtool on ARC.
19487 * util/grub-mkimage.c (image_targets): Add mips-arc.
19488 (generate_image): Handle ECOFF output for mips-arc.
19490 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19492 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19495 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19497 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19498 after enabling port.
19500 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19502 Skip incorrect USB devices.
19504 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19506 * include/grub/usb.h (grub_usb_err_t): New enum value
19507 GRUB_USB_ERR_BADDEVICE.
19509 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19511 Fuloong video init support.
19513 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19515 (grub_vga_read_arx): New function.
19516 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19518 (framebuffer): New members io, mmioptr and mmiobase.
19519 (read_sis_cmd): New function.
19520 (write_sis_cmd): Likewise.
19521 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19522 rather than 640x400.
19523 * grub-core/video/sis315_init.c: New file.
19525 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19527 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19529 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19530 to grub_dl_register_symbol.
19532 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19534 Fix compilation errors.
19536 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19537 potentially unused.
19538 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19539 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19540 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19541 to loongson machines.
19543 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19545 Several FS mtime support.
19547 * grub-core/fs/affs.c (grub_affs_time): New struct.
19548 (grub_affs_file): New field mtime.
19549 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19550 type. Removed 'size'. New field 'di'. All users updated.
19551 (grub_affs_mount): Simplify checsum checking.
19552 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19553 (grub_affs_dir): Handle mtime.
19554 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19555 (grub_cpio_dir): Likewise.
19556 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19557 (grub_hfs_filerec): New field mtime.
19558 (grub_hfs_dir): Handle mtime.
19559 (grub_hfs_mtime): New function.
19560 (grub_hfs_fs): Register grub_hfs_mtime.
19561 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19562 (grub_iso9660_dir): New field mtime.
19563 (grub_fshelp_node): New field dirent.
19564 (iso9660_to_unixtime): New function.
19565 (iso9660_to_unixtime2): Likewise.
19566 (grub_iso9660_read_symlink): Use node->dirent.
19567 (grub_iso9660_iterate_dir): Likewise.
19568 (grub_iso9660_dir): Set mtime.
19569 (grub_iso9660_mtime): New function.
19570 (grub_iso9660_fs): Register grub_iso9660_mtime.
19571 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19572 (grub_jfs_inode): New fields atime, ctime and mtime.
19573 (grub_jfs_dir): Set mtime.
19574 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19575 * grub-core/fs/ntfs.c (list_file): Set mtime.
19576 (grub_ntfs_dir): Likewise.
19577 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19578 (grub_reiserfs_iterate_dir): Set mtime.
19579 (grub_reiserfs_dir): Likewise.
19580 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19581 (grub_fshelp_node): Likewise.
19582 (grub_sfs_iterate_dir): Set mtime.
19583 (grub_sfs_dir): Likewise.
19584 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19585 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19586 (grub_xfs_inode): New fields atime, mtime, ctime.
19587 (grub_xfs_dir): Set mtime.
19588 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19589 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19590 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19592 Support UDF symlinks.
19594 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19595 (grub_ufs_read_symlink): New function. All users updated.
19597 Check amiga partmap checksum.
19599 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19600 (grub_amiga_partition): Likewise.
19601 (amiga_partition_map_checksum): New function.
19602 (amiga_partition_map_iterate): Check checksum.
19604 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19608 * Makefile.util.def (libgrubmods.a): Add romfs.
19609 * grub-core/Makefile.core.def (romfs): New module.
19610 * grub-core/fs/romfs.c: New file.
19612 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19614 Squashfs v4 support.
19616 * Makefile.util.def (libgrubmods.a): Add squash4.
19617 * grub-core/Makefile.core.def (squash4): New module.
19618 * grub-core/fs/squash4.c: New file.
19619 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19620 disk_input_start, disk_input.
19621 (get_byte): Handle disk_input.
19622 (grub_zlib_disk_read): New function.
19623 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19625 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19626 2011-05-15 Feiran Zheng <famcool@gmail.com>
19628 * Makefile.util.def (libgrubmods.a): Add minix3.
19629 * grub-core/Makefile.core.def (minix3): New module.
19630 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19631 (GRUB_MINIX_BSIZE): Removed.
19632 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19633 (grub_minix_ino_t): New type.
19634 (grub_minix_le_to_cpu_ino): New macro.
19635 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19636 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19637 (grub_minix_data): New field block_size.
19638 (grub_minix_read_file): Handle 64-bit correctly.
19639 * grub-core/fs/minix3.c: New file.
19641 2011-05-15 Tristan Gingold <gingold@free.fr>
19642 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19643 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19647 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19648 * configure.ac: Add ia64-efi target.
19649 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19650 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19651 * gentpl.py: Add ia64_efi platform.
19652 Rename x86_efi to efi and Add ia64-efi. All users updated.
19653 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19654 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19655 Remove kern/generic/rtc_get_time_ms.c on EFI.
19656 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19657 kern/ia64/dl_helper.c on ia64-efi.
19658 Add kern/emu/cache.c on emu.
19659 (linux): Use on loader/ia64/efi/linux.c on ia64.
19660 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19661 whether symbol is a function.
19662 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19663 (grub_symbol): New field 'isfunc'.
19664 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19665 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19666 (grub_dl_load_segments): Place all sections into the same region.
19667 [__ia64__]: Create trampolines and got.
19668 [GRUB_MACHINE_EMU]: Call mprotect.
19669 (grub_dl_resolve_symbols): Resolve symbol type as well.
19670 [__ia64__]: Create function descriptors.
19671 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19672 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19673 (grub_get_rtc): New function.
19674 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19675 * grub-core/kern/emu/cache.S: Renamed to ...
19676 * grub-core/kern/emu/cache_s.S: ... this.
19677 [__ia64__]: Add a nop.
19678 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19679 [__ia64__]: New function.
19680 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19681 * grub-core/kern/ia64/dl.c: New file.
19682 * grub-core/kern/ia64/dl_helper.c: Likewise.
19683 * grub-core/kern/ia64/efi/init.c: New file.
19684 * grub-core/kern/ia64/efi/startup.S: Likewise.
19685 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19686 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19687 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19688 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19689 * grub-core/loader/ia64/efi/linux.c: New file.
19690 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19691 (GRUB_MOD_DEP): Likewise.
19692 (grub_dl) [__ia64__]: New fields got and tramp.
19693 (grub_dl): New field 'base'.
19694 (grub_dl_register_symbol): New argument isfunc. All users updated.
19695 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19696 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19697 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19698 (grub_ia64_dl_get_tramp_got_size): New proto.
19699 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19700 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19701 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19702 * include/grub/efi/api.h: Skip call wrappers on ia64.
19703 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19704 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19705 * include/grub/elf.h (ELF_ST_INFO): New definition.
19706 * include/grub/ia64/efi/kernel.h: New file.
19707 * include/grub/ia64/efi/memory.h: Likewise.
19708 * include/grub/ia64/efi/time.h: Likewise.
19709 * include/grub/ia64/kernel.h: Likewise.
19710 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19711 * include/grub/ia64/time.h: New file.
19712 * include/grub/ia64/types.h: Likewise.
19713 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19714 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19716 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19717 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19718 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19719 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19721 (EFI64_HEADER_SIZE): New definition. All users updated.
19722 (image_targets): Add ia64-efi.
19723 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19724 jumpers_addr. All users updated.
19725 Create function descriptors.
19726 (count_funcs): New function.
19727 (unaligned_uint32): New struct.
19728 (MASK20): New definition.
19729 (MASK19): Likewise.
19730 (MASKF21): Likewise.
19731 (add_value_to_slot_20b): New function.
19732 (add_value_to_slot_21_real): Likewise.
19733 (add_value_to_slot_21): Likewise.
19734 (ia64_kernel_trampoline): New struct.
19735 (nopm): New variable.
19737 (make_trampoline): New function.
19738 (relocate_addresses): Handle ia64.
19739 (make_reloc_section): Likewise.
19740 (load_image): Likewise.
19742 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19744 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19745 warning. Move variables before code while on it.
19747 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19751 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19752 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19753 * grub-core/boot/mips/loongson/fuloong.S: New file.
19754 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19755 Explicitly init CS5536.
19756 [FULOONG]: Don't use serial until CS5536 is available.
19757 Set GPIO based on dumps.
19758 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19759 [FULOONG]: Handle GPIO and memory controller differences.
19760 Parse machine type in $a2.
19761 * grub-core/boot/mips/startup_raw.S: Determine and save the
19763 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19764 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19765 init on architecture type.
19766 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19767 SIS315E. Don't init at_keyboard on fuloong.
19768 (grub_halt): Support Fuloong.
19769 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19770 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19771 (loongson_machtypes): New array.
19772 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19774 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19775 config. All users updated. Handle CS5536 serial.
19776 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19777 default port on machine type. Register serial as inactive.
19778 * grub-core/video/sis315pro.c: New file.
19779 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19781 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19782 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19783 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19784 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19785 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19786 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19788 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19789 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19791 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19792 (grub_arch_machine): New extern var.
19793 * include/grub/mips/loongson/serial.h
19794 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19795 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19796 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19797 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19798 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19799 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19800 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19801 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19802 * include/grub/term.h (grub_term_register_input_inactive): New inline
19804 (grub_term_register_output_inactive): Likewise.
19805 * include/grub/video.h (grub_video_driver_id): New value
19806 GRUB_VIDEO_DRIVER_SIS315PRO.
19807 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19808 New field "names". All users updated.
19809 New field value IMAGE_FULOONG_FLASH.
19810 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19812 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19814 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19815 and add some clarification.
19817 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19819 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19820 platforms if kernel is compressed.
19822 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19824 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19825 unused modules since currently referrence counter isn't reliable and
19826 there isn't much memory to recover there anyway.
19828 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19830 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19831 rather than resetting it to allow modules to reference themselves
19834 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19836 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19837 counter on dependencies since grub_dl_unref already handles this.
19839 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19841 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19842 on error if not already done.
19844 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19846 Fix few potential memory misusage.
19848 * grub-core/font/font.c (load_font_index): Don't free char_index to
19850 (grub_font_load): Zero-fill font at alloc for safety.
19851 Close file on error.
19852 (free_font): Free bmp_idx.
19854 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19856 * docs/grub.texi (Installation): Fix several outdated claims.
19858 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19860 Handle module_license on windows.
19862 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19864 (insert_string): Make argument const char * instead of char *.
19865 (write_section_data): Handle long section names.
19866 Handle module_license.
19868 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19870 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19871 handle class-free menuentries.
19872 (grub_normal_add_menu_entry): Add a check to be sure.
19874 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19876 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19879 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19881 * configure.ac: Bump version to 1.99.
19883 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19885 Give ATA device a bit more time on first try in order to allow disks
19888 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19889 if dev->present is 1. Reset dev->present on failure.
19890 (grub_ata_device_initialize): Set dev->present to 1.
19891 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19892 (grub_ata_device): New member 'present'.
19894 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19896 * util/grub-mkimage.c (generate_image): Update hash.
19898 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19900 Flush caches on DMA memory.
19902 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19903 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19904 (grub_dma_free): Likewise.
19905 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19907 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19909 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19910 to avoid asm treating ld and sd as macros.
19912 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19914 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19917 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19919 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19920 grub_decompress_core since later would fail if grub_decompress_core
19923 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19925 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19926 R_MIPS_JALR since it's used by newer compiler.
19928 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19930 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19932 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19934 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19935 file_path to 0 for surety.
19936 (grub_chainloader_boot): Set exit_data to NULL.
19937 Unset the loader once done.
19938 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19940 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19942 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19943 unknown key into a dprintf.
19945 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19947 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19948 on first non-existant partition.
19950 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19952 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19954 Reported by: Mark Korenberg.
19956 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19958 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19961 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19963 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19964 before closing to ensure that it will be readable by grub-setup.
19966 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19968 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19969 (devpath_1): Use MAKE_PIWG_PATH.
19970 (devpath_2): Likewise.
19971 (devpath_3): Likewise.
19972 (devpath_4): Likewise.
19973 (devpath_5): Likewise.
19974 (devpath_6): Likewise.
19976 The appleldr.mod was checked that to be binary identical to previous
19979 2011-05-05 Zach <mikezackles>
19981 Support 2010 Macbooks.
19983 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19984 (devs): Add devpath_6.
19986 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19988 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19989 /dev/random. /dev/urandom is good enough for our purposes (salting).
19991 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19993 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19995 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19997 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20000 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20002 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20003 and not 0 on failure.
20005 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20007 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20008 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20009 disk; otherwise grub_fs_probe will not fall back to the next
20011 (grub_pxefs_open): Likewise, for consistency.
20012 Reported and tested by: Ezekiel Grave.
20014 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20016 * tests/partmap_test.in: Don't hardcode path to parted.
20017 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20019 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20021 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20022 of `ls' to find out which devices are available.
20024 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20026 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20027 than source address for efi mmap buffer.
20029 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20031 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20032 wrong action on non-detecting the magic.
20034 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20036 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20037 already supplied by another part of the module (fixes compilation on
20040 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20042 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20043 match the one used by mdadm.
20045 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20047 * po/README: Add instructions for creating po/LINGUAS.
20049 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20051 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20054 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20055 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20056 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20057 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20058 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20059 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20060 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20061 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20062 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20063 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20064 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20065 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20066 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20067 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20068 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20069 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20070 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20071 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20072 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20073 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20074 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20075 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20077 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20079 * grub-core/kern/emu/getroot.c
20080 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20081 test that was incorrectly reintroduced in r3214.
20082 Reported by: Ian Dall. Fixes Savannah bug #33133.
20084 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20086 Fix stack pointer handling in 16-bit relocator.
20088 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20089 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20090 Fixes Ubuntu bug #683904.
20092 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20094 * configure.ac: Bump version to 1.99~rc2.
20096 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20098 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20099 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20100 * grub-core/lib/x86_64/setjmp.S: Likewise.
20101 * grub-core/lib/mips/setjmp.S: Likewise.
20102 * grub-core/lib/powerpc/setjmp.S: Likewise.
20103 * grub-core/lib/sparc64/setjmp.S: Likewise.
20105 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20107 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20108 * grub-core/lib/efi/datetime.c: Likewise.
20110 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20112 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20114 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20115 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20116 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20118 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20120 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20122 (grub_gfxterm_term_init): Likewise.
20124 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20126 Take into account the decorations the computing menu entry width.
20128 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20129 (grub_gfxmenu_create_box): Register get_border_width.
20130 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20132 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20135 2011-04-18 Endres Puschner <code@e7p.de>
20137 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20138 Don't skip first class.
20140 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20142 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20144 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20146 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20148 Complete 64-bit division support.
20150 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20151 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20152 * include/grub/misc.h (grub_divmod64): Rename to ...
20153 (grub_divmod64_full): ... this.
20154 (grub_divmod64): New inline function.
20156 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20158 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20160 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20162 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20163 performing the necessary test.
20165 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20167 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20168 (kfreebsd.elf): Likewise.
20169 (pc-chainloader.elf): Likewise.
20170 (ntldr.elf): Likewise.
20172 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20174 Identify RAID by its UUID rather than (guessed) name.
20176 * grub-core/disk/raid.c (ascii2hex): New function.
20177 (grub_raid_open): Accept mduuid/%s specification.
20178 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20179 (get_mdadm_uuid): ... this.
20180 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20182 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20184 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20187 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20189 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20191 * util/grub.d/20_linux_xen.in: Likewise.
20193 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20195 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20196 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20198 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20199 Build a list of relevant visible mounts using the mnt_id and
20200 parent_mnt_id fields, and then scan that list at the end.
20202 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20204 * docs/grub.texi (normal): New section.
20205 (normal_exit): New section.
20206 (Embedded configuration): Add reference to normal.
20207 (GRUB only offers a rescue shell): Likewise.
20208 * docs/grub-dev.texi (Error Handling): Fix typo.
20210 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20212 * NEWS: Drop obsolete entry about probe-only btrfs support.
20214 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20216 * util/import_gcry.py: Fix typo.
20218 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20220 * NEWS: Add btrfs support.
20222 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20223 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20225 BtrFS support. Written by me (Vladimir) with important bugfixes and
20226 even more important testing by Colin.
20228 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20229 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20230 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20231 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20232 mem_input_off and mem_input. All users updated to accept in-RAM input.
20233 (gzio_seek): New function.
20234 (test_zlib_header): Likewise.
20235 (grub_gzio_read): Likewise.
20236 (grub_zlib_decompress): Likewise.
20237 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20238 Accept partial and non-virtual mounts.
20239 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20240 avoid receiving /dev/dm-X as device.
20241 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20242 Handle bind and partial mounts.
20243 * grub-core/lib/crc.c: New file.
20244 * include/grub/deflate.h: Likewise.
20245 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20247 * include/grub/lib/crc.h: New file.
20249 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20251 Implement automatic module license checking according to new GNU
20254 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20255 (grub_dl_load_core): Use grub_dl_check_license.
20256 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20257 (GRUB_MOD_LICENSE): Likewise.
20258 (GRUB_MOD_DUAL_LICENSE): Likewise.
20259 All modules updated.
20261 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20263 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20264 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20266 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20268 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20270 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20272 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20274 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20277 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20279 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20280 parenthesis in the middle of the filename.
20282 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20284 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20285 rather than trying to put initrd way too high.
20286 Reported by: Ryan Lortie <desrt@desrt.ca>
20288 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20290 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20291 improperly removed string.
20293 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20295 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20297 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20298 (open_device) Likewise.
20299 (grub_util_biosdisk_close): Likewise.
20300 Reported by: Mark Korenberg.
20302 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20304 * util/grub-mkconfig_lib.in: Add missing quotes.
20306 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20308 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20311 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20313 Dynamically count the number of lines for the lower banner.
20315 * grub-core/normal/menu_entry.c (per_term_screen): New member
20317 (print_down): Use num_entries.
20318 (update_screen): Likewise.
20319 (grub_menu_entry_run): Set num_entries.
20320 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20322 (grub_print_message_indented): Move real part to ...
20323 (grub_print_message_indented_real): ... here. Additional argument
20325 (draw_border): Additional argument num_entries.
20326 (print_message): Additional argument dry_run.
20327 (print_entries): Receive menu viewer data.
20328 (grub_menu_init_page): New argment num_entries.
20329 (menu_text_set_chosen_entry): Use num_entries.
20330 (grub_menu_try_text): Likewise.
20331 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20333 (grub_ucs4_count_lines): New function.
20334 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20335 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20336 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20337 (grub_term_border_height): Likewise.
20338 (grub_term_num_entries): Likewise.
20340 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20342 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20343 Remove now unused string.
20345 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20347 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20349 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20351 (Comment): Fix typo.
20352 (Getting started): General copy-editing.
20353 (Typical Development Experience): Likewise.
20354 (Error Handling): Likewise.
20355 (Video API): Likewise.
20357 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20359 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20362 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20364 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20367 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20369 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20370 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20373 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20375 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20376 grub_strcpy since the lines aren't necessarily 0-terminated.
20378 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20380 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20383 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20385 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20386 (GRUB_MOD_INIT): DEVICE isn't optional.
20388 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20390 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20391 word on new line if it's too long anyway. Fixes a hang.
20393 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20395 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20397 * util/grub-setup.c (main): Reuse md device name if available.
20398 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20399 not GRUB name as argument.
20400 Based on patch by: Florian Wagner <fwagner>.
20402 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20404 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20405 Place mbi on low memory for better compatibility.
20407 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20409 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20411 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20412 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20414 * autogen.sh: Ensure that collate and ctype locale is C.
20415 * conf/Makefile.common: Likewise.
20417 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20419 * grub-core/normal/menu.c: Add missing include.
20421 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20423 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20425 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20427 * util/grub-mkconfig.in: Ignore emacsen backup.
20429 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20431 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20433 (grub_util_biosdisk_close): Likewise.
20435 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20437 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20438 const attribute and use grub_isdigit.
20440 2011-04-06 Andrey <dev_null@ukr.net>
20442 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20445 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20447 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20448 useful grub_dprintf's.
20450 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20452 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20454 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20456 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20458 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20460 Output errors if theme loading failed.
20462 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20463 grub_gfxterm_fullscreen on error paths to ...
20464 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20465 theme loading error.
20467 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20469 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20470 space for older compilers.
20471 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20473 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20475 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20476 and report them as not RAID members since they are useless for GRUB.
20477 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20479 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20481 Increase LVM implementation robustness in order not to crash on
20482 configurations like pvmove. Previously code assumed that in some places
20483 only lvs or only pvs are used whereas it seems that they are used
20486 * grub-core/disk/lvm.c (read_node): New function.
20487 (read_lv): Use read_node.
20488 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20489 Match volumes only at the end when all lvs are found. Take both
20490 pvs (first) and lvs (second) into account.
20491 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20492 mirror_* into node_*. All users updated.
20493 (grub_lvm_stripe): Merge this ...
20494 (grub_lvm_mirror): ... and this ...
20495 (grub_lvm_node): ... into this. All users updated.
20497 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20499 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20500 of function to allow further scanning for LVMs.
20502 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20504 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20505 on failed seek as it breaks open fd reusage.
20507 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20509 * util/grub-install.in: Add a recommendation to use --recheck before
20512 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20514 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20517 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20519 GRUB developper manual based on existing Internals section and
20520 contributions by the various authors with active copyright assignment.
20522 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20523 * docs/font_char_metrics.png: New file.
20524 * docs/font_char_metrics.txt: Likewise.
20525 * docs/grub-dev.texi: Likewise.
20526 * docs/grub.texi (Internals): Move from here ...
20527 * docs/grub-dev.texi: ... here.
20529 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20531 Store the loopback device as data on loopback grub_disk structures,
20532 rather than the file it points to. This fixes use of freed memory
20533 if an existing loopback device is replaced.
20535 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20536 disk->data, not dev->file.
20537 (grub_loopback_read): Adjust file assignment to match.
20538 Fixes Ubuntu bug #742967.
20540 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20542 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20543 when replacing an existing device.
20545 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20547 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20548 memory corruptions.
20550 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20552 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20553 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20554 (grub_jfs_read_inode): Likewise.
20555 (grub_jfs_opendir): Likewise. Remove now useless casts.
20556 (grub_jfs_getent): Likewise.
20557 Make ino a grub_uint32_t rather than int.
20558 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20559 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20560 division and module with bit operations.
20561 (grub_jfs_find_file): Make ino a grub_uint32_t.
20562 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20564 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20566 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20567 warning. (This was in fact always initialised before use, but GCC
20568 wasn't smart enough to prove that.)
20569 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20571 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20573 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20575 (efi_wrap_1): Likewise.
20576 (efi_wrap_2): Likewise.
20577 (efi_wrap_3): Likewise.
20578 (efi_wrap_4): Likewise.
20579 (efi_wrap_5): Likewise.
20580 (efi_wrap_6): Likewise.
20581 (efi_wrap_10): Likewise.
20582 Based on information by: Red Hat/Peter Jones.
20584 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20586 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20587 set-but-not-used variable.
20589 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20591 * docs/grub.texi (Simple configuration): Be more explicit about
20592 GRUB_DEFAULT, and add an example.
20593 Reported by: Leslie Rhorer.
20595 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20597 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20600 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20602 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20603 * util/grub.d/20_linux_xen.in: Likewise.
20605 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20607 * util/grub.d/10_linux.in: Try alternative config filenames where
20608 we parse config file.
20609 * util/grub.d/20_linux_xen.in: Likewise.
20611 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20613 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20614 * util/grub.d/20_linux_xen.in: Likewise.
20616 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20618 * grub-core/disk/raid.c (insert_array): Add few potentially
20619 useful grub_util_info.
20620 (grub_raid_register): Likewise.
20622 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20624 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20625 Preserve partition number in mdadm code path.
20627 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20629 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20630 few potentially useful grub_util_info.
20632 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20634 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20636 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20638 * docs/grub.texi (default): Use @example rather than nested
20639 itemized lists to avoid breaking gendocs.
20641 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20643 * docs/grub.texi (Future): Update.
20645 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20647 * docs/grub.texi (Environment): New chapter.
20648 (Changes from GRUB Legacy): Link to "Environment block" section for
20649 details of limitations.
20650 (Simple configuration): Likewise. Link to documentation of gfxmode
20651 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20653 (Shell-like scripting): Note that normal variables are stored in the
20655 (gettext): Link to documentation of lang and locale_dir.
20656 (list_env): New section.
20657 (load_env): New section.
20658 (save_env): New section.
20660 (Reporting bugs): Fix typo.
20662 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20664 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20667 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20669 * grub-core/term/at_keyboard.c (set_scancodes)
20670 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20672 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20674 * docs/grub.texi (Menu-specific commands): Remove some semantics
20675 that were true in GRUB Legacy but not in GRUB 2.
20676 (submenu): New section.
20677 (false): New section.
20678 (read): New section.
20679 (true): New section.
20681 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20683 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20685 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20687 * docs/grub.texi (Simple configuration): Explain some of the
20688 current limitations of grub-mkconfig.
20689 Reported by: Leslie Rhorer.
20691 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20693 Old macs search for boot.efi rather than for bootia32.efi.
20695 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20696 * util/grub-mkrescue.in: Likewise.
20697 Suggested by: Peter Jones.
20699 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20701 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20703 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20705 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20706 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20707 (grub_lvm_mirror): New struct.
20708 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20709 (grub_lvm_iterate): Iterate only visible volumes.
20710 (grub_lvm_read): Factor out to ..
20711 (read_lv): ... this. Support mirrors.
20712 (grub_lvm_read): New wrapper function.
20713 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20714 stripped or mirrored.
20716 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20718 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20720 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20722 * docs/grub.texi (loopback): New section.
20724 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20726 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20729 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20731 * docs/grub.texi (BIOS installation): New section, partly based on
20732 previous text in other sections.
20733 (Installing GRUB using grub-install): Replace BIOS discussion with a
20735 (Images): Likewise.
20737 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20739 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20740 [HAVE_DIOCGDINFO]: Add safety checks.
20742 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20744 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20745 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20747 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20749 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20750 real_sb->size is zero (e.g. RAID-0), get the disk size from
20751 real_sb->data_size instead.
20752 Fixes Ubuntu bug #743136.
20754 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20756 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20757 printf clauses for printing size and start.
20759 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20761 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20762 Reported and tested by: Timothy Nikkel.
20764 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20766 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20767 (dirty_region_add_real): ... this.
20768 (dirty_region_add): Don't discard margin refresh when performing
20771 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20773 * grub-core/lib/relocator.c (allocate_regstart)
20774 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20775 terminals are capabple of malloc-free operation.
20776 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20777 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20779 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20781 * util/grub-setup.c: Copy the partition table zone if floppy support
20782 is disabled, even if no partition table is found.
20784 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20785 during POST if an invalid partition table is contained in the PBR
20786 of the active partition when GRUB is installed to a partition.
20788 2011-03-28 Colin Watson <cjwatson@debian.org>
20790 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20793 2011-03-28 Colin Watson <cjwatson@debian.org>
20795 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20796 to be specific about what kind of RAID device we're scanning for.
20798 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20800 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20801 return freed string.
20803 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20805 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20807 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20809 Use libgeom on FreeBSD to detect partitions.
20811 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20812 (grub-mkrelpath): Likewise.
20813 (grub-script-check): Likewise.
20814 (grub-editenv): Likewise.
20815 (grub-mkpasswd-pbkdf2): Likewise.
20816 (grub-fstest): Likewise.
20817 (grub-mkfont): Likewise.
20818 (grub-mkdevicemap): Likewise.
20819 (grub-probe): Likewise.
20820 (grub-setup): Likewise.
20821 (grub-ofpathname): Likewise.
20822 (grub-mklayout): Likewise.
20823 (example_unit_test): Likewise.
20824 (grub-menulst2cfg): Likewise.
20825 * grub-core/Makefile.core.def (grub-emu): Likewise.
20826 (grub-emu-lite): Likewise.
20827 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20828 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20829 define HAVE_DIOCGDINFO.
20830 (follow_geom_up) [FreeBSD]: New function.
20831 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20832 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20833 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20834 unconditionally of HAVE_DIOCGDINFO.
20836 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20838 Fix FreeBSD compilation problem.
20840 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20841 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20843 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20845 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20846 Switch back to page zero before loading a kernel, since some kernel
20847 drivers expect that.
20848 Thanks to: Felix Kuehling.
20850 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20852 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20853 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20854 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20856 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20858 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20859 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20861 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20863 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20864 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20865 malloc is disabled.
20867 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20869 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20870 for modules headers when counting the needed allocation size.
20872 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20874 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20875 if no ASCII character is found to prevent crash.
20877 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20879 * grub-core/video/bitmap.c (match_extension): Ignore case.
20881 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20883 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20885 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20887 * grub-core/script/parser.y: Declare "time" as valid argument.
20889 2011-03-23 Peter Jones <pjones@redhat.com>
20891 Fix incorrect assert failure reporting.
20893 * grub-core/tests/example_functional_test.c (example_test): Add
20895 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20896 (failure_start): ...this. Check that malloc succeeded.
20897 Don't call xvasprintf. Return failure struct.
20898 (failure_append_vtext): New function.
20899 (failure_append_text): Likewise.
20900 (add_failure): Likewise.
20901 (grub_test_assert_helper): Likewise.
20902 * include/grub/test.h (grub_test_assert_helper): New declaration.
20903 (grub_test_assert): Macro rewritten.
20905 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20907 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20909 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20911 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20913 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20915 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20916 into GRUB-style one.
20918 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20920 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20921 error and not grub_errno.
20922 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20924 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20926 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20927 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20929 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20931 * grub-core/efiemu/i386/pc/cfgtables.c
20932 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20933 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20934 (grub_xnu_unlock): Likewise.
20935 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20937 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20939 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20940 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20941 * grub-core/commands/hashsum.c (aliases): Likewise.
20942 * grub-core/commands/setpci.c (pci_registers): Likewise.
20943 * grub-core/disk/usbms.c (attach_hook): Likewise.
20944 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20945 (zio_checksum_table): Likewise.
20946 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20947 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20948 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20949 * grub-core/lib/relocator.c (leftovers): Likewise.
20950 (extra_blocks): Likewise.
20951 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20952 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20953 (modules_last): Likewise.
20954 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20955 (devices): Likewise.
20956 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20957 (modules_last): Likewise.
20958 * grub-core/normal/auth.c (users): Likewise.
20959 * grub-core/normal/context.c (initial_menu): Likewise.
20960 (current_menu): Likewise.
20961 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20962 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20963 (grub_serial_terminfo_input_template): Likewise.
20964 (grub_serial_terminfo_output_template): Likewise.
20965 (grub_serial_terminfo_input): Likewise.
20966 (grub_serial_terminfo_output): Likewise.
20967 (registered): Likewise.
20968 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20970 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20972 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20973 grub_video_mode_type_t.
20974 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20975 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20976 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20978 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20980 * util/grub-install.in: Correct the x86-64 name as x86_64.
20982 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20984 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20985 initial chunk read from the kernel always includes GRUB's multiboot
20986 header, which is now outside the first sector.
20988 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20990 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20991 cached mmap_size, so that this works correctly when called multiple
20993 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20995 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20997 * docs/grub.texi (Simple configuration): Tidy up formatting.
20999 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21001 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21002 Set-but-not-used variable removed.
21004 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21006 Workaround yet another IEEE1275 bug.
21008 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21009 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21010 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21011 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21013 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21014 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21016 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21018 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21021 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21023 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21024 empty, since in that case we can only generate either nothing or a
21025 syntactically invalid configuration file.
21026 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21028 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21030 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21031 (Making a GRUB bootable CD-ROM): Likewise.
21032 (Invoking grub-mkrescue): New section.
21033 Reported by: Yann Dirson. Fixes Debian bug #612585.
21035 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21037 * util/grub-install.in: Remove unnecessary brackets from tr
21039 * util/grub.d/10_hurd.in: Likewise.
21040 * util/grub.d/10_kfreebsd.in: Likewise.
21041 * util/grub.d/10_linux.in: Likewise.
21042 * util/grub.d/20_linux_xen.in: Likewise.
21043 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21045 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21047 * include/grub/file.h (not_easly_seekable): Rename to ...
21048 (not_easily_seekable): ... this. Update all users.
21050 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21052 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21055 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21057 * util/grub-mkimage.c (generate_image): Refuse to create the images
21058 bigger than the actual flash (512K) in Loongson machines. 512K is also
21059 the biggest chip supported by them.
21061 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21063 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21065 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21067 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21068 super_offset field.
21070 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21072 * util/grub-install.in: Ignore install device on platforms
21073 where it doesn't make sense. Always use UUIDs except on pc, efi and
21075 Reported by: Daniel Kahn Gillmor.
21077 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21079 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21081 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21083 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21084 (iterate_real): Don't rely on partition being non-NULL.
21086 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21088 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21089 supported platforms. Put a compile time assert for this rather than
21090 generate a warning with 32-bit shift.
21092 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21094 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21095 logical expression more readable.
21097 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21099 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21100 even if some elements have a name.
21101 Reported by: Alexander GQ Gerasiov.
21103 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21105 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21106 path unreadable if `grub-probe -t abstraction' fails, for example if
21107 memberlist fails on an LVM volume group.
21108 Reported by: Darius Jahandarie.
21110 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21112 * docs/grub.texi (Simple configuration): Document
21113 GRUB_PRELOAD_MODULES.
21115 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21117 * .bzrignore: Remove nonexistent grub-pbkdf2.
21119 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21121 * configure.ac: Bump version to 1.99~rc1.
21123 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21125 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21128 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21130 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21133 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21135 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21137 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21139 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21142 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21144 Fix compilation on cygwin.
21146 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21147 -R .drectve on cygwin.
21148 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21149 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21150 (COND_CYGWIN): New condition.
21151 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21152 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21153 not @TARGET_OBJ2ELF@.
21154 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21155 type to determine whether aux is to be used.
21157 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21159 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21160 realpath'ed device string.
21161 Handle floppy (somewhat).
21162 Issue error in unknown case rather than garbage.
21163 Reported by: Axel Beckert.
21165 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21167 * util/grub.d/00_header.in (load_video): Handle the case when no video
21169 Thanks to: Axel Beckert.
21171 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21173 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21174 variable. Fixes problem on big endian platforms.
21176 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21178 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21179 It doesn't work well there.
21181 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21183 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21185 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21186 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21189 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21191 Use alias->path rather than buggy "canon".
21193 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21194 (ofdisk_hash_add): New argument curcan. All users updated.
21196 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21198 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21200 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21202 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21203 loadmask before doing any calculations. Use correct type for offset.
21204 (grub_linux_load64): Likewise.
21206 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21208 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21210 (console_grub_equivalences_unshift): Likewise.
21211 Reported by: Daniel Dehennin.
21213 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21215 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21216 (set_env_limn_ro): Likewise.
21217 (GRUB_MOD_INIT): Likewise.
21218 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21219 ARRAY_SIZE while on it.
21220 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21221 * grub-core/normal/context.c (grub_env_export): Move from here ...
21222 * grub-core/kern/env.c (grub_env_export): ... here.
21223 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21225 * grub-core/kern/main.c (grub_main): Export root and prefix.
21226 * include/grub/env.h (grub_env_export): Export.
21227 Reported by: Seth Goldberg.
21229 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21231 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21232 Take into account space used by ELF sections and multiboot palette.
21233 Reported by: Grégoire Sutre.
21235 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21239 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21241 Pass more appropriate video id to Linux.
21243 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21244 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21246 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21247 shift params->lfb_size.
21248 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21250 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21252 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21254 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21256 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21257 separator and pass bootpath/devid even if only one of them is available.
21258 Reported by: Seth Goldberg.
21260 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21262 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21263 implementations bug on them.
21265 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21267 (filter_memory_map): Likewise.
21269 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21271 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21272 Reported by: nebuchadnezzar.
21274 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21276 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21277 Reported by: nebuchadnezzar.
21279 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21281 Submenu default support.
21283 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21284 auto_boot. All users updated.
21286 Handle chosen and default with submenus.
21287 (grub_menu_execute_with_fallback): Declared static.
21288 Don't notify failure if autobooted. Upper level does it.
21289 (menuentry_eq): New function.
21290 (get_entry_number): Use menuentry_eq.
21291 (show_menu): New parameter "autobooted". All users updated.
21292 (grub_show_menu): Likewise.
21293 * include/grub/normal.h (grub_show_menu): Likewise.
21294 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21295 (grub_menu_execute_with_fallback): Likewise.
21297 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21299 * util/grub-mklayout.c (usage): Update help text.
21301 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21303 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21305 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21307 * util/grub-menulst2cfg.c (main): Trim the line.
21309 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21311 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21312 (grub_machine_init): Don't check amount of low memory as reportedly
21313 INT 12h can be broken and if low memory is too low we wouldn't have
21314 gotten into grub_machine_init anyway.
21316 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21318 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21319 (grub_machine_mmap_iterate): Take low memory into account
21321 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21323 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21325 Reported by: TiCPU.
21327 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21329 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21332 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21334 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21335 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21337 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21339 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21340 openbsd and netbsd types being in part_bsd module.
21342 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21344 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21345 (_FILE_OFFSET_BITS): Likewise.
21346 Reported by: Seth Goldberg.
21348 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21350 * configure.ac: Check for libdevmapper header.
21352 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21354 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21356 (fzap_lookup): Likewise.
21357 (dnode_get): Likewise.
21358 (make_mdn): Likewise.
21359 (zfs_mount): Likewise.
21360 (fzap_iterate): Use temporary pointer to avoid aliasing.
21361 (grub_zfs_read): Likewise.
21362 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21363 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21364 pointers to avoid aliasing.
21365 (grub_cmd_xnu_kernel64): Likewise.
21366 (grub_xnu_load_driver): Likewise.
21368 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21370 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21372 (grub_cmd_terminal_output): Likewise.
21373 Reported and tested by: Grégoire Sutre.
21375 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21377 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21379 Reported and tested by: Grégoire Sutre.
21381 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21383 * configure.ac: Do CPU substitution even if it's specified explicitly.
21384 Reported and tested by: Alain Greppin.
21386 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21388 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21389 Reported and tested by: Alain Greppin.
21391 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21393 Satisfy some bison versions need for inttypes.h.
21395 * grub-core/lib/posix_wrap/inttypes.h: New file.
21396 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21397 (int16_t): Likewise.
21398 (int32_t): Likewise.
21399 (int64_t): Likewise.
21400 Reported and tested by: Alain Greppin.
21402 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21404 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21405 Silence spurious warning.
21406 Reported and tested by: Alain Greppin.
21408 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21410 * docs/grub.texi (Support automatic decompression): Update with xz
21411 decompression support.
21413 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21415 Improve loaders' kernel command line handling.
21417 * grub-core/lib/cmdline.c: New file.
21418 * include/grub/lib/cmdline.h: Likewise.
21419 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21420 grub_create_loader_cmdline to create kernel command line.
21421 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21422 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21423 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21424 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21425 (linux): Add lib/cmdline.c on common.
21427 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21429 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21430 inopos might be unaligned.
21432 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21434 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21435 endian transformations.
21436 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21437 Based on report by: Doug Nazar.
21439 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21441 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21442 array->members[i].start_sector.
21443 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21445 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21447 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21448 Reported and tested by: Grégoire Sutre.
21450 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21452 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21453 avoid causing test failures by clearing the screen.
21455 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21457 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21458 Fix prefix check to handle the case where dir ends with a slash
21459 (most significantly, "/" itself).
21460 Reported by: Michael Vogt.
21462 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21464 Run terminfo_cls on initing terminfo output to clear the screen and
21465 move the cursor to (0,0).
21467 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21468 Call grub_terminfo_output_init.
21469 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21470 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21471 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21473 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21475 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21478 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21480 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21483 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21485 The E820 type 5 is BADRAM, not EXEC_CODE.
21487 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21488 (GRUB_E820_BADRAM): New define.
21489 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21490 into reserved. Propagate BADRAM.
21491 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21492 (GRUB_E820_BADRAM): New define.
21494 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21496 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21497 Ignore the memory post-4G.
21498 (grub_relocator_firmware_alloc_region): Additional debug statement.
21500 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21502 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21504 Reported by: David Pravec.
21506 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21508 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21511 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21513 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21515 (grub_reed_solomon_recover): Likewise.
21517 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21519 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21521 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21523 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21526 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21528 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21529 descriptions of extract_legacy_entries_source and
21530 extract_legacy_entries_configfile.
21531 Reported by: Seung Soo, Ha.
21533 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21535 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21536 on devices that do not implement function 0.
21538 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21540 * grub-core/fs/hfsplus.c: Make parent unsigned.
21541 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21543 (grub_hfsplus_cmp_extkey): Likewise
21545 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21547 * util/grub-install.in: Correctly use bootloader_id and not
21548 GRUB_DISTRIBUTOR on efibootmgr line.
21550 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21552 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21554 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21556 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21557 Xen and reorder menu item wording to make it clearer that this entry
21558 will launch Xen. Print separate messages when loading Xen and
21561 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21563 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21564 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21565 loop in case of incorrect amiga partmap.
21567 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21569 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21570 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21573 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21575 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21577 Reported by: crocket
21579 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21581 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21583 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21585 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21587 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21589 (grub_cmd_xnu_kextdir): Likewise.
21590 (grub_cmd_xnu_splash): Likewise.
21592 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21594 Avoid using Reed-Solomon with 0 redundancy.
21596 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21597 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21599 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21600 (grub_reed_solomon_recover): Likewise.
21602 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21604 Don't use disk subsystem in freebsd_boot.
21606 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21607 (freebsd_biosdev): Likewise.
21608 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21609 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21611 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21613 Handling of files of unknown size is currently limited. They can't be
21614 used e.g. for initrd or modules. Moreover gzip handling of not
21615 easily seekable files is buggy. Disable unknown file size for now. May
21616 be inefficient but works.
21618 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21619 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21621 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21623 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21626 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21628 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21630 2010-12-25 Shea Levy <shlevy>
21632 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21634 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21636 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21637 Windows Server 2008.
21638 Reported by: Devin Giddings.
21640 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21642 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21643 writing an error message because of async power management.
21644 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21645 (grub_reboot): Likewise.
21647 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21649 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21650 keep unit tests from failing when they shouldn't.
21652 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21654 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21655 previous patch increased the size of the RS code by 20 bytes (at
21656 least with gcc-4.4), so increase this by 20 bytes to match.
21657 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21659 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21661 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21662 scratch area. Make sure to initialise chosen in standalone mode as
21663 well as non-standalone.
21664 Reported by: Robert Hooker and Andy Whitcroft.
21665 Tested by: Andy Whitcroft.
21667 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21669 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21670 constructing a new unescaped string and passing it to grub_xputs in
21671 one go, rather than passing characters to grub_printf one at a time.
21673 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21675 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21676 initialising utf16.
21678 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21680 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21681 comment. Add an extra layer of quotation, requiring the output of
21682 this function to be used in a printf format string.
21683 (gettext_printf): New function.
21684 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21685 Extract translatable strings from here-documents and use a temporary
21686 variable instead, so that xgettext can find them.
21687 * util/grub.d/10_kfreebsd.in: Likewise.
21688 * util/grub.d/10_linux.in: Likewise.
21689 * util/grub.d/20_linux_xen.in: Likewise.
21691 * po/grub.d.sed: New file.
21692 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21693 arguments. Set c-format flags on all strings extracted from
21694 util/grub.d/ (xgettext refuses to include these itself for strings
21695 it extracted from a shell file, but these really are c-format).
21697 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21699 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21700 Avoid next pointing to nowhere.
21702 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21704 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21705 rather than assuming than rootblock is exactly in the middle.
21706 (grub_affs_label): Likewise.
21708 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21710 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21711 reserved_first_sector to 0.
21712 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21713 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21714 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21716 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21718 Fix handling of UTF-16 UDF labels.
21720 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21721 (read_string): .. here.
21722 (grub_udf_label): Use read_string.
21724 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21726 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21727 editor under argument scope.
21728 Reported by: Jordan Uggla
21730 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21732 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21734 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21736 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21737 line, and other keys scroll an entire page (previous handling was
21738 for \r and \n to scroll a page and other keys to scroll two lines).
21740 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21742 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21743 Set ptrdest to correct get_physical_target_address rather than
21744 incorrect get_virtual_current_address.
21746 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21748 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21749 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21751 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21753 * .bzrignore: Ignore grub-core/rs_decoder.S.
21755 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21757 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21758 .mo/.mo.gz opening sequence to ...
21759 (grub_mofile_open_lang): ... here.
21760 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21761 * util/grub.d/00_header.in (grub_lang): Include country part of
21763 Reported by: Mario Limonciello.
21765 2010-12-09 Robert Millan <rmh@gnu.org>
21767 * NEWS: Document addition of ZFS support.
21769 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21771 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21772 rather than `/ 2', as the latter requires -Wa,--divide which would
21773 require bumping our minimum binutils version.
21775 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21777 * util/grub-script-check.c (main): Print script line number on
21780 2010-12-01 Robert Millan <rmh@gnu.org>
21782 * grub-core/fs/zfs/zfs.c: New file.
21783 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21784 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21785 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21786 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21788 * include/grub/zfs/dmu.h: Likewise.
21789 * include/grub/zfs/dmu_objset.h: Likewise.
21790 * include/grub/zfs/dnode.h: Likewise.
21791 * include/grub/zfs/dsl_dataset.h: Likewise.
21792 * include/grub/zfs/dsl_dir.h: Likewise.
21793 * include/grub/zfs/sa_impl.h: Likewise.
21794 * include/grub/zfs/spa.h: Likewise.
21795 * include/grub/zfs/uberblock_impl.h: Likewise.
21796 * include/grub/zfs/vdev_impl.h: Likewise.
21797 * include/grub/zfs/zap_impl.h: Likewise.
21798 * include/grub/zfs/zap_leaf.h: Likewise.
21799 * include/grub/zfs/zfs.h: Likewise.
21800 * include/grub/zfs/zfs_acl.h: Likewise.
21801 * include/grub/zfs/zfs_znode.h: Likewise.
21802 * include/grub/zfs/zil.h: Likewise.
21803 * include/grub/zfs/zio.h: Likewise.
21804 * include/grub/zfs/zio_checksum.h: Likewise.
21806 * Makefile.util.def: Build ZFS into libgrubmods.
21807 * grub-core/Makefile.core.def: Build zfs.mod.
21809 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21811 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21813 * grub-core/commands/wildcard.c (match_files): Likewise.
21815 2010-11-30 Robert Millan <rmh@gnu.org>
21817 * grub-core/loader/i386/bsd.c
21818 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21819 whether kernel is loaded using grub_loader_is_loaded(), rather
21820 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21821 certain error conditions.
21823 2010-11-30 Robert Millan <rmh@gnu.org>
21825 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21826 (grub_cmd_echo): Call grub_refresh() after printing a message.
21828 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21830 Avoid using tricks for initialising endian variables.
21832 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21834 (GRUB_MOD_INIT): Don't byte-swap.
21835 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21836 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21837 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21838 (grub_swap_bytes32_compile_time): Likewise.
21839 (grub_cpu_to_le32_compile_time): Likewise.
21840 (grub_cpu_to_le16_compile_time): Likewise.
21842 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21844 * util/grub-setup.c (setup): Stop recommending --force. People who
21845 understand the dangers of blocklists are able to find this option
21846 anyway and the ones who don't shouldn't use it anyway.
21848 2010-11-26 Robert Millan <rmh@gnu.org>
21850 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21853 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21855 Fix LVM-on-RAID probing.
21857 * util/grub-probe.c (probe): Remember which disk was detected as
21858 RAID (perhaps an LVM physical volume). Use that disk's raidname
21859 rather than that of the top-level disk.
21861 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21863 Fix cmdline argument quotes for setparams command of menuentry
21866 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21867 quotes for arguments.
21868 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21869 grub_strchrsub function instead.
21871 * include/grub/misc.h (grub_strchrsub): New function.
21873 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21875 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21876 effort by skipping "." and ".." entries up-front.
21877 Suggested by: Michael Lazarev.
21879 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21881 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21882 ldflags to ldadd, to fix link line ordering.
21883 (none_decompress): Likewise.
21885 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21887 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21889 (grub-emu-lite): Remove kern/emu/cache.S.
21891 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21893 * util/deviceiter.c (compare_devices): If the by-id link for a
21894 device couldn't be resolved, fall back to sorting by the by-id link
21895 rather than segfaulting.
21896 Reported and tested by: Daniel Mierswa.
21898 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21900 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21901 ldflags, to fix link line ordering.
21903 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21905 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21906 linkers are picky about this.
21908 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21910 * grub-core/Makefile.am (command.lst): Adjust sed expression
21911 ordering so that extended and priority commands aren't treated as
21914 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21916 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21917 Remove byte-swapping function calls, which are not valid in
21918 structure initialisers.
21919 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21921 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21922 grub_gpt_partition_type_bios_boot.
21924 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21926 Fix test program build on GNU/kFreeBSD.
21928 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21929 $(LIBNVPAIR)' library dependencies.
21931 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21933 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21935 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21937 * util/grub-install.in: Remove excessive quoting that broke
21938 installations to RAID devices.
21940 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21942 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21943 bootloader version instead of 0.
21945 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21947 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21950 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21952 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21953 retrieve the metadat sector if size isn't known.
21954 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21956 2010-11-18 Robert Millan <rmh@gnu.org>
21958 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21959 with grub_memcmp().
21961 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21963 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21965 Reported by: Jordan Uggla.
21967 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21969 Make better UTF compliant.
21971 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21972 sequences as incorrect.
21973 (grub_is_valid_utf8): Likewise.
21974 (grub_utf8_to_ucs4): Likewise.
21975 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21976 (grub_ucs4_to_utf8_alloc): Likewise.
21977 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21979 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21981 Make legacy_source behave like source.
21983 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21985 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21987 2010-11-16 Colin Watson <cjwatson@debian.org>
21989 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21990 (-Wunused implies -Wunused-parameter, but not vice versa).
21992 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21994 * configure.ac: Make error messages less confusing by testing for
21995 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21996 accepted, but produces a diagnostic if something else is wrong).
21998 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22000 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22001 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22003 (grub_keyboard_controller_init)
22004 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22005 read the initial state since controller isn't inited yet.
22007 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22009 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22010 allocate_regbeg may need to create new chunk header.
22012 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22014 Fix quoting in legacy parser.
22016 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22018 (grub_legacy_parse): Likewise.
22019 Reported by: Jordan Uggla.
22020 Tested by: Jordan Uggla.
22022 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22024 Don't add -lgcc on i386 and x86_64.
22026 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22027 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22028 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22030 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22032 * configure.ac: Add -Wno-trampolines when supported.
22034 2010-11-14 Modestas Vainius <modax@debian.org>
22036 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22039 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22041 Add generic logical block size support for UDF.
22043 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22044 (GRUB_UDF_BLKSZ): Removed.
22045 (struct grub_udf_data): New field "lbshift" to hold the logical block
22046 size of the file system in log2 format. All users updated.
22047 (sblocklist): Change type to unsigned.
22048 (grub_udf_mount): Change type of "sblklist" to unsigned.
22049 Move AVDP search before VRS recognition, because the latter requires
22050 knowledge of the logical block size, which is detected during the
22052 Detect and validate logical block size during AVDP search, adding
22053 support for block sizes 512, 1024 and 4096.
22054 Make VRS recognition independent of block size.
22056 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22058 Properly handle deleted files on UDF.
22060 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22061 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22064 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22066 Support reading files larger than 2 GiB.
22068 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22069 "offset" to grub_off_t.
22070 (grub_udf_read_file): Likewise for parameter "pos".
22072 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22074 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22076 (Simple configuration): Refer to Changes from GRUB Legacy about
22077 save_env availability.
22079 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22081 * util/grub-install.in: Ignore empty partition table detection
22082 instead of trying to include part_ module.
22084 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22086 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22087 LVM on RAID support.
22089 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22091 Properly define WORDS_BIGENDIAN in wrapped environments.
22093 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22095 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22097 Reported by: Manoel Rebelo Abranches.
22098 Tested by: Manoel Rebelo Abranches.
22100 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22102 * util/grub-mkconfig.in: Fix quoting.
22104 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22106 Support big ext2 files.
22108 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22109 (grub_ext2_read_block): Support triple indirect blocks.
22110 (grub_ext2_read_file): Use 64-bit types and read size_high.
22111 (grub_ext2_open): Read size_high.
22112 Reported by: Ximin Luo.
22113 Tested by: Manoel Rebelo Abranches.
22115 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22117 * util/grub-install.in: Handle filenames containing spaces.
22118 Reported by: Jordan Uggla.
22119 Tested by: Jordan Uggla.
22121 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22123 * util/grub-mkconfig.in (grub_script_check): New variable.
22124 Use grub_script_check instead of grub-script-check.
22125 Reported by: Barry Jackson.
22127 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22129 * docs/grub.texi (menu): Correct the order.
22130 Reported by: D. Hugh Redelmeier.
22132 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22134 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22137 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22139 * include/grub/elfload.h (grub_elf32_size): New parameter.
22141 Return maximum segments alignment.
22142 (grub_elf64_size): Likewise.
22143 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22144 Return maximum segments alignment.
22145 (grub_elf64_size): Likewise.
22146 * grub-core/loader/powerpc/ieee1275/linux.c:
22147 (grub_linux_claimmap_iterate): New function. Uses the
22148 "available" property in the "memory" node for memory allocation
22149 for kernel in the PowerPC loader.
22150 (grub_linux_load32): Correctly find linux entry point offset.
22151 (grub_linux_load64): Likewise.
22153 2010-11-07 Robert Millan <rmh@gnu.org>
22155 On mips-yeeloong, build with -march=loongson2f when this flag is
22156 available (GCC >= 4.4).
22157 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22159 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22160 or otherwise add -march=mips3.
22162 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22164 Suppress shell expansion on echo '*' and echo "*" like cases.
22165 Reported by: Jordan Uggla.
22167 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22168 string arguments before shell expansion.
22169 * tests/grub_cmd_echo.in: New testcases.
22171 2010-11-07 Robert Millan <rmh@gnu.org>
22173 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22176 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22178 * grub-core/kern/emu/hostdisk.c
22179 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22181 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22183 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22184 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22185 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22187 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22189 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22191 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22193 * util/grub-install.in: Replace useless recomendation to pass
22194 --modules with a recomendation to report a bug.
22196 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22198 Properly register serial terminfo.
22199 Reported by: Jordan Uggla
22201 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22203 (grub_serial_terminfo_output_template): Likewise.
22204 (grub_cmd_serial): Register "serial" with terminfo.
22205 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22206 grub_serial_terminfo_output.
22208 2010-11-05 Robert Millan <rmh@gnu.org>
22210 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22213 2010-11-05 Robert Millan <rmh@gnu.org>
22215 On Yeeloong, pass machine type information to Linux.
22217 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22218 (LOONGSON_MACHTYPE): New macro, set to
22219 "machtype=lemote-yeeloong-2f-8.9inches".
22220 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22221 additional argument to Linux.
22223 2010-11-04 Robert Millan <rmh@gnu.org>
22225 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22226 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22227 (its SATA disks are detected as slaveless IDE master drives on
22229 Reported by Carsten Aulbert.
22231 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22233 * util/bin2h.c (main): Fix spelling error in generated output.
22235 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22237 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22239 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22241 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22242 vga= option is supplied.
22244 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22246 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22247 * util/grub.d/10_kfreebsd.in: Likewise.
22248 * util/grub.d/10_linux.in: Likewise.
22249 * util/grub.d/20_linux_xen.in: Likewise.
22251 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22253 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22254 argument as an argument to no-argument option.
22256 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22258 * util/grub.d/10_linux.in: Add missing load_video with explicit
22259 GRUB_GFXPAYLOAD_LINUX.
22261 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22263 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22265 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22267 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22268 elements with invlid index.
22269 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22270 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22272 * include/grub/raid.h (grub_raid_member): New struct.
22273 (grub_raid_array): Transform devices and start_sector into usage of
22274 grub_raid_member. All users updated
22275 (allocated_devs): New member.
22277 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22279 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22282 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22284 NetBSD build fix for getline function conflict from gnulib.
22286 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22287 components that depend on gnulib headers.
22288 (libgrubmods.a): Renamed from earlier libgrub.a.
22289 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22291 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22293 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22294 install rather than creating a broken install.
22296 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22298 * util/grub-setup.c (argp): Remove misleading example of installing to
22301 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22303 * util/grub-setup.c (setup): Clarify the error message.
22305 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22307 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22309 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22311 * grub-core/kern/emu/misc.c
22312 (grub_make_system_path_relative_to_its_root)
22313 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22315 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22317 * grub-core/kern/emu/misc.c
22318 (grub_make_system_path_relative_to_its_root): Revert r2882.
22320 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22322 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22323 useless field head. All users updated.
22324 (free_subchunk): Correct handling of IN_REGION subchunk.
22326 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22328 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22329 (Supported kernels): Likewise.
22331 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22333 Make mktemp invocations portable.
22335 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22336 exit if mktemp fails.
22337 * tests/grub_script_blockarg.in: Likewise.
22338 * tests/partmap_test.in: Likewise.
22339 * tests/util/grub-shell-tester.in: Likewise.
22340 * tests/util/grub-shell.in: Likewise.
22341 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22342 * Makefile.am: Likewise, and chain shell commands with `&&'
22344 * util/grub-mkrescue.in: Use the same explicit template as above, and
22345 exit if mktemp fails.
22347 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22349 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22350 Linux kernel, reported by Dennis Schridde.
22352 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22354 * grub-core/normal/auth.c (grub_auth_check_authentication):
22355 Set-but-not-used variable removed.
22357 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22359 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22360 32-bit linux protocol.
22362 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22364 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22365 cursor shape for sanity.
22367 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22369 * docs/grub.texi (Installation): Document buggy BIOS install.
22371 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22373 * docs/grub.texi (Installation): Indent.
22375 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22377 * util/grub-setup.c (setup): New parameter allow_floppy.
22378 (arguments): New member allow_floppy.
22379 (argp_parser): Handle --allow-floppy.
22380 (main): Pass allow_floppy.
22381 * util/grub-install.in: New option --allow-floppy passed though to
22384 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22386 * util/grub-install.in: Handle partitionless disks.
22388 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22390 * util/grub-setup.c (setup): Don't clean blocklists before readability
22393 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22395 * docs/grub.texi (Installation): Document embedding zone. Remove
22396 obsolete grub-install example.
22398 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22400 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22401 Set-but-not-used variable ifdef'ed.
22402 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22403 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22405 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22406 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22407 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22408 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22409 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22410 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22411 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22412 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22413 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22414 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22415 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22418 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22420 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22421 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22424 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22426 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22427 synonym to _S5_. Needed for some DSDTs.
22429 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22431 Userspace ACPI parser debugging.
22433 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22434 headers and add relevant defines. Don't include standard headers.
22435 (main) [GRUB_DSDT_TEST]: New function.
22436 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22437 Don't declare functions.
22439 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22441 Remove dead grub_efi_mm_fini.
22443 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22444 (ALLOCATED_PAGES_SIZE): Likewise.
22445 (MAX_ALLOCATED_PAGES): Likewise.
22446 (allocated_pages): Likewise.
22447 (grub_efi_allocate_pages): Don't record allocated pages.
22448 (grub_efi_free_pages): Likewise.
22449 (grub_efi_mm_init): Likewise.
22450 (grub_efi_mm_fini): Removed.
22452 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22454 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22455 (grub_efi_mm_init): Take into account the memory map size increase.
22457 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22459 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22460 (serial_hw_put): Wait based on real time rather than port reads. Don't
22462 * include/grub/serial.h (grub_serial_port): New field broken.
22464 2010-10-16 Robert Millan <rmh@gnu.org>
22466 * grub-core/kern/emu/misc.c
22467 (grub_make_system_path_relative_to_its_root): Fix premature return
22468 when processing non-root ZFS filesystems.
22469 Reported by Sergio Talens-Oliag.
22471 2010-10-15 Robert Millan <rmh@gnu.org>
22473 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22474 guarantee compressed ones are processed first.
22476 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22478 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22479 grub_efiemu_autocore.
22481 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22483 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22485 (grub_console_getkey): Use correct jae opcode rather than ja.
22487 2010-10-12 Robert Millan <rmh@gnu.org>
22489 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22490 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22491 variable. All references updated.
22493 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22495 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22497 Correctly distinguish mdraid flavours.
22499 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22500 (insert_array): New argument raid.
22501 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22502 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22503 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22505 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22507 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22508 handling of special keys.
22510 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22512 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22513 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22515 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22517 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22518 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22520 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22521 Use right endpoint when querying descriptor.
22523 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22525 Clear out 0x80 color bit on EFI.
22527 Reported by: decoder and meta tech.
22529 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22530 (grub_console_setcolorstate): Clear out 0x80 bit.
22531 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22532 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22533 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22535 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22537 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22540 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22542 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22543 mo_file after freeing.
22545 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22547 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22549 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22551 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22554 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22556 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22559 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22561 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22563 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22564 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22565 and terminfo.h when needed.
22566 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22567 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22568 (terminfo): Enable only on terminfokernel.
22569 (extcmd): Likewise.
22570 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22571 * include/grub/lib/arg.h: Likewise.
22572 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22573 incorrect usage of ->.
22575 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22577 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22578 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22580 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22582 Fix coreboot compilation.
22584 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22585 Take VBE info into account even if only text is supported.
22586 (fill_vbe_info): Take into account the case when only VGA text
22588 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22589 on coreboot, multiboot and qemu.
22591 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22593 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22595 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22597 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22599 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22602 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22604 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22605 if they were BSD-style.
22607 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22609 * grub-core/boot/i386/pc/lnxboot.S: Replace
22610 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22611 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22613 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22615 Write embedding zone using Reed-Solomon.
22617 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22618 * grub-core/Makefile.am (rs_decoder.S): New target.
22619 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22620 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22621 (multiboot): Move to RS part.
22622 (post_reed_solomon): New label.
22623 (grub_boot_drive): Move to non-RS part since it's modified in memory
22625 Include rs_decoder.S.
22626 * grub-core/lib/reed_solomon.c: New file.
22627 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22629 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22630 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22631 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22632 * include/grub/partition.h (grub_partition_map): Change prototype of
22633 embed to allow returning additional sectors.
22634 * include/grub/reed_solomon.h: New file.
22635 * util/grub-setup.c (setup): Handle Reed-Solomon.
22637 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22639 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22640 i386 and x86-64 definedness tests.
22642 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22644 Fix generation of kernel_syms.lst
22646 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22649 2010-09-26 Robert Millan <rmh@gnu.org>
22651 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22653 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22654 the pool is an array of devices, iterate through it and return the
22655 first device that passes a stat() test (instead of blindly returning
22658 2010-09-26 Robert Millan <rmh@gnu.org>
22660 Build fixes for GNU/kFreeBSD.
22662 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22663 to programs that require ZFS conversion.
22664 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22665 kernels that don't have FLOPPY_MAJOR.
22667 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22669 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22671 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22673 Fix grub-emu build.
22675 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22676 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22677 mdraid09 and mdraid1x.
22679 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22681 Re-enable grub-extras.
22683 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22684 avoid confusing Automake. Run autogen only twice, once for the top
22685 level and once for grub-core. Add Makefile.util.def and
22686 Makefile.core.def from extra modules to the appropriate autogen
22687 invocations. If Makefile.common exists in an extra module, include
22688 it in both Makefile.util.am and grub-core/Makefile.core.am;
22689 similarly, include any Makefile.util.common file in Makefile.util.am
22690 and any Makefile.core.common file in grub-core/Makefile.core.am.
22691 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22692 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22693 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22694 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22696 * gentpl.py (gvar_add): Turn GVARS into a set.
22697 (global_variable_initializers): Sort global variables on output.
22698 (vars_init): New function.
22699 (first_time): Likewise.
22700 (library): Ensure that non-global variable initialisations are
22701 emitted before the first time we emit code for a library block.
22702 Append to variables rather than setting them. Only emit
22703 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22704 each conditional path.
22705 (program): installdir() emits an Autogen macro, so must be passed to
22706 var_add rather than gvar_add.
22708 (script): Likewise.
22709 (rules): New function, centralising handling for different target
22710 types. Set up Guile association lists for first_time and vars_init,
22711 and send most output to a diversion so that variable initialisations
22712 can be emitted first.
22713 (module_rules): Use new rules function.
22714 (kernel_rules): Likewise.
22715 (image_rules): Likewise.
22716 (library_rules): Likewise.
22717 (program_rules): Likewise.
22718 (script_rules): Likewise.
22719 (data_rules): Likewise.
22721 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22723 * .bzrignore: Add contrib and grub-core/contrib. Remove
22724 grub-core/Makefile.gcry.am.
22726 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22728 * grub-core/lib/LzFind.c: Add missing include.
22729 * grub-core/lib/LzmaEnc.c: Likewise.
22730 * grub-core/script/lexer.c: Likewise.
22731 * grub-core/script/yylex.l: Likewise.
22732 * util/grub-macho2img.c: Likewise.
22733 * util/grub-menulst2cfg.c: Likewise.
22734 * util/grub-mklayout.c: Likewise.
22735 * util/grub-mkpasswd-pbkdf2.c
22736 * util/grub-mkrelpath.c: Likewise.
22737 * util/resolve.c: Likewise.
22739 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22741 * Makefile.util.def (example_unit_test): Add
22742 grub-core/gnulib/libgnu.a.
22744 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22746 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22748 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22750 Support xz compression on yeeloong.
22752 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22753 * configure.ac: Check for LZMA.
22754 * grub-core/Makefile.core.def (xz_decompress): New target.
22755 (none_decompress): Likewise.
22756 * grub-core/boot/decompressor/minilib.c: New file.
22757 * grub-core/boot/decompressor/none.c: Likewise.
22758 * grub-core/boot/decompressor/xz.c: Likewise.
22759 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22760 * grub-core/kern/mips/cache_flush.S: Likewise.
22761 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22762 * grub-core/kern/mips/startup.S: Move first stage to ...
22763 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22765 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22766 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22767 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22768 Allocate statically.
22769 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22770 Allocate statically or use scratch. Don't check CRC32.
22771 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22772 Allocate statically. Don't check CRC32.
22773 * include/grub/decompressor.h: New file.
22774 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22776 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22777 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22778 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22779 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22780 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22781 * util/grub-mkimage.c (grub_compression_t): New type.
22782 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22783 (image_target_desc): New field default_compression.
22784 (image_targets): Adjust yeeloong targets.
22785 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22786 (compress_kernel): New parameter comp.
22787 (generate_image): Likewise. Handle new compression case.
22788 (options): New option --compression
22790 (main): Handle new option.
22792 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22794 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22796 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22798 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22799 typo in __i386__ conditional.
22801 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22803 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22806 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22808 Implement EFI and ACPI multiboot2 extensions.
22810 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22811 new tags as supported.
22812 (acpiv2_size): New function.
22813 (grub_multiboot_get_mbi_size): Take new tags into account.
22814 (grub_multiboot_make_mbi): Add new tags.
22815 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22817 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22819 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22820 Added missing configuration of USB device.
22822 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22824 * grub-core/normal/menu_entry.c (run): Make sure we always return
22827 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22829 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22830 NumberOfPages is UINT64 according to the UEFI specification, not
22831 UINTN. Fix printf format.
22833 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22835 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22836 `err' to grub_usb_err_t.
22837 Reported and tested by: KESHAV P.R.
22839 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22841 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22842 tpart non-const, so that we can assign to it. (Since this is a
22843 typedef, the constness refers to the pointer rather than what it
22846 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22848 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22849 $(top_srcdir)/grub-core/gnulib as well as
22850 $(top_builddir)/grub-core/gnulib.
22851 Reported by: KESHAV P.R.
22853 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22855 * util/grub-install.in: Fix the bootloader ID option to be
22856 consistently --bootloader-id, not --bootloader_id.
22857 Reported by: KESHAV P.R.
22859 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22861 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22862 check hash checksum." consistently translatable.
22864 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22866 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22869 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22871 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22872 (GRUB_MOD_INIT): Register sha1sum command.
22873 (GRUB_MOD_FINI): Unregister sha1sum command.
22875 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22877 Keep boot and grub directory names in sync with utils scripts
22879 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22880 * config.h.in: Add previous macros.
22881 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22882 * util/grub-install.in: Use $bootdir and $grubdir variables.
22884 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22886 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22887 convert partition names to disk names if the new `convert' parameter
22889 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22890 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22891 disk in its own right. This can happen with Xen disk images.
22893 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22895 * util/grub-editenv.c: Update strings to avoid warnings when generating
22897 * util/grub-setup.c: Likewise.
22899 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22901 * configure.ac: Change version to 1.99~beta0.
22903 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22905 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22907 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22909 * include/multiboot.h: Resynced with specification.
22910 * include/multiboot2.h: Likewise.
22912 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22914 Fix po directory handling.
22916 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22917 * grub-core/gnulib/Makefile.am: Import gettext module.
22918 * m4/gnulib-cache.m4: Likewise.
22919 * m4/gnulib-comp.m4: Likewise.
22920 * m4/gettext.m4: New file, from gnulib.
22921 * m4/glibc2.m4: Likewise.
22922 * m4/iconv.m4: Likewise.
22923 * m4/intdiv0.m4: Likewise.
22924 * m4/intl.m4: Likewise.
22925 * m4/intldir.m4: Likewise.
22926 * m4/intlmacosx.m4: Likewise.
22927 * m4/intmax.m4: Likewise.
22928 * m4/inttypes-pri.m4: Likewise.
22929 * m4/lcmessage.m4: Likewise.
22930 * m4/lib-ld.m4: Likewise.
22931 * m4/lib-link.m4: Likewise.
22932 * m4/lib-prefix.m4: Likewise.
22933 * m4/lock.m4: Likewise.
22934 * m4/nls.m4: Likewise.
22935 * m4/po.m4: Likewise.
22936 * m4/printf-posix.m4: Likewise.
22937 * m4/progtest.m4: Likewise.
22938 * m4/threadlib.m4: Likewise.
22939 * m4/uintmax_t.m4: Likewise.
22940 * m4/visibility.m4: Likewise.
22941 * po/Makefile.am: Remove.
22942 * po/Makefile.in.in: New file, from gettext.
22943 ($(DOMAIN).pot-update): Support POTFILES-shell.
22944 * po/Makevars: New file.
22945 * po/POTFILES-shell: Rename to ...
22946 * po/POTFILES-shell.in: ... this. Update.
22947 * po/POTFILES: Rename to ...
22948 * po/POTFILES.in: ... this. Update.
22949 * po/Rules-quot: New file, from gettext.
22950 * po/boldquot.sed: Likewise.
22951 * po/en@boldquot.header: Likewise.
22952 * po/en@quot.header: Likewise.
22953 * po/insert-header.sin: Likewise.
22954 * po/quot.sed: Likewise.
22955 * po/remove-potcdate.sin: Likewise.
22957 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22959 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22961 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22963 * util/grub.d/20_linux_xen.in: Use submenus.
22965 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22969 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22970 parameter submenu. All users updated.
22971 * grub-core/normal/main.c (free_menu): Rename to ...
22972 (grub_normal_free_menu): ... this. Made global.
22973 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22975 * grub-core/normal/menu_entry.c (screen): New field submenu.
22976 (make_screen): Set submenu.
22977 (run): Open new context if requested.
22978 * include/grub/menu.h (grub_menu_entry): New field submenu.
22979 * include/grub/normal.h (grub_normal_free_menu): New proto.
22981 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22983 Menu entries extractor.
22985 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22987 (GRUB_MOD_INIT): Register new variants.
22988 (GRUB_MOD_FINI): Unregister new variants.
22989 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22990 into grub_cmd_legacy_source.
22991 (grub_cmd_legacy_source): Implement extractor variants.
22992 (GRUB_MOD_INIT): Register new variants.
22993 (GRUB_MOD_FINI): Unregister new variants.
22994 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22996 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22997 search as an extractor.
22998 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22999 test as an extractor.
23000 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23002 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23003 (grub_env_new_context): New function.
23004 (grub_env_context_open): Likewise.
23005 (grub_env_extractor_open): Likewise.
23006 (grub_env_extractor_close): Likewise.
23007 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23008 grub_extractor_level.
23009 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23010 * include/grub/env.h (grub_env_extractor_open): New proto.
23011 (grub_env_extractor_close): Likewise.
23012 * include/grub/normal.h (grub_extractor_level): New external variable.
23014 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23016 Make cutmem accept a region specification.
23017 Suggested by: Samuel Thibault
23019 * grub-core/mmap/mmap.c (parsemem): New function.
23020 (grub_cmd_cutmem): Handle new arguments.
23022 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23024 New command cutmem.
23026 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23027 (GRUB_MOD_INIT): Register new command.
23028 (GRUB_MOD_FINI): Unregister new command.
23030 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23032 Support some annoying BSD and Minix subpartitions.
23034 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23035 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23036 Properly handle concatenation.
23037 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23038 * grub-core/normal/completion.c (iterate_partition): Likewise.
23039 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23040 contain partition. All users updated.
23041 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23043 (grub_openbsdlabel_partition_map): Likewise.
23044 (bsdlabel_partition_map_iterate): Rename to ..
23045 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23046 (bsdlabel_partition_map_iterate): New function.
23047 (netopenbsdlabel_partition_map_iterate): Likewise.
23048 (netbsdlabel_partition_map_iterate): Likewise.
23049 (openbsdlabel_partition_map_iterate): Likewise.
23050 (GRUB_MOD_INIT): Register new partmaps.
23051 (GRUB_MOD_FINI): Unregister new partmaps.
23052 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23053 (grub_partition_msdos_iterate): ... this. All users updated.
23054 Don't support embedding other than in a minix partition.
23055 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23057 * include/grub/partition.h (grub_partition): New field msdostype.
23058 * util/grub-install.in: Handle openbsd and netbsd types being in
23061 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23063 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23065 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23066 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23067 (mdraid09): ... this.
23068 (mdraid1x): New module.
23069 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23070 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23072 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23074 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23077 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23079 * grub-core/commands/efi/lsefimmap.c: Correct header.
23082 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23084 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23085 as printf format strings; the translations might contain '%' which
23086 could cause a crash.
23088 * util/grub-fstest.c (argp_parser): Likewise.
23089 * util/grub-setup.c (argp_parser): Likewise.
23092 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23094 Use argp in grub-fstest.
23096 * util/grub-fstest.c: Don't include getopt.h.
23098 (root): New variable.
23099 (args_count): Likewise.
23101 (num_disks): Likewise.
23102 (images): Likewise.
23104 (debug_str): Likewise.
23106 (options): Transformed to argp.
23108 (main): Split argument parsing into ...
23109 (argp_parser): ... this. Changed to argp format.
23110 (argp): New variable.
23111 (main): Use argp_parse.
23113 2010-09-20 Tristan Gingold <gingold@free.fr>
23114 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23115 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23117 * grub-core/commands/efi/lsefimmap.c: New file.
23118 * grub-core/Makefile.core.def (lsefimmap): New module.
23119 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23121 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23123 Pause the execution (10s max) if any errors are displayed so the user
23124 has a chance to see them.
23126 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23127 (grub_print_error): Increment grub_err_printed_errors.
23128 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23129 execution if any errors were displayed.
23130 (show_menu): Remove old code for pause.
23131 * grub-core/normal/menu_entry.c (run): Likewise.
23132 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23134 (grub_normal_get_char_counter): Likewise.
23135 * include/grub/err.h (grub_err_printed_errors): New external variable.
23136 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23138 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23140 Support multiboot VBE info.
23142 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23143 Take VBE info into account.
23144 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23145 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23146 Call fill_vbe_info when appropriate.
23147 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23148 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23150 (grub_multiboot_get_mbi_size): Take new tags into account.
23151 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23152 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23153 Call fill_vbe_tag when appropriate.
23154 (grub_multiboot_make_mbi): Properly align tags.
23155 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23157 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23159 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23161 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23163 Suport manual terminal geometry specification.
23165 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23166 Save state in grub_ofconsole_terminfo_output.
23167 (grub_ofconsole_term): Use grub_terminfo_getwh.
23168 (grub_ofconsole_getwh): Removed.
23169 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23170 (grub_serial_term): Use grub_terminfo_getwh.
23171 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23172 (options): New struct.
23173 (OPTION_*): New enum.
23174 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23175 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23177 (grub_terminfo_getwh): New proto.
23178 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23180 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23182 Handle legacy "terminal" command.
23184 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23186 (legacy_commands): Add terminal and title.
23187 (grub_legacy_parse): Handle terminal. Simplify title handling.
23189 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23191 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23192 parameters overflow.
23194 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23196 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23199 * docs/grub.texi (Shell-like scripting): Document `!'.
23200 (Network): Simplify using new i386-pc-pxe format. Mention
23205 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23207 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23208 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23211 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23213 * grub-core/commands/efi/lsefisystab.c: Correct header.
23214 * grub-core/commands/efi/lssal.c: Likewise.
23215 * grub-core/commands/testload.c: Likewise.
23217 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23219 * util/grub-mkrescue.in: Add explicit root argument to --set to
23220 prevent the UUID being interpreted as an argument to --set (matches
23221 previous change to prepare_grub_to_access_device).
23223 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23225 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23226 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23227 the verbosity of later #ifs.
23228 (find_partition_start): Define this function on FreeBSD too.
23229 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23231 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23234 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23236 * util/grub-editenv.c: Use argp instead of getopt.
23238 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23240 * util/grub-setup.c: Use argp instead of getopt.
23242 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23244 Use gnulib-tool to create gnulib source files.
23246 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23247 grub-core/gnulib directories
23248 * .bzignore: Add **/.deps and autogenerated gnulib files
23249 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23250 of gnulib macros, add grub-core/gnulib/Makefile
23251 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23252 include m4 directory to aclocal.
23253 * Makefile.util.def: Remove direct compilation of gnulib source files
23254 and use the new grub-core/gnulib/libgnu.a.
23255 * build-aux/config.rpath: move config.rpath from top directory to
23257 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23259 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23260 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23261 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23263 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23266 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23268 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23269 grub-core/genmod.sh and grub-core/gensyminfo.sh
23271 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23273 Add a test for echo command options.
23275 * tests/grub_cmd_echo.in: New test.
23276 * Makefile.util.def: Rules for new test.
23278 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23280 Remove crc.mod and move crc command to hashsum.mod.
23281 Remove lib/crc.c - users updated to use gcrypt implementation.
23283 * grub-core/commands/crc.c: Removed.
23284 * grub-core/Makefile.core.def (crc): Module removed.
23285 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23286 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23287 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23288 * grub-core/lib/crc.c: Removed.
23289 * include/grub/lib/crc.h: Removed.
23290 * Makefile.util.def (crc): Remove lib/crc.c
23291 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23292 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23293 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23294 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23295 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23296 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23298 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23300 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23302 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23304 Split config.h for util and core.
23306 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23307 (ADDR32): Likewise.
23308 (DATA32): Likewise.
23309 (BSS_START_SYMBOL): Likewise.
23310 (END_SYMBOL): Likewise.
23311 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23312 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23313 * config.h.in: New file.
23314 * configure.ac: Use config-util.h as config define file.
23315 Rename MACHINE into GRUB_MACHINE. All users updated.
23316 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23318 (NESTED_FUNC_ATTR): Likewise.
23319 Substitue new variables.
23320 (COND_HAVE_ASM_USCORE): New conditional.
23321 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23322 (kernel_syms.lst): Use ASM_PREFIX.
23323 * grub-core/kern/emu/console.c: Include config-util.h.
23324 * grub-core/kern/emu/misc.c: Likewise.
23325 * grub-core/kern/emu/mm.c: Likewise.
23326 * include/grub/emu/misc.h: Likewise.
23327 * include/grub/libgcc.h: Likewise.
23329 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23331 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23333 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23334 Fix GRUB_TERM_KEY_* constants usage.
23335 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23337 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23339 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23341 * grub-core/bus/usb/uhci.c: Remove empty define.
23342 (grub_uhci_check_transfer): Add missing cast.
23343 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23345 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23347 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23349 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23351 * grub-core/Makefile.core.def (legacycfg): Add
23352 lib/i386/pc/vesa_modes_table.c on emu.
23354 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23356 Reduce number of temporary files generated by build system.
23358 * grub-core/gencmdlist.sh: Removed.
23359 * grub-core/genfslist.sh: Removed.
23360 * grub-core/genhandlerlist.sh: Removed.
23361 * grub-core/genmodsrc.sh: Removed.
23362 * grub-core/genpartmaplist.sh: Removed.
23363 * grub-core/genparttoollist.sh: Removed.
23364 * grub-core/gentermiinallist.sh: Removed.
23365 * grub-core/genvideolist.sh: Removed.
23367 * grub-core/genmod.sh.in: New file.
23368 * grub-core/gensyminfo.sh.in: New file.
23370 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23371 * conf/Makefile.extra-dist: Update with new files.
23372 * gentpl.py: Remove rules related to unnecessary temporary files.
23373 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23375 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23377 * grub-core/bus/usb/uhci.c: Remove empty #define.
23378 * grub-core/genmoddep.awk: Updated with new syminfo format.
23379 * util/bash-completion.d/Makefile.am: Add config.log to
23382 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23384 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23386 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23388 * util/grub-mkconfig.in: Check the config script for syntax errors
23391 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23392 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23394 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23396 * util/grub-install.in: Add EFI and IEEE1275 support.
23397 * util/i386/efi/grub-install.in: Removed.
23398 * util/ieee1275/grub-install.in: Likewise.
23400 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23402 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23403 (grub_cmd_cmosclean): Likewise.
23404 (GRUB_MOD_INIT): Register command cmosclean.
23405 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23406 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23408 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23409 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23410 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23412 Add keyboard layouts support.
23414 * Makefile.util.def (grub-mklayout): New file.
23415 (grub-kbdcomp): New script.
23416 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23417 Add keyboard_layouts.h.
23418 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23419 commands/boot.c on yeeloong.
23420 (keylayouts): New module.
23421 * grub-core/bus/usb/ohci.c
23422 * grub-core/bus/usb/uhci.c
23423 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23424 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23425 (attach_root_port): Likewise.
23426 (poll_nonroot_hub): Likewise.
23427 (grub_usb_poll_devices): Likewise.
23428 (detach_device): Close transfer.
23429 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23431 (grub_usb_bulk_setup_readwrite): Likewise.
23432 (grub_usb_bulk_finish_readwrite): Likewise.
23433 * grub-core/commands/keylayouts.c: New file.
23434 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23435 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23437 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23438 support scancode 2.
23439 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23440 * include/grub/keyboard_layouts.h: New file.
23441 * util/grub-mklayout.c: New file.
23442 * util/grub-kbdcomp.in: Likewise.
23444 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23446 Unify memory types.
23448 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23449 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23451 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23452 (grub_upper_mem): Likewise.
23453 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23454 * include/grub/memory.h (grub_memory_type_t): New enum.
23457 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23459 * grub-core/Makefile.core.def (lsapm): New module.
23460 * grub-core/commands/i386/pc/lsapm.c: New file.
23461 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23462 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23464 * include/grub/i386/pc/apm.h: New file.
23465 * include/multiboot.h (multiboot_apm_info): New struct.
23467 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23469 GRUB-legacy configuration file support.
23471 * Makefile.util.def (grub-menulst2cfg): New util.
23472 * docs/man/grub-menulst2cfg.h2m: New file.
23473 * grub-core/Makefile.core.def (legacycfg): New module.
23474 * grub-core/commands/legacycfg.c: New file.
23475 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23476 (grub_normal_add_menu_entry): ... this.
23477 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23478 (grub_normal_set_password): ...this.
23479 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23480 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23481 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23482 * grub-core/lib/legacy_parse.c: New file.
23483 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23484 * include/grub/i386/pc/vesa_modes_table.h: New file.
23485 * include/grub/legacy_parse.h: Likewise.
23486 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23487 * util/grub-menulst2cfg.c: New file.
23489 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23491 * grub-core/kern/emu/hostdisk.c
23492 (convert_system_partition_to_system_disk): Initialise node.
23494 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23496 * grub-core/kern/emu/hostdisk.c
23497 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23499 Reported and based on patch by: Modestas Vainius.
23501 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23503 Fix DM-RAID probing with recent versions of device-mapper udev
23506 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23507 canonicalise device paths under /dev/mapper/.
23508 (convert_system_partition_to_system_disk): Compare the
23509 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23510 path, since device nodes under /dev/mapper/ are often symlinks.
23512 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23514 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23516 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23518 * configure.ac: Avoid some annoying error messages if freetype-config
23519 program is not found.
23521 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23523 Support RAID on virtio devices, and others.
23525 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23527 [__MINGW32__] (grub_find_device): ... this.
23528 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23529 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23530 reasonable default if dir is NULL.
23531 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23533 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23534 (grub_guess_root_device): Update callers.
23535 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23537 * util/raid.c (grub_util_getdiskname): Remove.
23538 (grub_util_raid_getmembers): Use grub_find_device rather than
23539 grub_util_getdiskname.
23541 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23543 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23544 needing to be compiled with serial support.
23545 (ls): Indicate that multiple files are accepted.
23546 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23547 indicate that multiple files are accepted.
23549 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23551 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23552 libgrub_a_init.c, and util/bash-completion.d/grub.
23554 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23556 * util/grub-setup.c (setup): Fix incorrect container semantics.
23558 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23560 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23562 Reported by: J. Nick Terry
23564 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23566 Move embedding routines to partmap sources files.
23568 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23569 [GRUB_UTIL]: New variable.
23570 (gpt_partition_map_iterate): Set part.parent.
23571 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23572 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23573 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23575 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23576 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23577 (grub_partition_map) [GRUB_UTIL]: New field embed.
23578 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23579 (setup): Use ->embed.
23581 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23583 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23585 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23586 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23588 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23590 Add function to get completions from usage.
23592 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23593 completions from usage. Use LC_ALL=C to get options properly.
23595 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23597 * grub-core/gnulib/basename-lgpl.c: Imported.
23598 * grub-core/gnulib/basename.c: Likewise.
23599 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23600 * grub-core/gnulib/dirname.c: Likewise.
23601 * grub-core/gnulib/dirname.h: Likewise.
23602 * grub-core/gnulib/stripslash.c: Likewise.
23604 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23606 * grub-core/gnulib/error.c: Resynced.
23607 * grub-core/gnulib/getopt.c: Likewise.
23608 * grub-core/gnulib/getopt_int.h: Likewise.
23609 * grub-core/gnulib/regex.h: Likewise.
23610 * grub-core/gnulib/regex_internal.c: Likewise.
23611 * grub-core/gnulib/regex_internal.h: Likewise.
23613 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23615 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23616 CRC calculations and validity checks.
23617 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23620 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23622 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23624 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23626 Fix incorrect echo options handling.
23627 Reported by: Yves Blusseau.
23629 * include/grub/command.h (grub_command_flags_t): New flags
23630 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23631 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23632 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23634 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23636 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23638 (GRUB_COMMAND_FLAG_MENU): Likewise.
23639 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23640 (GRUB_COMMAND_FLAG_TITLE): Removed.
23641 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23642 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23643 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23644 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23645 (grub_command_flags_t): New enum. All users updated.
23647 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23649 Fix solaris compilation.
23651 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23652 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23653 (grub-emu-list): Likewise.
23655 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23657 Remove deprecated root command.
23659 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23662 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23664 * util/i386/pc/grub-setup.c: Merge this ...
23665 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23666 * util/grub-setup.c: ... into this.
23667 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23670 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23672 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23675 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23677 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23680 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23682 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23683 explicit root argument to set to prevent UUID to be interpreted as
23686 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23688 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23690 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23692 Don't export grub_gate_a20.
23694 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23695 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23697 (grub_gate_a20): ... this. All users updated.
23698 * include/grub/i386/pc/init.h: Removed. All users updated.
23700 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23702 Create euro.pf2 which supports most European languages.
23704 * Makefile.am (grubdata_DATA): Add euro.pf2.
23705 (euro.pf2): New target.
23706 (CLEANFILES): Add euro.pf2.
23708 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23710 * configure.ac: Disable emu-usb by default to prevent inadvertent
23713 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23715 Disable usbserial on grub-emu since our libusb code isn't good enough
23718 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23719 (usbserial_pl2303): Likewise.
23720 (usbserial_ftdi): Likewise.
23722 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23724 * include/grub/disk.h (grub_disk): Remove has_partitions.
23726 * disk/loopback.c (grub_loopback): Remove has_partitions.
23728 (options): Remove partitions. All users updated.
23729 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23730 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23731 actual partition table is found.
23733 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23735 Remove readability checks (too many false negatives).
23737 * util/grub-install.in: Remove readability checks.
23738 * util/grub-mkconfig.in: Likewise.
23739 * util/grub.d/10_hurd.in: Likewise.
23740 * util/grub.d/10_kfreebsd.in: Likewise.
23741 * util/grub.d/10_linux.in: Likewise.
23742 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23745 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23747 Enable acpi shutdown on all ACPI platforms.
23749 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23750 on coreboo, multiboot and EFI.
23751 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23752 (grub_acpi_halt): Likewise.
23753 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23754 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23755 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23756 * grub-core/lib/i386/halt.c (grub_halt)
23757 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23759 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23761 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23764 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23766 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23767 * grub-core/video/efi_uga.c: Likewise.
23769 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23771 Filter devaliases and never open same device twice.
23773 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23774 (last_ihandle): Likewise.
23775 (ofdisk_hash_ent): New member shortest.
23776 (ofdisk_hash_add): Add canonical path too.
23777 (scan): New function.
23778 (grub_ofdisk_iterate): Iterate over hashed entries.
23779 (compute_dev_path): Don't add :0.
23780 (grub_ofdisk_open): Don't really open the disk.
23781 (grub_ofdisk_close): Avoid closing unrelated disk.
23782 (grub_ofdisk_read): Implement reopen logic.
23783 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23785 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23788 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23792 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23793 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23794 right address. Add sparc64_ieee1275_ldflags.
23795 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23796 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23797 to grub_host_to_target_addr
23798 (load_image): Likewise.
23800 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23802 * grub-core/normal/completion.c (complete_file): Handle device
23804 Fix based on patch by Doug Nazar.
23806 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23808 grub-mknetdir script.
23810 * Makefile.util.def (grub-mknetdir): New module.
23811 * tests/util/grub-shell.in: Support boot=net
23812 * util/grub-mknetdir.in: New file.
23814 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23816 videoinfo on non-vbe.
23818 * grub-core/Makefile.core.def (vbeinfo): Removed.
23819 (vbetest): Removed.
23820 (videoinfo): New module.
23821 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23822 * grub-core/commands/i386/pc/vbetest.c: Removed.
23823 * grub-core/commands/videoinfo.c: New file.
23824 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23826 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23828 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23829 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23830 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23831 mode_number. New parameter mode. All users updated.
23832 (grub_video_gop_iterate): New function.
23833 (grub_video_efi_gop): New member iterate.
23834 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23835 (grub_vbe_set_video_mode): Remove setting useless fields.
23836 (vbe2videoinfo): New function.
23837 (grub_video_vbe_iterate): Likewise.
23838 (grub_video_vbe_setup): Use vbe2videoinfo.
23839 (grub_video_vbe_print_adapter_specific_info): New function.
23840 (grub_video_vbe_adapter): New fields iterate and
23841 print_adapter_specific_info.
23842 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23844 (grub_video_mode_info): New field mode_number.
23845 (grub_video_adapter): New fields iterate and
23846 print_adapter_specific_info.
23848 2010-09-13 Tristan Gingold <gingold@free.fr>
23849 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23850 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23852 * grub-core/commands/efi/lsefisystab.c: New file.
23853 * grub-core/commands/efi/lssal.c: Likewise.
23854 * grub-core/Makefile.core.def (lsacpi): New module.
23855 (lsefisystab): Likewise.
23856 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23857 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23858 (grub_efi_sal_system_table): New struct.
23859 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23860 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23861 (grub_efi_sal_system_table_platform_features): Likewise.
23862 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23863 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23864 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23865 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23867 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23869 Support explicit user claim that a device is BIOS-visible.
23871 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23872 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23873 * grub-core/kern/emu/hostdisk.c
23874 (convert_system_partition_to_system_disk): Support mdX.
23875 (find_system_device): New parameter add. All users updated.
23876 (grub_util_biosdisk_is_present): New function.
23877 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23880 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23882 Search hints support.
23884 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23887 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23889 Bash completion script for util commands
23891 * Makefile.am: Add util/bash-completion.d directory
23892 * configure.ac: Likewise.
23893 * util/bash-completion.d/Makefile.am: New file.
23894 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23896 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23898 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23899 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23900 Reported by: Yves Blusseau.
23902 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23904 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23905 partition size and offset.
23907 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23909 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23911 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23913 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23915 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23917 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23918 (grub_xvasprintf): Likewise.
23920 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23922 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23924 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23926 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23927 args ending with NULL.
23929 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23931 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23934 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23936 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23938 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23940 Shutdown using ACPI.
23942 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23943 * grub-core/commands/acpihalt.c: New file.
23944 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23945 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23946 (grub_acpi_halt): New proto.
23947 (GRUB_ACPI_SLP_EN): New const.
23948 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23949 (GRUB_ACPI_OPCODE_*): New enum.
23950 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23952 2010-09-11 Tristan Gingold <gingold@free.fr>
23953 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23954 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23956 * commands/lsacpi.c: New file.
23957 * grub-core/Makefile.core.def (lsacpi): New module.
23958 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23959 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23960 (grub_acpi_madt_entry_header): New struct.
23961 (grub_acpi_madt): Likewise.
23962 (grub_acpi_madt_entry_interrupt_override): Likewise.
23963 (grub_acpi_madt_entry_sapic): Likewise.
23964 (grub_acpi_madt_entry_lsapic): Likewise.
23965 (grub_acpi_madt_entry_platform_int_source): Likewise.
23966 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23967 (PRIuGRUB_UINT32_T): Likewise.
23968 (PRIxGRUB_UINT64_T): Likewise.
23970 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23972 Implement loading palette on ieee1275_fb.
23974 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23975 (have_setcolors): Likewise.
23976 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23977 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23978 (grub_video_ieee1275_set_palette): Implement.
23980 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23981 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23983 * util/grub-install.in (grub_partition): New variable.
23984 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23985 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23986 Fixes a bug reported by Yves Blusseau.
23988 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23992 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23993 =grub_cpu_flush_cache on all mips and not only yeeloong.
23994 * configure.ac (COND_mips): New conditional.
23995 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23997 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23998 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23999 [GRUB_LINKER_HAVE_INIT]: New function.
24000 (grub_emu_post_init): Likewise.
24001 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24002 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24003 * include/grub/cache.h (_mips): Include mips/cache.h.
24004 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24005 LVM and RAID prototypes.
24006 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24007 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24010 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24012 * util/grub-install.in: Don't try to verify core.img until after
24013 running grub-mkimage to create it.
24015 2010-09-10 Robert Millan <rmh@gnu.org>
24017 * util/grub.d/10_hurd.in: Add misc readability checks.
24018 * util/grub.d/10_kfreebsd.in: Likewise.
24019 * util/grub.d/10_linux.in: Likewise.
24021 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24023 * util/grub-install.in: ${imgext} won't be defined here until the
24024 install branch is merged. For the meantime, only verify core.img on
24025 i386-pc and sparc64-ieee1275 platforms.
24027 2010-09-10 Robert Millan <rmh@gnu.org>
24029 Solaris support in grub_find_zpool_from_dir(). Thanks
24030 Seth Goldberg for referring to getextmntent() facility.
24032 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24034 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24036 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24037 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24038 method for finding zpool name.
24040 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24042 grub-fstest needs the host and hostfs modules while other utilities
24043 actively require those modules to be absent, so grub-fstest needs
24044 its own initialisation and finalisation code.
24046 * Makefile.am (grub_fstest.pp): New target.
24047 (grub_fstest_init.lst): Likewise.
24048 (grub_fstest_init.c): Likewise.
24049 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24051 2010-09-10 Robert Millan <rmh@gnu.org>
24053 * configure.ac: Check for `struct statfs.f_fstypename' and
24054 `struct statfs.f_mntfromname'.
24056 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24057 kFreeBSD-specific code.
24059 2010-09-10 Robert Millan <rmh@gnu.org>
24061 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24062 on ZFS. Now non-main filesystems are supported as / too.
24064 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24066 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24067 and grub-core/disk/host.c to ...
24068 (grub-fstest): ... here. Having the host disk implementation
24069 present confuses grub-probe and other utility programs.
24071 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24072 when writing to a file, not when writing to stdout.
24074 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24076 * tests/partmap_test.in: New test for partitions.
24077 * Makefile.util.def: Rules for new test.
24079 2010-09-09 Robert Millan <rmh@gnu.org>
24081 * util/grub-probe.c (probe): Fix a pair of unhandled error
24084 2010-09-09 Robert Millan <rmh@gnu.org>
24086 Basic Btrfs support (detection and UUID).
24088 * grub-core/fs/btrfs.c: New file.
24089 * Makefile.util.def (library): Register btrfs.c.
24090 * grub-core/Makefile.core.def: Likewise.
24092 2010-09-08 Robert Millan <rmh@gnu.org>
24094 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24095 with (optional) parameters to specify device and relative path.
24096 * util/grub-install.in: Use is_path_readable_by_grub() to
24097 verify readability of a few critical files.
24098 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24099 verify readability of grub.cfg.new.
24101 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24103 Split minix.mod into minix.mod and minix2.mod.
24105 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24106 * grub-core/Makefile.core.def (minix2): New module.
24107 * grub-core/fs/minix.c: Use definitions instead of runtime version
24109 * grub-core/fs/minix2.c: New file.
24111 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24113 Add new --boot-directory option to replace --root-directory
24115 * util/grub-install.in: Add new --boot-directory option
24116 * util/grub-reboot.in: Likewise.
24117 * util/grub-set-default.in: Likewise.
24119 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24121 * util/grub-mkconfig.in: Use new variable.
24123 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24125 * configure.ac: Define some useful variables.
24127 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24129 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24130 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24131 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24132 Use terminfo and don't use cursor-on/cursor-off unless it's known
24134 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24135 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24137 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24139 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24140 starts with "(,", fill the drive containing the loaded image in
24141 between those two characters, but expect that a full partition
24142 specification including partition map names will follow.
24144 2010-09-08 Robert Millan <rmh@gnu.org>
24146 * configure.ac: Remove `--enable-grub-fstest' option.
24147 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24149 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24150 `grub-fstest' instead of `grub-probe' for readability verification.
24151 * util/grub-probe.c (probe): Remove readability verification kludge.
24153 2010-09-08 Robert Millan <rmh@gnu.org>
24155 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24156 initializing `GRUB_FS'.
24158 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24160 Not command (!) support to GRUB script.
24162 * tests/grub_script_not.in: New test.
24163 * Makefile.util.def: Rules for new test.
24165 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24166 ! command as a special case.
24167 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24169 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24171 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24174 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24176 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24178 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24180 * docs/grub.texi (Shell-like scripting): Documentation for break,
24181 continue, shift and return commands.
24183 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24185 Rename CD-ROM to cd on BIOS.
24187 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24189 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24191 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24193 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24194 * util/grub-probe.c (main): Likewise.
24195 * util/i386/pc/grub-setup.c (main): Likewise.
24196 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24197 Reported and debugged by: alexxy
24199 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24201 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24204 2010-09-05 Jo Shields <directhex@apebox.org>
24206 * util/grub.d/30_os-prober.in: Add missing classes.
24208 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24210 * docs/grub.texi (Theme file format): Document new position format.
24212 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24214 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24215 a table. Use @code instead of @verbatim.
24217 2010-09-05 Colin D Bennett <colin@gibibit.com>
24219 Gfxmenu documentation.
24221 * docs/grub.texi (Theme file format): New chapter.
24223 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24225 * grub-core/Makefile.core.def (xzio): New module.
24226 * grub-core/io/xzio.c: New file.
24227 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24228 * grub-core/lib/xzembed/xz_config.h: Likewise.
24229 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24230 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24231 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24232 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24233 * grub-core/lib/xzembed/xz_private.h: Likewise.
24234 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24235 * include/grub/file.h (grub_file_filter_id): New compression filter
24236 GRUB_FILE_FILTER_XZIO.
24238 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24240 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24241 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24244 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24246 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24247 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24249 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24251 Uncompressed checksum support.
24253 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24254 (check_list): New parameter uncompress.
24255 (grub_cmd_hashsum): Handle --uncompress.
24257 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24259 Reintroduce testload.
24261 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24263 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24264 (GRUB_MOD_INIT): New function.
24265 (GRUB_MOD_FINI): Likewise.
24266 * grub-core/Makefile.core.def (testload): New module.
24268 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24270 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24271 (uint8_t): New type.
24272 (uint16_t): Likewise.
24273 (uint32_t): Likewise.
24274 (uint64_t): Likewise.
24276 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24278 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24280 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24282 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24284 (grub_gzfile_open): Removed. All users updated.
24285 (GRUB_MOD_INIT): New function.
24286 (GRUB_MOD_FINI): Likewise.
24287 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24288 (grub_file_filters_enabled): Likewise.
24289 (grub_file_open): Handle filters.
24290 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24291 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24292 * include/grub/file.h (grub_file_filter_id_t): New type.
24293 (grub_file_filter_t): Likewise.
24294 (grub_file_filters_all): New extern variable.
24295 (grub_file_filters_enabled): Likewise.
24296 (grub_file_filter_register): New inline function.
24297 (grub_file_filter_unregister): Likewise.
24298 (grub_file_filter_disable): Likewise.
24299 (grub_file_filter_disable_compression): Likewise.
24300 * include/grub/gzio.h: Removed.
24302 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24304 Filename expansion support for wildcards in GRUB script.
24306 * tests/grub_script_expansion.in: New test.
24307 * Makefile.util.def: Rule for new test.
24309 * grub-core/commands/wildcard.c: New file, implements filename
24310 expansion support for GRUB script.
24311 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24312 * grub-core/script/argv.c: Cosmetic changes.
24313 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24314 Refactored to perform wildcard expansion on arguments.
24315 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24318 * tests/util/grub-shell.in: Fix quoting for read input.
24320 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24322 Support for updating environment variables with matched substrings
24325 * tests/grub_cmd_regexp.in: New test.
24326 * Makefile.util.def: Rule for new test.
24328 * grub-core/commands/regexp.c: New option -s to update environment
24329 variables with regexp matches.
24331 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24333 * include/grub/file.h (grub_file): New member not_easly_seekable.
24334 (grub_file_seekable): New inline function.
24335 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24337 (grub_gzio_open): Set not_easly_seekable.
24338 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24339 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24341 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24343 Support for options to appear multiple times on cmdline.
24345 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24346 * grub-core/commands/extcmd.c: Support for repeatable option.
24347 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24348 repeatable option support.
24350 Refactor menuentry into a regular command.
24352 * grub-core/commands/menuentry.c: New file, menuentry command
24354 * grub-core/Makefile.core.def: Rule update for normal.mod.
24355 * grub-core/normal/main.c: Moved menuentry creation to
24356 grub-core/commands/menuentry.c.
24357 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24358 (grub_menu_execute_entry_real): Removed.
24359 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24361 (grub_script_execute_menuentry): Removed.
24362 * grub-core/script/parser.y (menuentry): Removed.
24363 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24364 * grub-core/script/yylex.l (menuentry): Removed.
24365 * include/grub/menu.h (grub_menu_init): New prototype.
24366 (grub_menu_fini): New prototype.
24367 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24368 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24369 (grub_script_execute_sourcecode): New prototype.
24371 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24373 "return" command for GRUB script functions.
24375 * tests/grub_script_return.in: New test.
24376 * Makefile.util.def: Rules for new test.
24378 * grub-core/script/execute.c (grub_script_return): New function.
24379 * grub-core/script/main.c: Register/unregister return commaond.
24380 * include/grub/script_sh.h (grub_script_return): New prototype.
24382 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24384 "setparams" command to update positional parameters.
24386 * tests/grub_script_setparams.in: New test.
24387 * Makefile.util.def: Rules for new test.
24389 * grub-core/script/argv.c (grub_script_argv_make): New function.
24390 * grub-core/script/execute.c (replace_scope): New function.
24391 (grub_script_setparams): New function.
24392 * grub-core/script/lexer.c: Remove unused variables.
24393 * grub-core/script/main.c: Register/unregister setparams command.
24394 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24395 (grub_script_setparams): New prototype.
24397 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24399 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24402 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24404 Support for passing block of commands as an argument to extcmds.
24406 * Makefile.util.def: Rules for new test.
24407 * tests/grub_script_blockarg.in: New test.
24408 * grub-core/tests/test_blockarg.c: New file, block argument
24409 command used in the test.
24411 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24412 (grub_register_extcmd_prio): New function prototype.
24413 (grub_extcmd_dispatcher): New function prototype.
24414 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24416 * include/grub/script_sh.h (struct grub_script): New members
24417 `children', `next_siblings' and `refcnt' for block arguments and
24418 reference counting.
24419 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24420 (grub_script_arg): New member `script' for block argument.
24421 (grub_script_argv): New member `script' for block argument.
24422 (grub_parser_param): New member `scripts' for block argument.
24423 (grub_script_mem_free): New extern function prototype.
24424 (grub_script_ref): New function prototype.
24425 (grub_script_unref): New function prototype.
24427 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24428 extcmd form to support block arguments.
24429 * grub-core/script/argv.c: Block arguments support.
24430 * grub-core/script/execute.c: Likewise.
24431 * grub-core/script/lexer.c: Likewise.
24432 * grub-core/script/main.c: Likewise.
24433 * grub-core/script/script.c: Likewise.
24434 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24437 * grub-core/commands/acpi.c: Update extcmd implementations with
24438 grub_extcmd_context_t.
24439 * grub-core/commands/cat.c: Likewise.
24440 * grub-core/commands/echo.c: Likewise.
24441 * grub-core/commands/extcmd.c: Likewise.
24442 * grub-core/commands/hashsum.c: Likewise.
24443 * grub-core/commands/hdparm.c: Likewise.
24444 * grub-core/commands/help.c: Likewise.
24445 * grub-core/commands/hexdump.c: Likewise.
24446 * grub-core/commands/i386/cpuid.c: Likewise.
24447 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24448 * grub-core/commands/i386/pc/halt.c: Likewise.
24449 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24450 * grub-core/commands/iorw.c: Likewise.
24451 * grub-core/commands/keystatus.c: Likewise.
24452 * grub-core/commands/loadenv.c: Likewise.
24453 * grub-core/commands/ls.c: Likewise.
24454 * grub-core/commands/lspci.c: Likewise.
24455 * grub-core/commands/memrw.c: Likewise.
24456 * grub-core/commands/probe.c: Likewise.
24457 * grub-core/commands/search_wrap.c: Likewise.
24458 * grub-core/commands/setpci.c: Likewise.
24459 * grub-core/commands/sleep.c: Likewise.
24460 * grub-core/disk/loopback.c: Likewise.
24461 * grub-core/hello/hello.c: Likewise.
24462 * grub-core/loader/i386/bsd.c: Likewise.
24463 * grub-core/loader/xnu.c: Likewise.
24464 * grub-core/term/gfxterm.c: Likewise.
24465 * grub-core/term/serial.c: Likewise.
24466 * grub-core/tests/lib/functional_test.c: Likewise.
24468 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24470 Multi-line quoted strings support.
24472 * grub-core/script/lexer.c (append_newline): Removed.
24473 (grub_script_lexer_yywrap): Refactored.
24474 (grub_script_lexer_init): Refactored.
24475 * grub-core/script/yylex.l (yywrap): New function.
24476 (grub_lexer_resplit): New function.
24477 (grub_lexer_unput): New function.
24478 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24480 * tests/grub_script_echo1.in: Added few more testcases.
24482 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24484 * grub-core/kern/misc.c: Don't add abort alias in utils.
24485 Reported by: echoline.
24487 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24489 Add missing files into "make dist" tarball for other platforms.
24491 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24492 * conf/Makefile.common (dist_noinst_DATA): New variable.
24493 * conf/Makefile.extra-dist: Added missing make dist files.
24494 * grub-core/Makefile.core.def: Likewise.
24496 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24498 Compress grub_prefix.
24500 * grub-core/boot/i386/pc/lnxboot.S: Use
24501 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24502 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24503 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24504 GRUB_MACHINE_PREFIX_END. All users updated.
24505 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24506 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24508 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24509 * util/grub-mkimage.c (image_target_desc): Change data_end to
24510 prefix_end. All users updated.
24512 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24514 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24516 (grub_openbsd_boot): Likewise.
24517 (grub_netbsd_boot): Likewise.
24518 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24519 (grub_xnu_boot): Likewise.
24521 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24523 * configure.ac: Clean LIBS variable after tests.
24525 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24527 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24529 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24531 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24532 echo if libdevmapper will be used.
24534 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24536 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24537 constant for the same file.
24539 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24541 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24543 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24545 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24548 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24550 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24551 required by the boot protocol.
24553 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24554 ebp and edi members.
24555 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24556 state.ebp and state.edi.
24557 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24558 %ebp and %edi according to grub_relocator32_ebp and
24559 grub_relocator32_edi respectively.
24560 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24563 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24565 Add i386-pc-pxe image target.
24567 * util/grub-mkimage.c (image_target_desc): New enum value
24569 (image_targets): New target i386-pc-pxe.
24570 (generate_image): Handle i386-pc-pxe image.
24572 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24576 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24577 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24579 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24580 (grub_pxe_pxenv): Correct type.
24582 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24584 * NEWS: Document most of the important changes since 1.98.
24586 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24588 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24589 generated manual page) a little.
24591 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24593 * docs/grub.texi: Add myself as an author.
24595 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24597 * Makefile.util.def (libgrub.a): Add missing sunpc.
24598 Reported by: Seth Goldberg.
24600 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24602 Interrupt wrapping and code simplifications.
24604 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24605 x86_noieee1275 which are functionaly equivalent in this case.
24606 (grub-install): Make source on each platform explicit. Enable on
24608 * gentpl.py (x86_efi_pc): Removed group.
24609 (x86_noefi): Likewise.
24610 (i386_noefi): Likewise.
24611 (x86_noieee1275): Likewise.
24612 (i386_noieee1275): Likewise.
24613 (i386_noefi_noieee1275): Likewise.
24614 (i386_pc_qemu_coreboot): Likewise.
24615 (i386_coreboot_multiboot): Likewise.
24616 (i386_pc_coreboot_multiboot_qemu): Likewise.
24617 (x86_noefi_mips): Likewise.
24618 (noieee1275): Likewise.
24619 (ieee1275_mips): Likewise.
24620 (noemu_noieee1275): Likewise.
24623 (videoinkernel): Likewise.
24624 (videomodules): Likewise.
24625 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24626 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24627 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24628 include/grub/loader.h, include/grub/msdos_partition.h,
24629 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24630 include/grub/machine/console.h, include/grub/machine/vga.h,
24631 include/grub/machine/vbe.h, include/grub/machine/init.h,
24632 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24633 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24634 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24635 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24636 * grub-core/Makefile.core.def (kernel): Explicit the source for
24637 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24638 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24639 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24640 Use videoinkernel tag.
24641 (usb): Enable on all usb.
24642 (usbserial_common): Likewise.
24643 (usbserial_pl2303): Likewise.
24644 (usbserial_ftdi): Likewise.
24645 (uhci): Enable on all x86.
24646 (ohci): Enable on all pci.
24647 (cmostest): Enable on all CMOS.
24648 (acpi): Include commands/acpi.c on all platforms.
24649 (halt): Add relevant lib/*/halt.c.
24650 (hdparm): Enable on all pci.
24652 (usbtest): Enable on all usb.
24653 (ata): Enable on all pci.
24654 (ata_pthru): Likewise.
24655 (usbms): Enable on all usb.
24656 (usb_keyboard): Likewise.
24657 (font): Use tag videomodules.
24659 (datetime): Use tag cmos. Enable on all noemu.
24660 (mmap): Use tags common and x86.
24661 (gfxterm): Use tag videomodules.
24662 (bitmap): Likewise.
24663 (bitmap_scale): Likewise.
24664 (video_fb): Likewise.
24666 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24667 adjust padding accordingly. All users updated.
24668 (grub_ohci_transaction): Fix bad format specification.
24669 (GRUB_MOD_INIT): Add asserts for struct size.
24670 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24671 (grub_alloc_td): Likewise.
24672 (grub_free_queue): Likewise.
24673 (grub_uhci_transfer): Likewise.
24674 (grub_uhci_transaction): Fix bad format specification.
24675 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24676 (grub_usb_bulk_readwrite): Likewise.
24677 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24678 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24680 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24682 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24683 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24684 Transformed into C.
24685 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24686 Moved from here ...
24687 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24688 ... here. Transformed into C. Made static.
24689 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24690 Moved from here ...
24691 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24692 ... here. Transformed into C. Made static.
24693 * grub-core/kern/i386/pc/startup.S
24694 (grub_biosdisk_check_int13_extensions): Moved from here ...
24695 * grub-core/disk/i386/pc/biosdisk.c
24696 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24698 * grub-core/kern/i386/pc/startup.S
24699 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24700 * grub-core/disk/i386/pc/biosdisk.c
24701 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24702 Transformed into C. Made static.
24703 * grub-core/kern/i386/pc/startup.S
24704 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24705 * grub-core/disk/i386/pc/biosdisk.c
24706 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24707 Transformed into C. Made static.
24708 * grub-core/kern/i386/pc/startup.S
24709 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24710 * grub-core/disk/i386/pc/biosdisk.c
24711 (grub_biosdisk_get_diskinfo_standard): ... here.
24712 Transformed into C. Made static.
24713 * grub-core/kern/i386/pc/startup.S
24714 (grub_biosdisk_get_num_floppies): Moved from here ...
24715 * grub-core/disk/i386/pc/biosdisk.c
24716 (grub_biosdisk_get_num_floppies): ... here.
24717 Transformed into C. Made static.
24718 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24720 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24721 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24722 Transformed into C. Made static.
24723 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24724 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24725 Transformed into C. Made static.
24726 * grub-core/kern/i386/ieee1275/init.c: Removed.
24727 * grub-core/kern/i386/misc.S: Likewise.
24728 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24729 Splitted from here ...
24730 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24731 Transformed into C. Made static. All users updated.
24732 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24733 Transformed into C. Made static. All users updated.
24734 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24736 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24737 Transformed into C. Made static. All users updated.
24738 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24740 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24741 Transformed into C. Made static. All users updated.
24742 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24743 Removed (replaced by C version).
24744 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24746 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24747 Transformed into C. Made static.
24748 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24750 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24751 ... here. Transformed into C.
24752 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24754 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24755 ... here. Transformed into C.
24756 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24758 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24759 ... here. Transformed into C. Made static.
24760 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24762 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24763 ... here. Transformed into C.
24764 * grub-core/kern/i386/pc/startup.S
24765 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24766 * grub-core/video/i386/pc/vbe.c
24767 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24768 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24770 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24771 ... here. Transformed into C.
24772 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24774 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24775 ... here. Transformed into C.
24776 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24778 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24779 ... here. Transformed into C.
24780 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24782 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24783 ... here. Transformed into C.
24784 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24786 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24787 ... here. Transformed into C. Made static.
24788 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24790 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24791 ... here. Transformed into C. Made static.
24792 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24794 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24795 ... here. Transformed into C. Made static.
24796 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24797 pxe_rm_entry as third argument.
24798 (grub_bios_interrupt): New function.
24799 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24800 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24801 of calling grub_stop.
24802 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24803 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24804 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24805 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24806 * grub-core/lib/i386/halt.c: Moved from here ...
24807 * grub-core/lib/i386/halt.c: ... here.
24808 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24809 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24810 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24812 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24813 * include/grub/i386/coreboot/init.h: Removed.
24814 * include/grub/i386/multiboot/init.h: Likewise.
24815 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24816 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24817 * include/grub/i386/pc/int.h: New file.
24818 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24819 (grub_pxe_scan): Removed.
24820 (grub_pxe_call): Update prototype.
24821 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24823 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24824 * include/grub/i386/qemu/init.h: Removed.
24825 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24827 (grub_halt): Likewise.
24828 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24829 (grub_reboot): Likewise.
24830 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24831 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24832 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24834 2010-08-30 Robert Millan <rmh@gnu.org>
24836 * NEWS: Document addition of ZFS support in `grub-install' and
24839 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24841 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24844 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24846 Remove leftover embedding of font objects.
24848 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24849 * util/grub-install.in (font): Removed.
24850 * util/grub-mkimage.c (generate_image): Remove font support. All users
24853 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24855 Remove leftover embedding of font objects.
24857 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24858 * util/grub-install.in (font): Removed.
24859 * util/grub-mkimage.c (generate_image): Remove font support. All users
24862 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24864 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24865 Reported by: Ian Turner
24867 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24869 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24870 timeout to avoid indefinite boot stalling.
24872 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24874 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24875 (grub_env_write_color_highlight): Likewise.
24877 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24879 * grub-core/normal/term.c (print_more): Return to normal and not
24880 to standard state after printing "---MORE---".
24882 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24884 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24885 Mask out the bit 0x80 since it has other meaning that specifiing color.
24887 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24889 New relocator. Allows for more kernel support and more straightforward
24892 * Makefile.am (BOOTTARGET): New variable.
24893 (QEMU32): Likewise.
24894 (linux.init.x86_64): New target.
24895 (linux.init.i386): Likewise.
24896 (multiboot.elf): Likewise.
24897 (kfreebsd.elf): Likewise.
24898 (kfreebsd.aout): Likewise.
24899 (pc-chainloader.elf): Likewise.
24900 (pc-chainloader.bin): Likewise.
24901 (ntldr.elf): Likewise.
24902 (ntldr.bin): Likewise.
24903 (multiboot2.elf): Likewise.
24904 (kfreebsd.init.x86_64): Likewise.
24905 (kfreebsd.init.i386): Likewise.
24906 (knetbsd.init.i386): Likewise.
24907 (kopenbsd.init.i386): Likewise.
24908 (knetbsd.init.x86_64): Likewise.
24909 (kopenbsd.init.x86_64): Likewise.
24910 (linux-initramfs.i386): Likewise.
24911 (linux-initramfs.x86_64): Likewise.
24912 (kfreebsd-mfsroot.i386.img): Likewise.
24913 (knetbsd.image.i386): Likewise.
24914 (kopenbsd.image.i386): Likewise.
24915 (kopenbsd.image.x86_64): Likewise.
24916 (knetbsd.miniroot-image.i386.img): Likewise.
24917 (kfreebsd-mfsroot.x86_64.img): Likewise.
24918 (knetbsd.image.x86_64): Likewise.
24919 (knetbsd.miniroot-image.x86_64.img): Likewise.
24920 (kfreebsd-mfsroot.i386.gz): Likewise.
24921 (bootcheck-kfreebsd-i386): Likewise.
24922 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24923 (bootcheck-kfreebsd-x86_64): Likewise.
24924 (knetbsd.miniroot-image.i386.gz): Likewise.
24925 (bootcheck-knetbsd-i386): Likewise.
24926 (bootcheck-kopenbsd-i386): Likewise.
24927 (bootcheck-kopenbsd-x86_64): Likewise.
24928 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24929 (bootcheck-knetbsd-x86_64): Likewise.
24930 (bootcheck-linux-i386): Likewise.
24931 (bootcheck-linux-x86_64): Likewise.
24932 (bootcheck-linux16-i386): Likewise.
24933 (bootcheck-linux16-x86_64): Likewise.
24934 (bootcheck-multiboot): Likewise.
24935 (bootcheck-multiboot2): Likewise.
24936 (bootcheck-kfreebsd-aout): Likewise.
24937 (bootcheck-pc-chainloader): Likewise.
24938 (bootcheck-ntldr): Likewise.
24939 (CLEANFILES): Add new targets.
24940 (BOOTCHECKS): New variable.
24941 (.PHONY): Add bootchecks.
24942 (SUCCESSFUL_BOOT_STRING): New variable.
24943 (BOOTCHECK_TIMEOUT): Likewise.
24944 (bootcheck): New target
24945 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24946 * configure.ac: Correct efiemu excuse.
24947 * docs/grub.texi (Supported kernels): New chapter.
24948 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24949 include/grub/mm_private.h. Simplify inclusion of
24950 include/grub/boot.h, include/grub/loader.h
24951 and include/grub/msdos_partition.h
24952 (KERNEL_HEADER_FILES) [i386_coreboot]:
24953 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24954 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24955 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24956 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24957 include/grub/machine/loader.h.
24958 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24959 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24961 (pci.mod): Enable on i386-multiboot.
24962 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24963 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24965 (relocator.mod): Rewritten.
24966 (aout.mod): Enable on all x86.
24967 (bsd.mod): Likewise.
24968 (ntldr.mod): New module.
24969 (linux.mod): Use loader/i386/linux.c on all x86.
24970 (xnu.mod): Enable on all x86.
24971 (vga_text.mod): disable on EFI and QEMU.
24972 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24973 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24974 * grub-core/efiemu/loadcore.c: Likewise.
24975 * grub-core/efiemu/main.c: Likewise.
24976 (grub_efiemu_exit_boot_services): Removed.
24977 (grub_efiemu_finish_boot_services): Likewise.
24978 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24980 * grub-core/efiemu/i386/nocfgtables.c: New file.
24981 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24982 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24983 (grub_efi_finish_boot_services): Moved from here ...
24984 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24985 Fille finish memory map and related data.
24986 (finish_mmap_buf): New variable.
24987 (grub_efi_uintn_t finish_mmap_size): Likewise.
24988 (grub_efi_uintn_t finish_key): Likewise.
24989 (grub_efi_uintn_t finish_desc_size): Likewise.
24990 (grub_efi_uint32_t finish_desc_version): Likewise.
24991 (grub_efi_is_finished): Likewise.
24992 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24994 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24995 (grub_elf64_phdr_iterate): Likewise.
24996 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24997 (grub_os_area_size): Likewise.
24998 (grub_machine_init): Don't reserve os area.
24999 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25000 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25001 * grub-core/kern/i386/loader.S: Removed.
25002 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25003 (grub_os_area_size): Likewise.
25004 (grub_machine_init): Don't reserve os area.
25005 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25006 Don't call grub_dl_unload_all.
25007 Don't include loader.S.
25008 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25009 Declare the memory after _end as available.
25010 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25011 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25012 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25013 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25014 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25015 * include/grub/mm_private.h (grub_mm_header): ... here.
25016 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25017 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25018 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25019 (grub_mm_region): ..here. Removed addr. Added pre_size.
25021 * grub-core/kern/mm.c (base): Renamed to ...
25022 (grub_mm_base): ... this. Made global.
25023 (grub_real_malloc): Alloc from end of region.
25024 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25025 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25026 * grub-core/kern/powerpc/cache_flush.S: ... here.
25027 * grub-core/lib/efi/relocator.c: New file.
25028 * grub-core/lib/i386/relocator.c: Rewritten.
25029 * grub-core/lib/i386/relocator16.S: New file.
25030 * grub-core/lib/i386/relocator32.S: Likewise.
25031 * grub-core/lib/i386/relocator64.S: Likewise.
25032 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25033 * grub-core/lib/i386/relocator_common.S: New file.
25034 * grub-core/lib/ieee1275/relocator.c: Likewise.
25035 * grub-core/lib/mips/relocator.c: Rewritten.
25036 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25037 stylistic adjustments.
25038 * grub-core/lib/powerpc/relocator.c: New file.
25039 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25040 * grub-core/lib/relocator.c: Rewritten.
25041 * grub-core/lib/x86_64/relocator_asm.S: New file.
25042 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25043 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25044 (bsd_tag): New struct.
25045 (tags): New variable.
25046 (tags_last): Likewise.
25047 (netbsd_module): New struct.
25048 (netbsd_mods): New variable.
25049 (netbsd_mods_last): Likewise.
25050 (openbsd_opts): New parameter "serial".
25051 (OPENBSD_SERIAL_ARG): New definition.
25052 (netbsd_opts): New parameter "serial".
25053 (NETBSD_SERIAL_ARG): New definition.
25054 (grub_freebsd_add_meta): Reorganised into ...
25055 (grub_bsd_add_meta): ...this. All users updated.
25056 (grub_freebsd_add_mmap): Reorganised into ...
25057 (generate_e820_mmap): ...this...
25058 (grub_bsd_add_mmap): ...and this. All users updated.
25059 (grub_freebsd_list_modules): Use tags.
25060 (grub_netbsd_add_meta_module): New function.
25061 (grub_netbsd_list_modules): Likewise.
25062 (grub_freebsd_boot): Use relocator and finish EFI.
25063 (grub_openbsd_boot): Likewise.
25064 (grub_netbsd_setup_video): New function.
25065 (grub_netbsd_add_modules): Likewise.
25066 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25068 (grub_bsd_unload): Unload tags.
25069 (grub_bsd_load_aout): Use relocator.
25070 (grub_bsd_elf32_size_hook): New function.
25071 (grub_bsd_elf32_hook): Use relocator.
25072 (grub_bsd_elf64_size_hook): New function.
25073 (grub_bsd_elf64_hook): Use relocator.
25074 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25075 (grub_bsd_load): Zero-out openbsd_ramdisk.
25076 (grub_bsd_load): Use relocator.
25077 (grub_cmd_openbsd): Support serial.
25078 (grub_cmd_netbsd): Support modules.
25079 (grub_cmd_freebsd_module): Use relocator.
25080 (grub_netbsd_module_load): New function.
25081 (grub_cmd_netbsd_module): Likewise.
25082 (grub_cmd_openbsd_ramdisk): Likewise.
25083 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25085 (GRUB_MOD_FINI): Unregister new commands.
25086 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25087 (grub_freebsd_load_elfmodule_obj): Use relocator.
25088 (grub_freebsd_load_elfmodule): Likewise.
25089 (grub_freebsd_load_elf_meta): Likewise.
25090 (grub_netbsd_load_elf_meta): New function.
25091 (grub_openbsd_find_ramdisk): Likewise.
25092 * grub-core/loader/i386/bsd_helper.S: Removed.
25093 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25094 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25095 * grub-core/loader/i386/efi/linux.c: Likewise.
25096 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25097 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25098 (DEFAULT_VIDEO_MODE): Likewise.
25099 (real_mode_target): New variable.
25100 (prot_mode_target): Likewise.
25101 (initrd_mem_target): Likewise.
25102 (relocator): Likewise.
25103 (efi_mmap_buf): Likewise.
25104 (efi_mmap_size): Likewise.
25105 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25106 (free_pages): Use relocator.
25107 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25108 (grub_linux_setup_video): Return error.
25109 (grub_linux_trampoline_start): Removed.
25110 (grub_linux_trampoline_end): Likewise.
25111 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25112 andd video parameters depending on firmware.
25113 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25114 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25115 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25116 (grub_cmd_initrd): Use relocator.
25117 * grub-core/loader/i386/linux_trampoline.S: Removed.
25118 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25119 (elf_sec_entsize): Likewise.
25120 (elf_sec_shstrndx): Likewise.
25121 (elf_sections): Likewise.
25122 (grub_multiboot_load): Use relocator.
25123 (grub_multiboot_get_mbi_size): Account for sections.
25124 (grub_multiboot_make_mbi): Use relocator and support sections.
25125 (grub_multiboot_add_elfsyms): New function.
25126 (grub_multiboot_free_mbi): Free sections.
25127 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25128 (grub_linux_real_target): Likewise.
25129 (grub_linux_real_chunk): Likewise.
25130 (grub_linux16_prot_size): Likewise.
25131 (grub_linux16_boot): Use relocator.
25132 (grub_linux_unload): Unload relocator.
25133 (grub_cmd_linux): Use relocator.
25134 (grub_cmd_initrd): Likewise.
25135 * grub-core/loader/i386/pc/ntldr.c: New file.
25136 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25137 Don't try to guess CPU frequency.
25138 (grub_xnu_set_video): Stretch bitmap.
25139 (grub_xnu_boot): Use relocator.
25140 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25141 (grub_linux_unload): Free relocator.
25142 (grub_linux_load32): Use relocator.
25143 (grub_linux_load64): Likewise.
25144 (grub_cmd_initrd): Likewise.
25145 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25146 (grub_multiboot_unload): Unload relocator.
25147 (grub_cmd_multiboot): Use relocator.
25148 (grub_cmd_module): Likewise.
25149 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25150 Use relocator and support sections.
25151 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25152 (elf_sec_entsize): Likewise.
25153 (elf_sec_shstrndx): Likewise.
25154 (elf_sections): Likewise.
25155 (grub_multiboot_load): Use relocator.
25156 (grub_multiboot_get_mbi_size): Account for sections.
25157 (grub_multiboot_make_mbi): Use relocator and support sections.
25158 (grub_multiboot_add_elfsyms): New function.
25159 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25160 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25161 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25162 Prototype changed. All users updated.
25163 (grub_xnu_align_heap): Simplified.
25164 (grub_xnu_writetree_toheap): Likewise.
25165 (grub_xnu_unload): Unload relocator.
25166 (grub_cmd_xnu_kernel): Use relocator.
25167 (grub_cmd_xnu_kernel64): Likewise.
25168 (grub_xnu_register_memory): Simplified.
25169 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25170 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25172 (grub_console_checkkey): Likewise.
25173 (grub_console_getkey): Likewise.
25174 (grub_console_getwh): Likewise.
25175 (grub_console_getxy): Likewise.
25176 (grub_console_gotoxy): Likewise.
25177 (grub_console_cls): Likewise.
25178 (grub_console_setcolorstate): Likewise.
25179 (grub_console_setcursor): Likewise.
25180 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25181 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25182 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25183 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25184 * grub-core/tests/boot/kernel-8086.S: Likewise.
25185 * grub-core/tests/boot/kernel-i386.S: Likewise.
25186 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25187 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25188 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25189 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25190 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25191 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25192 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25193 * grub-core/tests/boot/linux.cfg: Likewise.
25194 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25195 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25196 * grub-core/tests/boot/linux16.cfg: Likewise.
25197 * grub-core/tests/boot/multiboot.cfg: Likewise.
25198 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25199 * grub-core/tests/boot/ntldr.cfg: Likewise.
25200 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25201 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25202 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25204 * include/grub/dl.h (grub_dl_unload_all): Removed.
25205 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25206 (grub_efi_finish_boot_services): Change prototype.
25207 (grub_efi_is_finished): New variable.
25208 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25210 (grub_efiemu_finish_boot_services): Removed.
25211 (grub_machine_efiemu_init_tables): New prototype.
25212 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25213 (grub_elf64_phdr_iterate): Likewise.
25214 * include/grub/i386/bsd.h: Include relocator.h.
25215 (freebsd_tag_header): New struct.
25216 (grub_openbsd_bios_mmap): Removed.
25217 (grub_unix_real_boot): Removed.
25218 (grub_freebsd_load_elfmodule32): Changed prototype.
25219 (grub_freebsd_load_elfmodule_obj64): Likewise.
25220 (grub_freebsd_load_elf_meta32): Likewise.
25221 (grub_freebsd_load_elf_meta64): Likewise.
25222 (grub_freebsd_add_meta): Removed.
25223 (grub_netbsd_load_elf_meta32): New prototype.
25224 (grub_netbsd_load_elf_meta64): Likewise.
25225 (grub_bsd_add_meta): Likewise.
25226 (grub_openbsd_ramdisk_descriptor): New struct.
25227 (grub_openbsd_find_ramdisk32): New prototype.
25228 (grub_openbsd_find_ramdisk64): Likewise.
25229 * include/grub/i386/coreboot/loader.h: Removed.
25230 * include/grub/i386/efi/loader.h: Likewise.
25231 * include/grub/i386/ieee1275/loader.h: Likewise.
25232 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25234 * include/grub/i386/loader.h: Removed.
25235 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25237 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25238 (grub_phys_addr_t): New type.
25239 (grub_vtop): New inline function.
25240 (grub_map_memory): Likewise.
25241 (grub_unmap_memory): Likewise.
25242 * include/grub/i386/multiboot/loader.h: Removed.
25243 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25244 (NETBSD_BTINFO_CONSOLE): New definition.
25245 (NETBSD_BTINFO_SYMTAB): Likewise.
25246 (NETBSD_BTINFO_MODULES): Likewise.
25247 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25248 (grub_netbsd_bootinfo): New struct.
25249 (grub_netbsd_btinfo_common): Use explicit bitsize.
25250 (grub_netbsd_btinfo_mmap_entry): Removed.
25251 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25252 (grub_netbsd_btinfo_bootdisk): New struct.
25253 (grub_netbsd_btinfo_symtab): Likewise.
25254 (grub_netbsd_btinfo_serial): Likewise.
25255 (grub_netbsd_btinfo_modules): Likewise.
25256 (grub_netbsd_btinfo_framebuf): Likewise.
25257 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25258 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25260 (grub_openbsd_bootargs): Use explicit bitsize.
25261 (grub_openbsd_bootarg_console): New struct.
25262 (GRUB_OPENBSD_COM_MAJOR): New definition.
25263 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25264 * include/grub/i386/pc/efiemu.h: Removed.
25265 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25266 * include/grub/i386/qemu/loader.h: Removed.
25267 * include/grub/i386/relocator.h: Rewritten.
25268 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25269 * include/grub/mips/memory.h: New file.
25270 * include/grub/mips/multiboot.h: Rewritten.
25271 * include/grub/mips/relocator.h: Rewritten.
25272 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25273 (grub_vtop): New function.
25274 (grub_map_memory): Likewise.
25275 (grub_unmap_memory): Likewise.
25276 * include/grub/misc.h (ALIGN_DOWN): New definition.
25277 * include/grub/mm.h (grub_mm_check_real): New proto.
25278 (GRUB_MM_CHECK): New definition.
25279 * include/grub/mm_private.h: New file.
25280 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25281 (grub_multiboot_get_mbi_size): Removed.
25282 (grub_multiboot_make_mbi): Change prottype.
25283 (grub_multiboot_set_accepts_video): New proto.
25284 (grub_multiboot_add_elfsyms): Likewise.
25285 (grub_multiboot_payload_eip): New variable.
25286 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25288 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25290 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25291 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25292 * include/grub/powerpc/ieee1275/loader.h: Removed.
25293 * include/grub/powerpc/memory.h: New file.
25294 * include/grub/powerpc/relocator.h: Likewise.
25295 * include/grub/relocator.h: Likewise.
25296 * include/grub/relocator_private.h: Likewise.
25297 * include/grub/sparc64/ieee1275/loader.h: Removed.
25298 * include/grub/x86_64/memory.h: New file.
25299 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25300 (grub_xnu_heap_malloc): Likewise.
25301 (grub_xnu_heap_real_start): Removed.
25302 (grub_xnu_heap_start): Likewise.
25303 (grub_xnu_relocator): New variable.
25304 (grub_xnu_heap_target_start): Likewise.
25305 * tests/util/grub-shell.in: Support non-pc.
25306 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25308 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25310 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25312 (grub_bidi_logical_to_visual): Check that malloc succeded.
25313 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25315 (grub_xputs_normal): Likewise.
25317 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25319 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25322 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25324 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25326 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25328 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25330 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25332 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25335 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25337 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25339 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25341 * grub-core/normal/term.c (print_more): Fix a memory leak.
25342 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25343 (grub_xputs_normal): Likewise.
25345 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25347 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25348 the begining of the string
25350 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25352 * grub-core/script/script.c (grub_script_parse): Free parsed on
25355 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25357 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25360 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25362 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25365 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25367 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25368 (scroll_up): Fix a memory leak.
25370 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25372 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25375 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25377 Handle USB pendrives exposed as floppies.
25379 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25381 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25382 Check for partitions on all devices.
25384 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25386 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25387 (readkey): Likewise.
25389 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25391 Multiple variable names support to "export" command.
25393 * normal/context.c (grub_cmd_export): "export" command supports
25394 multiple variable names.
25396 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25398 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25399 --target=drive output to Mach device name.
25401 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25403 New Automake based build system for GRUB.
25405 * ABOUT-NLS: New file.
25406 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25407 in Makefile.util.def file.
25408 * Makefile.util.def: New file. Autogen build definitions file for
25410 * conf/Makefile.common: New file. Common variables for GRUB host
25411 utils and target modules.
25412 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25413 * docs/Makefile.am: New file. Automake file for docs.
25414 * gentpl.py: New file. Python script to generate Autogen
25416 * grub-core/Makefile.am: New file. GRUB target modules' rules
25417 that doesn't fit in Makefile.core.def file.
25418 * grub-core/Makefile.core.def: New file. Autogen build
25419 definitions file for GRUB target modules.
25420 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25421 specific setjmp.S file.
25422 * po/Makefile.am: New file.
25424 * .bzrignore: New ignores.
25425 * INSTALL: New requirements, without Ruby.
25426 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25427 * autogen.sh: Updated to invoke autogen as necessary.
25428 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25429 and defines for Automake conditionals.
25430 * geninit.sh: Refactoring.
25432 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25434 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25437 * include/grub/test.h: Fix functional test modules' naming.
25438 * grub-core/tests/example_functional_test.c: Fix test module name.
25440 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25441 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25442 * util/grub-editenv.c: Likewise.
25443 * util/grub-fstest.c: Likewise.
25444 * util/grub-mkdevicemap.c: Likewise.
25445 * util/grub-mkfont.c: Likewise.
25446 * util/grub-mkimage.c: Likewise.
25447 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25448 * util/grub-probe.c: Likewise.
25449 * util/grub-script-check.c: Likewise.
25450 * util/i386/pc/grub-setup.c: Likewise.
25451 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25453 * tests/util/grub-shell.in: Fix override directory path.
25454 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25455 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25457 * util/lvm.c: Update #includes.
25458 * util/raid.c: Likewise.
25459 * util/resolve.c: Likewise.
25460 * grub-core/bus/emu/pci.c: Likewise.
25461 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25462 * grub-core/lib/posix_wrap/string.h: Likewise.
25463 * grub-core/kern/emu/main.c: Likewise.
25465 * grub-core/gensymlist.sh: New file. Script for generating kernel
25467 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25469 * grub-core/gentrigtables.c: Fix unused variable warnings.
25471 * Makefile.in: Removed.
25472 * conf/any-emu.rmk: Removed.
25473 * conf/common.rmk: Removed.
25474 * conf/i386-coreboot.rmk: Removed.
25475 * conf/i386-efi.rmk: Removed.
25476 * conf/i386-ieee1275.rmk: Removed.
25477 * conf/i386-multiboot.rmk: Removed.
25478 * conf/i386-pc.rmk: Removed.
25479 * conf/i386-qemu.rmk: Removed.
25480 * conf/i386.rmk: Removed.
25481 * conf/mips-yeeloong.rmk: Removed.
25482 * conf/mips.rmk: Removed.
25483 * conf/powerpc-ieee1275.rmk: Removed.
25484 * conf/sparc64-ieee1275.rmk: Removed.
25485 * conf/tests.rmk: Removed.
25486 * conf/x86-efi.rmk: Removed.
25487 * conf/x86_64-efi.rmk: Removed.
25488 * gendistlist.sh: Removed.
25489 * geninitheader.sh: Removed.
25490 * genkernsyms.sh.in: Removed.
25491 * genmk.rb: Removed.
25492 * gensymlist.sh.in: Removed.
25493 * mkinstalldirs: Removed.
25495 * grub-core/boot: ... to here.
25497 * grub-core/bus: ... to here.
25498 * commands: Moved ...
25499 * grub-core/commands: ... to here.
25501 * grub-core/disk: ... to here.
25502 * efiemu: Moved ...
25503 * grub-core/efiemu: ... to here.
25505 * grub-core/font: ... to here.
25507 * grub-core/fs: ... to here.
25508 * gencmdlist.sh: Moved ...
25509 * grub-core/gencmdlist.sh: ... to here.
25510 * genemuinit.sh: Moved ...
25511 * grub-core/genemuinit.sh: ... to here.
25512 * genemuinitheader.sh: Moved ...
25513 * grub-core/genemuinitheader.sh: ... to here.
25514 * genfslist.sh: Moved ...
25515 * grub-core/genfslist.sh: ... to here.
25516 * genhandlerlist.sh: Moved ...
25517 * grub-core/genhandlerlist.sh: ... to here.
25518 * genmoddep.awk: Moved ...
25519 * grub-core/genmoddep.awk: ... to here.
25520 * genmodsrc.sh: Moved ...
25521 * grub-core/genmodsrc.sh: ... to here.
25522 * genpartmaplist.sh: Moved ...
25523 * grub-core/genpartmaplist.sh: ... to here.
25524 * genparttoollist.sh: Moved ...
25525 * grub-core/genparttoollist.sh: ... to here.
25526 * genterminallist.sh: Moved ...
25527 * grub-core/genterminallist.sh: ... to here.
25528 * gentrigtables.c: Moved ...
25529 * grub-core/gentrigtables.c: ... to here.
25530 * genvideolist.sh: Moved ...
25531 * grub-core/genvideolist.sh: ... to here.
25532 * gettext: Moved ...
25533 * grub-core/gettext: ... to here.
25534 * gfxmenu: Moved ...
25535 * grub-core/gfxmenu: ... to here.
25536 * gnulib: Moved ...
25537 * grub-core/gnulib: ... to here.
25539 * grub-core/hello: ... to here.
25541 * grub-core/hook: ... to here.
25543 * grub-core/io: ... to here.
25545 * grub-core/kern: ... to here.
25547 * grub-core/lib: ... to here.
25548 * loader: Moved ...
25549 * grub-core/loader: ... to here.
25551 * grub-core/mmap: ... to here.
25552 * normal: Moved ...
25553 * grub-core/normal: ... to here.
25554 * partmap: Moved ...
25555 * grub-core/partmap: ... to here.
25556 * parttool: Moved ...
25557 * grub-core/parttool: ... to here.
25558 * script: Moved ...
25559 * grub-core/script: ... to here.
25561 * grub-core/term: ... to here
25562 * tests/example_functional_test.c: Moved ...
25563 * grub-core/tests/example_functional_test.c: ... to here.
25564 * tests/lib/functional_test.c: Moved ...
25565 * grub-core/tests/lib/functional_test.c: ... to here.
25566 * tests/lib/test.c: Moved ...
25567 * grub-core/tests/lib/test.c: ... to here.
25569 * grub-core/video: ... to here.
25571 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25573 Replace --enable-grub-emu-modules with grub-emu-lite.
25575 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25578 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25579 * kern/emu/full.c: New file. For grub-emu specific initialization.
25580 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25581 * kern/emu/main.c: Call initialization function grub_emu_init.
25583 * Makefile.in: Include grub-emu-lite in install.
25584 * commands/parttool.c: Use grub_no_autoload to differentiate
25585 between grub-emu and grub-emu-lite.
25586 * include/grub/misc.h: New variable grub_no_autoload.
25588 * conf/any-emu.rmk: New rules for grub-emu-lite.
25589 * configure.ac: Remove --enable-grub-emu-modules.
25590 * genmk.rb: Cleanup unnecessary rules.
25591 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25593 * normal/main.c: Don't load list files on grub-emu-lite.
25594 * util/misc.c (grub_arch_sync_caches): Removed.
25596 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25598 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25599 grub-mkimage rather than grub-mkelfimage.
25600 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25602 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25604 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25605 a key after CapsLock or NumLock. It's just a qemu bug.
25607 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25609 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25610 needed by libusb wrapper.
25612 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25614 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25616 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25618 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25619 --nounzip is passed.
25621 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25623 USB hotunplugging and USB serial support.
25625 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25626 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25627 (grub_uhci_transfer): Respect timeout and set *actual.
25628 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25629 non-standard length.
25630 (grub_usb_device_attach): Autoload modules.
25631 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25632 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25633 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25635 (grub_usb_add_hub): Fill nports and children.
25636 (attach_root_port): Receive hub instead of controller.
25637 All users updated. Fill hub->devices.
25638 (grub_usb_root_hub): Allocate hub->devices.
25639 (detach_device): New function.
25640 (poll_nonroot_hub): Fill children and detach devices.
25641 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25642 actual arguments. All users updated.
25643 (grub_usb_bulk_read_extended): New function.
25644 * bus/usb/serial/common.c: New file.
25645 * bus/usb/serial/ftdi.c: Likewise.
25646 * bus/usb/serial/pl2303.c: Likewise.
25647 * commands/terminal.c (handle_command): Support wildcard.
25648 * commands/usbtest.c: Output "Unknown" instead of empty string.
25649 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25650 (usbserial_common_mod_SOURCES): New variable.
25651 (usbserial_common_mod_CFLAGS): Likewise.
25652 (usbserial_common_mod_LDFLAGS): Likewise.
25653 (pkglib_MODULES): Add usbserial_pl2303.mod.
25654 (usbserial_pl2303_mod_SOURCES): New variable.
25655 (usbserial_pl2303_mod_CFLAGS): Likewise.
25656 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25657 (pkglib_MODULES): Add usbserial_ftdi.mod.
25658 (usbserial_ftdi_mod_SOURCES): New variable.
25659 (usbserial_ftdi_mod_CFLAGS): Likewise.
25660 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25661 (pkglib_MODULES): Add serial.mod.
25662 (serial_mod_SOURCES): New variable.
25663 (serial_mod_CFLAGS): Likewise.
25664 (serial_mod_LDFLAGS): Likewise.
25665 * conf/i386-pc.rmk: Likewise.
25666 * conf/mips-yeeloong.rmk: Likewise.
25667 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25668 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25669 * disk/usbms.c (first_available_slot): New variable.
25670 (grub_usbms_attach): Don't reuse free slots due to potential cache
25672 * include/grub/serial.h: Moved to ..
25673 * include/grub/ns8250.h: ...this.
25674 * include/grub/serial.h: New file.
25675 * include/grub/term.h (grub_term_poll_usb): New variable.
25676 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25677 readkey. All users updated.
25678 (grub_terminfo_output_state): Pass term to put.
25679 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25680 (grub_usb_controller_dev): Add timeout and actual arguments to
25681 transfer. All users updated.
25682 (grub_usb_interface): New field detach_data.
25683 (grub_usb_device): New fields children and nports.
25684 (grub_usb_ep_type_t): New type.
25685 (grub_usb_get_ep_type): New function.
25686 (grub_usb_bulk_read_extended): Likewise.
25687 * include/grub/usbdesc.h (grub_usb_desc): New type.
25688 * include/grub/usbserial.h: New file.
25689 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25690 * kern/term.c (grub_term_poll_usb): New variable.
25691 (grub_getkey): Call grub_term_poll_usb if set.
25692 (grub_checkkey): Likewise.
25693 (grub_getkeystatus): Likewise.
25694 * term/serial.c: Moved controller-specific parts to ...
25695 * term/ns8250.c: ... here.
25696 * term/serial.c: Mostly rewritten.
25697 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25700 2010-08-20 Robert Millan <rmh@gnu.org>
25702 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25703 a separate module and maybe other interesting combinations.
25705 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25706 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25707 (kfreebsd_entry): Add generic filesystem module load routine.
25708 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25710 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25712 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25713 "numcenter" (I misunderstood the purpose of this entry).
25714 * docs/grub.texi (sendkey): Likewise.
25716 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25718 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25719 status flag options; simply omitting the option is equivalent and
25720 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25721 (keysym_table): Rename "num5numlock" to "numlock".
25722 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25723 can uniformly say that only the last of multiple `sendkey'
25724 invocations has any effect.
25725 * docs/grub.texi (sendkey): New section.
25727 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25729 * commands/i386/pc/sendkey.c (options): Fix three typos.
25731 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25733 Implement sendkey support.
25735 * commands/i386/pc/sendkey.c: New file.
25736 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25737 (sendkey_mod_SOURCES): New variable.
25738 (sendkey_mod_CFLAGS): Likewise.
25739 (sendkey_mod_LDFLAGS): Likewise.
25741 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25743 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25744 fix warnings from Autoconf.
25746 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25748 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25749 to avoid false positives with some assemblers that output things
25750 like "someprefix_func" as part of their output.
25752 2010-08-15 Robert Millan <rmh@gnu.org>
25754 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25756 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25757 grub_get_libzfs_handle() errors.
25759 2010-08-14 Robert Millan <rmh@gnu.org>
25761 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25762 filesystem is not ZFS.
25764 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25766 Fix for misspelled color names defaulting to black/black (bug
25767 reported by Doug Nazar)
25769 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25770 status to prototype.
25771 * normal/color.c (grub_parse_color_name_pair): Return failure
25773 (grub_env_write_color_normal): Ignore bad color names.
25774 (grub_env_write_color_highlight): Likewise.
25775 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25777 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25779 "shift" command support to GRUB script.
25781 * include/grub/script_sh.h (grub_script_shift): New prototype.
25782 * script/execute.c (grub_script_shift): New function.
25783 * script/main.c (grub_script_init): Register shift command.
25784 (grub_script_fini): Unregister shift command.
25785 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25787 * tests/grub_script_shift.in: New testcase.
25788 * conf/tests.rmk: Rules for new testcase.
25790 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25792 "continue" command support to GRUB script.
25794 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25795 (grub_script_break): Continue support.
25796 * script/main.c (grub_script_init): Register continue command.
25797 (grub_script_fini): Unregister continue command.
25799 * tests/grub_script_continue.in: New testcase.
25800 * conf/tests.rmk: Rules for new testcase.
25802 2010-08-12 BVK Chaitanya <bvk@dbook>
25804 "break" command support to GRUB script.
25806 * conf/common.rmk: Rule updates to grub-script-check.
25807 * include/grub/misc.h (grub_min): New function.
25808 * include/grub/script_sh.h (grub_script_init): New prototype.
25809 (grub_script_fini): New prototype.
25810 (grub_script_break): New prototype.
25811 * script/main.c (grub_script_init): New function.
25812 (grub_script_fini): New function.
25813 * script/execute.c (grub_script_break): New function.
25814 * normal/main.c: Calls to grub_script_{init,fini}.
25815 * util/grub-script-check.c (grub_script_break): New function.
25817 * tests/grub_script_break.in: New testcase.
25818 * conf/tests.rmk: Rules for new test case.
25820 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25822 Function parameters support to GRUB script.
25824 * script/yylex.l (VARIABLE): Regular expression update.
25825 * script/function.c (grub_script_function_call): Moved ...
25826 * script/execute.c (grub_script_function_call): ... to here.
25827 (grub_script_execute_arglist_to_argv): Removed.
25828 (grub_script_arglist_to_argv): New function.
25829 * script/argv.c: New file.
25830 (grub_script_argv_free): New function.
25831 (grub_script_argv_next): Likewise.
25832 (grub_script_argv_append): Likewise.
25833 (grub_script_argv_split_append): Likewise.
25834 * include/grub/script_sh.h (grub_script_argv): New struct.
25835 (grub_script_argv_free): New function.
25836 (grub_script_argv_next): Likewise.
25837 (grub_script_argv_append): Likewise.
25838 (grub_script_argv_split_append): Likewise.
25840 * conf/common.rmk (normal.mod): New source script/argv.c.
25842 * tests/grub_script_echo1.in: More tests.
25843 * tests/grub_script_vars1.in: Likewise.
25844 * tests/grub_script_functions.in: New test case.
25845 * conf/tests.rmk: Rules for new testcase.
25847 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25849 Remove grub_script_cmdblock struct.
25851 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25852 * script/parser.y: Likewise.
25853 * script/execute.c: Rename cmdblock suffix to cmdlist.
25854 * script/script.c: Likewise.
25855 * util/grub-script-check.c: Likewise.
25857 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25859 * .bzrignore: add grub-macho2img
25861 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25863 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25865 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25867 Remove the dump of sm712 initialisation sequence.
25869 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25870 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25871 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25872 (GRUB_VGA_CR_*): Added many registers.
25873 (GRUB_VGA_SR_*): Likewise.
25874 (GRUB_VGA_GR_*): Likewise.
25875 (grub_vga_write_arx): New function.
25876 (grub_video_hw_config): New struct.
25877 (grub_vga_set_geometry): New function.
25878 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25879 GRUB_PCI_CLASS_SUBCLASS_VGA.
25880 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25881 * video/sm712.c (grub_sm712_write_reg): New function
25882 (grub_sm712_read_reg): Likewise.
25883 (grub_sm712_sr_write): Likewise.
25884 (grub_sm712_gr_write): Likewise.
25885 (grub_sm712_cr_write): Likewise.
25886 (grub_sm712_write_arx): Likewise.
25887 (grub_sm712_cr_shadow_write): Likewise.
25888 (grub_sm712_write_dda_lookup): Likewise.
25889 (grub_video_sm712_setup): Initialise the video rather then
25890 blindly replay the dump.
25891 (main) [TEST]: Add a routine to be able to compile as standalone for
25893 * video/sm712_init.c (sm712_init): Removed.
25894 (sm712_sr_seq1): New array.
25895 (sm712_sr_seq2): Likewise.
25897 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25899 * include/grub/vga.h: Add missing grub/pci.h include.
25901 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25903 * util/grub-macho2img.c (main): fix typo
25905 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25907 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25908 (grub_vga_gr_read): Likewise.
25909 (grub_vga_cr_write): Likewise.
25910 (grub_vga_cr_read): Likewise.
25911 (grub_vga_sr_write): Likewise.
25912 (grub_vga_sr_read): Likewise.
25913 (grub_vga_palette_read): Likewise.
25914 (grub_vga_palette_write): Likewise.
25915 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25916 (grub_sm712_sr_read): New function.
25917 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25918 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25920 2010-08-09 Robert Millan <rmh@gnu.org>
25922 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25923 out unused variables on non-ZFS build.
25925 2010-08-08 Robert Millan <rmh@gnu.org>
25927 Fix path generation for sub-filesystems in ZFS.
25929 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25932 2010-08-08 Robert Millan <rmh@gnu.org>
25934 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25936 2010-08-08 Robert Millan <rmh@gnu.org>
25938 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25939 exist, issue a proper error message (rely on `ls' for translated
25942 2010-08-08 Robert Millan <rmh@gnu.org>
25944 Fix grub-probe invocation.
25946 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25948 2010-08-04 Robert Millan <rmh@gnu.org>
25950 * configure.ac: Remove checks for getfsstat() and getmntany().
25951 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25952 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25953 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25954 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25955 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25957 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25958 via find_mount_point_from_dir() and getfsstat() / getmntany().
25960 2010-08-04 Robert Millan <rmh@gnu.org>
25962 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25963 (grub_find_zpool_from_mount_point): Merge into ...
25964 (grub_find_zpool_from_dir): ... this.
25965 * kern/emu/misc.c: Likewise.
25968 (grub_make_system_path_relative_to_its_root): Replace
25969 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25970 with grub_find_zpool_from_dir().
25971 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25973 2010-08-04 Robert Millan <rmh@gnu.org>
25975 Support OpenSolaris in ZFS device resolution.
25977 * configure.ac: Check for getmntany().
25978 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25979 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25982 2010-08-03 Robert Millan <rmh@gnu.org>
25984 Fix grub-emu build.
25986 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25987 * include/grub/emu/misc.h: ... here.
25989 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25990 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25992 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25993 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25994 (grub_get_libzfs_handle): Move to ...
25995 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25996 (grub_get_libzfs_handle): ... here.
25998 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26000 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26001 as command name case.
26003 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26005 * disk/raid.c (insert_array): Select unique numbers for named arrays
26006 as well, for use as keys in the disk cache.
26008 2010-08-01 Robert Millan <rmh@gnu.org>
26010 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26011 kFreeBSD device name, except on ZFS where the filesystem label is
26013 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26014 `/boot/zfs/zpool.cache'.
26015 Set mountfrom kernel variable using ${kfreebsd_device}.
26017 2010-08-01 Robert Millan <rmh@gnu.org>
26019 Make it even harder to use uninitialized `libzfs_handle' (and
26020 make the interface a bit simpler).
26022 * include/grub/util/misc.h (grub_util_init_libzfs)
26023 (libzfs_handle): Remove.
26024 (grub_get_libzfs_handle): New prototype.
26026 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26028 (grub_util_init_libzfs): Remove.
26029 (grub_get_libzfs_handle): New function.
26031 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26032 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26033 accessing `libzfs_handle' directly.
26035 2010-08-01 Robert Millan <rmh@gnu.org>
26037 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26038 (grub_find_zpool_from_mount_point): New function prototypes.
26040 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26041 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26043 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26044 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26045 `static' attribute.
26047 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26048 finding zpool from mount point into ...
26049 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26051 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26052 requested path is part of a ZFS pool, use
26053 grub_find_zpool_from_mount_point() to detect its filesystem name,
26054 and generate a path with `/fsname@path' syntax.
26056 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26058 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26059 (void) rather than () so that this is a proper prototype.
26061 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26063 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26065 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26067 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26068 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26070 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26072 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26074 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26076 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26078 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26080 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26081 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26082 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26083 disable gfxpayload.
26084 (Shell-like scripting): Add real content.
26085 (Serial terminal): Suggest `terminal_input serial; terminal_output
26086 serial' rather than putting the two commands on separate lines,
26087 since console input will be inoperative after the first command.
26088 (menuentry): Document --class, --users, and --hotkey options.
26089 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26090 Vladimir Serbinenko).
26092 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26093 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26095 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26097 2010-08-01 Robert Millan <rmh@gnu.org>
26099 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26100 (grub_find_zpool_from_mount_point): New function prototypes.
26102 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26103 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26105 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26106 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26107 `static' attribute.
26109 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26110 finding zpool from mount point into ...
26111 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26113 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26114 requested path is part of a ZFS pool, use
26115 grub_find_zpool_from_mount_point() to detect its filesystem name,
26116 and generate a path with `/fsname@path' syntax.
26118 2010-08-01 Robert Millan <rmh@gnu.org>
26120 Prevent accidental use of uninitialized libzfs_handle.
26122 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26123 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26124 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26126 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26128 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26129 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26131 2010-08-01 Robert Millan <rmh@gnu.org>
26133 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26135 2010-07-31 Robert Millan <rmh@gnu.org>
26137 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26139 2010-07-31 Robert Millan <rmh@gnu.org>
26141 * kern/emu/misc.c: Add missing license header.
26143 2010-07-31 Robert Millan <rmh@gnu.org>
26145 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26147 * include/grub/util/libnvpair.h: Include `<config.h>'.
26148 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26149 declaring libnvpair prototypes ourselves.
26150 * include/grub/util/libzfs.h: Include `<config.h>'.
26151 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26152 declaring libzfs prototypes ourselves.
26154 (libzfs_handle): Moved to ...
26155 * include/grub/util/misc.h (libzfs_handle): ... here.
26156 Include `<grub/util/libzfs.h>'.
26158 2010-07-30 Robert Millan <rmh@gnu.org>
26160 * include/grub/emu/misc.h: Add missing license header.
26162 2010-07-30 Robert Millan <rmh@gnu.org>
26164 Enable `grub-probe -t device' resolution on ZFS.
26166 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26167 * include/grub/util/libnvpair.h: New file.
26168 * include/grub/util/libzfs.h: New file.
26170 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26171 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26172 `<grub/util/libnvpair.h>'.
26173 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26175 (find_mount_point_from_dir): New static function.
26176 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26178 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26179 find_root_device_from_libzfs() before ressorting to find_root_device().
26181 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26183 * util/misc.c: Include `<grub/util/libzfs.h>'.
26184 (grub_util_init_libzfs): New function.
26185 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26186 [HAVE_LIBZFS] (fini_libzfs): New static function.
26187 (grub_util_init_libzfs): New function.
26188 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26190 2010-07-30 Robert Millan <rmh@gnu.org>
26192 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26193 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26194 `warn_unused_result' attribute.
26195 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26196 (grub_xasprintf, grub_xvasprintf): Likewise.
26197 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26199 2010-07-29 Robert Millan <rmh@gnu.org>
26201 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26202 (probe): Handle `PRINT_FS_LABEL'.
26203 (main): Handle `-t fs_label'.
26205 2010-07-29 Robert Millan <rmh@gnu.org>
26207 * configure.ac: Remove grub-mkisofs checks.
26209 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26211 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26212 Reported by: Lennart Sorensen.
26214 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26216 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26217 prior to terminal_input/terminal_output separation. It's been over 1.5
26218 years and those versions weren't widely deployed.
26220 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26222 * disk/raid.c (insert_array): Don't count named arrays when looking
26223 for unused array numbers.
26224 Reported and tested by: Michael Guntsche.
26226 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26228 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26229 implementation of this so that grub-emu links again, with a note
26230 that this should support hotplugging in the future.
26232 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26234 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26236 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26238 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26240 (grub_loopback_close): Remove empty function.
26241 (grub_loopback_dev): Remove close method.
26243 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26245 Disable EFI cursor when the EFI console becomes inactive.
26247 * term/efi/console.c (grub_efi_console_init): New function.
26248 (grub_efi_console_fini): New function.
26249 (grub_console_term_output): Register init and fini methods.
26251 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26253 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26256 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26258 * disk/loopback.c (grub_loopback): Replace filename with file.
26259 (delete_loopback): Handle new semantics.
26260 (grub_cmd_loopback): Likewise.
26261 (grub_loopback_iterate): Likewise.
26262 (grub_loopback_close): Likewise.
26264 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26266 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26268 Reported by: Tito Keitel.
26270 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26272 * docs/grub.texi (Naming convention): Document new naming convention.
26274 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26275 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26277 Generate device.map in something closer to the old ordering.
26279 * util/deviceiter.c (struct device): New declaration.
26280 (compare_file_names): Rename to ...
26281 (compare_devices): ... this. Sort by kernel name in preference to
26282 the stable by-id name, but keep the latter as a fallback comparison.
26283 Update header comment.
26284 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26285 of `struct device' rather than of plain file names.
26287 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26289 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26292 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26294 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26296 (setv1table): Likewise.
26298 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26300 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26301 removing the homehost if present.
26302 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26303 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26304 removing the homehost if present.
26305 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26307 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26309 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26310 parameter. Set its pointer target to 0.
26311 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26312 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26313 `data_offset' value from the superblock for 1.x metadata.
26314 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26315 data on the device.
26316 (insert_array): Record the start sector of data on the device.
26317 (grub_raid_register): Pass start_sector parameters to
26318 grub_raid_list->detect and insert_array.
26319 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26321 (struct grub_raid): Add start_sector parameter to `detect'.
26323 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26324 __attribute__ ((packed)), leaving a comment.
26325 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26326 (grub_mdraid_detect_09): ... here and ...
26327 (grub_mdraid_detect_1x): ... here.
26329 2010-07-20 Peter Henn <peter.henn@web.de>
26331 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26332 chunk size and disk size, which are already given as sector counts
26333 as distinct from the 0.90 units. Fetch the correct device number
26334 from the role table instead of using the table index.
26336 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26338 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26339 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26340 (WriteMostly1): New macro.
26341 Set array->name to NULL for metadata format 0.90. Add support for
26342 metadata 1.x. Fix some comments.
26343 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26345 * util/getroot.c (grub_util_get_grub_dev): Add support for
26346 /dev/md/name style devices.
26348 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26350 * .bzrignore: Ignore 20_linux_xen.
26352 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26354 * util/import_unicode.py: Remove unnecessary imports.
26356 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26358 Hotplugging and USB hub support.
26360 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26361 (grub_ohci): Likewise.
26362 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26363 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26364 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26365 (GRUB_OHCI_CTRL_EDS): Likewise.
26366 (GRUB_OHCI_BULK_EDS): Likewise.
26367 (GRUB_OHCI_TDS): Likewise.
26368 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26369 (grub_ohci_ed_phys2virt): New function.
26370 (grub_ohci_virt_to_phys): Likewise.
26371 (grub_ohci_td_phys2virt): Likewise.
26372 (grub_ohci_td_virt2phys): Likewise.
26373 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26375 (grub_ohci_find_ed): New function.
26376 (grub_ohci_alloc_td): Likewise.
26377 (grub_ohci_free_td): Likewise.
26378 (grub_ohci_free_tds): Likewise.
26379 (grub_ohci_transfer): Use previously allocated memory.
26380 (grub_ohci_portstatus): Reset status changed bit.
26381 (grub_ohci_detect_dev): Supply status changed.
26382 (grub_ohci_fini_hw): Free memory.
26383 (grub_ohci_restore_hw): Reallocate memory.
26384 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26385 Reset status change.
26386 (grub_uhci_detect_dev): Supply status_change.
26387 * bus/usb/usb.c (attach_hooks): New var.
26388 (grub_usb_device_attach): New function.
26389 (grub_usb_register_attach_hook_class): Likewise.
26390 (grub_usb_unregister_attach_hook_class): Likewise.
26391 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26392 (grub_usb_add_hub): Reset connection changed bit.
26393 (attach_root_port): New function.
26394 (grub_usb_root_hub): Likewise.
26395 (poll_nonroot_hub): Likewise.
26396 (grub_usb_poll_devices): Likewise.
26397 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26398 * disk/usbms.c (grub_usbms_open): Use device hooks.
26399 (grub_usbms_iterate) :Poll devices.
26400 (grub_usbms_finddevs): Split into ...
26401 (grub_usbms_attach): ... this ...
26402 (grub_usbms_attach): ... and this.
26403 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26405 (grub_usb_interface): New fields attached and detach_hook.
26406 (grub_usb_attach_hook_class): New type.
26407 (grub_usb_attach_desc): New struct.
26408 (grub_usb_register_attach_hook_class): New function.
26409 (grub_usb_unregister_attach_hook_class): Likewise.
26410 (grub_usb_poll_devices): Likewise.
26411 (grub_usb_device_attach): Likewise.
26412 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26413 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26415 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26417 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26418 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26419 delta determination style. Works with most NetBSD partitions too.
26421 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26423 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26424 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26426 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26428 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26430 2010-07-14 Anton Blanchard <anton@samba.org>
26432 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26435 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26437 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26439 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26441 * kern/partition.c (grub_partition_check_containment): New function to
26442 check that a partition is physically contained in a parent. Since
26443 offsets are relative (and non-negative), this reduces to checking that
26444 the partition ends before its parent.
26445 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26446 (grub_partition_iterate): Likewise.
26447 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26449 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26450 partitions that start before their parent, and add debug printfs.
26452 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26454 * Makefile.in (.SUFFIX): Spell correctly, as ...
26455 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26456 bare module name without `.mod', e.g. `test') tried to invoke a
26459 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26461 * README: Point to the Info manual.
26463 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26465 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26466 2nd superblock position from partition size.
26468 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26470 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26471 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26472 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26475 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26477 Restructure SCSI .id handling.
26478 Reported and tested by: Aleš Nesrsta.
26480 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26481 (grub_atapi_dev): Changed .name to "ata". New field .id.
26482 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26483 (grub_usbms_dev): New field .id.
26484 * disk/scsi.c (grub_scsi_iterate): Generate name.
26485 (grub_scsi_open): Parse name.
26486 * include/grub/scsi.h (grub_make_scsi_id): New function.
26487 (grub_scsi_dev): Change iterate and open to number instead of naming
26488 busses. All users updated.
26489 (grub_scsi): Remove name. Add .bus.
26491 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26493 * commands/help.c (grub_cmd_help): Fix a typo.
26495 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26497 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26498 Reported and tested by: Colin Watson.
26500 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26502 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26505 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26507 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26509 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26511 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26514 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26516 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26517 and disk/raid6_recover.c.
26518 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26519 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26521 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26523 * term/gfxterm.c (repaint_schedulded): Rename to ...
26524 (repaint_scheduled): ... this. Update all callers.
26525 (repaint_was_schedulded): Rename to ...
26526 (repaint_was_scheduled): ... this. Update all callers.
26528 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26530 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26531 which we expect to be handled by upper layers.
26533 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26535 * bus/usb/usbhub.c: #include time.h header.
26537 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26539 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26540 entry_name also for entries without stat blocks (e.g. ".."); fixes
26541 corruption of the first entry in a directory.
26543 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26545 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26546 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26547 doesn't work otherwise.
26549 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26551 * docs/grub.texi (Features): Update list of supported file systems.
26552 (GNU/Linux): Update for GRUB 2.
26553 (Serial terminal): Remove mention of --disable-serial, which was a
26554 GRUB Legacy configure option. Update instructions to use
26555 `terminal_input' and `terminal_output' rather than `terminal'.
26556 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26557 configuration' and `Installing GRUB using grub-install'.
26558 (Menu entry editor): Update for GRUB 2.
26559 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26560 Document new -a, -u, and -v options.
26561 (initrd): New section.
26562 (initrd16): New section.
26563 (linux): New section.
26564 (linux16): New section.
26565 (search): The `var' argument to `--set' is optional.
26566 (GRUB only offers a rescue shell): Go into a little more detail on
26569 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26571 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26573 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26575 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26576 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26578 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26580 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26581 install_prefix, in line with install_dos_part and install_bsd_part.
26582 Add new prefix variable, which is copied to install_prefix after
26583 comparing core.img in memory with the one read from disk in the
26584 no-embedding case, and use that rather than overwriting
26585 install_prefix immediately when installing to a partition.
26586 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26589 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26591 * configure.ac: Avoid == in test command, it's not portable.
26592 * util/grub.d/30_os-prober.in: Likewise.
26594 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26596 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26598 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26600 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26601 multiple (top-level) partmaps.
26603 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26605 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26606 Reported by: Tino Keitel.
26608 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26610 Bidi and diacritics support.
26612 * Makefile.in (widthspec.bin): New target.
26613 (widthspec.h): Likewise.
26614 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26615 * autogen.sh: Generate unidata.c.
26616 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26617 * commands/ls.c (grub_ls_list_devices): Likewise.
26618 (grub_ls_list_files): Likewise.
26619 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26620 (grub_mini_cmd_lsmod): Likewise.
26621 * commands/read.c: Likewise.
26622 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26623 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26624 * lib/arg.c (grub_arg_show_help): Likewise.
26625 * lib/crypto.c (grub_password_get): Likewise.
26626 * normal/auth.c (grub_username_get): Likewise.
26627 * normal/misc.c (grub_normal_print_device_info): Likewise.
26628 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26629 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26630 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26631 (normal/charset.c_DEPENDENCIES): New variable.
26632 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26633 (pkglib_MODULES): Remove charset.mod.
26634 (charset_mod_SOURCES): Removed.
26635 (charset_mod_CFLAGS): Likewise.
26636 (charset_mod_LDFLAGS): Likewise.
26637 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26638 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26640 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26641 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26642 (kernel_img_HEADERS): Add terminfo.h.
26643 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26644 Fill ->font. Reverse ascii bitmaps.
26645 (grub_font_get_xheight): New function.
26646 * font/font.c (grub_font_get_string_width): Moved from here ...
26647 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26648 * font/font.c (grub_font_draw_string): Moved from here ...
26649 * gfxmenu/font.c (grub_font_draw_string): ... here.
26650 * font/font.c (grub_font_dup_glyph): New function.
26651 (grub_font_blit_glyph): Likewise.
26652 (grub_font_blit_glyph_mirror): Likewise.
26653 (blit_comb): Likewise.
26654 (grub_font_construct_dry_run): Likewise.
26655 (grub_font_get_constructed_device_width): Likewise.
26656 (grub_font_construct_glyph): Likewise.
26657 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26658 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26659 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26660 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26661 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26662 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26663 (grub_font_get_xheight): New proto.
26664 (grub_font_get_constructed_device_width): Likewise.
26665 (grub_font_construct_glyph): Likewise.
26666 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26667 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26668 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26669 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26670 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26671 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26672 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26673 (grub_console_getcharwidth): Likewise.
26674 * include/grub/misc.h (grub_xputs): New proto.
26675 (grub_puts): Inlined.
26676 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26677 (grub_normal_get_line_counter): Removed.
26678 (grub_install_newline_hook): Likewise.
26679 (grub_normal_get_char_counter): New proto.
26680 (grub_normal_reset_more): Likewise.
26681 (grub_xputs_normal): Likewise.
26682 * include/grub/powerpc/ieee1275/console.h: Removed.
26683 * include/grub/sparc64/ieee1275/console.h: Likewise.
26684 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26685 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26686 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26687 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26688 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26689 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26690 (grub_term_input): Pass reference to self. All users updated.
26691 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26692 Pass reference to self. New fields normal_color, highlight_color and
26693 data. All users updated.
26694 (grub_putchar): Removed.
26695 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26696 (grub_unicode_estimate_width): New function.
26697 (grub_term_getcharwidth): Add defaults.
26698 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26699 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26700 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26701 (grub_cls): Remove EXPORT_FUNC.
26702 (grub_setcolorstate): Inline.
26703 (grub_newline_hook): Removed.
26704 * include/grub/terminfo.h: Rewritten. All users updated.
26705 * include/grub/unicode.h: New file.
26706 * include/grub/video.h (grub_video_signed_rect): New type.
26707 * kern/emu/console.c (grub_console_highlight_color): Removed.
26708 (grub_console_normal_color): Likewise.
26709 (grub_console_standard_color): Made static.
26710 (grub_ncurses_putchar): Remove mapping.
26711 (grub_ncurses_getcharwidth): Removed.
26712 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26713 (grub_ncurses_setcolor): Removed.
26714 (grub_ncurses_getcolor): Likewise.
26715 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26716 (grub_console_putchar): ... this.
26717 (grub_console_putchar): Handle argument difference.
26718 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26719 console_init_early and console_init_lately.
26720 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26721 * kern/misc.c (grub_puts): Removed.
26722 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26723 (grub_vsnprintf_real): Remove str = NULL support.
26724 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26725 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26726 * kern/term.c (grub_putcode): Renamed to ...
26727 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26728 (grub_putchar): Removed.
26729 (grub_xputs_dumb): New function.
26730 (grub_xputs): New variable.
26731 * lib/charset.c: Move from here ...
26732 * normal/charset.c: ... to here.
26733 (grub_ucs4_to_utf8): New function.
26734 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26735 (join_types): New variable.
26736 (unpack_join): New function.
26737 (bidi_types): New variable.
26738 (unpack_bidi): New function.
26739 (get_bidi_type): Likewise.
26740 (get_join_type): Likewise.
26741 (is_mirrored): Likewise.
26742 (grub_unicode_get_comb_type): Likewise.
26743 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26744 (is_type_after): Likewise.
26745 (grub_unicode_aglomerate_comb): Likewise.
26746 (bidi_line_wrap): Likewise.
26747 (grub_bidi_line_logical_to_visual): Likewise.
26748 (grub_bidi_logical_to_visual): Likewise.
26749 (grub_unicode_mirror_code): Likewise.
26750 (grub_unicode_shape_code): Likewise.
26751 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26752 Don't use grub_putchar.
26753 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26754 (grub_normal_reader_init): Likewise.
26755 (grub_xputs_saved): New variable.
26756 (GRUB_MOD_INIT): Set grub_xputs.
26757 (GRUB_MOD_FINI): Restore grub_xputs.
26758 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26759 (menu_init): Avoid printing gfxmenu error.
26760 (show_menu): Use grub_normal_get_char_counter.
26761 * normal/menu_entry.c (update_screen): Fix out-of-array.
26762 (complete): Avoid NULL dereferencing.
26763 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26764 * normal/menu_text.c (print_spaces): Removed.
26765 (grub_print_ucs4): Likewise.
26766 (grub_print_message_indented): Use grub_print_ucs4.
26767 (print_message): Use grub_putcode.
26768 (print_entry): Hanlde diacritics.
26769 * normal/term.c (term_state): New type.
26770 (grub_more_lines): Removed.
26771 (term_states): New variable.
26772 (grub_normal_line_counter): Renamed to ..
26773 (grub_normal_char_counter): ...this. All users updated.
26774 (grub_normal_get_line_counter): Renamed to ...
26775 (grub_normal_get_char_counter): ... this.
26776 (grub_normal_reset_more): New function.
26777 (process_newline): Removed.
26778 (print_more): New function.
26779 (grub_install_newline_hook): Removed.
26780 (map_code): New function.
26781 (grub_puts_terminal): Use grub_print_ucs4.
26782 (putglyph): New function.
26783 (putcode_real): Likewise.
26784 (grub_putcode): Use putcode_real.
26785 (get_maxwidth): New function.
26786 (get_startwidth): Likewise.
26787 (print_ucs4_terminal): Likewise.
26788 (find_term_state): Likewise.
26789 (put_glyphs_terminal): Likewise.
26790 (print_backlog): Likewise.
26791 (print_ucs4_real): Likewise.
26792 (grub_print_ucs4): Likewise.
26793 (grub_xputs_normal): Likewise.
26794 * term/efi/console.c (grub_console_putchar): Output diacritics.
26795 (grub_console_getcharwidth): Removed.
26796 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26797 * term/gfxterm.c (clear_char): Free chars.
26798 (scroll_up): Avoid leaking memory.
26799 (grub_gfxterm_putchar): Support diacritics.
26800 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26801 * term/i386/pc/console.c (grub_console_term_output): Declare as
26802 GRUB_TERM_CODE_TYPE_VGA.
26803 * term/i386/pc/vga.c (grub_vga_term): Declare as
26804 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26805 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26806 GRUB_TERM_CODE_TYPE_VGA.
26807 * term/i386/vga_common.c (map_char): Removed.
26808 (grub_console_putchar): Likewise.
26809 (grub_console_getcharwidth): Likewise.
26810 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26811 (colors): Reordered to match terminfo.
26812 (grub_ofconsole_normal_color): Removed.
26813 (grub_ofconsole_writeesc): Likewise.
26814 (grub_ofconsole_highlight_color): Likewise.
26815 (grub_ofconsole_getcharwidth): Likewise.
26816 (grub_ofconsole_setcolorstate): Likewise.
26817 (grub_ofconsole_setcolor): Likewise.
26818 (grub_ofconsole_getcolor): Likewise.
26819 (grub_ofconsole_readkey): Renamed to ...
26820 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26822 (grub_ofconsole_checkkey): Removed.
26823 (grub_ofconsole_getkey): Likewise.
26824 (grub_ofconsole_getxy): Likewise.
26825 (grub_ofconsole_gotoxy): Likewise.
26826 (grub_ofconsole_cls): Likewise.
26827 (grub_ofconsole_refresh): Likewise.
26828 (grub_ofconsole_terminfo_input): New struct.
26829 (grub_ofconsole_terminfo_output): Likewise.
26830 (grub_ofconsole_term_input): Use terminfo.
26831 (grub_ofconsole_term_output): Likewise.
26832 (grub_console_init): Split into ...
26833 (grub_console_init_early): ...this and ...
26834 (grub_console_init_lately): ...this. Use terminfo.
26835 (grub_ofconsole_putchar): Renamed to ...
26836 (put): ... this. Remove mapping.
26837 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26838 * term/serial.c: Simplify using terminfo.
26841 (keep_track): Likewise.
26842 (registered): Likewise.
26843 (input_buf): Likewise.
26844 (npending): Likewise.
26845 (serial_translate_key_sequence): Likewise.
26846 (fill_input_buf): Likewise.
26847 (grub_serial_checkkey): Likewise.
26848 (grub_serial_getkey): Likewise.
26849 (grub_serial_getxy): Likewise.
26850 (grub_serial_gotoxy): Likewise.
26851 (grub_serial_putchar): Likewise.
26852 (grub_serial_cls): Likewise.
26853 (grub_serial_setcolorstate): Likewise.
26854 (grub_serial_setcursor): Likewise.
26855 (serial_hw_init): Use serial_hw_fetch.
26856 (grub_serial_terminfo_input): New variable.
26857 (grub_serial_terminfo_output): Likewise.
26858 (grub_serial_term_input): Use terminfo.
26859 (grub_serial_term_output): Likewise.
26860 * term/terminfo.c (putstr): Use put.
26861 (grub_terminfo_all_free): New function
26862 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26863 (grub_terminfo_output_register): New function.
26864 (grub_terminfo_output_unregister): Likewise.
26865 (grub_terminfo_getxy): Likewise.
26866 (grub_terminfo_readkey): Likewise.
26867 (grub_terminfo_checkkey): Likewise.
26868 (grub_terminfo_getkey): Likewise.
26869 (grub_terminfo_input_init): Likewise.
26870 (print_terminfo): Likewise.
26871 (grub_cmd_terminfo): Handle encoding.
26872 (grub_terminfo_gotoxy): Track position.
26873 (grub_terminfo_cls): Likewise.
26874 (grub_terminfo_putchar): Likewise.
26875 (grub_terminfo_setcolorstate): Handle colors
26876 (grub_terminfo_cursor_on): This ...
26877 (grub_terminfo_cursor_off): ... and this merged into ...
26878 (grub_terminfo_setcursor): ... this.
26879 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26880 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26881 * unicode/BidiMirroring.txt: Likewise.
26882 * unicode/UnicodeData.txt: Likewise.
26883 * unicode/COPYING: Likewise.
26884 * util/grub-editenv.c (grub_putchar): Removed.
26885 (grub_xputs_real): New function.
26886 (grub_xputs): New variable.
26887 * util/grub-fstest.c (grub_putchar): Removed.
26888 (grub_xputs_real): New function.
26889 (grub_xputs): New variable.
26890 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26891 (grub_xputs_real): New function.
26892 (grub_xputs): New variable.
26893 * util/grub-probe.c (grub_putchar): Removed.
26894 (grub_xputs_real): New function.
26895 (grub_xputs): New variable.
26896 * util/grub-script-check.c (grub_putchar): Removed.
26897 (grub_xputs_real): New function.
26898 (grub_xputs): New variable.
26899 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26900 (grub_xputs_real): New function.
26901 (grub_xputs): New variable.
26902 * util/import_unicode.py: New file.
26903 * util/grub-mkfont.c (ft_errmsgs): New array.
26904 (grub_glyph_info): Make bitmap a pointer.
26905 (file_formats): New type WIDTH_SPEC.
26906 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26907 (options): Add width-spec.
26909 (add_char): Renamed to ...
26910 (add_glyph): ... this.
26911 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26912 (glyph_replace): New type.
26913 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26914 (add_char): New function.
26915 (add_subst): Likewise.
26916 (process_cursive): Likewise.
26917 (add_font): Handle GSUB.
26918 (write_font_width_spec): New function.
26919 (main): Sort glyphs.
26920 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26921 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26922 * kern/term.c (grub_cls): Moved from here...
26923 * normal/term.c (grub_cls): ... here.
26925 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26927 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26928 suitable for using within the format argument of printf when
26929 converting grub_size_t.
26930 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26931 "x" to convert grub_size_t arguments.
26933 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26935 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26937 (list_get_minimal_size): Take selection box into account.
26939 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26941 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26944 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26946 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26947 devices when iterating over /dev/disk/by-id; they will be handled
26948 later if appropriate, which they aren't always (e.g. LVM).
26950 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26952 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26953 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26955 (grub_halt): Likewise.
26956 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26958 (grub_halt): Don't return, even if all of shut-down, power-off, and
26961 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26963 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26964 arguments, not three.
26966 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26968 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26969 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26970 LVM-on-RAID is handled correctly.
26972 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26974 * docs/grub.texi (Changes from GRUB Legacy): New section.
26975 (Future): Fix typo.
26977 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26979 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26980 grub.d/README accidentally ends up executable for one reason or
26981 another. Ignore it.
26983 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26985 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26986 (gpt_partition_map_iterate): Support non-512B sectors.
26988 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26990 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26991 Tested by: Seth Goldberg.
26993 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26995 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26996 Properly align mbi.
26997 Reported by: Seth Goldberg.
26999 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27001 * util/grub-mkrescue.in: Avoid module duplication.
27003 2010-07-01 Sean Finney <seanius@seanius.net>
27005 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27007 2010-07-01 Sean Finney <seanius@seanius.net>
27009 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27011 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27013 * disk/lvm.c (grub_lvm_checkvalue): New function.
27014 (grub_lvm_check_flag): Likewise.
27016 2010-07-01 Robert Millan <rmh@gnu.org>
27018 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27019 Support 'p' as partition separator on kernel of FreeBSD (used
27021 (grub_util_biosdisk_get_grub_dev): Likewise.
27023 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27025 Yeeloong firmware port.
27027 * boot/mips/yeeloong/fwstart.S: New file.
27028 * bus/cs5536.c (gpiodump): New const.
27029 (set_io_space): New function.
27030 (set_iod): Likewise.
27031 (set_p2d): Likewise.
27032 (grub_cs5536_init_geode): Likewise.
27033 * commands/mips/yeeloong/lsspd.c: New file.
27034 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27035 (serial_mod_SOURCES): New variable.
27036 (serial_mod_CFLAGS): Likewise.
27037 (serial_mod_LDFLAGS): Likewise.
27038 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27039 term/terminfo.c and term/tparm.c.
27040 (pkglib_IMAGES): Add fwstart.img.
27041 (fwstart_img_SOURCES): New variable.
27042 (fwstart_img_CFLAGS): Likewise.
27043 (fwstart_img_ASFLAGS): Likewise.
27044 (fwstart_img_LDFLAGS): Likewise.
27045 (fwstart_img_FORMAT): Likewise.
27046 (pkglib_MODULES): Add lsspd.mod.
27047 (lsspd_mod_SOURCES): New variable.
27048 (lsspd_mod_CFLAGS): Likewise.
27049 (lsspd_mod_LDFLAGS): Likewise.
27050 (pkglib_MODULES): Add halt.mod.
27051 (halt_mod_SOURCES): New variable.
27052 (halt_mod_CFLAGS): Likewise.
27053 (halt_mod_LDFLAGS): Likewise.
27054 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27055 (serial_mod_SOURCES): Removed.
27056 (serial_mod_CFLAGS): Likewise.
27057 (serial_mod_LDFLAGS): Likewise.
27058 * disk/ata.c (check_device): New function.
27059 (grub_ata_device_initialize): Use check_device.
27060 (grub_ata_iterate): Recheck devices.
27061 (grub_ata_open): Likewise.
27062 (grub_atapi_iterate): Likewise.
27063 (grub_atapi_open): Likewise.
27064 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27065 (GRUB_ATA_CH1_PORT1): Likewise.
27066 (GRUB_ATA_CH0_PORT2): Likewise.
27067 (GRUB_ATA_CH1_PORT2): Likewise.
27068 * include/grub/mips/loongson.h: New file.
27069 * include/grub/mips/yeeloong/ec.h: Likewise.
27070 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27071 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27072 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27073 * include/grub/misc.h (grub_halt): Declare as noreturn.
27074 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27075 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27076 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27077 (UART_ENABLE_DTRRTS): Likewise.
27078 (UART_ENABLE_MODEM): Removed.
27079 (UART_ENABLE_OUT2): New const.
27080 * include/grub/term.h (grub_term_register_input_active): New function.
27081 (grub_term_register_output_active): Likewise.
27082 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27084 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27085 (init_pci): New function.
27086 (grub_machine_init): Execute platform init when firmware. Init serial.
27087 (grub_halt): Implement.
27088 (grub_exit): Likewise.
27089 (grub_reboot): Likewise.
27090 * term/serial.c (serial_hw_init): Update macros.
27091 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27092 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27093 (image_targets): New target mipsel-yeeloong-flash.
27094 (generate_image): Support IMAGE_YEELOONG_FLASH.
27095 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27096 (grub_video_sm712_setup): Init card.
27097 (grub_video_sm712_set_palette): Removed.
27098 * video/sm712_init.c: New file.
27100 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27102 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27103 PATH when running help2man and then run it on the unadorned
27104 executable names, rather than passing $(builddir)/* paths to
27105 help2man. This avoids the build directory ending up in generated
27108 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27110 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27111 to avoid accidents when debugging with 'sh -x'.
27112 * util/grub-mkrescue.in: Likewise.
27113 * util/grub.d/00_header.in: Likewise.
27114 * util/grub.d/10_hurd.in: Likewise.
27115 * util/grub.d/10_kfreebsd.in: Likewise.
27116 * util/grub.d/10_linux.in: Likewise.
27117 * util/grub.d/10_netbsd.in: Likewise.
27118 * util/grub.d/10_windows.in: Likewise.
27119 * util/grub.d/20_linux_xen.in: Likewise.
27120 * util/grub.d/30_os-prober.in: Likewise.
27121 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27123 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27125 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27126 last character in the buffer.
27127 Reported by: Vladimir Serbinenko.
27129 2010-06-29 Robert Millan <rmh@gnu.org>
27131 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27132 (Command-line and menu entry commands): Document `badram' command.
27134 2010-06-28 Robert Millan <rmh@gnu.org>
27136 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27137 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27138 command using ${GRUB_BADRAM} as parameter.
27140 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27142 * docs/grub.texi (Device map): New section.
27143 (Themes): New section (stub).
27144 * Makefile.in (docs/grub.info): The info documentation now builds
27145 without errors. Make sure it stays that way.
27147 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27149 Use normal parser for menu entries.
27150 Reported by: Thomas Frauendorfer
27152 * include/grub/parser.h (grub_parser_execute): Don't export.
27153 * normal/menu.c (grub_menu_execute_entry_real): New function.
27154 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27156 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27158 * docs/grub.texi (Embedded configuration): New section (replacing
27159 old "Preset Menu" stub).
27160 (Images): New section.
27161 (configfile): Note that any menu entries defined in `file' are shown
27164 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27166 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27168 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27170 * util/grub-install.in: Add --debug-image= option.
27172 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27174 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27177 * util/deviceiter.c (check_device): Rename to ...
27178 (check_device_readable_unique): ... this. Update all callers.
27179 Maintain and check a list of which devices (by canonicalized name)
27180 have already been seen.
27181 (clear_seen_devices): New function.
27182 (compare_file_names) [__linux__]: New function.
27183 (grub_util_iterate_devices): Clear the list of seen devices on exit
27184 and (just in case) on entry.
27185 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27186 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27187 seen-devices list, superseded by general code in check_device.
27189 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27191 * commands/cat.c (options): New variable.
27192 (grub_cmd_cat): Parse options. If the --dos option is given, print
27193 DOS-style "\r\n" line endings as simple newlines (Debian bug
27195 (GRUB_MOD_INIT): Use extcmd.
27196 (GRUB_MOD_FINI): Likewise.
27197 * docs/grub.texi (cat): Document --dos.
27199 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27201 XEN with Linux grub-mkconfig support.
27203 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27204 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27205 GRUB_CMDLINE_XEN_DEFAULT.
27206 * util/grub.d/20_linux_xen.in: New file.
27208 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27210 Initialise VGA video on qemu ourselves.
27212 * boot/i386/qemu/boot.S: Don't call 0xc000.
27213 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27214 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27215 (kernel_img_HEADERS): Add pci.h.
27216 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27217 * configure.ac: Force unifont on qemu and yeeloong.
27218 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27219 (grub_vga_palette_write): Use correct register.
27220 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27221 Call grub_qemu_init_cirrus.
27222 * kern/i386/qemu/init.c: New file.
27223 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27225 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27227 2010-06-26 Pavel Roskin <proski@gnu.org>
27229 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27232 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27234 * docs/grub.texi (Simple configuration): Explain that
27235 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27236 set to `true' to disable their respective recovery entries, not
27239 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27241 Make the `source' command slightly faster.
27243 * normal/main.c (grub_normal_execute): Don't re-read list files when
27246 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27248 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27249 field position and mask size to red fields from mode_info, not
27251 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27252 Remove redundant tag->common.framebuffer_type assignment.
27253 Reported by: Seth Goldberg.
27255 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27257 Sync up other versions of the Linux loader with Robert Millan's
27258 change of 2010-01-09, "Make loader output a bit more user-friendly".
27260 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27262 (grub_cmd_linux): Likewise.
27263 (grub_cmd_initrd): Likewise.
27264 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27265 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27267 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27269 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27270 larger than MEMORY_MAP_SIZE.
27272 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27274 Fix parallel build.
27276 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27278 * script/parser.y: #include grub_script.tab.h header.
27280 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27282 Support >3GiB and <16MiB RAM in i386-qemu.
27284 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27285 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27286 (grub_lower_mem): Removed.
27287 (grub_upper_mem): Likewise.
27288 (mem_size): Made static.
27289 (above_4g): New variable.
27290 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27291 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27294 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27296 Cirrus 5446 and Bochs video cards support.
27298 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27300 (video_cirrus_mod_SOURCES): New variable.
27301 (video_cirrus_mod_CFLAGS): Likewise.
27302 (video_cirrus_mod_LDFLAGS): Likewise.
27303 (video_bochs_mod_SOURCES): Likewise.
27304 (video_bochs_mod_CFLAGS): Likewise.
27305 (video_bochs_mod_LDFLAGS): Likewise.
27306 * include/grub/vga.h: New file.
27307 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27308 (grub_video_fb_set_page_t): New type.
27309 (grub_video_fb_setup): New prototype.
27310 (grub_video_fb_swap_buffers): Likewise.
27311 (grub_video_fb_get_info_and_fini): Likewise.
27312 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27313 (CRTC_DATA_PORT): Likewise.
27314 (CRTC_CURSOR): Likewise.
27315 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27316 (CRTC_CURSOR_ADDR_LOW): Likewise.
27317 (CRTC_CURSOR_DISABLE): Likewise.
27318 (update_cursor): Use grub_vga_cr_write.
27319 (grub_vga_text_setcursor): Likewise.
27320 * video/bochs.c: New file.
27321 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27322 (palette): Likewise.
27323 (palette_size): Likewise.
27324 (framebuffer): New variable.
27325 (grub_video_fb_init): Use 'framebuffer'.
27326 (grub_video_fb_fini): Likewise.
27327 (grub_video_fb_get_info): Likewise.
27328 (grub_video_fb_get_palette): Likewise.
27329 (grub_video_fb_set_palette): Likewise.
27330 (grub_video_fb_set_viewport): Likewise.
27331 (grub_video_fb_get_viewport): Likewise.
27332 (grub_video_fb_map_color): Likewise.
27333 (grub_video_fb_map_rgb): Likewise.
27334 (grub_video_fb_map_rgba): Likewise.
27335 (grub_video_fb_unmap_color): Likewise.
27336 (grub_video_fb_unmap_color_int): Likewise.
27337 (grub_video_fb_fill_rect): Likewise.
27338 (grub_video_fb_blit_bitmap): Likewise.
27339 (grub_video_fb_blit_render_target): Likewise.
27340 (grub_video_fb_scroll): Likewise.
27341 (grub_video_fb_create_render_target): Likewise.
27342 (grub_video_fb_doublebuf_blit_init): Likewise.
27343 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27344 (doublebuf_pageflipping_update_screen): New function.
27345 (doublebuf_pageflipping_init): Likewise.
27346 (grub_video_fb_setup): Likewise.
27347 (grub_video_fb_swap_buffers): Likewise.
27348 (grub_video_fb_get_info_and_fini): Likewise.
27349 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27351 (doublebuf_pageflipping_commit): Restructured into ...
27352 (doublebuf_pageflipping_set_page): ... this.
27353 (doublebuf_pageflipping_update_screen): Removed.
27354 (doublebuf_pageflipping_init): Likewise.
27355 (double_buffering_init): Likewise.
27356 (grub_video_vbe_setup): Use grub_video_fb_setup.
27357 (grub_video_vbe_swap_buffers): Removed.
27358 (grub_video_vbe_set_active_render_target): Likewise.
27359 (grub_video_vbe_get_active_render_target): Likewise.
27360 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27361 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27362 grub_video_fb_set_active_render_target and
27363 grub_video_fb_get_active_render_target.
27364 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27365 (SEQUENCER_DATA_PORT): Likewise.
27366 (MAP_MASK_REGISTER): Likewise.
27367 (CRTC_ADDR_PORT): Likewise.
27368 (CRTC_DATA_PORT): Likewise.
27369 (START_ADDR_HIGH_REGISTER): Likewise.
27370 (START_ADDR_LOW_REGISTER): Likewise.
27371 (GRAPHICS_ADDR_PORT): Likewise.
27372 (GRAPHICS_DATA_PORT): Likewise.
27373 (READ_MAP_REGISTER): Likewise.
27374 (INPUT_STATUS1_REGISTER): Likewise.
27375 (INPUT_STATUS1_VERTR_BIT): Likewise.
27376 (get_map_mask): Use grub_vga_sr_read.
27377 (set_map_mask): Use grub_vga_sr_write.
27378 (set_read_map): Use grub_vga_gr_write.
27379 (set_start_address): Use grub_vga_cr_write.
27380 * video/sm712.c (framebuffer): Remove leftover fields.
27382 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27384 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27385 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27386 instead. Replace the gfxterm backend check with a check that
27387 ${GRUB_PREFIX}/video.lst is non-empty.
27388 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27390 (load_video): New generated function. Call it before loading
27391 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27392 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27393 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27394 * docs/grub.texi (Simple configuration): Document
27395 GRUB_VIDEO_BACKEND.
27397 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27399 Use video functions in linux and xnu loaders.
27401 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27402 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27403 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27404 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27405 loader/i386/pc/linux.c.
27406 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27407 (find_line_len): Removed.
27408 (find_framebuf): Likewise.
27409 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27410 * loader/i386/efi/xnu.c: Removed.
27411 * loader/i386/pc/xnu.c: Moved from here...
27412 * loader/i386/xnu.c: ...here.
27414 Enable priorities in video drivers.
27416 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27417 (grub_video_adapter): New field prio.
27418 (grub_video_register): Respect prio when inserting.
27419 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27420 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27421 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27422 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27423 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27424 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27425 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27429 * include/grub/video.h (grub_video_driver_id_t): New value
27430 GRUB_VIDEO_DRIVER_SDL.
27431 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27433 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27435 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27436 argument to printf.
27437 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27439 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27441 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27442 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27444 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27446 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27447 directly, and recommend grub-install instead.
27448 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27450 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27452 Fix i386-pc prefix handling with nested partitions (Debian bug
27453 #585068). Note that the case where the core image is booted using
27454 multiboot and relocated from its original location still requires
27457 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27458 with "(,", fill the boot drive in between those two characters, but
27459 expect that a full partition specification including partition map
27461 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27462 specified, write a prefix without the drive name but including a
27463 full partition specification.
27465 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27467 * util/grub-mkconfig.in: Ignore non-option arguments, for
27468 compatibility with older versions (before 2010-06-12) which did the
27469 same. In particular, this makes it easier to ship an update-grub
27470 wrapper which is compatible with that used with GRUB Legacy (Debian
27473 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27475 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27476 for manual page generation.
27478 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27480 * po/POTFILES: Remove leftover commands/handler.c.
27482 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27484 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27485 left this script non-functional.
27487 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27489 * docs/man/grub-emu.h2m: New file.
27491 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27493 * docs/grub.texi (Commands): Document reduced command set in rescue
27495 (cpuid): New section.
27497 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27499 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27500 new partition naming style.
27501 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27503 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27505 Add "-o grub.iso" like cmdline options support.
27507 * util/grub-install.in: Improve cmdline option parsing.
27508 * util/grub-mkconfig.in: Likewise.
27509 * util/grub-mkrescue.in: Likewise.
27510 * util/grub-reboot.in: Likewise.
27511 * util/grub-set-default.in: Likewise.
27512 * util/i386/efi/grub-install.in: Likewise.
27513 * util/ieee1275/grub-install.in: Likewise.
27514 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27516 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27518 * .bzrignore: Ignore 41_custom.
27520 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27522 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27524 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27526 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27527 prototype declarations.
27529 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27530 generating fs, partmap, and video lists.
27531 * include/grub/fs.h (grub_fs_register): Omit prototype if
27532 GRUB_LST_GENERATOR is defined.
27533 * include/grub/partition.h (grub_partition_map_register): Likewise.
27534 * include/grub/video.h (grub_video_register): Likewise.
27536 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27538 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27540 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27542 * util/grub-mkrescue.in: Support --xorriso argument.
27544 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27546 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27547 Suggested by: Thomas Schmitt.
27549 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27551 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27552 Suggested by: Thomas Schmitt.
27554 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27556 custom.cfg support.
27558 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27559 * util/grub.d/41_custom.in: New file.
27561 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27563 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27564 been merged back into normal.
27566 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27568 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27569 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27571 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27573 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27574 when generating manual pages.
27575 * docs/man/grub-bin2h.h2m: New file.
27576 * docs/man/grub-editenv.h2m: New file.
27577 * docs/man/grub-fstest.h2m: New file.
27578 * docs/man/grub-install.h2m: New file.
27579 * docs/man/grub-macho2img.h2m: New file.
27580 * docs/man/grub-mkconfig.h2m: New file.
27581 * docs/man/grub-mkdevicemap.h2m: New file.
27582 * docs/man/grub-mkfont.h2m: New file.
27583 * docs/man/grub-mkimage.h2m: New file.
27584 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27585 * docs/man/grub-mkrelpath.h2m: New file.
27586 * docs/man/grub-mkrescue.h2m: New file.
27587 * docs/man/grub-ofpathname.h2m: New file.
27588 * docs/man/grub-pe2elf.h2m: New file.
27589 * docs/man/grub-probe.h2m: New file.
27590 * docs/man/grub-reboot.h2m: New file.
27591 * docs/man/grub-script-check.h2m: New file.
27592 * docs/man/grub-set-default.h2m: New file.
27593 * docs/man/grub-setup.h2m: New file.
27595 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27597 Use FOR_* macros instead of *_iterate whenever possible.
27599 * commands/handler.c: Removed.
27600 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27601 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27602 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27603 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27604 (grub_probe_SOURCES): Remove kern/parser.c.
27605 (util/grub-script-check.c_DEPENDENCIES): Removed.
27606 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27607 and grub_script_check_init.c.
27608 (grub_script_check_init.lst): Removed.
27609 (grub_script_check_init.h): Likewise.
27610 (grub_script_check_init.c): Likewise.
27611 (pkglib_MODULES): Remove handler.mod and sh.mod.
27612 (handler_mod_SOURCES): Removed.
27613 (handler_mod_CFLAGS): Likewise.
27614 (handler_mod_LDFLAGS): Likewise.
27615 (normal_mod_SOURCES): Remove normal/handler.c.
27616 Add script/main.c, script/script.c, script/execute.c,
27617 script/function.c, script/lexer.c, grub_script.tab.c
27618 and grub_script.yy.c.
27619 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27620 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27621 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27622 (grub_setup_SOURCES): Remove kern/parser.c.
27623 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27624 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27625 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27626 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27627 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27628 (grub_setup_SOURCES): Remove kern/parser.c.
27629 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27630 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27631 * include/grub/command.h (grub_command_iterate): Removed.
27632 (FOR_COMMANDS): New macro.
27633 * include/grub/dl.h (grub_dl): New member next.
27634 (grub_dl_iterate): Removed.
27635 (grub_dl_head): New variable declaration.
27636 (FOR_DL_MODULES): New macro.
27637 * include/grub/fs.h: Include list.h.
27638 (grub_fs): Make next first element.
27639 (grub_fs_list): New variable declaration.
27640 (grub_fs_register): Make inline.
27641 (grub_fs_unregister): Likewise.
27642 (grub_fs_iterate): Removed.
27643 (FOR_FILESYSTEMS): New macro.
27644 * include/grub/handler.h: Removed.
27645 * include/grub/list.h (grub_list_hook_t): Removed.
27646 (grub_list_test_t): Likewise.
27647 (grub_list_pop): Likewise.
27648 (grub_list_iterate): Likewise.
27649 (grub_list_insert): Likewise.
27650 (FOR_LIST_ELEMENTS): New macro.
27651 * include/grub/parser.h (grub_parser_class): Removed.
27652 (grub_parser_register): Likewise.
27653 (grub_parser_unregister): Likewise.
27654 (grub_parser_get_current): Likewise.
27655 (grub_parser_set_current): Likewise.
27656 (grub_register_rescue_parser): Likewise.
27657 (grub_rescue_parse_line): New function.
27658 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27659 * include/grub/script_sh.h (grub_script_function_list): New variable
27661 (FOR_SCRIPT_FUNCTIONS): New macro.
27662 (grub_script_function_iterate): Removed.
27663 (grub_normal_parse_line): New prototype.
27664 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27665 (FOR_DISABLED_TERM_INPUTS): Likewise.
27666 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27667 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27668 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27670 (grub_video_register): Inline.
27671 (grub_video_unregister): Likewise.
27672 (grub_video_adapter_list): New variable declaration.
27673 (grub_video_iterate): Removed.
27674 (FOR_VIDEO_ADAPTERS): New macro.
27675 * kern/dl.c (grub_dl_list): Removed. All users updated.
27676 (grub_dl_iterate): Removed.
27677 * kern/fs.c (grub_fs_list): Make global.
27678 (grub_fs_register): Removed.
27679 (grub_fs_unregister): Likewise.
27680 (grub_fs_iterate): Likewise.
27681 * kern/handler.c: Removed.
27682 * kern/list.c (grub_list_pop): Removed.
27683 (grub_list_iterate): Likewise.
27684 (grub_list_insert): Likewise.
27685 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27686 (grub_prio_list_insert): Don't use grub_list_insert.
27687 * kern/main.c (grub_register_rescue_parser): Don't call
27688 grub_register_rescue_parser.
27689 * kern/parser.c (grub_parser_class): Removed.
27690 (grub_parser_execute): Use grub_rescue_parse_line.
27691 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27692 (grub_rescue_parser): Removed.
27693 (grub_register_rescue_parser): Likewise.
27694 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27695 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27696 (grub_auth_check_authentication): Likewise.
27697 * normal/completion.c (iterate_command): Removed.
27698 (grub_normal_do_completion): Use FOR_COMMANDS.
27699 * normal/handler.c: Removed.
27700 * normal/main.c (read_config_file): Remove parser changing.
27701 (grub_normal_execute): Don't call read_handler_list.
27702 (grub_normal_read_line_real): Statically allocate prompt.
27703 (grub_cmdline_run): Use grub_normal_parse_line.
27704 (GRUB_MOD_FINI): Don't call free_handler_list.
27705 * normal/menu_entry.c (run): Likewise.
27706 * script/function.c (grub_script_function_list): Make global.
27707 (grub_script_function_iterate): Removed.
27708 * script/main.c (grub_normal_parse_line): Make global.
27709 (grub_sh_parser): Removed.
27710 (GRUB_MOD_INIT): Likewise.
27711 (GRUB_MOD_FINI): Likewise.
27712 * tests/lib/functional_test.c (grub_functional_test): Use
27714 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27715 (grub_test_run): Use FOR_LIST_ELEMENTS.
27716 * tests/lib/unit_test.c (main): Likewise.
27717 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27719 * util/grub-fstest.c (grub_term_input_class): Removed.
27720 (grub_term_output_class): Likewise.
27721 * util/grub-probe.c: Likewise.
27722 * util/i386/pc/grub-setup.c: Likewise.
27723 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27724 * util/grub-script-check.c (main): Don't call grub_init_all and
27726 * video/video.c (grub_video_adapter_list): Make global.
27727 (grub_video_register): Removed.
27728 (grub_video_unregister): Likewise.
27729 (grub_video_iterate): Likewise.
27731 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27733 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27734 reported by Henrique Ferreiro.
27736 2010-06-09 Robert Millan <rmh@gnu.org>
27738 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27739 ones, when both are available.
27741 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27743 Make --version uniform and avoid hard-coded program name.
27745 * util/grub-mkimage.c (main): Use `program_name' instead of
27747 * util/i386/pc/grub-setup.c (main): Likewise.
27748 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27749 * util/grub-install.in: Save the basename of $0 in $self, and use the
27750 latter in informational messages. Use the same format for --version
27751 as the binary programs.
27752 * util/grub-mkconfig.in: Likewise.
27753 * util/grub-mkrescue.in: Likewise.
27754 * util/grub-reboot.in: Likewise.
27755 * util/grub-set-default.in: Likewise.
27756 * util/i386/efi/grub-install.in: Likewise.
27757 * util/ieee1275/grub-install.in: Likewise.
27758 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27760 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27762 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27763 embedding area. Use <= instead of == when checking for non-emptiness.
27765 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27767 * configure.ac: Add `.' to the directories searched for unifont.
27769 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27771 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27774 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27776 * docs/grub.texi (History): Expand to cover GRUB 2.
27777 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27778 commands, not `terminal'.
27779 (serial): Likewise.
27780 (terminal_input): New section.
27781 (terminal_output): New section.
27782 (uppermem): New section (stub).
27783 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27785 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27787 * docs/grub.texi (Security): Menu entries are unrestricted by
27788 default, not restricted to superusers as I had previously thought.
27789 Reword to account for this.
27791 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27793 * kern/emu/misc.c (device_mapper_null_log): New function.
27794 (grub_device_mapper_supported): New function.
27795 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27797 * kern/emu/hostdisk.c (find_partition_start): Check whether
27798 device-mapper is supported before trying to use it.
27799 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27801 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27803 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27804 (File name syntax): Likewise.
27805 (help): --all is no longer supported in GRUB 2. Be more precise
27806 about pattern matching.
27808 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27810 * normal/completion.c (grub_normal_do_completion): When completing
27811 arguments to "set" and the current word contains an equals sign,
27812 skip to after the equals sign before starting completion.
27814 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27816 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27818 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27820 * docs/grub.texi (Network): New section.
27821 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27822 `(nd)' as in GRUB Legacy.
27823 (pxe_unload): New section.
27825 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27827 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27828 in the rescue shell, so recommend using `set' instead. Thanks,
27831 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27833 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27834 (password): New section.
27835 (password_pbkdf2): New section.
27836 (search): New section.
27837 (Security): New section.
27838 (Troubleshooting): New section, currently very incomplete.
27839 (Invoking grub-mkpasswd-pbkdf2): New section.
27840 (Internals): New section, currently very incomplete.
27842 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27844 * util/grub.d/00_header.in: Add some more quoting (of
27845 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27847 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27849 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27851 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27852 to `count', fixing variable shadowing that broke the -c option.
27854 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27856 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27857 in case they contain spaces.
27859 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27861 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27862 "part_" to partmap module names, in line with grub-install.
27863 Reported by: Jindřich Makovička (Debian bug #584426).
27865 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27867 * util/grub-mkimage.c: Make target-related error messages slightly
27868 more helpful; -O talks about "format". Explicitly point to the use
27869 of -O if no target is specified.
27870 Reported by: Didier Raboud (Debian bug #584415).
27872 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27874 * INSTALL: Document several build requirements for optional features
27875 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27877 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27879 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27880 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27881 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27883 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27885 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27886 Thanks to Jordan Uggla for spotting this.
27888 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27890 Finally make USB usable.
27892 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27893 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27894 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27895 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27896 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27897 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27898 (GRUB_OHCI_FSMPS): Likewise.
27899 (GRUB_OHCI_PERIODIC_START): Likewise.
27900 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27901 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27902 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27903 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27904 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27905 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27906 (grub_ohci_transaction): Likewise.
27907 (grub_ohci_transfer): Improve condition detection algorithms.
27908 Handle toggle property. Program the transactions correctly.
27909 Improve error handling. Various important fixups.
27910 (grub_ohci_portstatus): Put register writes in right order.
27911 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27912 (grub_uhci_transfer): Don't show "failed" message on success.
27913 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27915 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27916 determine its size.
27917 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27918 before initialization is completed. Use IN direction for empty
27919 transfers. Use last_trans and compute toggle.
27920 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27921 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27922 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27923 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27924 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27925 (grub_usb_device): Increase toggle to 256.
27926 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27927 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27928 GRUB_USBMS_SUBCLASS_SFF8070.
27929 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27930 (grub_scsi_inquiry): New member page and alloc_length.
27931 (grub_scsi_request_sense): New structure.
27932 (grub_scsi_request_sense_data): Likewise.
27933 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27935 * disk/scsi.c (grub_scsi_request_sense): New function.
27936 (grub_scsi_test_unit_ready): Likewise.
27937 (grub_scsi_inquiry): Fill new fields.
27938 (grub_scsi_read_capacity): Likewise.
27939 (grub_scsi_read10): Add request sense at the end.
27940 (grub_scsi_read12): Likewise.
27941 (grub_scsi_write10): Likewise.
27942 (grub_scsi_write12): Likewise.
27943 (grub_scsi_open): Add Test Unit Ready.
27944 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27945 Support additional subclasses. Con't clear halt yet. Activate the
27946 proper config. Calculate LUNs correctly.
27947 (grub_usbms_transfer): Various important fixups.
27949 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27951 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27952 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27953 (grub_ohci_fini_hw): New function.
27954 (grub_ohci_restore_hw): Likewise.
27955 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27956 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27957 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27959 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27961 Dedicated DMA allocations.
27963 * bus/pci.c (grub_memalign_dma32): New function
27964 (grub_dma_free): Likewise.
27965 (grub_dma_get_virt): Likewise.
27966 (grub_dma_get_phys): Likewise.
27967 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27968 (grub_ohci_pci_iter): Use dma32_alloc.
27969 (grub_ohci_transfer): Likewise.
27970 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27971 (grub_usb_bulk_readwrite): Likewise.
27972 * include/grub/pci.h: Add declarations.
27974 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27978 * bus/cs5536.c: New file.
27979 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27980 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27981 (cs5536_mod_SOURCES): New variable.
27982 (cs5536_mod_CFLAGS): Likewise.
27983 (cs5536_mod_LDFLAGS): Likewise.
27984 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27986 (kernel_img_SOURCES): Add bus/cs5536.c.
27987 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27989 (usb_mod_SOURCES): New variable.
27990 (usb_mod_CFLAGS): New variable.
27991 (usb_mod_LDFLAGS): New variable.
27992 (usbtest_mod_SOURCES): New variable.
27993 (usbtest_mod_CFLAGS): New variable.
27994 (usbtest_mod_LDFLAGS): New variable.
27995 (ohci_mod_SOURCES): New variable.
27996 (ohci_mod_CFLAGS): New variable.
27997 (ohci_mod_LDFLAGS): New variable.
27998 (usbms_mod_SOURCES): New variable.
27999 (usbms_mod_CFLAGS): New variable.
28000 (usbms_mod_LDFLAGS): New variable.
28001 (usb_keyboard_mod_SOURCES): New variable.
28002 (usb_keyboard_mod_CFLAGS): New variable.
28003 (usb_keyboard_mod_LDFLAGS): New variable.
28004 * include/grub/smbus.h: New file.
28005 * include/grub/cs5536.h: New file.
28007 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28009 * util/grub.d/00_header.in: Add safety check to make sure that
28010 ${locale_dir} exists before trying to probe it.
28012 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28014 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28015 per the GNU Coding Standards; this is now too obscure to be worth
28018 (chainloader): Remove cross-reference to `SCO UnixWare'.
28020 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28022 * docs/grub.texi (Chain-loading): New section.
28023 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28024 adjusted for GRUB 2.
28025 (SCO UnixWare): Likewise.
28027 (chainloader): Add reference to `Block list syntax'.
28028 (drivemap): New section.
28029 (parttool): New section.
28031 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28033 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28035 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28036 (Installing GRUB using grub-install): Remove reference to the grub
28037 shell; mention `grub-mkimage' and `grub-setup' instead.
28038 (Invoking grub-install): Likewise.
28039 (Interface): Add reference to `Menu entry editor'.
28040 (serial): Remove `--device' option.
28042 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28044 * docs/grub.texi (Configuration): New section, documenting
28045 configuration file generation using grub-mkconfig. I've left a slot
28046 for documenting the full shell scripting format but have not yet
28047 started on writing that up.
28048 (Invoking grub-mkconfig): New section.
28050 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28052 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28053 (GNU GRUB manual): Likewise.
28054 (General commands): Update description of `terminfo' for GRUB 2.
28056 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28058 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28059 (GRUB_MOD_INIT): Fix capitalisation.
28060 * docs/grub.texi (Command-line and menu entry commands): Document
28061 gettext and gptsync commands.
28063 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28065 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28066 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28068 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28070 Add btrfs probing support, currently only in the single-device case.
28072 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28074 (grub_guess_root_device): Call find_root_device_from_mountinfo
28075 before looking in /dev.
28077 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28079 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28080 GRUB_DISK_SIZE_UNKNOWN.
28081 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28083 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28085 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28086 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28087 corrupted or not synced properly.
28089 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28091 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28092 Reported by: Seth Goldberg.
28094 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28096 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28098 Reported by: Seth Goldberg.
28100 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28102 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28103 Reported by: Seth Goldberg.
28105 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28107 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28108 64-bit address as signed on MIPS.
28110 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28112 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28113 to the empty string.
28115 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28117 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28119 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28120 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28121 * kern/misc.c (__enable_execute_stack): Disable on
28124 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28126 Make grub-probe work with symbolic links under /dev/mapper as well
28127 as with real block devices. The Linux world seems to be (at best)
28128 in transition here, and GRUB shouldn't get caught in the middle.
28130 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28133 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28135 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28136 input files (in which case exit zero).
28138 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28140 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28141 return NULL for various reasons even if it has a maximum-length
28142 buffer: for example, there might be a symlink loop, or the path
28143 might exceed PATH_MAX. If this happens, return NULL.
28145 2010-05-27 Robert Millan <rmh@gnu.org>
28147 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28148 partmap module to handle cross-partmap setups.
28149 Reported by Orestes Mas. Gràcies!
28151 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28153 * util/grub-mkrescue.in: Initialise override_dir rather than
28154 assuming that it's unset or empty in the environment.
28156 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28158 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28159 variable index into p_index to suppress a warning with -Wshadow.
28161 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28163 * INSTALL: Added flex >= 2.5.35 requirement.
28165 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28167 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28169 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28173 * commands/i386/cmostest.c: New file.
28174 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28175 (cmostest_mod_SOURCES): New variable.
28176 (cmostest_mod_CFLAGS): Likewise.
28177 (cmostest_mod_LDFLAGS): Likewise.
28178 * conf/i386-pc.rmk: Likewise.
28179 * docs/grub.texi (Vendor power-on keys): New section.
28180 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28181 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28182 and GRUB_BUTTON_CMOS_ADDRESS.
28183 * util/grub.d/00_header.in: Handle powering-on by separate button.
28185 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28187 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28188 Removed drawing_scrollbar argument. All users updated
28190 Reported by Jo Shields
28192 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28194 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28195 buffer since gfxterm handles double repaint.
28197 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28199 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28200 * term/gfxterm.c (real_scroll): Likewise.
28202 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28204 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28205 before calling BIOS.
28207 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28209 * include/grub/i18n.h: Always enable grub_gettext.
28211 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28213 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28214 partition naming style.
28216 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28218 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28219 not the first option.
28221 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28223 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28225 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28227 * util/misc.c: Move inclusion of <limits.h> to ...
28228 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28230 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28232 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28233 Fix merge error in NetBSD code.
28234 (find_partition_start) [__NetBSD__]: Likewise.
28236 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28238 Fix grub-mkrescue usage unit testing.
28240 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28242 2010-05-18 Christian Franke <franke@computer.org>
28244 * util/grub.d/10_windows.in: Use path names instead of
28245 drive letters to prevent warning from Cygwin 1.7.
28246 Add drivemap command to menuentry if needed.
28248 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28250 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28251 gnumach and gnumach.gz.
28253 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28255 * include/grub/i18n.h (gettext): Inline instead of using #define.
28256 (grub_gettext): Likewise.
28259 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28261 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28262 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28263 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28264 (main): Add a slash after pkglibdirroot.
28266 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28268 * util/grub-install.in: Add missing "in" keyword.
28270 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28272 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28273 Reported by: Seth Goldberg.
28275 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28277 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28279 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28281 * configure.ac: Check for Linux device-mapper support.
28283 * util/hostdisk.c (device_is_mapped): New function.
28284 (find_partition_start): New function, partly broken out from
28285 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28286 device-mapper support added.
28287 (linux_find_partition): Use find_partition_start.
28288 (convert_system_partition_to_system_disk): Add `st' argument.
28289 Support Linux /dev/mapper/* devices if device-mapper support is
28290 available; only DM-RAID devices are understood at present.
28291 (find_system_device): Add `st' argument. Pass it to
28292 convert_system_partition_to_system_disk.
28293 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28294 find_system_device and convert_system_partition_to_system_disk. Use
28295 find_partition_start.
28297 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28298 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28299 * util/deviceiter.c [__linux__]: Define MINOR.
28300 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28301 * util/mkdevicemap.c (grub_putchar): New function.
28302 (grub_getkey): New function.
28303 (grub_refresh): New function.
28304 (main): Set debug=all if -v -v is used.
28306 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28308 Fix build with non-GNU libcs.
28310 * util/misc.c (canonicalize_file_name): Move to ...
28311 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28312 grub_make_system_path_relative_to_its_root.
28314 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28316 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28317 we handle finding grub-mkimage. Default to finding grub-mkimage in
28318 ${bindir} with program_transform_name applied, and provide a
28319 --grub-mkimage option to override this.
28321 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28323 Remove grub-mkisofs.
28325 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28326 (grub_mkisofs_SOURCES): Removed.
28327 (grub_mkisofs_CFLAGS): Removed.
28328 * util/mkisofs/defaults.h: Removed.
28329 * util/mkisofs/eltorito.c: Likewise.
28330 * util/mkisofs/exclude.h: Likewise.
28331 * util/mkisofs/hash.c: Likewise.
28332 * util/mkisofs/include/: Likewise.
28333 * util/mkisofs/include/fctldefs.h: Likewise.
28334 * util/mkisofs/include/mconfig.h: Likewise.
28335 * util/mkisofs/include/prototyp.h: Likewise.
28336 * util/mkisofs/include/statdefs.h: Likewise.
28337 * util/mkisofs/iso9660.h: Likewise.
28338 * util/mkisofs/joliet.c: Likewise.
28339 * util/mkisofs/match.c: Likewise.
28340 * util/mkisofs/match.h: Likewise.
28341 * util/mkisofs/mkisofs.c: Likewise.
28342 * util/mkisofs/mkisofs.h: Likewise.
28343 * util/mkisofs/msdos_partition.h: Likewise.
28344 * util/mkisofs/multi.c: Likewise.
28345 * util/mkisofs/name.c: Likewise.
28346 * util/mkisofs/rock.c: Likewise.
28347 * util/mkisofs/tree.c: Likewise.
28348 * util/mkisofs/write.c: Likewise.
28350 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28352 Unify grub-mkimage accross platforms.
28354 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28355 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28356 (grub_mkelfimage_SOURCES): Removed.
28357 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28358 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28359 (bin_UTILITIES): Add grub-mkimage.
28360 (grub_mkimage_SOURCES): New variable.
28361 (kernel_img_HEADERS): Remove machine/kernel.h.
28362 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28363 (pkglib_PROGRAMS): Add kernel.img.
28364 (kernel_img_HEADERS): Add machine/kernel.h.
28365 (kernel_img_FORMAT): Removed.
28366 (bin_UTILITIES): Remove grub-mkimage.
28367 (grub_mkimage_SOURCES): Removed.
28368 (grub_mkimage_CFLAGS): Likewise.
28369 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28370 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28371 (pkglib_PROGRAMS): Add kernel.img.
28372 (bin_UTILITIES): Remove grub-mkimage.
28373 (grub_mkimage_SOURCES): Removed.
28374 (grub_mkimage_CFLAGS): Likewise.
28375 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28376 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28377 (pkglib_PROGRAMS): Add kernel.img.
28378 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28379 (pkglib_PROGRAMS): Add kernel.img.
28380 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28381 (grub_mkimage_SOURCES): Removed.
28382 (grub_mkimage_CFLAGS): Likewise.
28383 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28384 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28385 (pkglib_PROGRAMS): Add kernel.img.
28386 (bin_UTILITIES): Remove grub-mkimage.
28387 (grub_mkimage_SOURCES): Removed.
28388 (grub_mkimage_CFLAGS): Likewise.
28389 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28390 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28391 (grub_mkimage_SOURCES): Removed.
28392 (grub_mkimage_CFLAGS): Likewise.
28393 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28394 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28395 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28396 (grub_pe32_optional_header): ... this.
28397 (grub_pe64_optional_header): ... and this. All users updated.
28398 (GRUB_PE32_PE32_MAGIC): Split into ..
28399 (GRUB_PE32_PE32_MAGIC): .. this.
28400 (GRUB_PE32_PE64_MAGIC): .. and this.
28401 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28402 * include/grub/elf.h (PT_GNU_STACK): New definition.
28403 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28404 * include/grub/i386/efi/kernel.h: Likewise.
28405 * include/grub/i386/kernel.h: Likewise.
28406 * include/grub/i386/pc/kernel.h: Likewise.
28407 * include/grub/i386/qemu/boot.h: Likewise.
28408 * include/grub/mips/kernel.h: Likewise.
28409 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28410 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28411 * include/grub/powerpc/kernel.h: Likewise.
28412 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28413 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28414 * include/grub/sparc64/kernel.h: Likewise.
28415 * include/grub/x86_64/efi/kernel.h: Likewise.
28416 * include/grub/x86_64/kernel.h: Likewise.
28417 * include/grub/offsets.h: New file.
28418 * include/grub/kernel.h (grub_module_info): Split into ...
28419 (grub_module_info32): ... this.
28420 (grub_module_info64): ... and this.
28421 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28422 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28423 (grub_boot_blocklist): Moved from here ...
28424 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28425 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28426 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28427 * include/grub/types.h (grub_target_to_host16): Removed.
28428 (grub_target_to_host32): Likewise.
28429 (grub_target_to_host64): Likewise.
28430 (grub_host_to_target16): Likewise.
28431 (grub_host_to_target32): Likewise.
28432 (grub_host_to_target64): Likewise.
28433 (grub_host_to_target_addr): Likewise.
28435 Support grub-mkrescue for efi, coreboot and qemu.
28437 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28438 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28439 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28440 * util/grub-mkrawimage.c: Moved from here ...
28441 * util/grub-mkimage.c: ... here. All users updated.
28442 (ALIGN_ADDR): Use image_target.
28443 (TARGET_NO_FIELD): New const.
28444 (image_target_desc): New type.
28445 (image_targets): New array.
28446 (grub_target_to_host64): Use image_target.
28447 (grub_target_to_host32): Likewise.
28448 (grub_target_to_host16): Likewise.
28449 (grub_host_to_target64): Likewise.
28450 (grub_host_to_target32): Likewise.
28451 (grub_host_to_target16): Likewise.
28452 (grub_host_to_target_addr): Likewise.
28453 (generate_image): Handle multiimage.
28454 (main): Require -O parameter. All users updated.
28455 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28456 util/efi/grub-mkimage.c
28457 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28458 New option --rom-directory.
28460 * util/i386/efi/grub-mkimage.c: Removed.
28461 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28462 (grub_target_to_host32): Likewise.
28463 (grub_target_to_host64): Likewise.
28464 (grub_host_to_target16): Likewise.
28465 (grub_host_to_target32): Likewise.
28466 (grub_host_to_target64): Likewise.
28467 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28468 (grub_target_to_host32): Likewise.
28469 (grub_target_to_host64): Likewise.
28470 (grub_host_to_target16): Likewise.
28471 (grub_host_to_target32): Likewise.
28472 (grub_host_to_target64): Likewise.
28474 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28476 Source tree is reorganized for emu build.
28478 * include/grub/util/console.h: Move from here...
28479 * include/grub/emu/console.h: ...to here.
28480 * include/grub/util/getroot.h: Move from here...
28481 * include/grub/emu/getroot.h: ...to here.
28482 * include/grub/util/hostdisk.h: Move from here...
28483 * include/grub/emu/hostdisk.h: ...to here.
28484 * util/console.c: Move from here...
28485 * kern/emu/console.c: ...to here.
28486 * util/getroot.c: Move from here...
28487 * kern/emu/getroot.c: ...to here.
28488 * util/grub-emu.c: Move from here...
28489 * kern/emu/main.c: ...to here.
28490 * util/hostdisk.c: Move from here...
28491 * kern/emu/hostdisk.c: ...to here.
28492 * util/hostfs.c: Move from here...
28493 * kern/emu/hostfs.c: ...to here.
28494 * util/mm.c: Move from here...
28495 * kern/emu/mm.c: ...to here.
28496 * util/pci.c: Move from here...
28497 * bus/emu/pci.c: ...to here.
28498 * util/sdl.c: Move from here...
28499 * video/emu/sdl.c: ...to here.
28500 * util/time.c: Move from here...
28501 * kern/emu/time.c: ...to here.
28502 * util/usb.c: Move from here...
28503 * bus/usb/emu/usb.c: ...to here.
28505 * include/grub/emu/misc.h: New header for grub-emu functions.
28506 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28508 * conf/any-emu.rmk: Rule updates for above renames.
28509 * conf/common.rmk: Likewise.
28510 * conf/i386-pc.rmk: Likewise.
28511 * conf/i386-qemu.rmk: Likewise.
28512 * conf/mips.rmk: Likewise.
28513 * conf/sparc64-ieee1275.rmk: Likewise.
28514 * conf/x86-efi.rmk: Likewise.
28516 * disk/lvm.h: #include updates for above renames.
28517 * util/grub-mkrelpath.c: Likewise.
28518 * util/grub-probe.c: Likewise.
28519 * util/i386/pc/grub-setup.c: Likewise.
28520 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28521 * kern/emu/console.c: Likewise.
28522 * kern/emu/getroot.c: Likewise.
28523 * kern/emu/hostdisk.c: Likewise.
28524 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28526 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28527 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28528 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28529 * util/misc.c: Remove grub-emu functions.
28531 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28534 Reported by: Thorsten Grützmacher.
28536 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28538 (circprog_set_property): Register and unregister timeout hook.
28539 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28540 (label_destroy): Free template. and unregister hook.
28541 (label_set_state): New function.
28542 (label_set_property): Handle templates and hooks.
28543 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28545 (progress_bar_set_property): Register and unregister timeout hook.
28546 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28547 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28548 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28549 (update_timeout_visit): Removed.
28550 (update_timeouts): New function.
28551 (redraw_timeouts): Likewise.
28552 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28553 (grub_gfxmenu_clear_timeout): Likewise.
28554 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28555 (grub_gfxmenu_timeout_notify): Likewise.
28556 (grub_gfxmenu_timeout_notifications): New external variable.
28557 (grub_gfxmenu_timeout_register): New function.
28558 (grub_gfxmenu_timeout_unregister): Likewise.
28560 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28562 Transform (broken) vga terminal into (working) vga video driver.
28564 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28565 video/i386/pc/vga.c.
28566 * include/grub/video.h (grub_video_driver_id):
28567 Add GRUB_VIDEO_DRIVER_VGA.
28568 * term/i386/pc/vga.c: Renamed to ...
28569 * video/i386/pc/vga.c: ...this
28570 (DEBUG_VGA): Removed.
28571 (CHAR_WIDTH): Likewise.
28572 (CHAR_HEIGHT): Likewise.
28573 (TEXT_WIDTH): Likewise.
28574 (TEXT_HEIGHT): Likewise.
28575 (DEFAULT_FG_COLOR): Likewise.
28576 (DEFAULT_BG_COLOR): Likewise.
28577 (colored_char): Likewise.
28580 (cursor_state): Likewise.
28581 (fg_color): Likewise.
28582 (bg_color): Likewise.
28583 (text_buf): Likewise.
28586 (framebuffer): New variable.
28587 (set_read_map): Disabled.
28588 (setup): New variable.
28589 (is_target): Likewise.
28590 (grub_vga_mod_init): Likewise.
28591 (grub_vga_mod_fini): Likewise.
28592 (check_vga_mem): Likewise.
28593 (write_char): Likewise.
28594 (write_cursor): Likewise.
28595 (scroll_up): Likewise.
28596 (grub_vga_putchar): Likewise.
28597 (grub_vga_getcharwidth): Likewise.
28598 (grub_vga_getwh): Likewise.
28599 (grub_vga_getxy): Likewise.
28600 (grub_vga_gotoxy): Likewise.
28601 (grub_vga_cls): Likewise.
28602 (grub_vga_setcolorstate): Likewise.
28603 (grub_vga_setcursor): Likewise.
28604 (grub_video_vga_init): New function.
28605 (grub_video_vga_setup): Likewise.
28606 (grub_video_vga_fini): Likewise.
28607 (update_target): Likewise.
28608 (grub_video_vga_blit_bitmap): Likewise.
28609 (grub_video_vga_blit_render_target): Likewise.
28610 (grub_video_vga_set_active_render_target): Likewise.
28611 (grub_video_vga_get_active_render_target): Likewise.
28612 (grub_video_vga_swap_buffers): Likewise.
28613 (grub_video_vga_set_palette): Likewise.
28614 (grub_video_vga_get_info_and_fini): Likewise.
28615 (grub_vga_term): Removed.
28616 (grub_video_vga_adapter): New variable.
28617 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28618 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28620 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28622 * video/readers/jpeg.c: Indented.
28624 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28626 Various jpeg cleanups.
28628 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28629 (grub_jpeg_decode_quan_table): Use sizeof.
28630 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28632 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28634 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28635 tables. Ignore non-last ac bit.
28636 (grub_jpeg_decode_quan_table): Likewise.
28638 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28640 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28641 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28642 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28643 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28644 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28645 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28647 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28649 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28652 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28654 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28656 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28658 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28661 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28663 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28666 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28668 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28671 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28673 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28675 2010-05-01 Christian Franke <franke@computer.org>
28677 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28678 Remove broken Cygwin path conversion.
28679 * util/misc.c: [__CYGWIN__] Add include and define.
28680 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28682 (make_system_path_relative_to_its_root): Simplify loop, replace early
28684 [__CYGWIN__] Add conversion to win32 path.
28685 Include "/" case in trailing slash removal.
28687 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28689 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28690 Reported by: Seth Goldberg
28692 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28694 * commands/help.c (grub_cmd_help): Fix a typo.
28695 Reported by: Seth Goldberg
28697 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28699 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28701 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28702 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28703 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28704 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28705 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28706 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28707 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28708 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28709 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28710 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28711 * normal/context.c (GRUB_MOD_INIT): Likewise.
28712 * normal/main.c (GRUB_MOD_INIT): Likewise.
28713 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28714 * term/serial.c (GRUB_MOD_INIT): Likewise.
28715 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28717 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28719 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28722 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28724 * commands/iorw.c: New file.
28725 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28726 (iorw_mod_SOURCES): New variable.
28727 (iorw_mod_CFLAGS): Likewise.
28728 (iorw_mod_LDFLAGS): Likewise.
28730 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28734 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28735 * normal/main.c (hotkey_aliases): New variable.
28736 (grub_normal_add_menu_entry): Parse "--hotkey".
28737 * normal/menu_text.c (run_menu): Handle hotkeys.
28739 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28741 * kern/i386/coreboot/init.c (grub_machine_init): Call
28742 grub_machine_mmap_init on qemu.
28744 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28746 * boot/i386/qemu/boot.S: Add a missing .code16.
28748 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28750 Use LBIO on coreboot.
28752 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28753 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28754 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28756 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28757 grub_machine_mmap_init on coreboot.
28758 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28759 GRUB_LINUXBIOS_MEMBER_LINK.
28760 (grub_machine_mmap_iterate): Fix declaration.
28761 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28763 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28765 Split coreboot and multiboot ports.
28767 * conf/i386-multiboot.rmk: New file.
28768 * configure.ac: Add multiboot port.
28769 * include/grub/i386/multiboot/boot.h: New file.
28770 * include/grub/i386/multiboot/console.h: Likewise.
28771 * include/grub/i386/multiboot/init.h: Likewise.
28772 * include/grub/i386/multiboot/kernel.h: Likewise.
28773 * include/grub/i386/multiboot/loader.h: Likewise.
28774 * include/grub/i386/multiboot/memory.h: Likewise.
28775 * include/grub/i386/multiboot/serial.h: Likewise.
28776 * include/grub/i386/multiboot/time.h: Likewise.
28777 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28778 * loader/multiboot.c: Likewise.
28779 * loader/multiboot_mbi2.c: Likewise.
28780 * util/grub-mkrescue.in: Generate multiboot rescue.
28782 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28784 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28786 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28788 Merge handling of input and output terminals. Fix a hang.
28790 * commands/terminal.c (abstract_terminal): New struct.
28791 (handle_command): New function. Based on grub_cmd_terminal_input.
28792 (grub_cmd_terminal_input): Use handle_command.
28793 (grub_cmd_terminal_output): Use handle_command.
28795 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28797 Fix comment handling.
28799 * tests/grub_script_comments.in: New testcase.
28800 * conf/tests.rmk: Rules for new testcase.
28801 * script/yylex.l: Updated flex rules.
28803 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28805 * docs/grub.texi (play): Document that zero pitches produce rests.
28806 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28809 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28811 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28814 2010-04-26 Christian Franke <franke@computer.org>
28816 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28817 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28818 (grub_get_prefix): Remove function.
28819 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28820 make_system_path_relative_to_its_root ().
28821 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28823 2010-04-24 Christian Franke <franke@computer.org>
28825 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28826 (kernel_img_LDFLAGS): Remove -static-libgcc.
28828 2010-04-24 Christian Franke <franke@computer.org>
28830 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28831 and CHECK_END_SYMBOL if grub-emu is built.
28832 Unset TARGET_OBJ2ELF if grub-emu is built
28833 without module support.
28835 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28839 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28840 (grub_fstest_SOURCES): Likewise.
28841 (pkglib_MODULES): Add nilfs2.mod.
28842 (nilfs2_mod_SOURCES): New variable.
28843 (nilfs2_mod_CFLAGS): Likewise.
28844 (nilfs2_mod_LDFLAGS): Likewise.
28845 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28846 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28847 * fs/nilfs2.c: New file.
28849 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28851 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28854 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28856 Add grub-mkconfig support for NetBSD.
28858 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28859 * util/grub-mkconfig.in: export new NetBSD specific variables.
28860 * po/POTFILES-shell: added 10_netbsd.in.
28861 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28863 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28865 Fix emu build with grub-emu-pci and grub-emu-modules.
28867 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28869 * include/grub/libpciaccess.h: New file.
28870 * conf/any-emu.rmk: Update kernel headers for emu build.
28872 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28874 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28876 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28878 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28880 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28882 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28883 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28884 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28885 util/ieee1275/ofpath.c.
28886 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28887 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28888 * include/grub/sparc64/ieee1275/boot.h
28889 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28890 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28891 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28892 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28894 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28895 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28896 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28899 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28901 * util/grub-mkconfig.in: Corrected two == equality tests.
28902 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28903 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28904 expect a number appended to it.
28905 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28906 expects a number appended to it.
28908 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28910 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28912 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28914 * util/hostdisk.c (make_device_name): Change to new partition naming.
28916 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28918 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28920 2010-04-17 Christian Franke <franke@computer.org>
28922 * Makefile.in: Add missing localedir setting.
28924 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28926 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28927 mistake in r2156. Noticed by Anthony Fok.
28929 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28931 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28933 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28935 Fix a spurious, uninitialized variable warning.
28937 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28938 Initialize variable, shdr.
28939 (grub_freebsd_load_elfmodule): Likewise.
28940 (grub_freebsd_load_elf_meta): Likewise.
28942 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28944 Fix for escaped dollar in double quoted strings.
28946 * script/yylex.l: Updated flex rules.
28947 * conf/tests.rmk: Rule for new testcase.
28948 * tests/grub_script_dollar.in: New testcase.
28950 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28951 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28953 Enclose all translated strings in grub.cfg in single quotes, and
28954 escape them appropriately (Ubuntu bug #552921).
28956 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28957 * util/grub.d/10_hurd.in: Use it.
28958 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28959 * util/grub.d/10_linux.in (linux_entry): Likewise.
28961 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28963 Fix cygwin compilation.
28965 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28966 * include/grub/misc.h (__register_frame_info)
28967 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28968 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28969 * kern/misc.c (__register_frame_info)
28970 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28971 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28973 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28975 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28977 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28979 Unify libgcc processing.
28981 * Makefile.in (kernel_img_LDFLAGS): New variable.
28982 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28983 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28985 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28986 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28987 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28988 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28989 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28990 overwriting. Remove -lgcc and -static-libgcc
28991 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28992 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28993 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28994 (kernel_img_LDFLAGS): Append instead of overwriting.
28995 Remove -lgcc and -static-libgcc
28996 * conf/sparc64-ieee1275.rmk: Likewise.
28997 * include/grub/powerpc/libgcc.h: Move to ...
28998 * include/grub/libgcc.h: .. this.
28999 * include/grub/libgcc.h: Don't export most of the function on x86.
29000 (__bswapsi2): New export.
29001 (__bswapdi2): Likewise.
29002 * include/grub/mips/libgcc.h: Removed.
29003 * include/grub/sparc64/libgcc.h: Likewise.
29005 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29007 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29008 disk_info_msg (conflicts with gettexting into languages with cases).
29010 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29012 Add grub-probe support for NetBSD.
29014 * util/getroot.c (find_root_device): Convert block device to
29015 character device on NetBSD.
29016 * util/probe.c (probe): Require character device on NetBSD.
29017 * util/hostdisk.c: NetBSD specific headers.
29018 (configure_device_driver): new function to tune device driver
29019 parameters (currently only for NetBSD floppy driver).
29020 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29021 via disklabel ioctl).
29022 (open_device): call configure_device_driver on NetBSD.
29023 (convert_system_partition_to_system_disk): NetBSD specific code.
29024 (device_is_wholedisk): Likewise.
29025 (grub_util_biosdisk_get_grub_dev): Likewise.
29026 (make_device_name): Fixed a typo in bsd_part_str.
29027 * configure.ac: check for opendisk() and getrawpartition() on
29028 NetBSD and set LIBUTIL.
29029 * Makefile.in: add LIBUTIL to LIBS.
29031 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29035 * util/grub-script-check.c: Better help message.
29037 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29041 * configure.ac: Flex version check.
29042 * conf/common.rmk: Add -Wno-error to sh.mod.
29043 * script/yylex.l: Remove all #pragma.
29045 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29047 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29049 Reported by: Seth Goldberg.
29051 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29053 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29054 Rename "module" to "module2".
29055 Reported by: Seth Goldberg.
29057 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29059 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29061 Reported by: Seth Goldberg.
29063 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29065 * lib/posix_wrap/locale.h: Add missing file.
29066 Reported by: Seth Goldberg.
29068 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29070 grub-emu module load support.
29072 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29073 NO_DYNAMIC_MODULES switched to this.
29074 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29075 (CFLAGS): Likewise.
29076 * conf/any-emu.rmk: Generate symlist.
29077 (kernel_img_HEADERS): Add util/datetime.h.
29078 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29079 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29080 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29081 kern/$(target_cpu)/cache.S.
29082 * configure.ac (grub-emu-modules): New option.
29083 * genmk.rb: Handle multiple source lists.
29084 * include/grub/sdl.h: New file.
29085 * include/grub/libusb.h: Likewise.
29086 * util/grub-emu.c (main): Hanle (host) root.
29087 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29088 GRUB_ERR_UNKNOWN_DEVICE.
29089 * util/misc.c: Move mm functions to ...
29090 * util/mm.c: ... here. All users updated.
29092 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29094 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29095 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29097 (maintainer-clean): Remove libgcrypt-grub.
29099 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29101 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29103 2010-04-09 EFI Coder <eficoder@hotmail.com>
29105 * normal/menu_text.c (print_message): Clean up the message and show
29106 the Fn information when on EFI
29107 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29109 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29111 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29113 * normal/crypto.c (read_crypto_list): Likewise.
29114 * normal/dyncmd.c (read_command_list): Likewise.
29115 * normal/term.c (read_terminal_list): Likewise.
29116 * normal/main.c (read_lists): Use explicit prefix.
29117 (read_lists_hook): Use read_lists.
29118 (grub_normal_execute): Likewise.
29120 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29122 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29123 Reported by: Thomas Schmitt.
29124 Add -no-emul-boot to grub-mkisofs parameters.
29126 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29128 * font/font.c: Indented.
29130 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29132 Elif support to GRUB script (by Deepak Vankadaru).
29134 * tests/grub_script_if.in: New testcase.
29135 * conf/tests.rmk: Rule for new testcase.
29136 * script/parser.y: Grammar rules for elif.
29138 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29140 While and until loops support to GRUB script.
29142 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29143 (grub_script_create_cmdwhile): New function prototype.
29144 (grub_script_execute_cmdwhile): New function prototype.
29145 * script/execute.c (grub_script_execute_cmdwhile): New function.
29146 * script/parser.y (command): New commands.
29147 (whilecmd): New grammar rule.
29148 (untilcmd): New grammar rule.
29149 * script/script.c (grub_script_create_cmdwhile): New function.
29150 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29153 * tests/grub_script_while1.in: New testcase.
29154 * conf/tests.rmk: Rule for new testcase.
29156 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29158 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29161 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29163 GRUB_BACKGROUND support.
29165 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29166 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29168 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29170 Load fonts and modules for gfxmenu in grub-mkconfig.
29171 Idea by: Mario Vazquez
29173 * util/grub.d/00_header.in: Load pf2 and image modules.
29175 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29177 grub-mkconfig multiple terminal support.
29179 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29180 * util/grub.d/00_header.in: Likewise.
29182 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29184 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29185 we use cd $(srcdir).
29187 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29189 * util/grub.d/10_linux.in: Only use the first word of
29190 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29191 spaces in GRUB_DISTRIBUTOR.
29192 * util/grub.d/10_kfreebsd.in: Likewise.
29193 * util/grub.d/10_hurd.in: Likewise.
29195 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29197 Fix unit testing framework for Qemu 0.12.
29199 * tests/util/grub-shell.in: Remove -serial stdio option.
29201 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29203 POSIX header file wrappers.
29205 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29207 * lib/posix_wrap/ctype.h: Likewise.
29208 * lib/posix_wrap/errno.h: Likewise.
29209 * lib/posix_wrap/langinfo.h: Likewise.
29210 * lib/posix_wrap/limits.h: Likewise.
29211 * lib/posix_wrap/localcharset.h: Likewise.
29212 * lib/posix_wrap/stdint.h: Likewise.
29213 * lib/posix_wrap/stdio.h: Likewise.
29214 * lib/posix_wrap/stdlib.h: Likewise.
29215 * lib/posix_wrap/string.h: Likewise.
29216 * lib/posix_wrap/sys/types.h: Likewise.
29217 * lib/posix_wrap/unistd.h: Likewise.
29218 * lib/posix_wrap/wchar.h: Likewise.
29219 * lib/posix_wrap/wctype.h: Likewise.
29220 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29221 (grub_script.yy.h): Likewise.
29222 * script/yylex.l: Remove POSIX emulation #defines.
29223 * Makefile.in (POSIX_CFLAGS): New variable.
29224 (GNULIB_UTIL_CFLAGS): Likewise.
29228 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29229 (regexp_mod_SOURCES): New variable.
29230 (regexp_mod_CFLAGS): Likewise.
29231 (regexp_mod_LDFLAGS): Likewise.
29232 * commands/regexp.c: New file.
29233 * gnulib/regcomp.c: New file. Imported from gnulib.
29234 * gnulib/regex.c: Likewise.
29235 * gnulib/regex_internal.c: Likewise.
29236 * gnulib/regex_internal.h: Likewise.
29237 * gnulib/regexec.c: Likewise.
29238 * gnulib/regex.h: Likewise.
29240 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29242 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29243 unsupported video mode types.
29245 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29247 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29249 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29251 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29252 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29254 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29256 Remove unused grub_vga_get_font.
29258 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29259 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29261 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29263 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29264 * include/grub/misc.h: Likewise.
29266 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29268 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29269 for which failure is fatal.
29271 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29273 * util/grub-install.in: Use mkdir -p to create grub directory.
29274 * util/i386/efi/grub-install.in: Likewise.
29275 * util/ieee1275/grub-install.in: Likewise.
29277 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29279 * Makefile.in (LEX): new variable.
29281 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29283 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29284 `=' and added double quotes on operands of this equality test.
29286 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29288 * Makefile.in (uninstall): Remove a leftover debug echo.
29289 Reported by: Grégoire Sutre
29291 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29293 MIPS multiboot2 support.
29295 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29296 (multiboot2_mod_SOURCES): New variable.
29297 (multiboot2_mod_CFLAGS): Likewise.
29298 (multiboot2_mod_LDFLAGS): Likewise.
29299 (multiboot2_mod_ASFLAGS): Likewise.
29300 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29302 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29303 (MULTIBOOT_MBI_REGISTER): Likewise.
29304 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29305 (MULTIBOOT_ELF32_MACHINE): Likewise.
29306 (MULTIBOOT_ELF64_MACHINE): Likewise.
29307 * include/grub/mips/multiboot.h: New file.
29308 * include/grub/video.h (grub_video_driver_id): New type
29309 GRUB_VIDEO_DRIVER_SM712.
29310 (grub_video_get_info_and_fini): Export.
29311 (grub_video_get_palette): Likewise.
29312 (grub_video_get_driver_id): Likewise.
29313 * include/multiboot2.h: Resynced with spec.
29314 * loader/i386/multiboot.c: Moved from here ...
29315 * loader/multiboot.c: ... here. All users updated.
29316 (grub_multiboot_boot): Use platform-specific macros.
29317 * loader/i386/multiboot_elfxx.c: Moved from here ...
29318 * loader/multiboot_elfxx.c: ... here. All users updated.
29319 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29320 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29321 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29323 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29325 Import gnulib argp module.
29327 * gnulib/argp-ba.c: New file.
29328 * gnulib/argp-eexst.c: Likewise.
29329 * gnulib/argp-fmtstream.c: Likewise.
29330 * gnulib/argp-fmtstream.h: Likewise.
29331 * gnulib/argp-fs-xinl.c: Likewise.
29332 * gnulib/argp-help.c: Likewise.
29333 * gnulib/argp-namefrob.h: Likewise.
29334 * gnulib/argp-parse.c: Likewise.
29335 * gnulib/argp-pin.c: Likewise.
29336 * gnulib/argp-pv.c: Likewise.
29337 * gnulib/argp-pvh.c: Likewise.
29338 * gnulib/argp-version-etc.c: Likewise.
29339 * gnulib/argp-version-etc.h: Likewise.
29340 * gnulib/argp-xinl.c: Likewise.
29341 * gnulib/argp.h: Likewise.
29343 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29345 * kern/device.c (grub_device_iterate): Clear errors after failed
29348 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29350 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29351 returned by firmware.
29353 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29355 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29356 compilation on coreboot and qemu
29358 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29360 * include/multiboot2.h: Resync with spec.
29362 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29364 Multiboot2 tag support
29366 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29367 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29368 Remove loader/multiboot_loader.c.
29369 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29370 (grub_multiboot2_real_boot): Likewise.
29371 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29372 (grub_get_multiboot_mmap_count): New proto.
29373 (grub_fill_multiboot_mmap): Likewise.
29374 (grub_multiboot_set_video_mode): Likewise.
29375 (grub_multiboot_set_console): Likewise.
29376 (grub_multiboot_load): Likewise.
29377 (grub_multiboot_load_elf): Likewise.
29378 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29379 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29380 * include/multiboot.h: Resynced with specification.
29381 * include/multiboot2.h: Resynced with specification.
29382 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29383 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29384 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29385 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29387 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29388 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29389 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29391 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29393 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29394 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29396 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29397 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29398 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29400 * loader/i386/multiboot_mbi2.c: New file.
29402 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29404 Resync with gnulib.
29406 * Makefile.in (GNULIB_CFLAGS): New variable.
29407 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29408 (grub_script_check_CFLAGS): New variable.
29409 * gnulib/alloca.h: Resync with gnulib.
29410 * gnulib/error.c: Likewise.
29411 * gnulib/error.h: Likewise.
29412 * gnulib/fnmatch.c: Likewise.
29413 * gnulib/fnmatch_loop.c: Likewise.
29414 * gnulib/getdelim.c: Likewise.
29415 * gnulib/getline.c: Likewise.
29416 * gnulib/getopt.c: Likewise.
29417 * gnulib/getopt1.c: Likewise.
29418 * gnulib/getopt_int.h: Likewise.
29419 * gnulib/gettext.h: Likewise.
29420 * gnulib/progname.c: Likewise.
29421 * gnulib/progname.h: Likewise.
29423 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29425 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29426 which is the case with --disabled-nls.
29428 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29429 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29430 * util/misc.c: Likewise.
29431 * util/mkisofs/mkisofs.c: Likewise.
29432 * util/mkisofs/mkisofs.h: Likewise.
29434 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29436 Simplify Apple CC support.
29438 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29439 Add 0 byte at the end not to have a symbol with empty target.
29440 * mmap/i386/pc/mmap_helper.S: Likewise.
29441 * genmk.rb: Ignore errors 2030 and 2050.
29442 * kern/i386/pc/startup.S: Use LOCAL when possible.
29444 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29446 Testcase and the fix for final semicolon on cmdline.
29448 * tests/grub_script_final_semicolon.in: New testcase.
29449 * conf/tests.rmk: Rules for the new testcase.
29450 * script/parser.y: Grammar fix.
29452 2010-03-26 BVK Chaitanya <bvk@localhost>
29454 Blank lines testcase for GRUB script.
29456 * tests/grub_script_blanklines.in: New testcase.
29457 * conf/tests.rmk: Rules for the new testcase.
29459 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29461 Don't use __FILE__.
29463 * genmk.rb: Add -DGRUB_FILE to all C targets.
29464 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29465 * include/grub/list.h: Likewise.
29466 * include/grub/misc.h: Likewise.
29467 * include/grub/mm.h: Likewise.
29468 * include/grub/test.h: Likewise.
29469 * kern/mm.c: Likewise.
29470 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29472 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29474 Sunpc partitions support.
29476 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29477 (grub_fstest_SOURCES): Likewise.
29478 (pkglib_MODULES): Add part_sunpc.mod.
29479 (part_sunpc_mod_SOURCES): New variable.
29480 (part_sunpc_mod_CFLAGS): Likewise.
29481 (part_sunpc_mod_LDFLAGS): Likewise.
29482 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29483 * partmap/sunpc.c: New file.
29485 2010-03-26 BVK Chaitanya <bvk@localhost>
29487 For loop support to GRUB script.
29489 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29490 (grub_script_create_cmdfor): New function prototype.
29491 (grub_script_execute_cmdfor): New function prototype.
29492 * script/execute.c (grub_script_execute_cmdfor): New function.
29493 * script/parser.y (command): New for command.
29494 (forcmd): New grammar rule.
29495 * script/script.c (grub_script_create_cmdfor): New function.
29496 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29498 * tests/grub_script_for1.in: New testcase.
29499 * conf/tests.rmk: Rules for new testcase.
29501 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29505 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29506 'partition' is NULL, grub_partition_get_start already does that.
29507 * commands/loadenv.c (check_blocklists): Likewise.
29508 (write_blocklists): Likewise.
29509 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29510 (grub_fstest_SOURCES): Likewise.
29511 (pkglib_MODULES): Add part_bsd.mod.
29512 (part_bsd_mod_SOURCES): New variable.
29513 (part_bsd_mod_CFLAGS): Likewise.
29514 (part_bsd_mod_LDFLAGS): Likewise.
29515 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29516 (grub_emu_SOURCES): Likewise.
29517 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29518 * include/grub/bsdlabel.h: New file.
29519 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29521 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29522 (grub_partition_map_list): New variable.
29523 (grub_partition_map_register): Inline.
29524 (grub_partition_map_unregister): Likewise.
29525 (FOR_PARTITION_MAPS): New macro.
29526 (grub_partition_map_iterate): Removed.
29527 (grub_partition_get_start): Handle nested partitions.
29528 * include/grub/msdos_partition.h: Remove bsd-related entries.
29529 (grub_pc_partition): Remove.
29530 * kern/disk.c (grub_disk_close): Free partition data.
29531 (grub_disk_adjust_range): Handle nested partitions.
29532 * kern/partition.c (grub_partition_map_probe): New function.
29533 (grub_partition_probe): Parse name to number, handle subpartitions.
29534 (get_partmap): New function.
29535 (grub_partition_iterate): Handle subpartitions.
29536 (grub_partition_get_name): Likewise.
29537 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29538 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29539 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29540 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29542 (acorn_partition_map_probe): Remove.
29543 (acorn_partition_map_get_name): Likewise.
29544 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29546 Set 'index' to 0 since there can be only one partition entry per sector.
29547 (amiga_partition_map_probe): Remove.
29548 (amiga_partition_map_get_name): Likewise.
29549 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29551 Set 'offset' and 'index' to real positions of partitions.
29552 (apple_partition_map_probe): Remove.
29553 (apple_partition_map_get_name): Likewise.
29554 * partmap/bsdlabel.c: New file.
29555 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29557 Allocate 'data' so it can be correctly freed.
29558 Set 'index' to offset inside sector.
29559 (gpt_partition_map_probe): Remove.
29560 (gpt_partition_map_get_name): Likewise.
29561 * partmap/msdos.c (grub_partition_parse): Remove.
29562 (pc_partition_map_iterate): Don't force raw access.
29564 Make 'ext_offset' a local variable.
29565 (pc_partition_map_probe): Remove.
29566 (pc_partition_map_get_name): Remove.
29567 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29569 (sun_partition_map_probe): Remove.
29570 (sun_partition_map_get_name): Likewise.
29571 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29572 (grub_pcpart_type): Likewise.
29573 * util/hostdisk.c (open_device): Handle new numbering scheme.
29574 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29575 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29576 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29577 * util/grub-install.in: Insert all subpartition modules.
29578 * util/ieee1275/grub-install.in: Likewise.
29580 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29582 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29585 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29587 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29589 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29591 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29592 match where 'make install' puts them.
29593 * util/i386/efi/grub-install.in: Likewise.
29595 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29597 * .bzrignore: Add gentrigtables, grub-script-check,
29598 grub_script_check_init.c, grub_script_check_init.h, and
29601 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29603 * kern/parser.c: Indented.
29605 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29607 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29609 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29611 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29612 alpha_mask_size == 0 case.
29614 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29616 GRUB shell lexer and parser improvements.
29618 * conf/any-emu.rmk: Build rule updates.
29619 * conf/common.rmk: Likewise.
29620 * conf/i386-coreboot.rmk: Likewise.
29621 * conf/i386-efi.rmk: Likewise.
29622 * conf/i386-ieee1275.rmk: Likewise.
29623 * conf/i386-pc.rmk: Likewise.
29624 * conf/powerpc-ieee1275.rmk: Likewise.
29625 * conf/x86_64-efi.rmk: Likewise.
29627 * configure.ac: Configure check for flex.
29629 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29631 (grub_lexer_param): Struct member updates.
29632 (grub_parser_param): Likewise.
29633 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29634 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29635 (grub_script_lexer_init): Prototype update.
29636 (grub_script_lexer_record_start): Likewise.
29637 (grub_script_lexer_record_stop): Likewise.
29638 (grub_script_lexer_yywrap): New function prototype.
29639 (grub_script_lexer_fini): Likewise.
29640 (grub_script_execute_argument_to_string): Removed by...
29641 (grub_script_execute_argument_to_argv): ...better version.
29643 * script/execute.c (ROUND_UPTO): New macro.
29644 (grub_script_execute_cmdline): Out of memory fixes.
29645 (grub_script_execute_menuentry): Likewise.
29646 (grub_script_execute_argument_to_string): Removed. Update all
29648 (grub_script_execute_argument_to_argv): ...better version.
29649 * script/function.c (grub_script_function_create): Use
29650 grub_script_execute_argument_to_argv instead of
29651 grub_script_execute_argument_to_string.
29653 * script/lexer.c (check_varstate): Removed.
29654 (check_textstate): Removed.
29655 (grub_script_lexer_record_start): Likewise.
29656 (grub_script_lexer_record_stop): Likewise.
29657 (recordchar): Replaced with...
29658 (grub_script_lexer_record): ...new function.
29659 (nextchar): Removed.
29660 (grub_script_lexer_init): Rewritten.
29661 (grub_script_yylex): Rewritten.
29662 (append_newline): New function.
29663 (grub_script_lexer_yywrap): New function.
29664 (grub_script_lexer_fini): New function.
29665 (grub_script_yyerror): Sets error flag.
29667 * script/yylex.l: New file.
29668 (grub_lexer_yyfree): Wrapper for flex yyffre.
29669 (grub_lexer_yyalloc): Likewise.
29670 (grub_lexer_yyrealloc): Likewise.
29671 * script/parser.y: Refactored.
29673 * script/script.c (grub_script_arg_add): Out of memory fixes.
29674 (grub_script_add_arglist): Likewise.
29675 (grub_script_create_cmdline): Likewise.
29676 (grub_script_create_cmdmenu): Likewise.
29677 (grub_script_add_cmd): Likewise.
29678 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29679 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29682 * tests/grub_script_echo1.in: New testcase.
29683 * tests/grub_script_vars1.in: New testcase.
29684 * tests/grub_script_echo_keywords.in: New testcase.
29686 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29688 Remove some redundancy in build system.
29690 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29691 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29692 (TARGET_LDFLAGS): Add -nostdlib.
29693 (TARGET_IMG_LDFLAGS): Likewise.
29694 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29695 anything since mmap isn't available.
29696 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29698 (pkglib_MODULES): Remove reboot.mod.
29699 (reboot_mod_SOURCES): Removed.
29700 (reboot_mod_CFLAGS): Likewise.
29701 (reboot_mod_LDFLAGS): Likewise.
29702 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29703 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29704 (DEFSYMFILES): Add kernel_syms.lst.
29705 (kernel_img_HEADERS): Add common headers.
29706 (symlist.c): New target.
29707 (kernel_syms.lst): Likewise.
29708 (pkglib_MODULES): Add memdisk.mod.
29709 (memdisk_mod_SOURCES): New variable.
29710 (memdisk_mod_CFLAGS): Likewise.
29711 (memdisk_mod_LDFLAGS): Likewise.
29712 (pkglib_MODULES): Add reboot.mod.
29713 (reboot_mod_SOURCES): New variable.
29714 (reboot_mod_CFLAGS): Likewise.
29715 (reboot_mod_LDFLAGS): Likewise.
29716 (pkglib_MODULES): Add date.mod.
29717 (date_mod_SOURCES): New variable.
29718 (date_mod_CFLAGS): Likewise.
29719 (date_mod_LDFLAGS): Likewise.
29720 (pkglib_MODULES): Add datehook.mod.
29721 (datehook_mod_SOURCES): New variable.
29722 (datehook_mod_CFLAGS): Likewise.
29723 (datehook_mod_LDFLAGS): Likewise.
29724 (pkglib_MODULES): Add lsmmap.mod.
29725 (lsmmap_mod_SOURCES): New variable.
29726 (lsmmap_mod_CFLAGS): Likewise.
29727 (lsmmap_mod_LDFLAGS): Likewise.
29728 (pkglib_MODULES): Add boot.mod.
29729 (boot_mod_SOURCES): New variable.
29730 (boot_mod_CFLAGS): Likewise.
29731 (boot_mod_LDFLAGS): Likewise.
29732 * conf/i386-coreboot.rmk: Removed redundant parts.
29733 * conf/i386-ieee1275.rmk: Likewise.
29734 * conf/i386-pc.rmk: Likewise.
29735 * conf/mips-yeeloong.rmk: Likewise.
29736 * conf/mips.rmk: Likewise.
29737 * conf/powerpc-ieee1275.rmk: Likewise.
29738 * conf/sparc64-ieee1275.rmk: Likewise.
29739 * conf/x86_64-efi.rmk: Likewise.
29740 * conf/i386-coreboot.rmk: Moved qemu parts ..
29741 * conf/i386-qemu.rmk: ... here
29742 * conf/i386-efi.rmk: Moved common parts to...
29743 * conf/x86-efi.rmk: ... here.
29744 * conf/i386.rmk: Added modules common to all x86 variants.
29745 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29746 * disk/memdisk.c: Remove grub/machine/kernel.h.
29747 * gensymlist.sh.in: Include symbol.h.
29748 * hook/datehook.c: Correct module name.
29749 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29750 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29751 * include/grub/i386/efi/serial.h: New file.
29752 * include/grub/x86_64/efi/serial.h: Likewise.
29753 * util/time.c: Likewise.
29754 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29756 2010-03-14 Colin King <colin.king@ubuntu.com>
29757 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29759 Shrink the pre-partition-table part of boot.img by eight bytes.
29761 * boot/i386/pc/boot.S (ERR): New macro.
29762 (chs_mode): Use ERR.
29763 (geometry_error): Likewise.
29764 (hd_probe_error): Remove. This is only used once, so we wrwite
29766 (read_error): Instead of printing read_error_string, just set up
29767 %si and fall through to ...
29768 (error_message): ... this new function, also used by ERR.
29770 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29772 Speed up consecutive hostdisk operations on the same device.
29774 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29775 (grub_util_biosdisk_open): Initialise disk->data.
29776 (struct linux_partition_cache): New structure.
29777 (linux_find_partition): Cache partition start positions; these are
29778 expensive to compute on every read and write.
29779 (open_device): Cache open file descriptor in disk->data, so that we
29780 don't have to reopen it and flush the buffer cache for consecutive
29781 operations on the same device.
29782 (grub_util_biosdisk_close): New function.
29783 (grub_util_biosdisk_dev): Set `close' member.
29785 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29786 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29787 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29788 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29789 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29791 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29793 Compile parts of grub-emu as modules.
29795 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29796 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29797 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29798 (all-local): Add $(GRUB_EMU).
29799 (install-local): Install $(GRUB_EMU).
29800 (uninstall): Uninstall $(GRUB_EMU).
29801 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29802 * kern/dl.c: Likewise.
29803 * commands/sleep.c: Not include machine/time.h.
29804 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29805 (COMMON_CFLAGS): Likewise.
29806 (sbin_UTILITIES): Remove grub-emu.
29807 (grub_emu_SOURCES): Removed.
29808 (kernel_img_RELOCATABLE): New variable.
29809 (pkglib_PROGRAMS): Add kernel.img.
29810 (kernel_img_SOURCES): New variable
29811 (kernel_img_CFLAGS): Likewise.
29812 (kernel_img_LDFLAGS): Likewise.
29813 (TARGET_NO_STRIP): Likewise.
29814 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29815 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29816 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29817 (grub-emu): New target.
29818 (GRUB_EMU): New variable.
29819 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29820 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29821 * loader/xnu.c: Likewise.
29822 * include/grub/pci.h: Likewise.
29823 * genemuinit.sh: New file.
29824 * genemuinitheader.sh: Likewise.
29825 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29826 Support TARGET_NO_DYNAMIC_MODULES.
29827 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29828 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29829 * disk/loopback.c: Likewise.
29830 * font/font_cmd.c: Likewise.
29831 * partmap/acorn.c: Likewise.
29832 * partmap/amiga.c: Likewise.
29833 * partmap/apple.c: Likewise.
29834 * partmap/gpt.c: Likewise.
29835 * partmap/msdos.c: Likewise.
29836 * partmap/sun.c: Likewise.
29837 * parttool/msdospart.c: Likewise.
29838 * term/gfxterm.c: Likewise.
29839 * video/bitmap.c: Likewise.
29840 * video/readers/jpeg.c: Likewise.
29841 * video/readers/png.c: Likewise.
29842 * video/readers/tga.c: Likewise.
29843 * video/video.c: Likewise.
29844 * util/grub-emu.c (read_command_list): Removed.
29845 (main): Don't call util_init_nls.
29846 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29847 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29849 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29851 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29852 date.mod, datehook.mod.
29853 (datetime_mod_SOURCES): New variable.
29854 (datetime_mod_CFLAGS): Likewise.
29855 (datetime_mod_LDFLAGS): Likewise.
29856 (date_mod_SOURCES): Likewise.
29857 (date_mod_CFLAGS): Likewise.
29858 (date_mod_LDFLAGS): Likewise.
29859 (datehook_mod_SOURCES): Likewise.
29860 (datehook_mod_CFLAGS): Likewise.
29861 (datehook_mod_LDFLAGS): Likewise.
29862 * conf/sparc64-ieee1275.rmk: Likewise.
29863 * lib/ieee1275/datetime.c: New file.
29865 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29867 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29868 (ieee1275_fb_mod_SOURCES): New variable.
29869 (ieee1275_fb_mod_CFLAGS): Likewise.
29870 (ieee1275_fb_mod_LDFLAGS): Likewise.
29871 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29873 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29874 (HEAP_MAX_ADDR): Likewise.
29875 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29877 Correct stop condition.
29878 (grub_ieee1275_devices_iterate): New function.
29879 * video/ieee1275.c: New file.
29881 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29883 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29885 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29887 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29888 SCRATCH_PAD_DISKBOOT as scratch.
29889 (bootit): Pass Openfirmware pointer in %o4.
29890 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29892 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29893 with util/grub-mkrawimage.c.
29894 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29895 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29896 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29897 (grub_aout_load) [GRUB_UTIL]: Likewise.
29898 * include/grub/kernel.h (grub_modules_get_end): New proto.
29899 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29900 (SCRATCH_PAD_BOOT): New definition.
29901 (SCRATCH_PAD_DISKBOOT): Likewise.
29902 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29903 * include/grub/sparc64/ieee1275/ieee1275.h
29904 (grub_ieee1275_original_stack): New variable
29905 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29907 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29908 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29909 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29910 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29911 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29912 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29913 (grub_platform_image_format_t): New type.
29914 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29915 * kern/main.c (grub_modules_get_end)
29916 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29917 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29918 (codestart): Switch stacks.
29919 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29921 (grub_heap_init): Use grub_modules_get_end.
29922 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29924 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29926 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29928 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29930 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29932 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29934 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29937 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29939 * genmoddep.awk: Output all missing symbols and not only first.
29941 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29943 * NEWS: Put the date of 1.98 release.
29945 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29947 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29950 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29952 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29953 completition in the middle of string.
29955 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29957 * util/grub-mkrescue.in: Use mktemp with explicit template.
29959 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29961 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29963 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29965 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29968 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29970 Fix FreeBSD compilation.
29972 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29973 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29975 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29977 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29979 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29981 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29983 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29985 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29987 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29989 Support relative image path in theme file.
29991 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29992 (image_set_property): Handle theme_dir and relative path.
29994 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29996 * configure.ac: Alias amd64 to x86_64.
29998 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30000 * NEWS: mention multiboot on EFI.
30002 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30004 * kern/main.c (grub_load_modules): Handle errors from init functions of
30007 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30009 * normal/autofs.c (autoload_fs_module): Handle errors.
30011 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30013 Disable linux.mod on qemu-mips since it's not functional and leads
30014 to compilation failure.
30016 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30017 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30018 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30019 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30020 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30021 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30022 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30023 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30024 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30025 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30026 Reported by: BVK Chaitanya
30028 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30030 * INSTALL: Add gettext as a dependency and add qemu to a new section
30031 "Prerequisites for make-check".
30033 2010-03-04 Christian Franke <franke@computer.org>
30035 * util/grub-pe2elf.c: Add missing include "progname.h".
30037 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30039 * normal/crypto.c (read_crypto_list): Fix a typo.
30040 Reported by: Seth Goldberg.
30042 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30044 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30045 Reported by: Seth Goldberg.
30047 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30049 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30052 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30054 * genmk.rb: Remove terminal*.lst in make clean.
30055 Reported by: Seth Goldberg.
30057 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30059 * util/i386/efi/grub-install.in: Copy gettext files.
30061 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30063 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30065 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30067 Wait for user entry basing on presence of output rather than on errors.
30069 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30070 (grub_install_newline_hook): Likewise.
30071 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30072 * normal/menu.c (show_menu): Check line_counter to determine presence
30074 * normal/term.c (grub_normal_line_counter): New variable.
30075 (grub_normal_get_line_counter): New function.
30076 (grub_install_newline_hook): Likewise.
30078 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30080 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30082 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30084 * configure.ac: Update version to 1.98.
30086 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30088 * util/grub.d/10_linux.in (linux_entry): Don't default to
30089 gfxpayload=keep if Linux doesn't support video handover.
30091 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30093 Don't compile video modules on yeeloong since video subsystem is part
30096 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30097 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30098 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30099 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30100 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30101 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30102 * include/grub/bitmap_scale.h: Likewise.
30103 * include/grub/bufio.h: Likewise.
30104 * include/grub/font.h: Likewise.
30105 * include/grub/gfxterm.h: Likewise.
30106 * include/grub/video.h: Likewise.
30107 * include/grub/vbe.h: Don't include video_fb.h.
30108 * video/i386/pc/vbe.c: Include video_fb.h.
30109 * commands/i386/pc/vbetest.c: Include video.h.
30111 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30113 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30114 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30115 default entry if GRUB_SAVEDEFAULT=true. This allows using
30116 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30117 saving a new default on every boot.
30119 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30121 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30122 * normal/term.c (read_terminal_list): Likewise.
30123 * normal/main.c (grub_normal_init_page): Likewise.
30124 (grub_normal_read_line_real): Likewise.
30126 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30128 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30130 Reported by: Seth Goldberg.
30132 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30134 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30135 duplicate declaration of `start'.
30137 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30139 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30141 Reported by: Georgy Buranov
30143 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30145 * util/grub-mkrawimage.c (usage): Change string formatting to
30148 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30150 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30153 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30155 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30156 Reported by: Michael Suchanek.
30158 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30160 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30161 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30163 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30165 Remove any reference to non-free fonts.
30167 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30168 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30169 uses non-free components.
30170 * font/font.c (grub_font_get_name): Remove example name.
30171 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30172 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30173 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30174 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30176 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30178 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30180 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30182 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30184 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30186 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30188 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30190 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30192 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30194 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30195 * docs/grub.texi (Command-line and menu entry commands): Document play
30198 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30200 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30201 parse arguments as inline tempo and notes. Move code for playing notes
30203 (play): ... new function.
30205 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30207 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30208 grub_uint16_t instead of short.
30209 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30210 disk from little endian to cpu endianness.
30212 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30214 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30215 GRUB_TICKS_PER_SECOND instead of 120.
30217 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30219 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30220 escape sequence after \e.
30222 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30224 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30225 non-ASCII characters.
30227 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30229 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30230 set root in single quotes to prevent \, from being unescaped.
30232 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30234 Prevent unknown commands from stopping menuentry execution.
30236 * script/execute.c (grub_script_execute_cmdline): Print error after
30239 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30241 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30242 Reported by: Pavel Pisa.
30244 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30246 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30248 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30250 Merge grub_ieee1275_map_physical into grub_map and rename to
30253 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30254 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30256 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30257 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30259 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30261 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30263 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30264 opening and not after.
30266 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30268 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30271 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30273 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30274 (alloc_phys): Use ALIGN_UP instead of align_addr.
30276 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30278 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30280 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30282 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30284 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30286 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30289 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30291 Fix over-4GiB seek on sparc64.
30293 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30294 Replace pos_i and pos_lo with pos. All users updated.
30295 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30297 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30299 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30302 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30304 * util/grub-mkrawimage.c (main): Call set_program_name.
30306 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30308 Properly align 64-bit targets.
30310 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30311 (generate_image): Use ALIGN_ADDR.
30313 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30315 Properly create cross-endian images.
30317 * include/grub/types.h (grub_host_to_target_addr): New macro
30318 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30320 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30322 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30324 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30326 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30328 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30329 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30330 (grub_linux_boot): Divide by 64K when on VESA.
30332 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30334 Support GRUB_GFXPAYLOAD_LINUX.
30336 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30337 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30339 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30341 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30342 to show messages instead of discarding them.
30343 Process errors after executing command and not before. Keep old method
30346 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30348 * configure.ac: Check for ft2build.h.
30350 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30352 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30354 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30356 * genkernsyms.sh.in: Use TARGET_CC.
30358 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30362 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30364 * include/grub/multiboot2.h: Remove leftover file.
30365 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30366 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30368 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30370 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30372 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30374 Fix warnings in grub-emu when compiling with maximum warning options.
30376 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30377 (grub_arch_modules_addr): Return 0 and not NULL.
30378 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30379 (xstrdup): Use newstr instead of dup.
30380 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30381 of disk to dsk to avoid shadowing.
30382 (find_free_slot): Fix prototype.
30383 * util/getroot.c (grub_util_is_dmraid): Make static.
30384 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30385 Add missing prototype.
30386 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30388 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30390 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30393 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30395 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30398 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30400 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30401 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30402 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30403 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30404 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30405 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30407 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30409 * include/grub/err.h (grub_err_printf): Don't export.
30411 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30413 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30415 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30417 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30418 * kern/misc.c (grub_gettext_dummy): Make static.
30420 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30422 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30424 * kern/term.c (grub_putchar): Likewise.
30426 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30428 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30429 buggy hook call and memory leak.
30431 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30433 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30435 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30437 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30439 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30441 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30443 Return grub_errno on allocation error.
30445 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30447 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30449 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30451 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30452 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30454 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30456 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30458 (grub_pxefs_open): Likewise.
30460 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30462 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30463 * util/grub.d/10_kfreebsd.in: Likewise.
30464 * util/grub.d/10_linux.in: Likewise.
30466 2010-02-06 Colin D Bennett <colin@gibibit.com>
30468 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30469 (gfxmenu_mod_SOURCES): New variable.
30470 (gfxmenu_mod_CFLAGS): Likewise.
30471 (gfxmenu_mod_LDFLAGS): Likewise.
30472 * include/grub/term.h (grub_term_set_current_output): Declare
30474 * docs/gfxmenu-theme-example.txt: New file.
30475 * gfxmenu/gfxmenu.c: Likewise.
30476 * gfxmenu/gui_box.c: Likewise.
30477 * gfxmenu/gui_canvas.c: Likewise.
30478 * gfxmenu/gui_circular_progress.c: Likewise.
30479 * gfxmenu/gui_image.c: Likewise.
30480 * gfxmenu/gui_label.c: Likewise.
30481 * gfxmenu/gui_list.c: Likewise.
30482 * gfxmenu/gui_progress_bar.c: Likewise.
30483 * gfxmenu/gui_string_util.c: Likewise.
30484 * gfxmenu/gui_util.c: Likewise.
30485 * gfxmenu/icon_manager.c: Likewise.
30486 * gfxmenu/model.c: Likewise.
30487 * gfxmenu/named_colors.c: Likewise.
30488 * gfxmenu/theme_loader.c: Likewise.
30489 * gfxmenu/view.c: Likewise.
30490 * gfxmenu/widget-box.c: Likewise.
30491 * include/grub/gfxmenu_model.h: Likewise.
30492 * include/grub/gfxmenu_view.h: Likewise.
30493 * include/grub/gfxwidgets.h: Likewise.
30494 * include/grub/gui.h: Likewise.
30495 * include/grub/gui_string_util.h: Likewise.
30496 * include/grub/icon_manager.h: Likewise.
30498 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30500 Agglomerate scrolling in gfxterm.
30502 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30503 (grub_virtual_screen_setup): Initialise 'total_screen'.
30504 (write_char): Split to ...
30505 (paint_char): ... this ...
30506 (write_char): ... and this.
30507 (paint_char): Handle delayed scrolling.
30508 (draw_cursor): Likewise.
30509 (scroll_up): Split to ...
30510 (real_scroll): ... this ...
30511 (scroll_up): ... and this.
30512 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30514 (grub_gfxterm_refresh): Call real_scroll.
30516 2010-02-06 Colin D Bennett <colin@gibibit.com>
30518 * include/grub/misc.h (grub_iscntrl): New inline function.
30519 (grub_isalnum): Likewise.
30520 (grub_strtol): Likewise.
30522 2010-02-06 Colin D Bennett <colin@gibibit.com>
30524 * normal/menu_text.c (get_entry_number): Move from here ...
30525 * normal/menu.c (get_entry_number): ... moved here.
30526 * include/grub/menu.h (grub_menu_get_default_entry_index):
30528 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30529 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30530 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30531 (grub_menu_viewer_should_return): Likewise.
30532 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30533 * normal/menu_text.c (run_menu): Enable menu switching.
30534 * normal/menu_viewer.c (should_return): New variable.
30535 (menu_viewer_changed): Likewise.
30536 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30537 (grub_menu_viewer_should_return): New function.
30538 (menuviewer_write_hook): Likewise.
30539 (grub_menu_viewer_init): Likewise.
30541 2010-02-06 Colin D Bennet <colin@gibibit.com>
30542 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30544 Support for gfxterm in a window.
30546 * include/grub/gfxterm.h: New file.
30547 * include/grub/video.h (struct grub_video_rect): New declaration.
30548 (grub_video_rect_t): Likewise.
30549 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30550 (refcount): New variable.
30551 (render_target): Likewise.
30552 (window): Likewise.
30553 (repaint_callback): Likewise.
30554 (grub_virtual_screen_setup): Use 'render_target'.
30555 (init_window): New function.
30556 (grub_gfxterm_init_window): Likewise.
30557 (grub_gfxterm_init): Check reference counter.
30559 (destroy_window): New function.
30560 (grub_gfxterm_destroy_window): Likewise.
30561 (grub_gfxterm_fini): Check reference counter.
30562 Use destroy_window.
30563 (redraw_screen_rect): Restore viewport.
30564 Use 'render_target' and 'window'.
30565 Call 'repaint_callback'.
30566 (write_char): Use 'render_target'.
30567 (draw_cursor): Likewise.
30568 (scroll_up): Restore viewport.
30569 Use 'render_target' and 'window'.
30570 Call 'repaint_callback'.
30571 (grub_gfxterm_cls): Likewise.
30572 (grub_gfxterm_refresh): Use 'window'.
30573 (grub_gfxterm_set_repaint_callback): New function.
30574 (grub_gfxterm_background_image_cmd): Use 'window'.
30575 (grub_gfxterm_get_term): New function.
30576 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30578 2010-02-06 Colin D Bennett <colin@gibibit.com>
30580 Bitmap scaling support.
30582 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30583 (bitmap_scale_mod_SOURCES): New variable.
30584 (bitmap_scale_mod_CFLAGS): Likewise.
30585 (bitmap_scale_mod_LDFLAGS): Likewise.
30586 * include/grub/bitmap_scale.h: New file.
30587 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30588 (background_image_cmd_options): New variable.
30589 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30590 (cmd): Rename and change type to ...
30591 (background_image_cmd_handle): ... this. All users updated.
30592 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30593 * video/bitmap_scale.c: New file.
30595 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30599 * Makefile.in (LIBSDL): New variable.
30600 (enable_grub_emu_sdl): Likewise.
30601 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30602 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30603 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30604 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30605 * util/sdl.c: New file.
30607 2010-02-06 Colin D Bennett <colin@gibibit.com>
30608 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30610 Double buffering support.
30612 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30613 * include/grub/video.h: Update comment.
30614 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30616 (grub_video_fb_doublebuf_blit_init): New prototype.
30617 * term/gfxterm.c (scroll_up): Support double buffering.
30618 (grub_gfxterm_refresh): Likewise.
30619 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30620 (grub_video_fb_doublebuf_blit_init): Likewise.
30621 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30622 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30623 'displayed_page', 'render_page' and 'update_screen'.
30624 (grub_video_vbe_fini): Free offscreen buffer.
30625 (doublebuf_pageflipping_commit): New function.
30626 (doublebuf_pageflipping_update_screen): Likewise.
30627 (doublebuf_pageflipping_init): Likewise.
30628 (double_buffering_init): Likewise.
30629 (grub_video_vbe_setup): Enable doublebuffering.
30630 (grub_video_vbe_swap_buffers): Implement.
30631 (grub_video_vbe_set_active_render_target): Handle double buffering.
30632 (grub_video_vbe_get_active_render_target): Likewise.
30633 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30634 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30635 (grub_video_vbe_enable_double_buffering): Likewise.
30636 (grub_video_vbe_swap_buffers): Use update_screen.
30637 (grub_video_set_mode): Use double buffering.
30639 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30641 * maintainance/gentrigtables.py: Remove.
30642 * lib/trig.c: Likewise.
30644 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30646 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30648 (trigtables.c): New rule.
30649 (gentrigtables): Likewise.
30650 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30652 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30654 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30657 2010-02-06 Colin D Bennet <colin@gibibit.com>
30659 Trigonometry support.
30661 * include/grub/trig.h: New file.
30662 * lib/trig.c: Likewise.
30663 * maintainance/gentrigtables.py: Likewise.
30664 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30665 (trig_mod_SOURCES): New variable.
30666 (trig_mod_CFLAGS): Likewise.
30667 (trig_mod_LDFLAGS): Likewise.
30669 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30671 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30674 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30676 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30679 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30681 * util/hostdisk.c (open_device): Don't use partition device when reading
30682 before the partition.
30683 (grub_util_biosdisk_read): Don't read from partition and before the
30684 partition in single operation.
30685 (grub_util_biosdisk_write): Don't write to partition and before the
30686 partition in single operation.
30688 2010-02-03 Torsten Landschoff <torsten@debian.org>
30690 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30693 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30695 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30697 (grub_biosdisk_write): Refuse to write to CDROM.
30699 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30701 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30703 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30705 * font/font.c (find_glyph): Check that bmp_idx is available before
30707 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30708 with (font == NULL).
30710 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30712 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30714 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30716 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30717 * util/grub-script-check.c (getline): Fix empty lines case.
30719 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30721 * Makefile.in (check): Exit with fail status when one of the tests
30723 * tests/example_functional_test.c (example_test): Fix reversed assert.
30724 * tests/example_unit_test.c (example_test): Likewise.
30726 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30728 * util/grub.d/10_linux.in: This script does not use any of the
30729 contents of gettext.sh, only the external command `gettext', so stop
30730 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30731 the same prefix as GRUB.)
30732 * util/grub.d/10_kfreebsd.in: Likewise.
30734 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30736 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30739 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30741 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30744 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30746 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30747 having a 4KiB and not 32KiB buffer size.
30749 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30751 * util/hostfs.c: Include `<errno.h>'.
30752 (grub_hostfs_read): Handle errors from fseeko() and fread().
30754 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30756 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30757 loop when using read hooks on files whose size isn't sector-aligned.
30759 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30761 Remove unused parameter.
30763 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30764 (grub_iso9660_open): Remove initialization of `data->length'.
30766 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30768 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30769 memleak conditions.
30771 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30773 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30774 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30776 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30778 * util/bin2h.c (usage): Fix warning (space after backslash).
30780 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30782 * font/font.c: Include `grub/fontformat.h.
30783 Remove font file format constants.
30784 (grub_font_load): Use the new macros.
30785 * include/grub/fontformat.h: New file.
30786 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30787 (write_font_pf2): Use the new macros.
30789 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30791 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30794 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30796 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30798 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30799 (_start): Macroify `0x7F'.
30801 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30802 (make_install_device): Use "(pxe)" as fallback prefix when booting
30805 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30807 * configure.ac: Reset LIBS after check for libgcc symbols.
30809 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30811 * util/hostdisk.c (open_device): Add trailing newline to debug
30814 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30816 * configure.ac: Check for `limits.h'.
30817 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30819 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30821 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30822 capitalize error strings.
30824 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30826 * util/grub.d/10_hurd.in: Add a recovery mode.
30828 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30830 * configure.ac: Check for libgcc symbols with -nostdlib.
30832 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30834 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30836 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30838 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30839 stack since heap may be unavailable at that point.
30840 (grub_ofconsole_gotoxy): Likewise.
30842 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30844 * configure.ac: Check for _restgpr_14_x.
30845 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30846 and _savegpr_* prototypes.
30848 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30850 Use generic grub_reboot() for i386-efi.
30852 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30853 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30854 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30856 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30858 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30859 presence of "prefix" variable as it breaks when normal.mod is
30862 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30864 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30865 stack since heap is unavailable at that point.
30867 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30869 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30870 (grub_freebsd_bootinfo): Rewritten.
30871 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30873 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30875 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30877 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30879 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30882 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30884 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30885 around for handling "/" to the correct fix. Fix a memory leak. Use
30886 xstrdup instead of strdup.
30888 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30890 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30892 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30894 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30896 * font/font.c (struct grub_font): New member 'bmp_idx'.
30897 (font_init): Initialise 'bmp_idx'.
30898 (load_font_index): Fill 'bmp_idx'.
30899 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30901 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30903 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30906 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30908 Move context handling out of the kernel.
30910 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30911 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30912 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30913 * conf/i386-efi.rmk: Likewise.
30914 * conf/i386-ieee1275.rmk: Likewise.
30915 * conf/i386-pc.rmk: Likewise.
30916 * conf/powerpc-ieee1275.rmk: Likewise.
30917 * conf/sparc64-ieee1275.rmk: Likewise.
30918 * conf/x86_64-efi.rmk: Likewise.
30919 * include/grub/env.h: Include grub/menu.h.
30920 (grub_env_var_type): Removed.
30921 (grub_env_var): Replaced field 'type' with 'global'.
30922 (grub_env_find): New prototype.
30923 (grub_env_context_open): Remove EXPORT_FUNC.
30924 (grub_env_context_close): Likewise.
30925 (grub_env_export): Likewise.
30926 (grub_env_set_data_slot): Removed.
30927 (grub_env_get_data_slot): Likewise.
30928 (grub_env_unset_data_slot): Likewise.
30929 (grub_env_unset_menu): New prototype.
30930 (grub_env_set_menu): Likewise.
30931 (grub_env_get_menu): Likewise.
30932 * include/grub/env_private.h: New file.
30933 * include/grub/normal.h (grub_context_init): New prototype.
30934 (grub_context_fini): Likewise.
30935 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30936 * normal/context.c (grub_cmd_export): ... to here.
30937 * kern/env.c: Include env_private.h.
30938 (HASHSZ): Moved to include/grub/env_private.h.
30939 (grub_env_context): Likewise.
30940 (grub_env_sorted_var): Likewise.
30941 (current_context): Renamed from this ...
30942 (grub_current_context): ...to this. 'static' removed. All users updated.
30943 (grub_env_find): Removed 'static'.
30944 (grub_env_context_open): Moved to normal/context.c.
30945 (grub_env_context_close): Likewise.
30946 (grub_env_export): Likewise.
30947 (mangle_data_slot_name): Removed.
30948 (grub_env_set_data_slot): Likewise.
30949 (grub_env_get_data_slot): Likewise.
30950 (grub_env_unset_data_slot): Likewise.
30951 * kern/main.c (grub_set_root_dev): Don't export root.
30952 It will be done later.
30953 (grub_main): Don't export prefix.
30954 It will be done later.
30955 * normal/context.c: New file.
30956 * normal/main.c (free_menu): Use grub_env_unset_menu.
30957 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30958 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30959 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30960 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30962 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30966 * commands/setpci.c: New file.
30967 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30968 (setpci_mod_SOURCES): New variable.
30969 (setpci_mod_CFLAGS): Likewise.
30970 (setpci_mod_LDFLAGS): Likewise.
30972 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30974 Byte-addressable PCI configuration space.
30976 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30978 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30979 GRUB_PCI_REG_CACHELINE.
30980 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30981 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30982 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30983 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30984 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30985 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30986 grub_pci_make_address.
30987 (lock_rom_area): Likewise.
30988 * commands/lspci.c (grub_lspci_iter): Use macroses
30989 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30990 of grub_pci_make_address.
30991 * disk/ata.c (grub_ata_pciinit): Likewise.
30992 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30993 (GRUB_PCI_REG_VENDOR): Likewise.
30994 (GRUB_PCI_REG_DEVICE): Likewise.
30995 (GRUB_PCI_REG_COMMAND): Likewise.
30996 (GRUB_PCI_REG_STATUS): Likewise.
30997 (GRUB_PCI_REG_REVISION): Likewise.
30998 (GRUB_PCI_REG_CLASS): Likewise.
30999 (GRUB_PCI_REG_CACHELINE): Likewise.
31000 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31001 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31002 (GRUB_PCI_REG_BIST): Likewise.
31003 (GRUB_PCI_REG_ADDRESSES): Likewise.
31004 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31005 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31006 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31007 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31008 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31009 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31010 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31011 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31012 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31013 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31014 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31015 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31016 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31017 (GRUB_PCI_REG_MIN_GNT): Likewise.
31018 (GRUB_PCI_REG_MAX_LAT): Likewise.
31019 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31020 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31021 * video/efi_uga.c (find_framebuf): Likewise.
31022 * video/sm712.c (grub_video_sm712_setup): Likewise.
31023 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31026 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31028 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31029 can be reliably determined to be supported.
31031 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31033 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31034 that VESA is supported.
31035 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31038 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31040 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31042 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31044 * util/misc.c (make_system_path_relative_to_its_root): Work around
31045 special-casing of "/", as previous incarnation of this routine did.
31047 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31049 Fix any-emu compilation.
31051 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31052 * grub_bin2h_SOURCES: New variable.
31054 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31056 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31058 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31060 * util/grub.d/00_header.in: Fix handling of locale_dir.
31062 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31064 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31065 as possible unifont location (Gentoo).
31066 Reported by: Alexander Brüning
31068 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31070 Don't try to generate lists for kernel.img.
31072 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31073 (pkglib_MODULES): Remove kernel.img.
31074 (kernel_img_EXPORTS): Removed.
31075 (kernel_img_RELOCATABLE): New variable.
31076 * conf/x86_64-efi.rmk: Likewise.
31077 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31079 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31081 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31082 grub_xasprintf or grub_snprintf.
31083 (grub_vsprintf): Likewise.
31084 (grub_snprintf): New proto.
31085 (grub_vsnprintf): Likewise.
31086 (grub_xasprintf): Likewise.
31087 (grub_xvasprintf): Likewise.
31088 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31089 (grub_sprintf): Removed.
31090 (grub_vsnprintf): New function.
31091 (grub_snprintf): Likewise.
31092 (grub_xvasprintf): Likewise.
31093 (grub_xasprintf): Likewise.
31094 (grub_vsprintf): Renamed to ...
31095 (grub_vsnprintf_real): ...this. New argument max_len.
31097 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31099 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31100 fix grub-script-check warning.
31102 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31104 * include/grub/font.h (grub_font_load): Fix prototype.
31106 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31108 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31110 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31112 * include/grub/x86_64/at_keyboard.h: New file.
31114 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31116 * loader/mips/linux.c: Include missing grub/i18n.h.
31118 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31120 * normal/menu.c (notify_execution_failure): Clarify error message.
31122 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31124 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31125 return value (and revert all return statements). Update users.
31127 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31129 * kern/device.c (grub_device_iterate): Allocate new part_ent
31130 structure based on sizeof (*p) rather than sizeof (p->next), to
31131 account for structure padding.
31133 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31134 disk is NULL, which might happen for LVM physical volumes with no
31137 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31139 * loader/mips/linux.c (grub_cmd_initrd)
31140 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31142 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31144 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31145 (grub_video_video_init, grub_video_bitmap_init)
31146 (grub_font_manager_init, grub_term_gfxterm_init)
31147 (grub_at_keyboard_init): New extern declarations.
31148 (grub_machine_init): Initialize gfxterm and at_keyboard.
31150 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31152 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31153 `gfxterm.mod' into core image.
31155 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31156 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31157 (kernel_img_FORMAT): Copy to ...
31159 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31160 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31161 (kernel_img_FORMAT): ... here, and ...
31163 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31164 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31165 (kernel_img_FORMAT): ... here.
31167 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31168 and input (at_keyboard) terminals in kernel.
31169 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31171 (pkglib_MODULES): Remove `pci.mod'.
31172 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31173 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31174 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31175 (at_keyboard_mod_LDFLAGS): Remove variables.
31177 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31179 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31181 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31183 * include/grub/mips/libgcc.h: Only export symbols for functions
31184 that libgcc provides.
31186 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31190 * bus/bonito.c: New file.
31191 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31192 GRUB_PCI_NUM_DEVICES.
31193 * term/i386/pc/serial.c: Move to ...
31194 * term/serial.c: ... here. All users updated.
31195 * util/i386/pc/grub-mkimage.c: Move to ...
31196 * util/grub-mkrawimage.c: ... here. All users updated.
31197 * term/i386/pc/at_keyboard.c: Move to ...
31198 * term/at_keyboard.c: ... here. All users updated.
31199 * conf/mips-qemu-mips.rmk: New file.
31200 * conf/mips-yeeloong.rmk: Likewise.
31201 * conf/mips.rmk: Likewise.
31202 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31204 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31206 (grub_ata_pciinit): Support CS5536.
31207 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31208 * font/font_cmd.c (loadfont_command): Open file before passing it to
31210 (pseudo_file_read): New function.
31211 (pseudo_file_close): Likewise.
31212 (pseudo_fs): New structure.
31213 (load_font_module): New function.
31214 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31215 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31216 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31217 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31218 * include/grub/i386/at_keyboard.h: Split into ...
31219 * include/grub/at_keyboard.h: ... this ...
31220 * include/grub/i386/at_keyboard.h: ... and this.
31221 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31223 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31225 (grub_elf64_size): Likewise.
31226 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31228 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31229 * include/grub/i386/coreboot/serial.h: Rewritten.
31230 * include/grub/i386/ieee1275/serial.h: Include
31231 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31232 * include/grub/i386/pc/serial.h: Moved from here ...
31233 * include/grub/serial.h: ... to here. All users updated.
31234 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31235 (GRUB_PCI_NUM_BUS): Likewise.
31236 (GRUB_PCI_NUM_DEVICES): Likewise.
31237 (grub_pci_device_map_range): Add missing volatile keyword.
31238 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31239 * include/grub/mips/at_keyboard.h: New file.
31240 * include/grub/mips/cache.h: Likewise.
31241 * include/grub/mips/io.h: Likewise.
31242 * include/grub/mips/kernel.h: Likewise.
31243 * include/grub/mips/libgcc.h: Likewise.
31244 * include/grub/mips/pci.h: Likewise.
31245 * include/grub/mips/qemu-mips/boot.h: Likewise.
31246 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31247 * include/grub/mips/qemu-mips/loader.h: Likewise.
31248 * include/grub/mips/qemu-mips/memory.h: Likewise.
31249 * include/grub/mips/qemu-mips/serial.h: Likewise.
31250 * include/grub/mips/qemu-mips/time.h: Likewise.
31251 * include/grub/mips/relocator.h: Likewise.
31252 * include/grub/mips/time.h: Likewise.
31253 * include/grub/mips/types.h: Likewise.
31254 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31255 * include/grub/mips/yeeloong/boot.h: Likewise.
31256 * include/grub/mips/yeeloong/kernel.h: Likewise.
31257 * include/grub/mips/yeeloong/loader.h: Likewise.
31258 * include/grub/mips/yeeloong/memory.h: Likewise.
31259 * include/grub/mips/yeeloong/pci.h: Likewise.
31260 * include/grub/mips/yeeloong/serial.h: Likewise.
31261 * include/grub/mips/yeeloong/time.h: Likewise.
31262 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31263 * kern/elf.c (grub_elf32_size): New parameter. All users
31265 (grub_elf64_size): Likewise.
31266 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31267 Load modules before saying "Welcome to GRUB!".
31268 Call grub_refresh after saying "Welcome to GRUB!".
31269 * kern/mips/cache.S: New file.
31270 * kern/mips/cache_flush.S: Likewise.
31271 * kern/mips/dl.c: Likewise.
31272 * kern/mips/init.c: Likewise.
31273 * kern/mips/qemu-mips/init.c: Likewise.
31274 * kern/mips/startup.S: Likewise.
31275 * kern/mips/yeeloong/init.c: Likewise.
31276 * kern/term.c (grub_putcode): Handle NULL terminal.
31277 (grub_getcharwidth): Likewise.
31278 (grub_getkey): Likewise.
31279 (grub_checkkey): Likewise.
31280 (grub_getkeystatus): Likewise.
31281 (grub_getxy): Likewise.
31282 (grub_getwh): Likewise.
31283 (grub_gotoxy): Likewise.
31284 (grub_cls): Likewise.
31285 (grub_setcolorstate): Likewise.
31286 (grub_setcolor): Likewise.
31287 (grub_getcolor): Likewise.
31288 (grub_refresh): Likewise.
31289 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31290 (write_jump): Add hatch nop.
31291 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31292 * lib/mips/setjmp.S: New file.
31293 * loader/mips/linux.c: Likewise.
31294 * term/i386/pc/at_keyboard.c: Move from here ...
31295 * term/at_keyboard.c: ... to here.
31296 * term/i386/pc/serial.c: Moved from here ...
31297 * term/serial.c: ... to here. All users updated.
31298 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31299 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31300 (serial_translate_key_sequence): Avoid deadlock.
31301 (grub_serial_getkey): Handle backspace.
31302 (grub_serial_putchar): Fix newline handling.
31303 * util/i386/pc/grub-mkimage.c: Move from here ...
31304 * util/grub-mkrawimage.c: ... to here. All users updated.
31305 (generate_image): New parameters 'font_path' and 'format'.
31306 Support embedding font.
31307 Use grub_host_to_target* instead of grub_cpu_to_le*.
31308 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31309 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31310 (options): New option "--font".
31312 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31313 (main): Handle "--font".
31314 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31315 (grub_virtual_screen_setup): Set bg_color_display.
31316 (redraw_screen_rect): Use bg_color_display instead of incorrect
31318 (grub_gfxterm_cls): Likewise.
31319 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31320 Support embedding config file.
31321 (add_segments): Likewise.
31322 (options): New option "--config".
31323 (main): Handle "--config".
31324 * video/sm712.c: New file.
31326 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31328 Fix parallel builds.
31330 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31331 font.c depend on ascii.h).
31333 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31335 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31337 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31339 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31340 By default: disabled.
31341 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31344 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31346 * font/font.c: Update copyright years.
31347 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31349 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31351 * font/font.c: Include `ascii.h'.
31352 (ASCII_BITMAP_SIZE): New macro.
31353 (ascii_font_glyph): Define.
31354 (ascii_glyph_lookup): New function.
31355 (grub_font_get_string_width): Change comment. If glyph not found, use
31356 ascii_glyph_lookup.
31357 (grub_font_get_glyph_with_fallback): If glyph not available returns
31358 ascii_glyph_lookup.
31359 * util/grub-mkfont.c (file_formats): New enum.
31360 (options): Add `ascii-bitmaps' new option.
31361 (usage): Add `asii-bitmaps' new option.
31362 (write_font_ascii_bitmap): New function.
31363 (write_font): Rename to ...
31364 (write_font_p2): ... this. Remove print_glyphs call.
31365 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31366 used. Call print_glyphs.
31367 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31369 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31371 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31372 (grub_bin2h_SOURCES): New variable.
31373 * util/bin2h.c: New file.
31375 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31377 * include/multiboot.h: Resynced with spec.
31378 * include/multiboot2.h: Likewise.
31379 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31380 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31382 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31384 * include/grub/term.h (grub_term_register_input,
31385 grub_term_register_output): Check return of terminal init()
31386 routines, and abort if errors are raised.
31388 * commands/terminal.c: Update copyright year.
31390 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31392 * commands/terminal.c (grub_cmd_terminal_input)
31393 (grub_cmd_terminal_output): Check return of terminal init()
31394 routines, and abort if errors are raised.
31396 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31398 * include/grub/i386/bsd.h: Fix include pathes.
31400 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31402 Add missing *BSD copyright headers.
31404 * include/grub/aout.h: Add BSD licence.
31405 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31406 * include/grub/i386/freebsd_linker.h: ... here,
31407 * include/grub/i386/freebsd_reboot.h: ... here,
31408 * include/grub/i386/netbsd_bootinfo.h: ... here,
31409 * include/grub/i386/netbsd_reboot.h: ... here,
31410 * include/grub/i386/openbsd_bootarg.h: ... here,
31411 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31412 licence to each file.
31414 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31416 * acinclude.m4: Remove `nop' assembly instruction; it's not
31417 implemented by all architectures.
31419 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31421 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31422 ELILO. This is no longer necessary.
31424 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31426 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31428 * util/grub-script-check.c: grub-script-check tool.
31429 * conf/common.rmk: Make rules for grub-script-check.
31431 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31433 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31434 spotting it back in 2008. Shame on me for forgetting he did.
31436 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31438 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31440 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31441 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31442 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31443 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31444 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31445 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31447 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31449 * include/grub/test.h: Add license header.
31450 * tests/example_functional_test.c: Likewise.
31451 * tests/example_unit_test.c: Likewise.
31452 * tests/lib/functional_test.c: Likewise.
31453 * tests/lib/test.c: Likewise.
31454 * tests/lib/unit_test.c: Likewise.
31456 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31458 Use flag-based instead of hook-based video mode selection and "auto"
31461 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31462 (grub_video_set_mode): Changed prototype. All users updated.
31463 (grub_video_check_mode_flag): New inline function.
31464 * video/video.c (parse_modespec): New function.
31465 (grub_video_set_mode): Parse flags and keywords.
31467 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31469 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31472 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31474 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31476 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31478 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31480 * util/grub-emu.c (usage): Likewise.
31481 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31482 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31483 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31484 * util/i386/pc/grub-setup.c (usage): Likewise.
31486 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31488 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31490 (grub_util_info): Likewise.
31491 (grub_util_error): Likewise.
31492 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31493 and/or new lines in `grub_util_warna', `grub_util_info',
31494 `grub_util_error' calls.
31495 * util/getroot.c: Likewise.
31496 * util/grub-editenv.c: Likewise.
31497 * util/grub-emu.c: Likewise.
31498 * util/grub-fstest.c: Likewise.
31499 * util/grub-mkdevicemap.c: Likewise.
31500 * util/grub-mkfont.c: Likewise.
31501 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31502 * util/grub-mkrelpath.c: Likewise.
31503 * util/grub-pe2elf.c: Likewise.
31504 * util/grub-probe.c: Likewise.
31505 * util/hostdisk.c: Likewise.
31506 * util/i386/efi/grub-mkimage.c: Likewise.
31507 * util/i386/pc/grub-mkimage.c: Likewise.
31508 * util/i386/pc/grub-setup.c: Likewise.
31509 * util/ieee1275/ofpath.c: Likewise.
31510 * util/mkisofs/eltorito.c: Likewise.
31511 * util/mkisofs/rock.c: Likewise.
31512 * util/mkisofs/write.c: Likewise.
31513 * util/raid.c: Likewise.
31514 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31515 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31517 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31519 Enable multiboot on non-pc.
31521 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31522 multiboot.mod and multiboot2.mod to ...
31523 * conf/i386.rmk (pkglib_MODULES): ... here.
31524 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31526 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31527 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31529 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31530 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31532 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31533 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31535 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31536 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31538 (ata_mod_SOURCES): Removed.
31539 (ata_mod_CFLAGS): Likewise.
31540 (ata_mod_LDFLAGS): Likewise.
31541 (relocator_mod_SOURCES): Removed.
31542 (relocator_mod_CFLAGS): Likewise.
31543 (relocator_mod_ASFLAGS): Likewise.
31544 (relocator_mod_LDFLAGS): Likewise.
31546 * include/grub/x86_64/multiboot.h: New file.
31547 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31550 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31552 Video multiboot support.
31554 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31556 * include/multiboot.h: Resynced with multiboot specification.
31557 * include/multiboot2.h: Likewise.
31558 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31559 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31560 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31561 (HAS_VGA_TEXT): Likewise.
31562 (accepts_video): New variable.
31563 (grub_multiboot_set_accepts_video): New function.
31564 (grub_multiboot_get_mbi_size): Account for video structures.
31565 (set_video_mode): New function.
31566 (retrieve_video_parameters): Likewise.
31567 (grub_multiboot_make_mbi): Fill video fields.
31569 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31573 * include/grub/video.h (grub_video_driver_id): New type.
31574 (grub_video_adapter): New member 'id'. All users updated.
31575 (grub_video_get_driver_id): New proto.
31576 * video/video.c (grub_video_get_driver_id): New function.
31578 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31580 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31583 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31585 * normal/cmdline.c (print_completion): Gettextizze.
31587 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31589 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31591 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31593 * gettext/gettext.c (grub_gettext_translate): Push and pop
31595 (grub_gettext_delete_list): Change comment style.
31596 * kern/err.c (grub_error): Gettextizze.
31597 (grub_fatal): Gettextizze.
31599 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31601 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31602 (grub_linux16_real_boot): ... this.
31603 * kern/i386/loader.S: Likewise.
31604 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31605 (grub_linux16_boot): New function. Switches to text mode and calls
31606 grub_linux16_real_boot().
31608 * loader/i386/bsd.c: Include `<grub/video.h>'.
31609 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31610 text mode before calling grub_unix_real_boot().
31612 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31613 (grub_multiboot_boot): Switch to text mode before calling
31614 grub_relocator32_boot().
31616 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31617 (grub_chainloader_boot): Switch to text mode before calling
31618 grub_chainloader_real_boot().
31620 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31621 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31623 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31626 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31627 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31629 * util/grub.d/00_header.in: Define a "savedefault" function for use
31631 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31633 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31634 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31636 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31637 saved_entry if boot_once is unset.
31638 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31639 previous saved entry (i.e. grub-reboot).
31641 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31643 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31645 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31647 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31649 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31651 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31653 * util/grub-reboot.in: Fix --version output.
31654 * util/grub-set-default.in: Likewise.
31656 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31658 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31661 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31663 * util/grub.d/00_header.in: Quote the value assigned to `default',
31664 in case it contains spaces.
31666 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31668 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31669 `save_default_entry' call from the macosx case to the linux case.
31671 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31672 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31674 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31675 in `chosen' environment variable.
31676 * normal/menu_text.c (get_entry_number): Check if the variable
31677 matches the title of a menu entry.
31678 (run_menu): Pass menu to get_entry_number.
31680 * util/grub-reboot.in: New file.
31681 * util/grub-set-default.in: New file.
31682 * conf/common.rmk (grub-reboot): New utility.
31683 (grub-set-default): New utility.
31685 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31686 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31687 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31688 move it to `saved_entry' for the next boot. Load environment on
31690 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31691 * util/grub.d/10_hurd.in: Likewise.
31692 * util/grub.d/10_linux.in (linux_entry): Likewise.
31693 * util/grub.d/10_windows.in: Likewise.
31694 * util/grub.d/30_os-prober.in: Likewise.
31696 * util/grub-install.in: Create environment block.
31697 * util/i386/efi/grub-install.in: Likewise.
31698 * util/ieee1275/grub-install.in: Likewise.
31699 * util/sparc64/ieee1275/grub-install.in: Likewise.
31701 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31703 Unit testing framework for GRUB.
31705 * Makefile.in: Test framework build rules for 'make check'.
31706 * conf/tests.rmk: Build rules for individual tests and framework.
31708 * include/grub/test.h: Header file for whitebox tests.
31709 * tests/lib/functional_test.c: Framework support for whitebox
31711 * tests/lib/test.c: Common whitebox testing code for unit and
31713 * tests/lib/unit_test.c: Framework support for whitebox unit
31716 * tests/util/grub-shell-tester.in: Support utility for grub-script
31718 * tests/util/grub-shell.in: Utility to execute grub-script
31719 commands in a Qemu instance.
31721 * tests/example_functional_test.c: Example whitebox functional
31723 * tests/example_grub_script_test.in: Example grub-script test.
31724 * tests/example_scripted_test.in: Example scripted test.
31725 * tests/example_unit_test.c: Example whitebox unit test.
31727 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31729 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31730 Add loader/i386/multiboot_mbi.c.
31731 (multiboot2_mod_SOURCES): Likewise.
31732 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31733 (multiboot2_mod_SOURCES): Likewise.
31734 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31735 (grub_multiboot_make_mbi): Likewise.
31736 (grub_multiboot_free_mbi): Likewise.
31737 (grub_multiboot_init_mbi): Likewise.
31738 (grub_multiboot_add_module): Likewise.
31739 (grub_multiboot_set_bootdev): Likewise.
31740 * loader/i386/multiboot.c (mbi): Removed.
31741 (mbi_dest): Likewise.
31742 (alloc_mbi): New variable.
31743 (grub_multiboot_payload_size): Removed. All users updated.
31744 (grub_multiboot_pure_size): New variable.
31745 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31746 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31747 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31748 (grub_fill_multiboot_mmap): Likewise.
31749 (grub_multiboot_get_bootdev): Likewise.
31750 (grub_multiboot): Use multiboot_mbi functions.
31751 * loader/i386/multiboot_mbi.c: New file.
31753 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31755 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31756 it would result in module crash.
31758 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31760 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31761 (grub_ofconsole_getwh): Split to ...
31762 (grub_ofconsole_getwh): ... this.
31763 (grub_ofconsole_dimensions): ...and this.
31764 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31766 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31768 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31770 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31772 * loader/i386/pc/multiboot2.c: Removed stalled file.
31774 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31776 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31777 Reported by: Grégoire Sutre
31779 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31781 * util/misc.c (canonicalize_file_name): New function.
31782 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31783 instead of realpath().
31785 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31787 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31788 and make it clearer that it's optional. Based on confusion
31791 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31793 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31794 in premature implicit newline.
31796 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31798 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31799 which resulted in garbled command line at the end of screen.
31801 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31803 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31804 initialization with similar approach as with other Linux loaders.
31806 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31808 Fix i386-ieee1275 build.
31810 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31811 and grub_term_height() for video_{width,height} initialization.
31813 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31815 Fix grub-emu build.
31817 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31819 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31820 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31822 Support for multiple terminals.
31824 * Makefile.in (pkglib_DATA): terminal.lst.
31825 (terminal.lst): New target.
31826 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31827 (GRUB_MOD_INIT(handler)): Likewise.
31828 (GRUB_MOD_FINI(handler)): Likewise.
31829 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31830 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31831 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31832 (grub_cmd_sleep): Use grub_term_save_pos.
31833 * commands/terminal.c: New file.
31834 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31835 commands/terminal.c and lib/charset.c.
31836 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31837 (pkglib_MODULES): Add terminal.mod.
31838 (terminal_mod_SOURCES): New variable.
31839 (terminal_mod_CFLAGS): Likewise.
31840 (terminal_mod_LDFLAGS): Likewise.
31841 * genhandlerlist.sh: Don't handle terminals.
31842 * genmk.rb: Generate terminal-*.lst.
31843 * genterminallist.sh: New file.
31844 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31845 (grub_is_valid_utf8): Likewise.
31846 (grub_utf8_to_ucs4_alloc): Likewise.
31847 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31848 (grub_menu_register_viewer): Changed argument.
31849 (grub_menu_try_text): New proto.
31850 (grub_gfxmenu_try_hook): New declaration.
31851 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31852 (grub_menu_init_page): Additional argument term.
31853 (grub_normal_init_page): Likewise.
31854 (grub_cmdline_get): Arguments simplified.
31855 (grub_utf8_to_ucs4_alloc): Removed.
31856 (grub_print_ucs4): Additional argument term.
31857 (grub_getstringwidth): Likewise.
31858 (grub_print_message_indented): Likewise.
31859 (grub_menu_text_register_instances): New proto.
31860 (grub_show_menu): Likewise.
31861 (read_terminal_list): Likewise.
31862 (grub_set_more): Likewise.
31863 * include/grub/parser.h: Include handler.h.
31864 * include/grub/reader.h: Rewritten.
31865 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31866 (GRUB_TERM_WIDTH): Changed to function.
31867 (GRUB_TERM_HEIGHT): Likewise.
31868 (GRUB_TERM_BORDER_WIDTH): Likewise.
31869 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31870 (GRUB_TERM_NUM_ENTRIES): Likewise.
31871 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31872 (GRUB_TERM_CURSOR_X): Likewise.
31873 (grub_term_input_class): Likewise.
31874 (grub_term_output_class): Likewise.
31875 (grub_term_outputs_disabled): New declaration.
31876 (grub_term_inputs_disabled): Likewise.
31877 (grub_term_outputs): Likewise.
31878 (grub_term_inputs): Likewise.
31879 (grub_term_register_input): Rewritten.
31880 (grub_term_register_output): Likewise.
31881 (grub_term_unregister_input): Likewise.
31882 (grub_term_unregister_output): Likewise.
31883 (FOR_ACTIVE_TERM_INPUTS): New macro.
31884 (FOR_DISABLED_TERM_INPUTS): Likewise.
31885 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31886 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31887 * include/grub/terminfo.h: Add oterm argument to all protypes.
31888 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31889 Use grub_rescue_run.
31890 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31892 * kern/reader.c: Removed. All users updated.
31893 * kern/rescue_reader.c (grub_rescue_init): Removed.
31894 (grub_rescue_reader): Likewise.
31895 (grub_register_rescue_reader): Likewise.
31896 (grub_rescue_run): New function based on kern/reader.c.
31897 * kern/term.c: Adapted for multiterm.
31898 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31899 (grub_is_valid_utf8): Likewise.
31900 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31901 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31903 * loader/i386/linux.c (grub_linux_boot): Likewise.
31904 * normal/auth.c (grub_username_get): New function.
31905 (grub_auth_check_authentication): Use grub_username_get.
31906 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31907 * normal/color.c: Adapt for multiterm.
31908 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31909 (grub_normal_init_page): Additional argument term.
31910 (read_lists): Call read_terminal_lists.
31911 (grub_enter_normal_mode): Call grub_cmdline_run.
31912 Handle grub_normal_exit_level.
31913 (grub_cmd_normal): Make reentrant.
31914 (grub_cmd_normal_exit): New function.
31915 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31916 * normal/menu.c: Adapt for multiterm.
31917 * normal/menu_entry.c: Likewise.
31918 * normal/menu_text.c: Likewise.
31919 * normal/menu_viewer.c: Removed. All users updated.
31920 * normal/term.c: New file.
31921 * util/console.c: Change order of includes to workaround a bug in
31923 * term/terminfo.c: New argument oterm on all exported functions.
31925 * util/grub-editenv.c (grub_term_input_class): Removed.
31926 (grub_term_output_class): Likewise.
31928 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31930 Make loader output a bit more user-friendly.
31932 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31933 is being loaded. Likewise for the Hurd.
31935 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31936 that kernel of FreeBSD ${version} is being loaded.
31938 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31940 (grub_cmd_initrd): Likewise.
31941 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31942 that Linux ${version} is being loaded. Likewise for initrd.
31944 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31946 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31948 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31950 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31951 (GRUB_MOD_INIT): Gettextizze.
31952 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31953 (GRUB_MOD_INIT): Gettextizze.
31954 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31955 (grub_cmd_linux): Capitalise Linux.
31956 (GRUB_MOD_INIT): Gettextizze.
31957 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31958 (grub_cmd_linux): Capitalise Linux.
31959 (GRUB_MOD_INIT): Gettextizze.
31960 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31961 (grub_cmd_linux): Capitalise Linux.
31962 (GRUB_MOD_INIT): Gettextizze.
31963 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31964 (GRUB_MOD_INIT): Gettextizze.
31965 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31966 (grub_cmd_linux): Capitalise Linux.
31967 (GRUB_MOD_INIT): Gettextizze.
31968 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31969 (grub_cpu_xnu_init): Gettextizze.
31970 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31971 (GRUB_MOD_INIT): Gettextizze.
31972 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31973 (GRUB_MOD_INIT): Gettextizze.
31974 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31975 (grub_linux_load64): Capitalise Linux.
31976 (GRUB_MOD_INIT): Gettextizze.
31977 * loader/xnu.c: Include `<grub/i18n.h>'.
31978 (GRUB_MOD_INIT): Gettextizze.
31979 * po/POTFILES: Add `loader/efi/appleloader.c',
31980 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31981 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31982 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31983 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31984 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31985 and `loader/xnu.c'.
31987 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31989 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31991 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31993 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31994 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31995 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31997 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31999 Reset Multiboot 2 support. New loader implements the draft in
32000 /branches/multiboot2 and shares as much code as possible with the
32001 production Multiboot 1 implementation.
32003 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32004 * loader/multiboot2.c: Likewise.
32005 * loader/i386/multiboot_helper.S: Likewise.
32006 * include/multiboot2.h: Replace with latest version from the draft
32007 in /branches/multiboot2.
32009 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32010 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32011 and `loader/multiboot2.c'.
32012 (pkglib_MODULES): Add `multiboot2.mod'.
32013 (multiboot2_mod_SOURCES): New variable.
32014 (multiboot2_mod_LDFLAGS): Likewise.
32015 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32017 * conf/i386-pc.rmk: Likewise.
32019 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32020 (multiboot_mod_SOURCES): Remove variable.
32021 (multiboot_mod_LDFLAGS): Likewise.
32022 (multiboot_mod_CFLAGS): Likewise.
32024 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32025 `<multiboot2.h>' instead of `<multiboot.h>'.
32026 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32027 (MULTIBOOT_HEADER_MAGIC): New macros.
32029 * loader/multiboot_loader.c (module_version_status): Remove variable.
32030 (find_multi_boot2_header): Remove function.
32031 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32032 logic. Always check for the Multiboot version we're compiling for.
32033 (grub_cmd_module_loader): Likewise.
32034 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32035 command instead of `multiboot'.
32037 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32039 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32040 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32043 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32044 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32046 Fix breakage introduced with previous commit.
32048 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32050 * normal/handler.c (read_handler_list): Revert part of previous commit
32051 affecting this file.
32052 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32053 (grub_normal_execute): ... here.
32055 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32057 Merge prefix-redefinition-fix branch.
32059 * normal/autofs.c (read_fs_list): Make function capable of being
32060 run multiple times, gracefuly replacing the previous data
32062 * normal/dyncmd.c (read_command_list): Likewise.
32063 * normal/handler.c (read_handler_list): Likewise.
32064 * normal/main.c (read_lists): New function. Calls all the
32065 list reading functions.
32066 (grub_normal_execute): Use read_lists() instead of calling all
32067 list reading functions explicitly. Register read_lists() as a
32068 variable hook attached to ${prefix}.
32070 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32072 Merge crypto branch.
32074 * Makefile.in (pkglib_DATA): Add crypto.lst.
32075 (crypto.lst): New target.
32076 * commands/hashsum.c: New file.
32077 * commands/password.c (check_password): Use grub_crypto_memcmp.
32078 * commands/password_pbkdf2.c: New file.
32079 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32080 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32081 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32082 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32083 -I$(srcdir)/lib/libgcrypt_wrap.
32084 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32085 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32086 password_pbkdf2.mod.
32087 (crypto_mod_SOURCES): New variable.
32088 (crypto_mod_CFLAGS): Likewise.
32089 (crypto_mod_LDFLAGS): Likewise.
32090 (hashsum_mod_SOURCES): New variable.
32091 (hashsum_mod_CFLAGS): Likewise.
32092 (hashsum_mod_LDFLAGS): Likewise.
32093 (pbkdf2_mod_SOURCES): New variable.
32094 (pbkdf2_mod_CFLAGS): Likewise.
32095 (pbkdf2_mod_LDFLAGS): Likewise.
32096 (password_pbkdf2_mod_SOURCES): New variable.
32097 (password_pbkdf2_mod_CFLAGS): Likewise.
32098 (password_pbkdf2_mod_LDFLAGS): Likewise.
32099 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32100 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32101 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32102 Include conf/gcry.rmk.
32103 * include/grub/auth.h: Rewritten.
32104 * include/grub/crypto.h: New file.
32105 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32106 * include/grub/normal.h (read_crypto_list): New prototype.
32107 * lib/crypto.c: New file.
32108 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32109 * lib/pbkdf2.c: Likewise.
32110 * normal/auth.c (grub_auth_strcmp): Removed.
32111 (grub_iswordseparator): Likewise.
32112 (grub_auth_strword): Likewise.
32113 (is_authenticated): Use grub_strword.
32114 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32115 and grub_strword. Pass entered password to authentication callback.
32116 * normal/crypto.c: New file.
32117 * normal/main.c: Call read_crypto_list.
32118 * util/grub-mkpasswd-pbkdf2.c: New file.
32119 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32121 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32123 Fix descent and ascent calculation.
32125 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32126 (options): New option "asce".
32128 (add_char): Ignore invalid glyphs for descent calculation.
32129 Calculate ascent from actual content.
32130 (print_glyphs): Use 'asce'.
32131 (write_font): Likewise. Allow ascent override.
32132 (main): Handle "asce" option.
32134 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32136 * kern/err.c: Include `<grub/i18n.h>'.
32137 (grub_print_error): Add full stop. Gettextizze.
32138 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32139 (grub_bsd_load_elf): Capitalise ELF.
32140 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32141 (grub_cmd_freebsd_module): Likewise.
32142 (grub_cmd_freebsd_module_elf): Likewise.
32143 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32145 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32147 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32148 * commands/search_file.c (HELP_MESSAGE): New macro.
32149 * commands/search_label.c (HELP_MESSAGE): Likewise.
32150 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32151 * po/POTFILES: Add `commands/search_file.c',
32152 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32153 `commands/search.c'.
32155 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32157 * config.rpath: Update from Gnulib.
32159 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32161 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32163 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32165 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32167 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32169 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32170 arguments to fread so that we get a return value in bytes, rather
32171 than something that will normally be rounded down to 0.
32172 Adjust error handling to avoid producing garbage when size_t is not
32173 the same size as long long.
32175 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32177 * util/mkisofs/write.c (padblock_write): Check return value of
32180 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32182 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32185 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32187 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32189 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32190 instead of manual alignment.
32191 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32192 verbose). Avoid attempts to read past end of the device
32193 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32194 but GRUB_DISK_CACHE_SIZE may exceed that).
32196 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32198 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32199 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32202 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32204 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32206 (grub_efi_piwg_device_path): New structure
32207 (grub_efi_piwg_device_path_t): New type.
32208 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32209 (devpath_1): Transform to a structure. All users updated.
32210 (devpath_2): Likewise.
32211 (devpath_3): Likewise.
32212 (devpath_4): Likewise.
32213 (devpath_5): Likewise.
32215 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32217 * loader/efi/appleloader.c: Restored. Update all users.
32219 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32221 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32223 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32224 (struct boot_blocklist): Move from here ...
32225 * include/grub/i386/pc/boot.h [ASM_FILE]
32226 (struct grub_boot_blocklist): ... to here. Update all users.
32227 (setup): Only initialize `start' member of `first_block'
32228 structure. Add assert() calls to verify the other members.
32230 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32231 (generate_image): Fix broken blocklist length initialization.
32232 Add assert() call to verify blocklist `segment' field.
32234 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32236 * loader/efi/appleloader.c: Remove. Update all users.
32238 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32240 * boot/i386/pc/boot.S: Update copyright year.
32241 * boot/i386/pc/cdboot.S: Likewise.
32242 * boot/i386/pc/diskboot.S: Likewise.
32243 * boot/i386/pc/lnxboot.S: Likewise.
32244 * boot/i386/pc/pxeboot.S: Likewise.
32245 * bus/pci.c: Likewise.
32246 * commands/cmp.c: Likewise.
32247 * commands/help.c: Likewise.
32248 * commands/hexdump.c: Likewise.
32249 * commands/i386/pc/halt.c: Likewise.
32250 * commands/i386/pc/play.c: Likewise.
32251 * commands/i386/pc/vbeinfo.c: Likewise.
32252 * commands/ls.c: Likewise.
32253 * commands/test.c: Likewise.
32254 * disk/dmraid_nvidia.c: Likewise.
32255 * disk/i386/pc/biosdisk.c: Likewise.
32256 * disk/ieee1275/nand.c: Likewise.
32257 * disk/ieee1275/ofdisk.c: Likewise.
32258 * disk/lvm.c: Likewise.
32259 * disk/raid.c: Likewise.
32260 * disk/raid6_recover.c: Likewise.
32261 * disk/scsi.c: Likewise.
32262 * fs/affs.c: Likewise.
32263 * fs/cpio.c: Likewise.
32264 * fs/ext2.c: Likewise.
32265 * fs/hfs.c: Likewise.
32266 * fs/iso9660.c: Likewise.
32267 * fs/ntfs.c: Likewise.
32268 * fs/sfs.c: Likewise.
32269 * fs/udf.c: Likewise.
32270 * fs/ufs.c: Likewise.
32271 * fs/xfs.c: Likewise.
32272 * gencmdlist.sh: Likewise.
32273 * genmk.rb: Likewise.
32274 * include/grub/disk.h: Likewise.
32275 * include/grub/efi/api.h: Likewise.
32276 * include/grub/efi/efi.h: Likewise.
32277 * include/grub/efi/pe32.h: Likewise.
32278 * include/grub/elf.h: Likewise.
32279 * include/grub/fs.h: Likewise.
32280 * include/grub/i386/at_keyboard.h: Likewise.
32281 * include/grub/i386/pc/memory.h: Likewise.
32282 * include/grub/i386/pc/vbe.h: Likewise.
32283 * include/grub/i386/pci.h: Likewise.
32284 * include/grub/i386/tsc.h: Likewise.
32285 * include/grub/ieee1275/ieee1275.h: Likewise.
32286 * include/grub/ntfs.h: Likewise.
32287 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32288 * include/grub/sparc64/libgcc.h: Likewise.
32289 * include/grub/symbol.h: Likewise.
32290 * include/grub/types.h: Likewise.
32291 * include/multiboot2.h: Likewise.
32292 * io/gzio.c: Likewise.
32293 * kern/device.c: Likewise.
32294 * kern/disk.c: Likewise.
32295 * kern/efi/efi.c: Likewise.
32296 * kern/efi/mm.c: Likewise.
32297 * kern/elf.c: Likewise.
32298 * kern/file.c: Likewise.
32299 * kern/i386/dl.c: Likewise.
32300 * kern/i386/pc/init.c: Likewise.
32301 * kern/i386/pc/startup.S: Likewise.
32302 * kern/ieee1275/ieee1275.c: Likewise.
32303 * kern/ieee1275/init.c: Likewise.
32304 * kern/main.c: Likewise.
32305 * kern/mm.c: Likewise.
32306 * kern/powerpc/dl.c: Likewise.
32307 * kern/sparc64/dl.c: Likewise.
32308 * kern/x86_64/dl.c: Likewise.
32309 * lib/hexdump.c: Likewise.
32310 * loader/efi/appleloader.c: Likewise.
32311 * loader/i386/ieee1275/linux.c: Likewise.
32312 * loader/i386/pc/chainloader.c: Likewise.
32313 * loader/i386/pc/linux.c: Likewise.
32314 * loader/i386/pc/multiboot2.c: Likewise.
32315 * loader/ieee1275/multiboot2.c: Likewise.
32316 * loader/multiboot2.c: Likewise.
32317 * loader/multiboot_loader.c: Likewise.
32318 * loader/powerpc/ieee1275/linux.c: Likewise.
32319 * normal/completion.c: Likewise.
32320 * normal/menu_entry.c: Likewise.
32321 * partmap/apple.c: Likewise.
32322 * util/grub.d/10_hurd.in: Likewise.
32323 * util/hostfs.c: Likewise.
32324 * video/readers/png.c: Likewise.
32326 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32328 * include/grub/misc.h (GNUC_PREREQ): New macro.
32329 (ATTRIBUTE_ERROR): New macro.
32330 * include/grub/list.h (grub_bad_type_cast_real): Use
32333 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32335 * normal/menu_text.c (print_message): Change messages.
32337 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32339 * normal/menu_entry.c (store_completion): Gettextizze.
32341 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32343 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32345 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32347 * po/POTFILES: Sort correctly.
32349 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32351 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32352 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32353 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32355 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32356 summary. Gettextizze the strings.
32357 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32358 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32359 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32361 (GRUB_MOD_INIT): Remove command name from summary.
32362 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32364 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32365 * term/i386/pc/serial.c (options): Add full stops.
32366 (GRUB_MOD_INIT): Remove command name from the summary.
32368 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32370 * commands/acpi.c: Gettextizze help strings and/or options. Include
32371 `grub/i18n.h' if needed.
32372 * commands/blocklist.c: Likewise.
32373 * commands/boot.c: Likewise.
32374 * commands/cat.c: Likewise.
32375 * commands/cmp.c: Likewise.
32376 * commands/configfile.c: Likewise.
32377 * commands/crc.c: Likewise.
32378 * commands/date.c: Likewise.
32379 * commands/echo.c: Likewise.
32380 * commands/efi/fixvideo.c: Likewise.
32381 * commands/efi/loadbios.c: Likewise.
32382 * commands/gptsync.c: Likewise.
32383 * commands/halt.c: Likewise.
32384 * commands/handler.c: Likewise.
32385 * commands/hdparm.c: Likewise.
32386 * commands/hexdump.c: Likewise.
32387 * commands/i386/cpuid.c: Likewise.
32388 * commands/i386/pc/drivemap.c: Likewise.
32389 * commands/i386/pc/halt.c: Likewise.
32390 * commands/i386/pc/pxecmd.c: Likewise.
32391 * commands/i386/pc/vbeinfo.c: Likewise.
32392 * commands/i386/pc/vbetest.c: Likewise.
32393 * commands/ieee1275/suspend.c: Likewise.
32394 * commands/keystatus.c: Likewise.
32395 * commands/loadenv.c: Likewise.
32396 * commands/ls.c: Likewise.
32397 * commands/lsmmap.c: Likewise.
32398 * commands/lspci.c: Likewise.
32399 * commands/memrw.c: Likewise.
32400 * commands/minicmd.c: Likewise.
32401 * commands/parttool.c: Likewise.
32402 * commands/password.c: Likewise.
32403 * commands/probe.c: Likewise.
32404 * commands/read.c: Likewise.
32405 * commands/reboot.c: Likewise.
32406 * commands/search.c: Likewise.
32407 * commands/sleep.c: Likewise.
32408 * commands/test.c: Likewise.
32409 * commands/true.c: Likewise.
32410 * commands/usbtest.c: Likewise.
32411 * commands/videotest.c: Likewise.
32412 * commands/xnu_uuid.c: Likewise.
32413 * disk/loopback.c: Likewise.
32414 * hello/hello.c: Likewise.
32415 * loader/i386/bsd.c: Likewise.
32416 * term/i386/pc/serial.c: Likewise.
32417 * po/POTFILES: Add new files.
32419 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32421 * term/i386/pc/at_keyboard.c
32422 (keyboard_controller_wait_untill_ready): Rename to ...
32423 (keyboard_controller_wait_until_ready): ... this. Update all users.
32425 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32427 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32428 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32429 string using string width.
32430 * normal/menu_text.c (grub_print_message_indented): Use
32431 grub_print_spaces and not print_spaces.
32432 (print_timeout): Likewise.
32433 (print_spaces): Move to...
32434 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32436 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32438 Import from Gnulib.
32440 * gnulib/getdelim.c: New file.
32441 * gnulib/getline.c: Likewise.
32443 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32445 * include/grub/list.h (grub_assert_fail): Removed.
32446 (grub_bad_type_cast_real): New function.
32447 (grub_bad_type_cast): New macro.
32448 (GRUB_AS_LIST): Use grub_bad_type_cast.
32449 (GRUB_AS_LIST_P): Likewise.
32450 (GRUB_AS_NAMED_LIST): Likewise.
32451 (GRUB_AS_NAMED_LIST_P): Likewise.
32452 (GRUB_AS_PRIO_LIST): Likewise.
32453 (GRUB_AS_PRIO_LIST_P): Likewise.
32454 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32456 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32458 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32461 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32463 * configure.ac: Check for TARGET_CFLAGS initialization before we
32464 initialize it ourselves (sigh).
32465 Move a few modifications to TARGET_CFLAGS to be unconditional
32466 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32469 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32470 * term/i386/pc/at_keyboard.c
32471 (keyboard_controller_wait_untill_ready): Likewise.
32472 (keyboard_controller_led): Rename `led_status' paramter to avoid
32475 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32477 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32480 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32482 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32484 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32486 * normal/menu_text.c (grub_print_message_indented): Prevent
32487 past-the-end-of-array dereference.
32489 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32491 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32492 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32494 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32496 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32497 * normal/main.c (grub_normal_read_line): Remove a space from the
32500 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32502 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32503 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32504 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32505 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32506 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32507 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32508 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32510 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32512 * video/readers/jpeg.c (cmd): Declare.
32513 (grub_cmd_jpegtest): Use `grub_command_t' type.
32514 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32516 (GRUB_MOD_FINI): Use `cmd' to unregister.
32517 * video/readers/png.c (cmd): Declare.
32518 (grub_cmd_pngtest): Use `grub_command_t' type.
32519 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32521 (GRUB_MOD_FINI): Use `cmd' to unregister.
32522 * video/readers/tga.c (cmd): Declare.
32523 (grub_cmd_tgatest): Use `grub_command_t' type.
32524 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32526 (GRUB_MOD_FINI): Use `cmd' to unregister.
32528 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32530 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32532 * kern/corecmd.c (grub_register_core_commands): Likewise.
32533 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32534 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32535 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32536 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32537 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32538 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32539 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32540 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32541 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32542 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32543 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32544 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32545 * normal/handler.c (insert_handler): Likewise.
32546 * normal/main.c (GRUB_MOD_INIT): Likewise.
32547 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32549 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32551 * commands/help.c (grub_cmd_help): Print the command name before the
32553 (GRUB_MOD_INIT): Remove command name from the summary.
32554 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32556 * lib/arg.c (find_long): Print the command name before the summary.
32557 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32559 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32560 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32561 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32562 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32563 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32564 * commands/date.c (GRUB_MOD_INIT): Likewise.
32565 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32566 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32567 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32568 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32569 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32570 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32571 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32572 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32573 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32574 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32575 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32576 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32577 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32578 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32579 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32580 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32581 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32582 * commands/password.c (GRUB_MOD_INIT): Likewise.
32583 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32584 * commands/read.c (GRUB_MOD_INIT): Likewise.
32585 * commands/search.c (GRUB_MOD_INIT): Likewise.
32586 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32587 * commands/test.c (GRUB_MOD_INIT): Likewise.
32588 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32589 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32590 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32591 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32592 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32593 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32594 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32595 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32596 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32597 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32598 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32599 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32600 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32601 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32603 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32605 Use search command for preliminar UUID search.
32607 * commands/search.c: Split into ...
32608 * commands/search_wrap.c: ...this
32609 * commands/search.c: ...and this.
32610 * commands/search_file.c: New file.
32611 * commands/search_label.c: New file.
32612 * commands/search_uuid.c: New file.
32613 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32614 Add commands/search_wrap.c, commands/search_file.c,
32615 commands/search_label.c and commands/search_uuid.c.
32616 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32617 (search_mod_SOURCES): Set to commands/search_wrap.c.
32618 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32620 (search_fs_file_mod_SOURCES): New variable.
32621 (search_fs_file_mod_CFLAGS): Likewise.
32622 (search_fs_file_mod_LDFLAGS): Likewise.
32623 (search_label_mod_SOURCES): Likewise.
32624 (search_label_mod_CFLAGS): Likewise.
32625 (search_label_mod_LDFLAGS): Likewise.
32626 (search_fs_uuid_mod_SOURCES): New variable.
32627 (search_fs_uuid_mod_CFLAGS): Likewise.
32628 (search_fs_uuid_mod_LDFLAGS): Likewise.
32629 (fs_file_mod_SOURCES): Removed.
32630 (fs_file_mod_CFLAGS): Likewise.
32631 (fs_file_mod_LDFLAGS): Likewise.
32632 (fs_uuid_mod_SOURCES): Removed.
32633 (fs_uuid_mod_CFLAGS): Likewise.
32634 (fs_uuid_mod_LDFLAGS): Likewise.
32635 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32636 Set to util/grub-install.in.
32637 * disk/fs_file.c: Removed.
32638 * disk/fs_uuid.c: Likewise.
32639 * include/grub/search.h: New file.
32640 * util/grub-install.in: Handle sparc64.
32641 Create and use load.cfg.
32642 * util/sparc64/ieee1275/grub-install.in: Removed.
32644 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32646 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32647 Ignore return status if CF is cleared.
32648 (grub_biosdisk_get_diskinfo_standard): Likewise.
32650 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32652 * term/i386/pc/at_keyboard.c
32653 (keyboard_controller_wait_untill_ready): New function.
32654 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32655 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32656 for keyboard polling, rather than duplicate the same loop. This
32657 saves a few bytes in code size.
32659 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32661 Support for (pxe[:server[:gateway]]) syntax and
32662 use environment variable for PXE.
32664 * commands/i386/pc/pxecmd.c (options): Removed.
32665 (print_ip): Removed.
32666 (grub_cmd_pxe): Removed
32667 (grub_cmd_pxe_unload): New function.
32668 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32669 (grub_pxe_your_ip): Made static.
32670 (grub_pxe_default_server_ip): Likewise.
32671 (grub_pxe_default_gateway_ip): Likewise.
32672 (grub_pxe_blksize): Likewise.
32673 (parse_ip): New function.
32674 (grub_pxe_open): Support server and gateway specification.
32675 (grub_pxe_close): Free disk->data.
32676 (grub_pxefs_open): Use disk->data.
32677 (grub_pxefs_read): Likewise.
32678 (grub_env_write_readonly): New function.
32679 (set_mac_env): Likewise.
32680 (set_env_limn_ro): Likewise.
32681 (parse_dhcp_vendor): Likewise.
32682 (grub_pxe_detect): Set the environment variables.
32683 (set_ip_env): New function.
32684 (write_ip_env): Likewise.
32685 (grub_env_write_pxe_default_server): Likewise.
32686 (grub_env_write_pxe_default_gateway): Likewise.
32687 (grub_env_write_pxe_blocksize): Likewise.
32688 (GRUB_MOD_INIT(pxe)): Set environment variables.
32689 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32690 (grub_pxe_mac_addr_t): ... this. All users updated.
32691 (grub_pxe_your_ip): Removed.
32692 (grub_pxe_server_ip): Likewise.
32693 (grub_pxe_gateway_ip): Likewise.
32694 (grub_pxe_blksize): Likewise.
32696 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32698 * commands/help.c: Include `<grub/i18n.h>'.
32699 (grub_cmd_help): Gettextizze.
32700 (GRUB_MOD_INIT): Likewise.
32701 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32702 (GRUB_MOD_INIT): Gettextizze.
32703 * commands/search.c: Include `<grub/i18n.h>'.
32704 (options): Gettextizze.
32705 (GRUB_MOD_INIT): Gettextizze.
32706 * lib/arg.c: Include `<grub/i18n.h>'.
32707 (help_options): Gettextizze.
32708 (find_long): Likewise.
32709 (grub_arg_show_help): Likewise.
32710 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32711 (read_command_list): Gettextizze.
32712 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32713 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32715 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32717 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32718 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32719 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32720 (led_status): New variable.
32721 (keyboard_controller_led): New function.
32722 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32723 update led status for caps lock, num lock and scroll lock.
32725 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32727 * util/hostdisk.c (open_device): Fix a comment.
32729 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32731 * util/grub-install.in (host_os): New variable.
32732 * util/i386/efi/grub-install.in (host_os): Likewise.
32734 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32736 * util/mkisofs/write.c (padblock_write): Abort when given an
32737 excedingly large embed image, instead of silently truncating it.
32739 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32741 * include/multiboot.h: Indentation fixes.
32743 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32745 * include/multiboot.h (struct multiboot_aout_symbol_table)
32746 (struct multiboot_elf_section_header_table): New structure
32747 declarations (stolen from GRUB Legacy).
32748 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32751 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32752 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32755 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32757 * include/multiboot.h: Make comments src2texi-friendly.
32759 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32761 For consistency with [multiboot]/docs/boot.S.
32763 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32764 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32765 (MULTIBOOT_MAGIC2): Rename from this ...
32766 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32768 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32770 * include/multiboot.h: Remove `<grub/types.h>'.
32771 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32772 types. Update all users.
32774 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32776 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32777 `couldn't' and `can not' by `cannot'.
32778 * commands/i386/pc/drivemap.c: Likewise.
32779 * disk/ata.c: Likewise.
32780 * disk/ieee1275/nand.c: Likewise.
32781 * fs/affs.c: Likewise.
32782 * fs/fat.c: Likewise.
32783 * fs/hfs.c: Likewise.
32784 * fs/hfsplus.c: Likewise.
32785 * fs/iso9660.c: Likewise.
32786 * fs/jfs.c: Likewise.
32787 * fs/minix.c: Likewise.
32788 * fs/reiserfs.c: Likewise.
32789 * fs/sfs.c: Likewise.
32790 * fs/udf.c: Likewise.
32791 * fs/ufs.c: Likewise.
32792 * fs/xfs.c: Likewise.
32793 * loader/powerpc/ieee1275/linux.c: Likewise.
32794 * loader/sparc64/ieee1275/linux.c: Likewise.
32795 * util/grub-probe.c: Likewise.
32796 * util/misc.c: Likewise.
32798 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32800 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32802 * commands/acpi.c: Likewise.
32803 * commands/blocklist.c: Likewise.
32804 * commands/efi/loadbios.c: Likewise.
32805 * commands/i386/pc/drivemap.c: Likewise.
32806 * commands/loadenv.c: Likewise.
32807 * commands/memrw.c: Likewise.
32808 * commands/password.c: Likewise.
32809 * commands/videotest.c: Likewise.
32810 * disk/ata.c: Likewise.
32811 * disk/ata_pthru.c: Likewise.
32812 * disk/dmraid_nvidia.c: Likewise.
32813 * disk/ieee1275/nand.c: Likewise.
32814 * disk/ieee1275/ofdisk.c: Likewise.
32815 * disk/loopback.c: Likewise.
32816 * disk/lvm.c: Likewise.
32817 * disk/mdraid_linux.c: Likewise.
32818 * disk/raid.c: Likewise.
32819 * disk/raid6_recover.c: Likewise.
32820 * disk/scsi.c: Likewise.
32821 * efiemu/main.c: Likewise.
32822 * efiemu/mm.c: Likewise.
32823 * efiemu/pnvram.c: Likewise.
32824 * efiemu/symbols.c: Likewise.
32825 * font/font.c: Likewise.
32826 * fs/cpio.c: Likewise.
32827 * fs/hfsplus.c: Likewise.
32828 * fs/iso9660.c: Likewise.
32829 * fs/jfs.c: Likewise.
32830 * fs/minix.c: Likewise.
32831 * fs/ntfs.c: Likewise.
32832 * fs/ntfscomp.c: Likewise.
32833 * fs/reiserfs.c: Likewise.
32834 * fs/ufs.c: Likewise.
32835 * fs/xfs.c: Likewise.
32836 * gettext/gettext.c: Likewise.
32837 * include/grub/auth.h: Likewise.
32838 * kern/elf.c: Likewise.
32839 * kern/file.c: Likewise.
32840 * kern/ieee1275/init.c: Likewise.
32841 * kern/ieee1275/mmap.c: Likewise.
32842 * kern/ieee1275/openfw.c: Likewise.
32843 * kern/powerpc/dl.c: Likewise.
32844 * kern/sparc64/dl.c: Likewise.
32845 * lib/arg.c: Likewise.
32846 * loader/i386/bsd.c: Likewise.
32847 * loader/i386/bsdXX.c: Likewise.
32848 * loader/i386/efi/linux.c: Likewise.
32849 * loader/i386/efi/xnu.c: Likewise.
32850 * loader/i386/ieee1275/linux.c: Likewise.
32851 * loader/i386/linux.c: Likewise.
32852 * loader/i386/multiboot.c: Likewise.
32853 * loader/i386/pc/linux.c: Likewise.
32854 * loader/i386/pc/multiboot2.c: Likewise.
32855 * loader/i386/xnu.c: Likewise.
32856 * loader/ieee1275/multiboot2.c: Likewise.
32857 * loader/macho.c: Likewise.
32858 * loader/machoXX.c: Likewise.
32859 * loader/multiboot2.c: Likewise.
32860 * loader/multiboot_loader.c: Likewise.
32861 * loader/powerpc/ieee1275/linux.c: Likewise.
32862 * loader/sparc64/ieee1275/linux.c: Likewise.
32863 * loader/xnu.c: Likewise.
32864 * loader/xnu_resume.c: Likewise.
32865 * mmap/i386/pc/mmap.c: Likewise.
32866 * normal/menu_viewer.c: Likewise.
32867 * partmap/acorn.c: Likewise.
32868 * partmap/amiga.c: Likewise.
32869 * partmap/apple.c: Likewise.
32870 * script/lexer.c: Likewise.
32871 * term/gfxterm.c: Likewise.
32872 * term/i386/pc/serial.c: Likewise.
32873 * term/i386/pc/vga.c: Likewise.
32874 * term/ieee1275/ofconsole.c: Likewise.
32875 * term/terminfo.c: Likewise.
32876 * video/bitmap.c: Likewise.
32877 * video/efi_gop.c: Likewise.
32878 * video/efi_uga.c: Likewise.
32879 * video/fb/video_fb.c: Likewise.
32880 * video/i386/pc/vbe.c: Likewise.
32881 * video/readers/tga.c: Likewise.
32882 * video/video.c: Likewise.
32884 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32886 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32887 * commands/lspci.c: Likewise.
32888 * commands/probe.c: Likewise.
32889 * commands/xnu_uuid.c: Likewise.
32890 * conf/i386-coreboot.rmk: Likewise.
32891 * conf/i386-efi.rmk: Likewise.
32892 * conf/i386-ieee1275.rmk: Likewise.
32893 * conf/i386-pc.rmk: Likewise.
32894 * conf/powerpc-ieee1275.rmk: Likewise.
32895 * conf/sparc64-ieee1275.rmk: Likewise.
32896 * conf/x86_64-efi.rmk: Likewise.
32897 * fs/i386/pc/pxe.c: Likewise.
32898 * gettext/gettext.c: Likewise.
32899 * include/grub/efi/graphics_output.h: Likewise.
32900 * include/grub/i386/pc/memory.h: Likewise.
32901 * kern/env.c: Likewise.
32902 * kern/i386/qemu/startup.S: Likewise.
32903 * lib/i386/pc/biosnum.c: Likewise.
32904 * lib/i386/relocator.c: Likewise.
32905 * lib/i386/relocator_asm.S: Likewise.
32906 * lib/relocator.c: Likewise.
32907 * loader/i386/bsd.c: Likewise.
32908 * loader/i386/multiboot.c: Likewise.
32909 * loader/i386/pc/chainloader.c: Likewise.
32910 * loader/i386/xnu.c: Likewise.
32911 * loader/xnu.c: Likewise.
32912 * normal/main.c: Likewise.
32913 * normal/menu_text.c: Likewise.
32914 * util/getroot.c: Likewise.
32915 * util/grub-mkconfig_lib.in: Likewise.
32916 * util/grub.d/00_header.in: Likewise.
32917 * util/i386/pc/grub-mkimage.c: Likewise.
32918 * util/mkisofs/eltorito.c: Likewise.
32919 * util/mkisofs/exclude.h: Likewise.
32920 * util/mkisofs/hash.c: Likewise.
32921 * util/mkisofs/iso9660.h: Likewise.
32922 * util/mkisofs/joliet.c: Likewise.
32923 * util/mkisofs/mkisofs.c: Likewise.
32924 * util/mkisofs/mkisofs.h: Likewise.
32925 * util/mkisofs/multi.c: Likewise.
32926 * util/mkisofs/name.c: Likewise.
32927 * util/mkisofs/rock.c: Likewise.
32928 * util/mkisofs/tree.c: Likewise.
32929 * util/mkisofs/write.c: Likewise.
32930 * video/efi_gop.c: Likewise.
32932 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32934 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32937 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32939 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32940 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32942 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32944 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32945 (GRUB_MOD_INIT(memrw)): Update help line.
32947 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32949 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32950 Use grub_extcmd_t. All users updated.
32951 (options): New variable.
32952 (grub_cmd_read): Restructure for readability. Support "-v" option.
32953 (grub_cmd_write): Restructure for readability.
32955 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32957 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32959 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32961 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32962 with the actual contents of the correspondending make variable.
32963 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32964 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32965 specifying `*.lst' and `efiemu??.o'
32967 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32969 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32970 after function name.
32971 Noticed by Rene Engelhard <rene@debian.org>.
32973 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32975 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32976 (options): New variable.
32977 (iospace): Likewise.
32978 (grub_lspci_iter): List IO spaces if "-i" was given.
32979 (grub_cmd_lspci): Parse options.
32980 (GRUB_MOD_INIT(lspci)): Use extcmd.
32981 (GRUB_MOD_FINI(lspci)): Likewise.
32983 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32985 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32986 `function' keyword.
32987 Patch by Tony Mancill <tmancill@debian.org>.
32989 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32991 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32992 (grub_uhci_portstatus): Likewise.
32993 (grub_uhci_portstatus): Add necessary delay.
32994 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32996 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32998 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32999 (GRUB_MOD_INIT): Likewise.
33000 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33001 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33002 * commands/echo.c (options): Fix capitalizations and/or full stops.
33003 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33004 (enable_rom_area): Likewise.
33005 (GRUB_MOD_INIT): Likewise.
33006 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33007 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33008 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33009 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33010 * commands/hexdump.c (options): Likewise.
33011 * commands/i386/cpuid.c (options): Likewise.
33012 (GRUB_MOD_INIT): Likewise.
33013 * commands/i386/pc/drivemap.c (options): Likewise.
33014 (GRUB_MOD_INIT): Likewise.
33015 * commands/i386/pc/halt (options): Likewise.
33016 (GRUB_MOD_INIT): Likewise.
33017 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33018 * commands/i386/pc/pxecmd.c (options): Likewise.
33019 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33020 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33021 * commands/keystatus.c (options): Likewise.
33022 (GRUB_MOD_INIT): Likewise.
33023 * commands/loadenv.c (options): Likewise.
33024 * commands/ls.c (options): Likewise.
33025 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33026 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33027 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33028 * commands/parttool.c (helpmsg): Likewise.
33029 * commands/probe.c (options): Likewise.
33030 * commands/read.c (GRUB_MOD_INIT): Likewise.
33031 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33032 * commands/search.c (options): Likewise.
33033 * commands/sleep.c (options): Likewise.
33034 * commands/test.c (GRUB_MOD_INIT): Likewise.
33035 * commands/true.c (GRUB_MOD_INIT): Likewise.
33036 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33037 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33038 * lib/arg.c (help_options): Likewise.
33039 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33041 * po/POTFILES: Add `commands/loadenv.c'.
33043 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33045 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33046 instead of specifying them explicit.
33048 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33050 * NEWS: Add grub-probe support for GNU/Hurd.
33052 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33054 * NEWS: gettext was added after 1.97.
33056 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33058 * util/mkisofs/msdos_partition.h: New file (based on
33059 include/grub/msdos_partition.h).
33060 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33061 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33062 (ld_options, main): Recognize --protective-msdos-label.
33063 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33064 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33065 (padblock_write): If `use_protective_msdos_label' is set, patch a
33066 protective DOS-style label in the output image.
33068 * util/grub-mkrescue.in: Use --protective-msdos-label.
33070 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33072 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33075 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33077 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33079 (ld_options, main): Recognize `--embedded-boot'.
33080 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33082 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33083 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33084 (padblock_write): Likewise. Rewrite to support embedded boot image.
33086 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33087 for BIOS-based disk boot instead of only ElTorito.
33089 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33091 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33092 build (not needed for bootstrap).
33094 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33096 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33097 from i386-pc build (not needed for bootstrap).
33098 Rewrite a pair of strings.
33100 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33102 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33104 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33106 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33108 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33110 * kern/env.c (grub_env_context_open): Mark exported variable for
33113 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33115 * kern/env.c (grub_env_export): Create nonexistent variables before
33118 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33120 * include/grub/auth.h: Include `<grub/i18n.h>'.
33121 (GRUB_GET_PASSWORD): Gettextizze string.
33122 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33124 (grub_utf8_to_ucs4_alloc): Fix indentation.
33125 (grub_print_ucs4): Likewise.
33126 (grub_getstringwidth): Likewise.
33127 (print_message_indented): New declaration.
33128 * normal/auth.c: Include `<grub/i18n.h>'.
33129 (grub_auth_check_authentication): Gettexttize string.
33130 * normal/cmdline.c: Include `<grub/i18n.h>'.
33131 (grub_cmdline_get): Gettextizze.
33132 * normal/color.c: Include `<grub/i18n.h>'.
33133 (grub_parse_color_name_pair): Gettexttize strings.
33134 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33135 string (use `print_message_indented').
33136 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33137 `include/grub/normal.h'.
33138 (print_message_indented): Renamed to ...
33139 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33140 used in normal/main.c).
33141 (print_message): Use `grub_print_message_indented' instead of
33142 `print_message_indented'.
33143 (print_timeout): Likewise.
33144 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33145 (grub_normal_print_device_info): Gettexttize strings.
33146 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33148 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33150 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33151 of arguments. Return number of tokens and not arguments. All users
33154 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33156 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33157 non-MSDOS paritions.
33159 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33161 * include/grub/types.h (UNUSED): Removed since it conflicts with
33162 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33163 Reported by Grégoire Sutre.
33165 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33167 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33168 (grub_print_ucs4_alloc): Likewise.
33169 (grub_getstringwidth): Likewise.
33170 * normal/main.c (grub_normal_init_page): Gettextize version string.
33171 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33172 (getstringwidth): Renamed to ...
33173 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33174 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33175 (grub_print_ucs4): Remove `static' qualifer (now used in
33177 * po/POTFILES: Add normal/main.c.
33179 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33181 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33182 (print_message_indented): Add `margin_left' and `margin_right'
33184 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33186 (print_timeout): Use `print_message_indented' to print the message.
33187 Deletes `second_stage' parameter.
33188 (run_menu): Update `print_timeout' calls.
33190 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33192 Fix console palette on OpenFirmware.
33194 * term/ieee1275/ofconsole.c (MAX): Removed.
33195 (colors): Redone based on VGA palette.
33196 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33197 colors are supported.
33198 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33200 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33202 Fix potential EfiEmu double prepare.
33204 * efiemu/main.c (prepared): New variable
33205 (grub_efiemu_unload): Set prepare to '0'.
33206 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33208 set_virtual_address_map support.
33210 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33212 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33214 (grub_efiemu_crc32): Likewise.
33215 (grub_efiemu_crc64): Likewise.
33216 (grub_efiemu_set_virtual_address_map): Likewise.
33217 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33219 (grub_autoefi_set_virtual_address_map): Likewise.
33220 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33221 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33222 Restructure flow to accomodate it.
33223 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33224 (grub_efiemu_crc): Recompute CRC32.
33225 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33226 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33227 * efiemu/symbols.c (relocated_handle): New variable.
33228 (grub_efiemu_free_syms): Free relocated_handle.
33229 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33230 (grub_efiemu_write_sym_markers): New function.
33231 (grub_efiemu_set_virtual_address_map): Likewise.
33233 Newer XNU parameters.
33235 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33236 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33237 (grub_xnu_fill_devicetree): New prototype.
33238 (grub_xnu_heap_real_start): New variable.
33239 * loader/xnu.c (get_name_ptr): New function.
33240 (grub_xnu_load_driver): Fill namelen and name.
33242 64-bit xnu support.
33244 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33245 and 'loader/macho64.c'.
33246 * conf/i386-pc.rmk: Likewise.
33247 * conf/x86_64-efi.rmk: Likewise.
33248 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33249 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33250 * include/grub/macho.h (grub_macho_segment64): New structure.
33251 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33252 (grub_macho_size32): ... to this.
33253 (grub_macho32_get_entry_point): Renamed from ...
33254 (grub_macho_get_entry_point32): ... to this.
33255 (grub_macho_contains_macho64): New prototype.
33256 (grub_macho_size64): Likewise.
33257 (grub_macho_get_entry_point64): Likewise.
33258 (grub_macho32_load): Renamed from ...
33259 (grub_macho_load32): ... to this.
33260 (grub_macho32_filesize): Renamed from ...
33261 (grub_macho_filesize32): ... to this.
33262 (grub_macho32_readfile): Renamed from ...
33263 (grub_macho_readfile32): ... to this.
33264 (grub_macho_filesize64): New prototype.
33265 (grub_macho_readfile64): Likewise.
33266 (grub_macho_parse32): Likewise.
33267 (grub_macho_parse64): Likewise.
33268 * loader/macho.c: Split into ...
33269 * loader/machoXX.c: ... and this. Replace 32 with XX.
33270 * loader/macho32.c: New file.
33271 * loader/macho64.c: Likewise.
33272 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33273 (grub_cmd_xnu_kernel): Make 32-bit only.
33274 (grub_cmd_xnu_kernel64): New function.
33275 (grub_xnu_load_driver): Support Mach-O 64.
33276 (grub_cmd_xnu_mkext): Likewise.
33277 * util/grub.d/30_os-prober.in (osx_entry): New function.
33278 Generate entries for 64-bit boot too.
33280 Eliminate ad-hoc tree format in XNU and EfiEmu.
33282 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33283 * efiemu/pnvram.c: Rewritten to use environment variables.
33286 Inline utf16_to_utf8.
33288 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33289 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33291 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33293 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33294 * commands/usbtest.c (grub_usb_get_string): ... move here.
33295 (usb_print_str): Fix error handling.
33296 * include/grub/usb.h (grub_usb_get_string): Remove.
33298 UTF-8 to UTF-16 transformation.
33300 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33301 (charset_mod_SOURCES): New variable.
33302 (charset_mod_CFLAGS): Likewise.
33303 (charset_mod_LDFLAGS): Likewise.
33304 * include/grub/utf.h: New file.
33305 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33307 Support for device properties.
33309 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33310 (grub_xnu_devprop_device_header): Likewise.
33311 (grub_xnu_devprop_device_descriptor): Likewise.
33312 (grub_xnu_devprop_add_device): New prototype.
33313 (grub_xnu_devprop_remove_device): Likewise.
33314 (grub_xnu_devprop_remove_property): Likewise.
33315 (grub_xnu_devprop_add_property_utf8): Likewise.
33316 (grub_xnu_devprop_add_property_utf16): Likewise.
33317 (grub_cpu_xnu_init): Likewise.
33318 (grub_cpu_xnu_fini): Likewise.
33319 (grub_cpu_xnu_unload): Likewise.
33320 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33321 (property_descriptor): Likewise.
33322 (devices): New variable.
33323 (grub_xnu_devprop_remove_property): New function.
33324 (grub_xnu_devprop_add_device): Likewise.
33325 (grub_xnu_devprop_remove_device): Likewise.
33326 (grub_xnu_devprop_add_property): Likewise.
33327 (grub_xnu_devprop_add_property_utf8): Likewise.
33328 (grub_xnu_devprop_add_property_utf16): Likewise.
33329 (hextoval): Likewise.
33330 (grub_cpu_xnu_fill_devprop): Likewise.
33331 (grub_cmd_devprop_load): Likewise.
33332 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33333 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33334 (cmd_devprop_load): New variable.
33335 (grub_cpu_xnu_init): New function.
33336 (grub_cpu_xnu_fini): Likewise.
33337 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33338 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33339 (grub_cmd_xnu_devtree): Likewise.
33340 (hextoval): New function.
33341 (unescape): Likewise.
33342 (grub_xnu_fill_devicetree): Likewise.
33344 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33345 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33347 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33349 Workaround for broken ATI VBE.
33351 * video/i386/pc/vbe.c (last_set_mode): New variable.
33352 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33353 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33354 (grub_video_vbe_setup): Don't check for reserved flag.
33356 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33358 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33359 the `find' command.
33361 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33363 UUID support for HFS.
33365 * fs/hfs.c (grub_hfs_uuid): New function.
33366 (grub_hfs_fs): New value .uuid.
33367 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33369 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33371 Fix a segfault with parsing unknown long options.
33373 * util/grub-mkrelpath.c (options): Zero terminate it.
33375 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33377 * include/grub/misc.h (grub_puts): New declaration.
33378 (grub_puts_): Likewise.
33379 * kern/misc.c (grub_puts): New definition.
33380 (grub_puts_): Likewise.
33382 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33384 * util/grub-probe.c (probe): Improve error message.
33386 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33388 * loader/i386/multiboot_elfxx.c
33389 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33392 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33394 Relocator framework
33396 * loader/i386/xnu_helper.S: Removed. All users updated.
33397 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33398 (relocator_mod_SOURCES): New variable.
33399 (relocator_mod_CFLAGS): Likewise.
33400 (relocator_mod_LDFLAGS): Likewise.
33401 (relocator_mod_ASFLAGS): Likewise.
33402 * conf/x86_64.rmk: Likewise.
33403 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33404 (grub_multiboot_payload_entry_offset): Likewise.
33405 (grub_multiboot_forward_relocator): Likewise.
33406 (grub_multiboot_forward_relocator_end): Likewise.
33407 (grub_multiboot_backward_relocator): Likewise.
33408 (grub_multiboot_backward_relocator_end): Likewise.
33409 (grub_multiboot_payload_eip): New variable.
33410 (grub_multiboot_payload_orig): Likewise.
33411 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33412 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33413 * include/grub/i386/memory.h
33414 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33415 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33416 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33417 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33418 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33419 * include/grub/i386/relocator.h: New file.
33420 * include/grub/x86_64/relocator.h: Likewise.
33421 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33422 (XNU_RELOCATOR): New macro.
33423 (grub_xnu_launcher_start): Remove.
33424 (grub_xnu_launcher_end): Likewise.
33425 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33426 (grub_xnu_heap_real_start): Remove.
33427 (grub_xnu_heap_start): Change to void *. All users updated.
33428 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33429 * lib/i386/relocator.c: New file.
33430 * lib/i386/relocator_asm.S: Likewise.
33431 * lib/i386/relocator_backward.S: Likewise.
33432 * lib/mips/relocator.c: Likewise.
33433 * lib/mips/relocator_asm.S: Likewise.
33434 * lib/relocator.c: Likewise.
33435 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33437 (playground): Likewise.
33438 (grub_multiboot_payload_orig): New variable.
33439 (grub_multiboot_payload_dest): Likewise.
33440 (grub_multiboot_payload_size): Likewise.
33441 (grub_multiboot_payload_eip): Likewise.
33442 (grub_multiboot_payload_esp): Likewise.
33443 (grub_multiboot_boot): Use grub_relocator32_boot.
33444 (grub_multiboot_unload): Free relocators.
33445 (grub_multiboot): Setup stack. Use relocators.
33446 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33447 (grub_multiboot_load_elfXX): Use relocators.
33448 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33449 (grub_multiboot_payload_size): Likewise.
33450 (grub_multiboot_payload_dest): Likewise.
33451 (grub_multiboot_payload_entry_offset): Likewise.
33452 (grub_multiboot_forward_relocator): Likewise.
33453 (grub_multiboot_backward_relocator): Likewise.
33454 (grub_multiboot_real_boot): Likewise.
33455 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33456 (grub_xnu_entry_point): Likewise.
33457 (grub_xnu_arg1): Likewise.
33458 (grub_xnu_stack): Likewise.
33459 (grub_xnu_launch): Removed.
33460 (grub_xnu_boot_resume): New function.
33461 (grub_xnu_boot): Use relocators.
33462 * loader/i386/xnu_helper.S: Removed.
33463 * loader/xnu.c (grub_xnu_heap_start): New variable.
33464 (grub_xnu_heap_size): Likewise.
33465 (grub_xnu_heap_malloc): Use relocators.
33466 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33468 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33470 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33473 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33475 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33476 GRUB_ERR_NONE before calling grub_env_set.
33478 2009-12-12 Robert Millan <rmh@aybabtu.com>
33480 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33481 * genmk.rb (video): New variable.
33482 (CLEANFILES, VIDEOFILES): Add #{video}.
33483 (#{video}): New target rule.
33484 * genvideolist.sh: New file.
33485 * Makefile.in (pkglib_DATA): Add video.lst.
33486 (video.lst): New target rule.
33487 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33489 * util/grub.d/30_os-prober.in: Replace `vbe' with
33490 ${GRUB_VIDEO_BACKEND}.
33492 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33494 * THANKS: Add David Miller.
33496 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33498 libpciaccess support.
33500 * Makefile.in (LIBPCIACCESS): New variable.
33501 (enable_grub_emu_pci): Likewise.
33502 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33503 util/pci.c and commands/lspci.c.
33504 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33505 * configure.ac (grub-emu-pci): New option.
33506 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33507 (grub_pci_device_unmap_range): Likewise.
33508 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33509 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33510 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33511 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33512 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33513 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33514 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33515 * include/grub/pciutils.h: New file.
33516 * util/pci.c: Likewise.
33518 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33520 * util/misc.c: Don't include <errno.h> twice.
33522 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33524 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33525 name in an error message.
33526 (grub_biosdisk_rw): Likewise.
33528 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33530 Eliminate NTFS 4Gib barrier.
33532 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33533 (read_run_data): Likewise.
33534 (grub_ntfs_read_run_list): Likewise.
33535 (grub_ntfs_read_block): Likewise.
33536 (grub_ntfs_iterate_dir): Likewise.
33537 (read_mft): Likewise.
33538 (read_data): Likewise.
33540 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33541 to avoid 64-bit division
33542 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33543 (grub_ntfs_rlst): Use grub_disk_addr_t.
33545 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33547 Eliminate grub-fstest 4Gib barrier.
33549 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33550 (read_file): Fix error reporting.
33552 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33554 Eliminate hexdump 4Gib barrier.
33556 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33557 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33559 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33561 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33564 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33566 Remove miscellaneous files in distclean target.
33568 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33570 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33572 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33573 if they're already set. This resolves the conflict between my
33574 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33575 fixing the --grub-probe option again.
33576 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33577 change on 2009-10-06, so that we now once again source
33578 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33580 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33582 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33583 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33584 `util/devicemap.c'.
33586 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33588 * include/grub/misc.h (grub_printf_): New declaration.
33589 * kern/misc.c (grub_printf_): New definition.
33590 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33591 instead of `grub_printf' and `_'.
33592 * normal/menu_entry.c (store_completion): Likewise.
33594 (grub_menu_entry_run): Likewise.
33595 * normal/menu_text.c (grub_wait_after_message): Likewise.
33596 (notify_booting): Likewise.
33597 (notify_fallback): Likewise.
33598 (notify_execution_failure): Likewise.
33600 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33602 * configure.ac: Check for vasprintf.
33603 * util/misc.c (asprintf): Move allocation from here ...
33604 (vasprintf): ... to here. New function.
33605 (xasprintf): New function.
33606 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33608 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33609 * util/grub-mkfont.c (write_font): Likewise.
33610 * util/grub-probe.c (probe): Likewise.
33611 * util/hostdisk.c (make_device_name): Likewise.
33613 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33615 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33616 anything even prefixed with 'cdrom' as a cdrom.
33618 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33620 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33623 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33625 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33626 grub_gettext_msg_list.
33627 (grub_gettext_gettranslation_from_position): Return const char *
33629 (grub_gettext_translate): Add the translated strings into a list,
33630 returns from the list if existing there.
33631 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33632 (grub_gettext_delete_list): Delete the list.
33633 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33634 lang environment variable is changed.
33635 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33637 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33639 Rename kernel.mod to kernel.img.
33641 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33642 (kernel_mod_EXPORTS): Rename to ...
33643 (kernel_img_EXPORTS): ... this.
33644 (kernel_mod_SOURCES): Rename to ...
33645 (kernel_img_SOURCES): ... this.
33646 (kernel_mod_HEADERS): Rename to ...
33647 (kernel_img_HEADERS): ... this. All users updated.
33648 (kernel_mod_CFLAGS): Rename to ...
33649 (kernel_img_CFLAGS): ... this.
33650 (kernel_mod_ASFLAGS): Rename to ...
33651 (kernel_img_ASFLAGS): ... this.
33652 (kernel_mod_LDFLAGS): Rename to ...
33653 (kernel_img_LDFLAGS): ... this.
33654 * conf/x86_64-efi.rmk: Likewise.
33655 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33656 (read_kernel_image): ... this. All users updated.
33657 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33659 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33661 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33662 (print_spaces): New function.
33663 (grub_print_ucs4): New function.
33664 (getstringwidth): New function.
33665 (print_message_indented): New function.
33666 (print_message): Gettexttize strings using print_message_indented.
33667 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33669 (get_entry_number): Gettextize and uses dynamic terminal width.
33670 (notify_booting, notify_fallback, notify_execution_failure):
33672 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33675 (grub_menu_entry_run): Likewise.
33676 * PO/POTFILES: Add normal/menu_entry.c.
33678 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33680 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33682 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33684 * util/grub-install.in: Install gettext .mo files.
33685 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33687 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33689 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33692 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33694 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33695 non-firmware-dependant one in realmode.S takes precedence.
33697 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33699 * commands/halt.c: Replace misc arch-specific headers with
33701 * commands/reboot.c: Likewise.
33702 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33704 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33705 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33706 (kernel_img_SOURCES): ... to here.
33708 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33709 * include/grub/i386/pc/init.h: Likewise.
33710 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33711 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33713 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33715 * include/grub/i386/halt.h: Remove.
33716 * include/grub/i386/reboot.h: Likewise.
33718 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33720 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33722 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33723 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33724 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33726 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33727 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33728 (usage): Add missing comma in printf.
33730 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33732 Use the same reboot approach on i386 coreboot and qemu as we do on
33735 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33736 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33737 * kern/i386/reboot.c: Remove.
33738 * include/grub/i386/reboot.h (grub_reboot): Export function.
33739 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33740 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33741 0xf000:0xfff0 instead of 0xffff:0x0000.
33742 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33743 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33745 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33747 Fix $srcdir != $objdir build.
33749 * Makefile.in (po/%.po): Rewrite as ...
33750 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33752 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33754 Fix GNU/Hurd grub-install crash.
33755 * util/grub-probe.c (probe): Try to access `path' only when it is not
33758 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33760 Correct module naming.
33762 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33763 (GRUB_MOD_INIT(efi_uga)): ... to this
33764 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33765 (GRUB_MOD_FINI(efi_uga)): ... to this
33766 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33767 (GRUB_MOD_INIT(efi_gop)): ... to this
33768 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33769 (GRUB_MOD_FINI(efi_gop)): ... to this
33771 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33773 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33775 (usage): Translate `arg' strings using gettext().
33776 Thanks to Jordi Mallach for the suggestion.
33778 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33780 GOP support. Based on patch from Bean
33781 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33783 * video/efi_gop.c: New file.
33784 * include/grub/efi/graphics_output.h: Likewise.
33785 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33786 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33788 * conf/x86_64-efi.rmk: Likewise.
33790 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33792 Rename efi_fb to efi_uga.
33794 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33796 (efi_fb_mod_SOURCES): Rename this ...
33797 (efi_uga_mod_SOURCES): ... to this.
33798 (efi_fb_mod_CFLAGS): Rename this ...
33799 (efi_uga_mod_CFLAGS): ... to this.
33800 (efi_fb_mod_LDFLAGS): Rename this ...
33801 (efi_uga_mod_LDFLAGS): ... to this.
33802 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33804 (efi_fb_mod_SOURCES): Rename this ...
33805 (efi_uga_mod_SOURCES): ... to this.
33806 (efi_fb_mod_CFLAGS): Rename this ...
33807 (efi_uga_mod_CFLAGS): ... to this.
33808 (efi_fb_mod_LDFLAGS): Rename this ...
33809 (efi_uga_mod_LDFLAGS): ... to this.
33810 * video/efi_fb.c: Move this ...
33811 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33813 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33815 * po/README: New file. Explain our PO file workflow.
33817 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33819 * po/ChangeLog: Remove. Move relevant entries back to ...
33820 * ChangeLog: ... here.
33821 * po/ca.po: Remove (now handled by TLP).
33822 * po/id.po: Likewise.
33823 * po/zh_CN.po: Likewise.
33824 * Makefile.in (LINGUAS): Initialize in a way that supports
33827 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33829 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33830 reliing on po/LINGUAS.
33831 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33832 (po/%.po): ... this.
33834 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33836 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33837 (main): Use `program_name' instead of nonexistent `progname'.
33839 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33841 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33842 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33844 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33846 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33848 * conf/i386-efi.rmk: Likewise.
33849 * conf/i386-ieee1275.rmk: Likewise.
33850 * conf/powerpc-ieee1275.rmk: Likewise.
33851 * conf/sparc64-ieee1275.rmk: Likewise.
33852 * conf/x86_64-efi.rmk: Likewise.
33854 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33856 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33858 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33860 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33862 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33864 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33865 (grub_mkdevicemap_SOURCES): New variable.
33866 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33867 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33868 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33869 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33870 (grub_mkdevicemap_SOURCES): Remove.
33871 * conf/i386-efi.rmk: Likewise.
33872 * conf/i386-ieee1275.rmk: Likewise.
33873 * conf/i386-pc.rmk: Likewise.
33874 * conf/powerpc-ieee1275.rmk: Likewise.
33875 * conf/sparc64-ieee1275.rmk: Likewise.
33876 * conf/x86_64-efi.rmk: Likewise.
33877 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33878 (usage): Fix strings to use `program_name'.
33879 (main): Initialize gettext.
33880 * util/grub-editenv.c: Likewise.
33881 * util/grub-emu.c: Likewise.
33882 * util/grub-fstest.c: Likewise.
33883 * util/grub-mkdevicemap.c: Likewise.
33884 * util/grub-mkfont.c: Likewise.
33885 * util/grub-mkrelpath.c: Likewise.
33886 * util/grub-pe2elf.c: Likewise.
33887 * util/grub-probe.c: Likewise.
33888 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33889 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33890 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33892 * util/misc.c: Include `"progname.h"'.
33893 (progname): Remove variable.
33894 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33896 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33898 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33899 printf and print a newline after the menuentry header line.
33900 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33902 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33904 autoconf >= 2.60 support $(localedir).
33906 * INSTALL: Note that autoconf 2.60 is required.
33907 * configure.ac (AC_PREREQ): Bump to 2.60.
33908 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33909 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33911 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33913 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33916 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33918 * normal/main.c (grub_normal_read_line): Fix off-by-one
33921 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33923 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33924 "parser.grub" in grub_command_execute() call.
33926 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33928 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33929 * conf/i386-efi.rmk: Likewise.
33930 * conf/i386-ieee1275.rmk: Likewise.
33931 * conf/i386-pc.rmk: Likewise.
33932 * conf/powerpc-ieee1275.rmk: Likewise.
33933 * conf/sparc64-ieee1275.rmk: Likewise.
33934 * conf/x86_64-efi.rmk: Likewise.
33935 * gettext/gettex.c: Include <grub/i18n.h>.
33936 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33938 * include/grub/i18n.h: ... to here
33939 * include/grub/i18n.h: ... to here.
33940 * kern/misc.c: Include <grub/i18n.h>
33941 (grub_gettext_dummy): Move above user.
33943 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33945 * util/Makefile.in (install-local): Convert a `for' into a normal
33948 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33950 * autogen.sh: Add automake call.
33951 * config.guess: Remove.
33952 * config.sub: Likewise.
33953 * install-sh: Likewise.
33955 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33957 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33959 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33961 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33962 function to a normal shell `for'.
33964 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33966 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33968 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33970 * util/grub-mkrelpath.c: New file.
33971 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33972 (grub_mkrelpath_SOURCES): New variable.
33973 * include/grub/util/misc.h: New function prototype.
33974 * util/misc.c (make_system_path_relative_to_its_root): New function.
33976 * util/grub-mkconfig_lib.in (bindir): New variable.
33977 (grub_mkrelpath): Likewise.
33978 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33980 * util/probe.c (probe): Make the file path relative to its root.
33981 Change a info message to use the GRUB path. Enable again the
33982 check if we can read the file with GRUB facilities.
33984 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33987 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33989 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33992 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33994 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33997 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33999 * util/getroot.c (grub_util_is_dmraid): New function.
34000 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34001 devices as normal ones, not as LVM.
34003 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34005 * conf/common.rmk: Add grub-gettext_lib target and updates
34006 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34008 * gettext/gettext.c: New file. (Reads mo files).
34009 * include/grub/file.h (grub_file_pread): New prototype.
34010 * include/grub/i18n.h (_): New prototype.
34011 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34013 * kern/misc.c (grub_gettext_dummy): New function.
34014 * normal/menu_text.c: Include <grub/i18n.h>.
34015 * normal/menu_text.c (print_timeout): Gettexttize string.
34016 * normal/menu_text.c (print_message): Gettexttize string.
34017 * po/POTFILES: Add `normal/menu_text.c'.
34018 * po/ca.po: Add new translations.
34019 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34020 gettext module and defines locale_dir and lang in grub.cfg.
34021 * NEWS: Add gettext support.
34023 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34025 * util/hostdisk.c: Include `<grub/i18n.h>'.
34026 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34027 (make_device_name): Rewrite using asprintf.
34028 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34029 (find_system_device): If a device is not found, generate one just
34030 by reusing the OS path name.
34031 (read_device_map): Make it permissible for device.map not to exist.
34033 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34035 * script/sh/execute.c: Move from here ...
34036 * script/execute.c: ... to here. Update all users.
34037 * script/sh/function.c: Move from here ...
34038 * script/function.c: ... to here. Update all users.
34039 * script/sh/lexer.c: Move from here ...
34040 * script/lexer.c: ... to here. Update all users.
34041 * script/sh/main.c: Move from here ...
34042 * script/main.c: ... to here. Update all users.
34043 * script/sh/parser.y: Move from here ...
34044 * script/parser.y: ... to here. Update all users.
34045 * script/sh/script.c: Move from here ...
34046 * script/script.c: ... to here. Update all users.
34048 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34050 * configure.ac: Detect all `emu' platforms. Define
34051 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34052 --enable-grub-emu logic. Disable include/grub/machine
34053 symlink on `emu' platforms.
34055 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34056 * gensymlist.sh.in: Likewise.
34058 * include/grub/i386/coreboot/machine.h: Remove file.
34059 * include/grub/i386/efi/machine.h: Likewise.
34060 * include/grub/i386/ieee1275/machine.h: Likewise.
34061 * include/grub/i386/pc/machine.h: Likewise.
34062 * include/grub/i386/qemu/machine.h: Likewise.
34063 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34064 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34065 * include/grub/x86_64/efi/machine.h: Likewise.
34067 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34068 * commands/halt.c: Likewise.
34069 * commands/reboot.c: Likewise.
34070 * include/grub/autoefi.h: Likewise.
34071 * include/grub/i386/at_keyboard.h: Likewise.
34072 * include/grub/i386/kernel.h: Likewise.
34073 * include/grub/i386/loader.h: Likewise.
34074 * include/grub/i386/pc/memory.h: Likewise.
34075 * kern/dl.c: Likewise.
34076 * kern/i386/coreboot/init.c: Likewise.
34077 * loader/i386/bsd.c: Likewise.
34078 * loader/i386/linux.c: Likewise.
34079 * loader/multiboot_loader.c: Likewise.
34080 * term/i386/pc/serial.c: Likewise.
34081 * term/usb_keyboard.c: Likewise.
34083 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34084 `<grub/machine/machine.h>'
34085 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34086 * util/misc.c: Remove `<grub/machine/machine.h>' and
34087 `<grub/machine/time.h>'.
34089 * Makefile.in (enable_grub_emu): Remove variable.
34090 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34092 * conf/any-emu.rmk: New file.
34093 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34094 (grub_emu_init.c): Move from here ...
34095 * conf/any-emu.rmk: ... to here.
34097 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34098 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34099 * conf/any-emu.rmk: ... to here.
34101 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34103 * include/grub/parser.h (grub_parser_register): Document need
34104 of `name' parameter.
34105 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34106 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34109 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34111 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34113 * include/grub/i18n.h (N_): New macro.
34114 * util/mkisofs/mkisofs.h: Likewise.
34115 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34117 (usage): Use gettext() to translate help strings when printing them.
34119 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34121 Based on patch from Bean
34122 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34124 * video/efi_fb.c: New file.
34125 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34126 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34128 * conf/x86_64-efi.rmk: Likewise.
34130 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34132 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34133 * util/i386/pc/grub-setup.c: Likewise.
34135 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34137 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34139 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34140 file_get_storage_info to implement grub_guess_root_device.
34142 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34144 * Makefile.in (target): Use make's builtin $(shell) function
34145 instead of calling directly $(SHELL) to create the locale directories,
34146 inside the $(foreach) function.
34148 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34150 * util/grub-mkrescue.in: Print an error and usage if output option
34151 has not been given.
34153 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34155 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34156 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34157 root and /boot are on different devices.
34159 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34161 Fix build for srcdir != objdir.
34163 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34164 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34166 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34167 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34168 reference for input.
34170 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34172 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34173 or hardlinking it). Remove -J option, Joliet is not compatible with
34174 multiple source directories.
34176 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34177 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34179 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34180 (process_input_dir): New function. Process an arbitrary input
34182 Misc adjustments to support both "override mode" and system-wide mode.
34184 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34186 * configure.ac (UNIFONT_BDF): Rename to ...
34187 (FONT_SOURCE): ... this. Update all users.
34189 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34191 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34192 to the list of unifont files to look for.
34194 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34196 Patch from Joe Auricchio <jauricchio@gmail.com>
34197 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34198 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34199 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34201 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34203 * Makefile.in (install-local): Add a missing backslash.
34205 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34207 * include/grub/x86_64/io.h: New file.
34209 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34211 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34212 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34213 Include `"progname.h"'.
34214 (main): Initialize gettext.
34215 * util/i386/pc/grub-setup.c: Gettexttize.
34216 * util/i386/pc/grub-mkimage.c: Likewise.
34218 * Makefile.in (po/*.po): Redefine as ...
34219 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34221 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34223 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34225 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34226 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34227 (program_name): Remove.
34228 (main): Initialize gettext support.
34229 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34230 Include `<libintl.h>'.
34233 * util/mkisofs/eltorito.c: Gettexttize.
34234 * util/mkisofs/joliet.c: Likewise.
34235 * util/mkisofs/mkisofs.c: Likewise.
34236 * util/mkisofs/multi.c: Likewise.
34237 * util/mkisofs/rock.c: Likewise.
34238 * util/mkisofs/tree.c: Likewise.
34239 * util/mkisofs/write.c: Likewise.
34241 * po/POTFILES: Update with new files.
34243 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34245 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34246 * util/mkisofs/iso9660.h: Likewise.
34247 * util/mkisofs/joliet.c: Likewise.
34248 * util/mkisofs/mkisofs.c: Likewise.
34249 * util/mkisofs/mkisofs.h: Likewise.
34250 * util/mkisofs/rock.c: Likewise.
34251 * util/mkisofs/tree.c: Likewise.
34252 * util/mkisofs/write.c: Likewise.
34254 * util/mkisofs/eltorito.c (rcsid): Remove.
34255 * util/mkisofs/hash.c: Likewise.
34256 * util/mkisofs/joliet.c: Likewise.
34257 * util/mkisofs/name.c: Likewise.
34258 * util/mkisofs/rock.c: Likewise.
34259 * util/mkisofs/tree.c: Likewise.
34260 * util/mkisofs/write.c: Likewise.
34262 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34264 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34265 instead of static allocation.
34266 * util/mkisofs/match.h: Likewise.
34268 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34270 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34271 and `util/grub.d/10_linux.in'.
34272 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34273 translatable Shell files.
34275 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34277 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34279 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34281 * INSTALL: Document Automake is needed for bootstrap.
34282 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34283 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34284 Add gettext initialization.
34285 (kfreebsd_entry): Make menuentry output translatable.
34287 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34289 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34290 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34291 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34292 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34293 (LINGUAS): Auto-generate using `po/LINGUAS'.
34294 * po/LINGUAS: New file.
34296 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34298 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34300 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34301 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34302 bindtextdomain() calls for gettext initialization.
34304 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34306 * gnulib/progname.c: New file (imported from Gnulib).
34307 * gnulib/progname.h: Likewise.
34308 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34309 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34310 (usage): Replace `progname' with `program_name'.
34311 (main): Use set_program_name() for program name initialization.
34313 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34315 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34317 * Makefile.in (CPPFLAGS): ... to here.
34319 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34321 * aclocal.m4: Move from here ...
34322 * acinclude.m4: ... to here.
34323 * autogen.sh: Add call to `aclocal'.
34324 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34326 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34328 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34329 (LINGUAS): New variable.
34330 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34331 (install-local): Install MO files.
34332 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34333 * include/grub/i18n.h: New file.
34334 * po/POTFILES: New file.
34335 * po/ca.po: New file.
34336 * util/grub.d/10_linux.in (bindir): New variable.
34337 Add gettext initialization.
34338 (linux_entry): Make menuentry output translatable.
34339 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34340 (usage): Make --help output translatable.
34341 (main): Initialize gettext.
34343 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34345 * import_gcry.py: New file (written by Vladimir with minor
34347 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34349 * INSTALL: Document that Python is required for bootstrap.
34351 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34353 Import ciphers from libgcrypt 1.4.4.
34355 * lib/libgcrypt/cipher/ChangeLog
34356 * lib/libgcrypt/cipher/ac.c
34357 * lib/libgcrypt/cipher/arcfour.c
34358 * lib/libgcrypt/cipher/bithelp.h
34359 * lib/libgcrypt/cipher/blowfish.c
34360 * lib/libgcrypt/cipher/camellia-glue.c
34361 * lib/libgcrypt/cipher/camellia.c
34362 * lib/libgcrypt/cipher/camellia.h
34363 * lib/libgcrypt/cipher/cast5.c
34364 * lib/libgcrypt/cipher/cipher.c
34365 * lib/libgcrypt/cipher/crc.c
34366 * lib/libgcrypt/cipher/des.c
34367 * lib/libgcrypt/cipher/dsa.c
34368 * lib/libgcrypt/cipher/ecc.c
34369 * lib/libgcrypt/cipher/elgamal.c
34370 * lib/libgcrypt/cipher/hash-common.c
34371 * lib/libgcrypt/cipher/hash-common.h
34372 * lib/libgcrypt/cipher/hmac-tests.c
34373 * lib/libgcrypt/cipher/md.c
34374 * lib/libgcrypt/cipher/md4.c
34375 * lib/libgcrypt/cipher/md5.c
34376 * lib/libgcrypt/cipher/primegen.c
34377 * lib/libgcrypt/cipher/pubkey.c
34378 * lib/libgcrypt/cipher/rfc2268.c
34379 * lib/libgcrypt/cipher/rijndael-tables.h
34380 * lib/libgcrypt/cipher/rijndael.c
34381 * lib/libgcrypt/cipher/rmd.h
34382 * lib/libgcrypt/cipher/rmd160.c
34383 * lib/libgcrypt/cipher/rsa.c
34384 * lib/libgcrypt/cipher/seed.c
34385 * lib/libgcrypt/cipher/serpent.c
34386 * lib/libgcrypt/cipher/sha1.c
34387 * lib/libgcrypt/cipher/sha256.c
34388 * lib/libgcrypt/cipher/sha512.c
34389 * lib/libgcrypt/cipher/tiger.c
34390 * lib/libgcrypt/cipher/twofish.c
34391 * lib/libgcrypt/cipher/whirlpool.c
34393 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34395 Fix build for systems without error().
34397 * gnulib/error.c: New file (imported from Gnulib).
34398 * gnulib/error.h: Likewise.
34399 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34400 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34401 (this variable is now used by error()).
34403 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34405 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34406 instead of relying that char is signed.
34408 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34410 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34411 blocksize different from specified.
34412 (grub_pxefs_read): Likewise.
34414 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34416 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34418 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34419 (grub_ata_readwrite): Likewise. Update 2 format strings.
34420 (grub_atapi_read): Likewise.
34422 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34423 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34424 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34425 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34426 (ata_mod_LDFLAGS): Move from here ...
34427 * conf/i386.rmk: ... to here ...
34428 * conf/x86_64-efi.rmk: ... and here.
34429 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34430 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34432 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34434 Relicense multiboot.h, with RMS' blessing.
34436 * include/multiboot.h: Change to X11 license.
34438 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34440 Support --version in grub-mkisofs.
34442 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34443 (OPTION_VERSION): New macro.
34444 (ld_options): Recognize --version.
34445 (usage): Move `program_name' from here ...
34446 (program_name): ... to here. Add `static' qualifier.
34447 (main): Recognize `OPTION_VERSION'.
34449 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34451 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34452 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34454 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34456 Fix help2man generation for mkisofs.
34458 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34459 (usage): Send output to stdout (rather than stderr).
34461 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34463 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34464 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34465 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34466 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34467 (bin_SCRIPTS): Add `grub-mkfloppy'.
34468 (grub_mkfloppy_SOURCES): New variable.
34470 * util/grub-mkrescue.in: New file.
34471 * util/i386/pc/grub-mkfloppy.in: New file.
34473 * util/i386/coreboot/grub-mkrescue.in: Remove.
34474 * util/i386/pc/grub-mkrescue.in: Remove.
34476 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34478 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34480 * include/multiboot.h (struct multiboot_header): ... to here. Update
34482 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34484 * include/multiboot.h (struct multiboot_info): ... to here. Update
34486 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34488 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34490 * include/grub/multiboot.h (struct grub_mod_list): Move
34492 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34495 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34497 * include/multiboot2.h (multiboot_word): Rename from this ...
34498 (multiboot2_word): ... to this. Update all users.
34499 (multiboot_header): Rename from this ...
34500 (multiboot2_header): ... to this. Update all users.
34501 (multiboot_tag_header): Rename from this ...
34502 (multiboot2_tag_header): ... to this. Update all users.
34503 (multiboot_tag_start): Rename from this ...
34504 (multiboot2_tag_start): ... to this. Update all users.
34505 (multiboot_tag_name): Rename from this ...
34506 (multiboot2_tag_name): ... to this. Update all users.
34507 (multiboot_tag_module): Rename from this ...
34508 (multiboot2_tag_module): ... to this. Update all users.
34509 (multiboot_tag_memory): Rename from this ...
34510 (multiboot2_tag_memory): ... to this. Update all users.
34511 (multiboot_tag_unused): Rename from this ...
34512 (multiboot2_tag_unused): ... to this. Update all users.
34513 (multiboot_tag_end): Rename from this ...
34514 (multiboot2_tag_end): ... to this. Update all users.
34516 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34518 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34519 this platform we should support Multiboot1 first.
34521 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34522 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34523 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34525 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34527 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34528 of write calls (converting them to fwrite() if they aren't already).
34529 (get_torito_desc): Likewise.
34530 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34532 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34534 * util/i386/pc/grub-install.in: Move from here ...
34535 * util/grub-install.in: ... to here. Update all users.
34537 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34539 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34541 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34543 Support for El Torito without floppy emulation.
34545 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34546 (init_boot_catalog): Improve error handling.
34547 (get_torito_desc): Don't use floppy emulation unless requested by
34548 user. Patch boot information table when requested via
34549 `-boot-info-table'.
34550 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34551 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34552 (use_boot_info_table): New variables.
34553 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34554 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34555 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34556 `--eltorito-emul-floppy'.
34557 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34558 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34559 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34560 (use_boot_info_table, get_731): New prototypes.
34561 * util/mkisofs/write.c (get_731): New function.
34563 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34565 Fix the generation of the man page.
34567 * util/pc/i386/grub-install.in: Source
34568 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34570 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34572 Large file support for grub-mkisofs.
34574 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34575 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34576 (session_start): Upgrade type to `uint64_t'. Update all users.
34577 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34578 (struct directory_entry): Upgrade type of `starting_block' and
34579 `size' to `uint64_t'. Update all users.
34580 (struct deferred): Remove unused structure.
34581 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34583 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34584 file is larger than `UINT32_MAX'.
34585 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34586 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34588 (struct deferred_write): Upgrade type of `extent' and `size' to
34589 `uint64_t'. Update all users.
34590 (last_extent_written): Upgrade type to `uint64_t'. Update all
34592 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34593 Update all users. Upgrade type of `remain' to `int64_t' and
34594 `use' to `size_t'. Use error() to handle fread() errors.
34595 (write_files): Rely on write_one_file() rather than calling
34596 xfwrite() directly.
34598 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34600 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34602 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34604 * util/mkisofs/fnmatch.c: Remove.
34605 * util/mkisofs/getopt1.c: Likewise.
34606 * util/mkisofs/getopt.c: Likewise.
34607 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34608 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34609 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34610 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34611 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34613 * configure.ac: Detect `mingw32msvc' host_os.
34614 Check for lstat(), getuid() and getgid().
34616 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34617 instances of `u_char' with `uint8_t'.
34619 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34620 [!HAVE_GETUID] (getuid): New function (stub).
34621 [!HAVE_GETGID] (getgid): Likewise.
34622 [!HAVE_LSTAT] (lstat): Likewise.
34623 [!S_IROTH] (S_IROTH): New macro (dummy).
34624 [!S_IRGRP] (S_IRGRP): Likewise.
34626 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34628 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34629 conditional expression).
34631 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34633 Import from Gnulib.
34635 * gnulib/fnmatch.c: New file.
34636 * gnulib/fnmatch.h: Likewise.
34637 * gnulib/fnmatch_loop.c: Likewise.
34638 * gnulib/getopt.c: Likewise.
34639 * gnulib/getopt.h: Likewise.
34640 * gnulib/getopt1.c: Likewise.
34641 * gnulib/getopt_int.h: Likewise.
34642 * gnulib/gettext.h: Likewise.
34644 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34646 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34647 * normal/handler.c (read_handler_list): Likewise.
34649 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34653 * kern/command.c (grub_register_command_prio): Use
34654 grub_zalloc() instead of explicitly zeroing data.
34655 * kern/list.c: Include `<grub/mm.h>'.
34656 (grub_named_list_find): Replace `0' with `NULL'.
34657 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34658 (fs_module_list): Change type to `grub_named_list_t'. Update all
34660 * normal/dyncmd.c (read_command_list): Add space between function
34661 call and parenthesis.
34662 * normal/handler.c (read_handler_list): Likewise.
34664 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34666 * normal/auth.c (punishment_delay): Moved from here ...
34667 (grub_auth_strcmp): ... to here (inside function).
34669 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34671 * include/grub/list.h (struct grub_named_list): Remove `const'
34672 qualifier from `name'.
34673 (struct grub_prio_list): Likewise.
34675 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34677 * normal/auth.c: Include `<grub/time.h>'.
34678 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34680 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34682 * normal/auth.c (punishment_delay): New variable.
34683 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34684 (grub_auth_check_authentication): Punish failed login attempts with
34685 an incremental (2^N) delay.
34687 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34689 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34690 path with $(srcdir).
34692 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34694 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34696 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34698 * util/i386/coreboot/grub-mkrescue.in: New file.
34699 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34702 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34703 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34704 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34706 * util/mkisofs/defaults.h: New file.
34707 * util/mkisofs/eltorito.c: Likewise.
34708 * util/mkisofs/exclude.h: Likewise.
34709 * util/mkisofs/fnmatch.c: Likewise.
34710 * util/mkisofs/getopt.c: Likewise.
34711 * util/mkisofs/getopt1.c: Likewise.
34712 * util/mkisofs/hash.c: Likewise.
34713 * util/mkisofs/include/fctldefs.h: Likewise.
34714 * util/mkisofs/include/mconfig.h: Likewise.
34715 * util/mkisofs/include/prototyp.h: Likewise.
34716 * util/mkisofs/include/statdefs.h: Likewise.
34717 * util/mkisofs/iso9660.h: Likewise.
34718 * util/mkisofs/joliet.c: Likewise.
34719 * util/mkisofs/match.c: Likewise.
34720 * util/mkisofs/match.h: Likewise.
34721 * util/mkisofs/mkisofs.c: Likewise.
34722 * util/mkisofs/mkisofs.h: Likewise.
34723 * util/mkisofs/multi.c: Likewise.
34724 * util/mkisofs/name.c: Likewise.
34725 * util/mkisofs/rock.c: Likewise.
34726 * util/mkisofs/tree.c: Likewise.
34727 * util/mkisofs/write.c: Likewise.
34729 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34731 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34734 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34736 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34737 `grub-mkimage' (and use $0 when possible).
34739 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34741 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34742 error message for excessively large memory map.
34744 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34746 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34749 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34751 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34752 message for coreboot users.
34754 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34756 Fix build with GNU gold.
34758 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34759 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34760 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34762 * aclocal.m4: Likewise.
34764 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34766 * configure.ac (AC_PREREQ): Bump to 2.59d.
34767 * INSTALL: Make it more clear when Autoconf and Ruby are
34768 needed and when to run `./autogen.sh'.
34770 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34772 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34775 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34777 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34779 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34781 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34782 giving it to GNU Mach.
34784 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34786 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34787 GNU partition number to get internal GRUB partition number.
34789 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34791 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34792 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34794 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34796 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34797 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34800 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34802 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34804 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34808 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34809 `-isystem=$(srcdir)/include'.
34811 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34813 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34814 checked (grub-install doesn't currently rely on it).
34816 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34820 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34821 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34822 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34823 * conf/i386-ieee1275.rmk: Likewise.
34824 * conf/i386-pc.rmk: Likewise.
34825 * conf/powerpc-ieee1275.rmk: Likewise.
34826 * conf/sparc64-ieee1275.rmk: Likewise.
34827 * conf/x86_64-efi.rmk: Likewise.
34829 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34831 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34833 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34835 * include/grub/misc.h: Stop checking for APPLE_CC.
34837 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34839 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34840 doesn't cause an infinite call loop.
34842 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34844 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34847 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34849 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34851 * Makefile.in: Likewise.
34853 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34855 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34857 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34859 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34861 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34863 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34865 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34867 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34869 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34871 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34873 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34874 in $(MAKEINFO) invocation. This makes it clear in output that
34875 errors are being ignored.
34877 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34879 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34881 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34882 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34883 * conf/i386-ieee1275.rmk: Likewise.
34884 * conf/i386-pc.rmk: Likewise.
34885 * conf/powerpc-ieee1275.rmk: Likewise.
34886 * conf/sparc64-ieee1275.rmk: Likewise.
34887 * conf/x86_64-efi.rmk: Likewise.
34889 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34891 * util/grub-editenv.c (main): If only a command is given, use
34892 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34893 (usage): FILENAME is now optional and has a default.
34895 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34897 Improve grub-mkconfig performance when there are several menu
34898 entries on a single filesystem.
34900 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34901 prepare_grub_to_access_device.
34902 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34903 * util/grub.d/30_os-prober.in: Likewise.
34905 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34907 * util/grub.d/10_freebsd.in: Remove.
34908 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34909 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34911 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34913 * docs/grub.cfg: Fix example usage of *BSD loaders.
34915 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34917 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34918 grub_util_error() call.
34920 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34922 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34923 `reserved_first_sector' member.
34924 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34925 `reserved_first_sector' to 1.
34926 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34927 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34928 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34929 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34930 filesystems which begin at first sector.
34931 (options): New option --skip-fs-probe.
34932 (main): Handle --skip-fs-probe and pass it to setup().
34934 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34936 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34937 (memset): Fix function prototype.
34939 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34940 2009-10-25 Vasily Averin <vvs@parallels.com>
34942 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34943 `dirent.direntlen == 0'.
34945 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34947 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34949 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34951 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34953 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34954 `__trampoline_setup' and `__ucmpdi2'.
34955 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34956 that libgcc provides.
34958 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34960 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34961 * include/grub/sparc64/libgcc.h (memset): Likewise.
34962 * include/grub/misc.h (memset, memcmp): New function prototypes.
34964 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34966 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34968 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34970 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34972 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34973 * docs/grub.cfg: Compensate for recent change in multiboot
34974 loader (since 2009-08-14 it won't pass filename to payload).
34975 * util/grub.d/10_hurd.in: Likewise.
34977 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34979 * config.guess: Update to latest version from config git
34981 * config.sub: Likewise.
34983 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34985 Fix build on sparc64.
34987 * configure.ac: Perform checks for libgcc symbols before
34988 adding `-nostdlib' to LDFLAGS.
34990 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34992 Let user specify OpenBSD root device.
34994 * loader/i386/bsd.c (openbsd_root): New variable.
34995 (openbsd_opts): New option 'root'.
34996 (OPENBSD_ROOT_ARG): New macro.
34997 (grub_openbsd_boot): Use 'openbsd_root'.
34998 (grub_cmd_openbsd): Fill 'openbsd_root'.
35000 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35002 * NEWS: Misc adjustments.
35004 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35006 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35008 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35010 * configure.ac: Bump version to 1.97.
35012 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35014 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35015 -mno-3dnow on x86 architectures. Some toolchains enable these
35016 features by default, but they rely on registers that aren't enabled
35017 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35019 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35021 Make entry text a bit more readable.
35023 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35025 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35027 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35029 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35031 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35034 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35036 * configure.ac: Add missing dollar.
35038 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35040 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35042 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35043 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35045 * include/grub/sparc64/libgcc.h: Likewise. Use
35046 preprocessor conditionals.
35048 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35050 * conf/common.rmk (grub-dumpbios): Remove rule.
35051 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35052 * util/grub-dumpbios.in: Remove file.
35054 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35056 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35057 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35059 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35060 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35063 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35064 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35065 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35066 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35069 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35071 * term/tparm.c: Switch to GPLv3.
35073 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35075 * include/grub/i386/cpuid.h: Add header protection.
35077 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35079 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35081 * include/grub/i386/cpuid.h: New file.
35082 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35083 (has_longmode): Rename to ...
35084 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35085 `static' attribute.
35086 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35087 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35088 on a CPU that doesn't implement AMD64 instruction set.
35090 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35092 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35093 that version.texi is rebuilt on version number changes.
35095 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35097 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35100 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35102 * util/i386/pc/grub-install.in: Source
35103 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35104 that the --grub-probe option will work.
35105 * util/sparc64/ieee1275/grub-install.in: Likewise.
35107 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35109 * configure.ac: Bump version to 1.97~beta4.
35111 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35113 Resync grub-mkdevicemap in x86_64-efi.
35115 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35116 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35117 `util/devicemap.c'.
35119 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35121 * util/grub-editenv.c (create_envblk_file): Write new block with a
35122 .new suffix and then rename it into place, to ensure atomic
35125 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35127 Do not automatically install headers.
35129 * Makefile.in (include_DATA): Remove. Update all users.
35131 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35133 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35134 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35136 * util/osdetect.lua: Remove.
35137 * script/lua/lauxlib.c: Likewise.
35138 * script/lua/ldebug.c: Likewise.
35139 * script/lua/grub_main.c: Likewise.
35140 * script/lua/lauxlib.h: Likewise.
35141 * script/lua/ldebug.h: Likewise.
35142 * script/lua/ltablib.c: Likewise.
35143 * script/lua/liolib.c: Likewise.
35144 * script/lua/lstrlib.c: Likewise.
35145 * script/lua/lualib.h: Likewise.
35146 * script/lua/ldo.c: Likewise.
35147 * script/lua/ldump.c: Likewise.
35148 * script/lua/ldo.h: Likewise.
35149 * script/lua/loslib.c: Likewise.
35150 * script/lua/lundump.c: Likewise.
35151 * script/lua/grub_lib.c: Likewise.
35152 * script/lua/ldblib.c: Likewise.
35153 * script/lua/lundump.h: Likewise.
35154 * script/lua/lmem.c: Likewise.
35155 * script/lua/grub_lib.h: Likewise.
35156 * script/lua/lmathlib.c: Likewise.
35157 * script/lua/lstate.c: Likewise.
35158 * script/lua/ltm.c: Likewise.
35159 * script/lua/lvm.c: Likewise.
35160 * script/lua/lmem.h: Likewise.
35161 * script/lua/lstate.h: Likewise.
35162 * script/lua/ltm.h: Likewise.
35163 * script/lua/ltable.c: Likewise.
35164 * script/lua/lvm.h: Likewise.
35165 * script/lua/llex.c: Likewise.
35166 * script/lua/lgc.c: Likewise.
35167 * script/lua/grub_lua.h: Likewise.
35168 * script/lua/loadlib.c: Likewise.
35169 * script/lua/lfunc.c: Likewise.
35170 * script/lua/lopcodes.c: Likewise.
35171 * script/lua/lparser.c: Likewise.
35172 * script/lua/ltable.h: Likewise.
35173 * script/lua/llex.h: Likewise.
35174 * script/lua/lgc.h: Likewise.
35175 * script/lua/lfunc.h: Likewise.
35176 * script/lua/lbaselib.c: Likewise.
35177 * script/lua/lopcodes.h: Likewise.
35178 * script/lua/lparser.h: Likewise.
35179 * script/lua/lzio.c: Likewise.
35180 * script/lua/linit.c: Likewise.
35181 * script/lua/lobject.c: Likewise.
35182 * script/lua/llimits.h: Likewise.
35183 * script/lua/lstring.c: Likewise.
35184 * script/lua/lzio.h: Likewise.
35185 * script/lua/lapi.c: Likewise.
35186 * script/lua/lcode.c: Likewise.
35187 * script/lua/lua.h: Likewise.
35188 * script/lua/lobject.h: Likewise.
35189 * script/lua/lstring.h: Likewise.
35190 * script/lua/lapi.h: Likewise.
35191 * script/lua/lcode.h: Likewise.
35192 * script/lua/luaconf.h: Likewise.
35194 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35196 * docs/grub.texi (Command-line and menu entry commands): Document
35197 date and echo commands.
35199 2009-09-24 Pavel Roskin <proski@gnu.org>
35201 * include/grub/kernel.h (struct grub_module_header): Remove
35202 `grub_module_header_types'. Make `type' unsigned. Make `size'
35203 32-bit on all platforms.
35204 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35205 8-bit field. Use grub_host_to_target32() for `size'.
35206 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35207 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35208 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35210 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35212 Fix "lost keypress" bug in at_keyboard.
35214 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35215 Checks for readyness of input buffer (without flushing it).
35216 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35217 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35219 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35221 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35222 size check within GRUB_MACHINE_PCBIOS section.
35224 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35226 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35228 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35229 KEYBOARD_ISREADY check.
35230 (grub_at_keyboard_checkkey): Rename to ...
35231 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35232 Remove gratuitous cast.
35234 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35236 * configure.ac: Call AC_PROG_MKDIR_P.
35237 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35238 version.texi in $(builddir) rather than $(srcdir).
35239 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35240 to makeinfo's @include search path.
35242 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35244 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35246 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35248 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35251 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35253 Build info documentation. Some code borrowed from Automake.
35255 * configure.ac: Check for makeinfo.
35256 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35257 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35259 (MOSTLYCLEANFILES): Add vti.tmp.
35260 (docs/version.texi, docs/stamp-vti): Update automatically.
35261 (docs/grub.info): Build info documentation. Use --force and ignore
35263 (all-local): Add $(INFOS).
35264 (install-local): Install info files.
35265 (uninstall): Uninstall info files.
35266 * docs/version.texi: Remove from revision control. This file is
35267 automatically generated on build now.
35268 * gendistlist.sh: Add `*.info'.
35270 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35272 * kern/term.c: Fix indentation.
35274 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35276 * util/hostdisk.c: Fix a comment.
35278 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35280 Fix regression introduced in r2539.
35282 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35285 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35287 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35288 os-prober. Under normal operation, it does not print anything to
35289 stderr; if it does, we need to debug it, and throwing away stderr
35290 makes that excessively difficult.
35292 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35294 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35296 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35298 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35299 AC_LANG_PROGRAM from autoconf.
35300 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35301 prototypes (fixes warning).
35303 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35304 `--disable-werror' was used.
35306 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35308 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35309 uninitialized `lastaddr'.
35311 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35313 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35315 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35317 * commands/test.c (get_fileinfo): Return immediately if
35318 grub_fs_probe fails.
35320 2009-09-14 José Martínez <xosemp@gmail.com>
35322 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35324 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35326 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35329 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35331 * configure.ac: Remove --enable-grub-pe2elf. Only build
35332 grub-pe2elf when needed by the build system itself.
35333 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35335 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35337 * configure.ac: Bump version to 1.97~beta3.
35338 * docs/version.texi: Likewise.
35340 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35342 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35343 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35345 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35346 (grub_linux_setup_video): ... to here (with some adjustments).
35348 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35350 Fix memory corruption issue (spotted by Colin Watson).
35352 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35353 causing returned size to be stored in an incorrect memory location.
35354 Fix use of uninitialized value when storing the returned size.
35356 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35358 Change clean rules to properly remove files
35360 * genmk.rb: add new clean rules
35361 * Makefile.in (clean): add the new targets
35362 (mostlyclean): likewise
35364 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35366 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35368 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35369 non-resident files.
35371 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35373 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35374 part of bug #27349.
35376 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35378 * util/grub-mkconfig.in: Make the created config mode 400 and
35379 print a warning if it fails.
35381 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35383 * util/grub.d/40_custom.in: Ask user to type custom entries below
35384 comment, rather than below 'exec tail' line.
35386 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35388 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35389 visible in grub.cfg.
35391 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35393 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35396 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35398 * docs/grub.cfg: Add an example menu entry for memtest86+.
35400 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35402 * config.guess: Update to latest version from config git.
35403 * config.sub: Likewise.
35405 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35407 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35408 unknown-command case. Fixes bug #27320.
35410 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35412 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35413 `help' if the command exists.
35415 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35417 * INSTALL: Require GCC 4.1.3 or later.
35419 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35421 * Makefile.in (RMKFILES): add i386-qemu.rmk
35422 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35423 $(srcdir)/stamp-h.in
35425 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35427 * util/grub-probe.c (probe): Comment out buggy codepath, which
35428 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35429 should be re-enabled after 1.97.
35431 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35433 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35436 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35438 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35439 unnecessary calls to grub_error.
35441 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35443 * NEWS: Mention `keystatus' and Unicode fonts.
35445 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35447 * configure.ac: Bump version to 1.97~beta2.
35448 * docs/version.texi: Likewise.
35450 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35452 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35453 containing unwind information in some cases where it previously did
35454 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35455 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35458 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35460 Embedding loadenv module into grub-emu
35462 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35464 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35465 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35466 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35468 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35469 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35471 2009-09-03 Magnus Granberg <zorry@ume.nu>
35473 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35474 include -fPIE in the default specs.
35475 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35478 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35480 * INSTALL: Note that GNU Bison 2.3 or later is required.
35482 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35484 * kern/i386/pc/startup.S: Fix typo.
35486 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35488 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35491 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35493 * docs/grub.texi (Naming convention): Describe one-based partition
35495 (Device syntax): Likewise.
35496 (File name syntax): Likewise.
35497 (Block list syntax): Likewise.
35498 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35500 (File name syntax): Likewise.
35501 (Command-line and menu entry commands): Document acpi, blocklist,
35502 crc, export, insmod, keystatus, ls, set, and unset commands.
35504 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35506 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35507 to avoid implying that only one of --shift, --ctrl, or --alt may be
35510 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35512 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35513 rather than comparing against S_IFREG, which will almost never work.
35515 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35517 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35518 (write_blocklists): Likewise.
35520 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35522 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35523 argument to grub_printf.
35525 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35527 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35530 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35532 * kern/file.c (grub_file_read): Spelling fix
35534 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35536 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35537 loading of headers in some cases.
35539 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35541 * configure.ac: Bump version to 1.97~beta1.
35542 * docs/version.texi: Likewise.
35544 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35546 * include/grub/i386/xnu.h: Add license header.
35547 include grub/err.h explicitly.
35549 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35551 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35552 to `ufs' in the vfs.root.mountfrom kernel parameter.
35554 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35556 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35558 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35559 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35561 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35562 `ARRAY_SIZE' macro.
35564 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35566 * kern/file.c (grub_file_read): Check offset.
35567 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35568 * fs/jfs.c (grub_jfs_read_file): Likewise.
35569 * fs/ntfs.c (grub_ntfs_read): Likewise.
35570 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35571 * fs/minix.c (grub_minix_read_file): Correct offset check.
35572 * fs/ufs.c (grub_ufs_read_file): Likewise.
35574 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35576 * term/i386/pc/console.c (bios_data_area): Cast
35577 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35579 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35581 1-bit optimised blitters.
35583 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35585 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35586 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35587 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35588 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35589 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35590 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35591 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35593 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35594 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35595 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35596 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35597 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35598 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35599 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35601 * video/video.c (grub_video_get_blit_format): Return
35602 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35604 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35606 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35607 the first argument to grub_printf.
35609 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35610 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35612 Add `getkeystatus' terminal method. Add a new `keystatus' command
35615 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35616 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35617 modifier key bitmasks.
35618 (struct grub_term_input): Add `getkeystatus' member.
35619 (grub_getkeystatus): Add prototype.
35620 * kern/term.c (grub_getkeystatus): New function.
35622 * include/grub/i386/pc/memory.h
35623 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35624 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35626 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35627 (grub_console_term_input): Set `getkeystatus' member.
35628 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35630 (grub_usb_keyboard_getreport): Likewise.
35631 (grub_usb_keyboard_checkkey): Likewise.
35632 (grub_usb_keyboard_getkeystatus): New function.
35633 (grub_usb_keyboard_term): Set `getkeystatus' member.
35635 * commands/keystatus.c: New file.
35636 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35637 (keystatus_mod_SOURCES): New variable.
35638 (keystatus_mod_CFLAGS): Likewise.
35639 (keystatus_mod_LDFLAGS): Likewise.
35640 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35641 commands/keystatus.c.
35642 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35643 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35644 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35646 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35647 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35649 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35651 Split befs.mod and afs.mod into *_be.mod and *.mod
35653 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35654 (grub_fstest_SOURCES): Likewise.
35655 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35656 (afs_be_mod_SOURCES): New variable.
35657 (afs_be_mod_CFLAGS): Likewise.
35658 (afs_be_mod_LDFLAGS): Likewise.
35659 (befs_be_mod_SOURCES): Likewise.
35660 (befs_be_mod_CFLAGS): Likewise.
35661 (befs_be_mod_LDFLAGS): Likewise.
35662 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35663 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35664 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35665 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35666 (grub_emu_SOURCES): Likewise.
35667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35668 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35669 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35670 * fs/afs_be.c: New file.
35671 * fs/befs_be.c: New file.
35672 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35673 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35674 (U16): Replaced with ...
35675 (grub_afs_to_cpu16): ...this. All users updated.
35676 (U32): Replaced with ...
35677 (grub_afs_to_cpu32): ...this. All users updated.
35678 (U64): Replaced with ...
35679 (grub_afs_to_cpu64): ...this. All users updated.
35680 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35681 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35682 (grub_afs_validate_sblock): Check only one endianness.
35683 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35684 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35685 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35686 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35687 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35688 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35689 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35690 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35692 2009-08-26 Bean <bean123ch@gmail.com>
35694 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35696 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35697 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35698 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35700 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35702 NetBSD memory map support.
35704 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35705 (grub_netbsd_btinfo_mmap_header): New structure.
35706 (grub_netbsd_btinfo_mmap_entry): Likewise.
35707 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35709 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35711 Enable bsd.mod on coreboot.
35713 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35714 (bsd_mod_SOURCES): New variable.
35715 (bsd_mod_CFLAGS): Likewise.
35716 (bsd_mod_LDFLAGS): Likewise.
35717 (bsd_mod_ASFLAGS): Likewise.
35718 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35719 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35721 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35723 Cleanup NetBSD root support.
35725 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35726 grub_bsd_get_device.
35729 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35731 * util/grub.d/00_header.in: Move check for the video backend of
35732 gfxterm from here ...
35733 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35734 a suitable video backend.
35736 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35738 Fix breakage in grub-setup.
35740 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35741 "msdos_partition_map".
35743 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35745 Fix breakage in normal/auth.c.
35747 * normal/auth.c (grub_iswordseparator): New function.
35749 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35751 Authentication support.
35753 * commands/password.c: New file.
35754 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35755 (password_mod_SOURCES): New variable.
35756 (password_mod_CFLAGS): Likewise.
35757 (password_mod_LDFLAGS): Likewise.
35758 (normal_mod_SOURCES): Add normal/auth.c.
35759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35761 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35762 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35763 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35766 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35767 * include/grub/auth.h: New file.
35768 * include/grub/err.h (grub_err_t): New enum value
35769 GRUB_ERR_ACCESS_DENIED.
35770 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35772 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35773 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35775 * normal/auth.c: New file.
35776 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35777 (grub_cmdline_run): Don't allow to go to command line without
35779 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35780 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35781 menuentry without superuser rights.
35782 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35783 user isn't a superuser.
35785 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35787 Save space by inlining misc.c functions.
35789 * kern/misc.c (grub_iswordseparator): Made static.
35790 * kern/misc.c (grub_strcat): Moved from here ...
35791 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35792 * kern/misc.c (grub_strncat): Moved from here ...
35793 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35794 * kern/misc.c (grub_strcasecmp): Moved from here ...
35795 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35796 * kern/misc.c (grub_strncasecmp): Moved from here ...
35797 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35798 * kern/misc.c (grub_isalpha): Moved from here ...
35799 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35800 * kern/misc.c (grub_isdigit): Moved from here ...
35801 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35802 * kern/misc.c (grub_isgraph): Moved from here ...
35803 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35804 * kern/misc.c (grub_tolower): Moved from here ...
35805 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35807 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35809 * script/sh/function.c (grub_script_function_find): Cut error message
35810 not to flood terminal.
35811 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35813 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35815 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35817 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35818 `report' grub_uint8_t *.
35819 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35820 Use a 50-millisecond timeout rather than just repeating
35821 grub_usb_keyboard_getreport 50 times.
35822 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35824 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35826 Rename *_partition_map to part_*
35828 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35829 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35830 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35831 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35833 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35835 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35836 * util/grub-probe.c (probe_partmap): Don't transform partition name
35837 to get module name.
35839 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35841 Fix OpenBSD and NetBSD support.
35843 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35844 memory address conflict.
35845 (OPENBSD_MMAP_ACPI): New definition.
35846 (OPENBSD_MMAP_NVS): Likewise.
35847 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35848 and OPENBSD_MMAP_NVS.
35849 Add memory map terminator
35850 Explicit cast when calling grub_unix_real_boot.
35851 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35853 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35855 Let user specify NetBSD root device.
35857 * loader/i386/bsd.c (netbsd_root): New variable.
35858 (netbsd_opts): New option 'root'.
35859 (NETBSD_ROOT_ARG): New macro.
35860 (grub_netbsd_boot): Use 'netbsd_root'.
35861 (grub_bsd_unload): Free 'netbsd_root'.
35862 (grub_cmd_netbsd): Fill 'netbsd_root'.
35864 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35866 Support for 64-bit NetBSD.
35868 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35869 point when booting non-FreeBSD.
35871 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35873 Support --no-smp and --no-acpi for NetBSD.
35875 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35876 (NETBSD_AB_NOACPI): Likewise.
35877 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35878 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35880 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35882 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35884 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35885 errors. Call grub_error when needed.
35887 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35889 * commands/search.c (search_fs): Try searching without autoload first.
35890 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35891 filesystem module explicitly for faster booting.
35893 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35895 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35897 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35899 * util/grub.d/30_os-prober.in: Disable os-prober if
35900 `GRUB_DISABLE_OS_PROBER' was set to true.
35902 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35904 * partmap/pc.c: Rename to ...
35905 * partmap/msdos.c: ... this. Update all users.
35906 (grub_pc_partition_map): Rename to ...
35907 (grub_msdos_partition_map): ... this. Update all users.
35909 * parttool/pcpart.c: Rename to ...
35910 * parttool/msdospart.c: ... this. Update all users.
35912 * include/grub/pc_partition.h: Rename to ...
35913 * include/grub/msdos_partition.h: ... this. Update all users.
35914 (grub_pc_partition_bsd_entry): Rename to ...
35915 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35916 (grub_pc_partition_disk_label): Rename to ...
35917 (grub_msdos_partition_disk_label): ... this. Update all users.
35918 (grub_pc_partition_entry): Rename to ...
35919 (grub_msdos_partition_entry): ... this. Update all users.
35920 (grub_pc_partition_mbr): Rename to ...
35921 (grub_msdos_partition_mbr): ... this. Update all users.
35922 (grub_pc_partition): Rename to ...
35923 (grub_msdos_partition): ... this. Update all users.
35924 (grub_pc_partition_is_empty): Rename to ...
35925 (grub_msdos_partition_is_empty): ... this. Update all users.
35926 (grub_pc_partition_is_extended): Rename to ...
35927 (grub_msdos_partition_is_extended): ... this. Update all users.
35928 (grub_pc_partition_is_bsd): Rename to ...
35929 (grub_msdos_partition_is_bsd): ... this. Update all users.
35931 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35932 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35933 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35934 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35935 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35936 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35937 (gpt_mod_LDFLAGS): Rename to ...
35938 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35939 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35940 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35941 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35942 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35943 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35944 (part_gpt_mod_LDFLAGS): ... this.
35945 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35946 `pcpart.mod' to `msdospart.mod'.
35947 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35949 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35950 (msdospart_mod_LDFLAGS): ... this.
35952 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35954 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35955 (openbsd_opts): Likewise.
35956 (netbsd_opts): Likewise.
35957 (freebsd_flags): Added 0 terminator.
35958 (openbsd_flags): Likewise.
35959 (netbsd_flags): Likewise.
35960 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35961 (grub_cmd_freebsd): Transformed into extended command.
35962 (grub_cmd_openbsd): Likewise.
35963 (grub_cmd_netbsd): Likewise.
35964 (cmd_freebsd): Changed type to grub_extcmd_t.
35965 (cmd_openbsd): Likewise.
35966 (cmd_netbsd): Likewise.
35967 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35968 grub_cmd_openbsd as extended commands.
35969 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35970 cmd_netbsd and cmd_openbsd
35972 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35974 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35976 2009-08-21 Pavel Roskin <proski@gnu.org>
35978 * Makefile.in (install-local): When checking if a file is in the
35979 build directory, use "test -e" to detect symlinks.
35981 * Makefile.in (install-local): Remove all files in
35982 $(DESTDIR)$(pkglibdir) before installing new files there.
35984 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35986 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35989 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35991 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35992 explicitly specified by the user.
35994 2009-08-18 Pavel Roskin <proski@gnu.org>
35996 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35997 grub_uint8_t pointer for data.
35998 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36000 * video/fb/fbutil.c: Remove unnecessary casts.
36002 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36006 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36007 (grub_vbe_set_video_mode): Save active mode info
36008 only after setting the mode.
36009 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36012 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36014 Rename variables for clarity.
36016 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36017 (active_vbe_mode_info): ... this. All users updated.
36018 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36020 (initial_mode): Rename to ...
36021 (initial_vbe_mode): ... this. All users updated.
36022 (mode_in_use): Rename to ..
36023 (vbe_mode_in_use): ... this. All users updated.
36024 (mode_list): Rename to ..
36025 (vbe_mode_list): ... this. All users updated.
36026 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36027 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36028 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36029 'mode_list_size' to 'vbe_mode_list_size'.
36030 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36031 'best_mode_info' to 'best_vbe_mode_info' and
36032 'best_mode' to 'best_vbe_mode'
36034 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36036 Remove duplicate grub_video_fb_get_video_ptr.
36038 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36039 (grub_video_fb_get_video_ptr): ... this.
36040 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36041 * video/fb/fbutil.c: Add comment about addressing.
36042 (get_data_ptr): Rename to ...
36043 (grub_video_fb_get_video_ptr): ... this. All users updated.
36044 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36046 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36048 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36049 grub_dprintf() that was just added.
36051 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36053 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36054 (DEFAULT_VIDEO_MODE): Remove macros.
36055 (grub_linux_boot): Remove assumption that Linux has FB support,
36056 and use "text" as default video mode.
36058 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36060 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36062 * fs/fat.c (grub_fat_read_data): Likewise.
36064 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36066 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36068 (grub_module): Likewise.
36070 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36072 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36073 mbi->cmdline but free playground.
36075 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36077 Handle group offset on UFS1.
36079 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36080 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36082 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36084 Split ufs.mod into ufs1.mod and ufs2.mod.
36086 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36087 (grub_fstest_SOURCES): Likewise.
36088 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36089 (ufs_mod_SOURCES): Remove.
36090 (ufs_mod_CFLAGS): Likewise.
36091 (ufs_mod_LDFLAGS): Likewise.
36092 (ufs1_mod_SOURCES): New variable.
36093 (ufs1_mod_CFLAGS): Likewise.
36094 (ufs1_mod_LDFLAGS): Likewise.
36095 (ufs2_mod_SOURCES): New variable.
36096 (ufs2_mod_CFLAGS): Likewise.
36097 (ufs2_mod_LDFLAGS): Likewise.
36098 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36099 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36101 (grub_emu_SOURCES): Likewise.
36102 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36103 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36104 (grub_setup_SOURCES): Likewise.
36105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36106 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36107 (grub_setup_SOURCES): Likewise.
36108 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36110 * fs/ufs2.c: New file.
36111 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36113 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36117 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36118 subsystem at the end.
36119 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36120 (video_fb_mod_SOURCES): New variable.
36121 (video_fb_mod_CFLAGS): Likewise.
36122 (video_fb_mod_LDFLAGS): Likewise.
36123 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36124 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36125 * video/i386/pc/vbeblit.c: Moved from here ...
36126 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36127 * video/i386/pc/vbefill.c: Moved from here ...
36128 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36129 * video/i386/pc/vbeutil.c: Moved from here ...
36130 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36131 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36132 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36133 * include/grub/i386/pc/vbefill.h: Moved from here ...
36134 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36135 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36136 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36137 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36138 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36139 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36140 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36141 (grub_video_adapter): Added 'get_info_and_fini'.
36142 (grub_video_get_info_and_fini): New prototype.
36143 (grub_video_set_mode): make modestring const char *.
36144 * loader/i386/linux.c (grub_linux_setup_video): Use
36145 grub_video_get_info_and_fini.
36146 (grub_linux_boot): Move modesetting just before booting.
36147 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36148 grub_video_get_info_and_fini.
36149 * video/i386/pc/vbe.c: Moved framebuffer part ...
36150 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36151 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36152 grub_video_fbstd_colors and grub_video_fb_set_palette.
36153 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36154 grub_video_fb_init.
36155 (grub_video_vbe_fini): Use grub_video_fb_fini.
36156 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36157 render_target and use grub_video_fb_set_active_render_target and
36158 grub_video_fb_set_palette.
36159 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36160 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36161 (grub_video_vbe_adapter): Use framebuffer.
36162 * video/video.c (grub_video_get_info_and_fini): New function.
36163 (grub_video_set_mode): Make modestring const char *.
36164 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36165 values are already initialised.
36167 2009-08-14 Pavel Roskin <proski@gnu.org>
36169 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36171 * boot/i386/pc/diskboot.S: Likewise.
36172 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36173 sectors allow compilation on MacOSX.
36174 * conf/i386-pc.rmk: Enable unconditional compilation of
36177 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36179 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36180 * util/grub.d/00_header.in: Enter interruptible sleep if
36181 GRUB_HIDDEN_TIMEOUT is set.
36183 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36185 * include/grub/symbol.h: Add the LOCAL macro.
36186 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36187 starting with "L_".
36189 2009-08-13 Pavel Roskin <proski@gnu.org>
36191 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36192 any modern compilers we support.
36194 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36195 Use local labels starting with "L_" so that Apple assembler
36196 knows they are local.
36198 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36200 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36201 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36202 (bsd_kernel_types): ... this enum.
36204 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36205 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36206 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36208 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36209 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36210 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36213 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36215 * util/grub-dumpdevtree: Moved from here ...
36216 * util/i386/efi/grub-dumpdevtree: ... to here.
36217 (hexify): New function. Converts a string to its hex version.
36218 Generate hex versions of "efi" and "device-properties" by calling
36219 hexify() on the ASCII strings rather than by hardcoding numbers.
36221 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36223 * fs/jfs.c: Update copyright year.
36225 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36227 * util/grub.d/00_header.in: Fix a comment.
36228 * util/grub.d/10_linux.in: Likewise.
36229 * util/grub.d/10_windows.in: Likewise.
36230 * util/grub.d/10_hurd.in: Likewise.
36232 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36234 * util/grub-mkconfig.in: Allow the user to specify the used font
36237 2009-08-08 Pavel Roskin <proski@gnu.org>
36239 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36240 available, xfs.mod needs it now.
36242 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36243 the "g" modifier in sed when the intention is to strip something
36244 once. This fixes comparison of kernels with multiple dashes.
36246 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36247 on it. Add missing space before closing bracket. Fix
36248 misleading formatting.
36250 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36252 * docs/grub.texi: Major overhaul. Remove all sections that are
36253 specific to GRUB Legacy, or mostly composed of Legacy-specific
36256 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36258 * docs/version.texi: New file. Provides version information for
36261 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36263 * docs/grub.texi: Update CVS information to SVN.
36264 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36266 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36268 * util/grub-mkconfig.in: Remove a wrong `fi'.
36270 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36272 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36273 (grub_jfs_uuid): New function.
36274 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36276 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36278 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36280 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36281 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36283 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36285 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36286 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36289 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36290 not just "vmlinu[zx]".
36291 Moved from here ...
36292 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36295 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36296 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36299 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36301 * util/grub.d/10_freebsd.in: Use an absolute device path for
36302 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36304 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36306 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36307 handling of multiple abstraction modules.
36309 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36311 Fix a bug resulting in black screen when loading Linux using a
36314 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36317 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36318 (grub_vbe_bios_getset_dac_palette_width): New function.
36319 (grub_vbe_bios_get_dac_palette_width)
36320 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36321 grub_vbe_bios_getset_dac_palette_width()).
36323 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36324 check for return status.
36325 (grub_vbe_get_video_mode_info): When getting information for a packed
36326 mode (<= 8 bpp), obtain DAC palette width using
36327 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36328 {red,green,blue}_mark_size.
36330 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36332 * commands/search.c (options): Fix help output to match actual code.
36334 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36336 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36339 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36341 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36342 on XFS or ReiserFS.
36344 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36346 Support Apple partition map with sector size different from 512 bytes.
36348 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36349 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36350 and 'apart.partmap_size'.
36352 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36353 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36357 * commands/i386/cpuid.c (options): New variable.
36358 (grub_cmd_cpuid): Return real error.
36359 (GRUB_MOD_INIT(cpuid)): Declare options.
36361 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36363 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36366 2009-07-31 Bean <bean123ch@gmail.com>
36368 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36370 (grub_fshelp_node): Move inode field to the end.
36371 (grub_xfs_data): Remove inode field.
36372 (grub_xfs_inode_block): Calculate inode size using sblock.
36373 (grub_xfs_inode_offset): Likewise.
36374 (grub_xfs_read_inode): Calculate inode size using sblock.
36375 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36376 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36377 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36378 to match inode size.
36379 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36380 not accessible when data is null.
36381 (grub_xfs_open): Likewise.
36383 2009-07-31 Bean <bean123ch@gmail.com>
36385 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36386 Don't change pv->disk if it's already set.
36388 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36389 (grub_raid_register): ... here.
36390 (grub_raid_rescan): Removed.
36392 * include/grub/raid.h (grub_raid_rescan): Removed.
36394 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36395 (fstest): Replace grub_raid_rescan with module fini function followed
36398 * util/grub-probe.c: Add include file <grub/raid.h>.
36399 (probe_raid_level): New function.
36400 (probe): Detect abstraction by walking the disk device, support two
36401 level of abstraction (LVM on RAID) when detecting partition map.
36403 2009-07-31 Pavel Roskin <proski@gnu.org>
36405 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36406 to grub_zalloc(), it was erroneous.
36407 Reported by Bean <bean123ch@gmail.com>
36409 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36411 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36412 embedding zone, not only the first one.
36414 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36416 * term/gfxterm.c (clear_char): New function.
36417 (grub_virtual_screen_setup): Use clear_char.
36418 (scroll_up): Likewise.
36419 (grub_virtual_screen_cls): Likewise.
36421 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36423 * util/deviceiter.c (get_acceleraid_disk_name): New static
36425 (grub_util_iterate_devices): Handle Accelraid devices.
36426 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36428 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36430 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36431 separator for the suggested gfxpayload string (';' collides with the
36432 parser and needs escaping).
36434 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36436 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36437 Clear direction flag before jumping to OS.
36438 (grub_multiboot2_real_boot): Likewise.
36440 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36442 * util/i386/pc/grub-install: Fix parsing of --disk-module
36445 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36447 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36450 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36452 * util/grub-mkconfig.in (package_version): New variable.
36453 Use it do display the version.
36455 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36457 * kern/file.c (grub_file_open): Revert to previous check with
36460 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36462 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36463 from help line. It's out of sync with code.
36465 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36467 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36468 entries on failed boot.
36470 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36472 * kern/file.c (grub_file_open): Fix an error check.
36474 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36476 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36477 partition map couldn't be identified.
36479 2009-07-23 Pavel Roskin <proski@gnu.org>
36481 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36482 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36483 case of little endian words becomes just an optimization.
36484 Respect const modifier.
36485 (md5_final): Use code that doesn't depend on endianness.
36487 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36488 to avoid loss of upper bits if align is unsigned and shorter
36491 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36493 UUID support for UFS
36495 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36496 (grub_ufs_uuid): New function.
36497 (grub_ufs_fs): add .uuid
36499 2009-07-21 Pavel Roskin <proski@gnu.org>
36501 * kern/dl.c (grub_dl_check_header): Make static.
36503 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36505 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36506 add drivemap for Vista. It breaks Windows 7.
36508 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36510 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36513 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36517 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36518 (grub_fstest_SOURCES): Likewise.
36519 (pkglib_MODULES): Add befs.mod.
36520 (befs_mod_SOURCES): New variable.
36521 (befs_mod_CFLAGS): Likewise.
36522 (befs_mod_LDFLAGS): Likewise.
36523 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36524 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36525 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36526 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36527 (grub_setup_SOURCES): Likewise.
36528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36529 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36530 (grub_setup_SOURCES): Likewise.
36531 * fs/befs.c: New file.
36532 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36533 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36534 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36535 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36536 (B_KEY_INDEX_ALIGN): New declaration.
36537 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36538 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36539 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36540 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36541 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36542 (grub_afs_mount) [MODE_BFS]: Likewise.
36543 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36544 (grub_afs_fs): Use GRUB_AFS_FSNAME
36545 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36546 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36547 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36548 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36550 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36552 * util/getroot.c (find_root_device): Add support for MacOSX.
36553 * util/hostdisk.c: Likewise.
36555 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36557 * font/font.c (find_glyph): Check whether a font is present to avoid
36558 segmentation fault.
36560 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36562 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36564 2009-07-20 Pavel Roskin <proski@gnu.org>
36566 * configure.ac: Trim excessively wordy excuses.
36568 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36570 Add symlink, mtime and label support to AtheFS.
36572 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36573 (grub_afs_iterate_dir): Handle symlinks.
36574 (grub_afs_open): Use grub_afs_read_symlink.
36575 (grub_afs_dir): Likewise.
36577 (grub_afs_label): New function.
36578 (grub_afs_fs): Add grub_afs_label.
36579 (grub_afs_read_symlink): New function.
36581 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36583 Fix AtheFS support.
36585 * fs/afs.c: Fix comments style.
36586 (grub_afs_blockrun): Declare as packed.
36587 (grub_afs_datastream): Likewise.
36588 (grub_afs_bnode): Likewise.
36589 (grub_afs_btree): Likewise.
36590 (grub_afs_sblock): Likewise.
36591 Declare `name' as char.
36592 (grub_afs_inode): Declare as packed.
36593 Change void *vnode to grub_uint32_t unused.
36594 (grub_afs_iterate_dir): Check that key_size is positive.
36595 (grub_afs_mount): Don't read superblock twice.
36596 (grub_afs_dir): Don't free node in case of error,
36597 grub_fshelp_find_file already handles this.
36598 (grub_afs_open): Likewise.
36600 2009-07-19 Pavel Roskin <proski@gnu.org>
36602 * Makefile.in: Remove LIBLZO and enable_lzo.
36603 * conf/i386-pc.rmk: Remove lzo support.
36604 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36605 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36607 * kern/i386/pc/lzo1x.S: Remove.
36608 * kern/i386/pc/startup.S: Remove lzo support.
36609 * util/i386/pc/grub-mkimage.c: Likewise.
36611 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36613 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36614 * fs/xfs.c (grub_xfs_dir): Likewise.
36615 * fs/afs.c (grub_afs_dir): Likewise.
36616 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36617 (grub_iso9660_open): Likewise.
36618 * fs/jfs.c (grub_jfs_open): Likewise.
36619 * fs/ext2.c (grub_ext2_dir): Likewise.
36620 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36621 * script/sh/lexer.c (grub_script_yylex): Likewise.
36623 2009-07-16 Pavel Roskin <proski@gnu.org>
36625 * configure.ac: Never add "-c" to CFLAGS.
36627 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36629 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36630 grub_cv_cc_efiemu should be used.
36632 * configure.ac: Typo fixes.
36634 * kern/mm.c (grub_zalloc): New function.
36635 (grub_debug_zalloc): Likewise.
36636 * include/grub/mm.h: Declare grub_zalloc() and
36637 grub_debug_zalloc().
36638 * util/misc.c (grub_zalloc): New function.
36639 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36640 instead of grub_malloc(), remove unneeded initializations.
36641 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36642 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36643 * commands/parttool.c (grub_cmd_parttool): Likewise.
36644 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36645 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36646 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36647 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36648 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36649 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36650 (grub_cmd_efiemu_pnvram): Likewise.
36651 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36652 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36653 (grub_iso9660_iterate_dir): Likewise.
36654 * fs/jfs.c (grub_jfs_opendir): Likewise.
36655 * fs/ntfs.c (list_file): Likewise.
36656 (grub_ntfs_mount): Likewise.
36657 * kern/disk.c (grub_disk_open): Likewise.
36658 * kern/dl.c (grub_dl_load_core): Likewise.
36659 * kern/elf.c (grub_elf_file): Likewise.
36660 * kern/env.c (grub_env_context_open): Likewise.
36661 (grub_env_set): Likewise.
36662 (grub_env_set_data_slot): Likewise.
36663 * kern/file.c (grub_file_open): Likewise.
36664 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36665 * loader/i386/multiboot.c (grub_module): Likewise.
36666 * loader/xnu.c (grub_xnu_create_key): Likewise.
36667 (grub_xnu_create_value): Likewise.
36668 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36669 (read_config_file): Likewise.
36670 * normal/menu_entry.c (make_screen): Likewise.
36671 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36672 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36673 * script/sh/script.c (grub_script_parse): Likewise.
36674 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36675 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36676 * video/readers/png.c (grub_png_output_byte): Likewise.
36677 (grub_video_reader_png): Likewise.
36679 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36681 Enable all targets that can be built by default
36683 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36684 grub-mkfont and grub-fstest if they can be built
36686 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36688 Fix hang and segmentation fault in grub-emu-usb
36690 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36691 * util/usb.c (grub_libusb_devices): likewise
36692 (grub_libusb_init): rename to ...
36693 (GRUB_MOD_INIT (libusb)):...this
36694 (grub_libusb_fini): rename to ..
36695 (GRUB_MOD_FINI (libusb)):...this
36696 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36697 * include/grub/disk.h (grub_raid_init): removed, it's useless
36698 (grub_raid_fini): likewise
36699 (grub_lvm_init): likewise
36700 (grub_lvm_fini): likewise
36701 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36704 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36708 * Makefile.in (LIBUSB): new macro
36709 * genmk.rb (Utility/print_tail): new method
36710 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36711 (top level): call util.print_tail at the end.
36713 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36715 Make FreeBSD accept zpool.cache
36717 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36718 type is /boot/zfs/zpool.cache
36720 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36724 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36725 correct wrong typedef
36726 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36728 2009-07-15 Pavel Roskin <proski@gnu.org>
36730 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36731 * kern/disk.c (struct grub_disk_cache): Likewise.
36733 * commands/probe.c (options): Typo fix.
36735 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36736 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36738 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36740 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36741 the end of "Error" to make the message more readable.
36743 * boot/i386/pc/boot.S (kernel_segment): Remove.
36744 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36747 * boot/i386/pc/boot.S (boot_version): Remove.
36748 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36751 * include/grub/i386/pc/boot.h: Sort all offsets.
36752 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36753 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36754 * boot/i386/pc/boot.S: Assert location of every offset listed in
36755 include/grub/i386/pc/boot.h.
36757 2009-07-13 Pavel Roskin <proski@gnu.org>
36759 * include/grub/i386/coreboot/machine.h: Rename
36760 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36761 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36762 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36764 * kern/dl.c: Force native word size to suppress warnings when
36765 compiling grub-emu.
36767 * kern/device.c (grub_device_iterate): Change struct part_ent to
36768 hold the name, not a pointer to it. Use one grub_malloc() per
36769 partition, not two. Free partition_name if grub_malloc() fails.
36770 Set ents to NULL only before grub_partition_iterate() is called.
36772 2009-07-11 Bean <bean123ch@gmail.com>
36774 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36777 2009-07-10 Bean <bean123ch@gmail.com>
36778 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36780 * kern/ieee1275/openfw.c (grub_children_iterate)
36781 (grub_devalias_iterate): Fix size evaluation for property or path
36782 strings, which was broken since r2132.
36784 2009-07-07 Pavel Roskin <proski@gnu.org>
36786 * commands/search.c (search_file): Merge into ...
36787 (search_fs): ... this. Accept search type as argument.
36788 (grub_cmd_search): Pass search type to search_fs().
36790 * include/grub/util/console.h: New file.
36791 * util/console.c: Use it instead of grub/machine/console.h.
36792 * util/grub-emu.c: Likewise.
36794 * lib/arg.c (find_long_option): Remove.
36795 (find_long): Add `len' argument, make `s' const char *.
36796 (grub_arg_parse): Parse long options in place, not in a
36799 2009-07-06 Pavel Roskin <proski@gnu.org>
36801 * commands/search.c (search_fs): Fix potential NULL pointer
36804 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36807 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36809 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36812 2009-07-05 Pavel Roskin <proski@gnu.org>
36814 * include/grub/i386/linux.h (struct linux_kernel_params):
36815 Restore padding3, it's still needed.
36817 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36819 * util/osdetect.lua: Likewise.
36821 2009-07-05 Bean <bean123ch@gmail.com>
36823 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36825 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36826 (grub_lua_getenv): Likewise.
36827 (grub_lua_setenv): Likewise.
36828 (save_errno): New function.
36829 (push_result): Likewise.
36830 (grub_lua_enum_device): Likewise.
36831 (grub_lua_enum_file): Likewise.
36832 (grub_lua_file_open): Likewise.
36833 (grub_lua_file_close): Likewise.
36834 (grub_lua_file_seek): Likewise.
36835 (grub_lua_file_read): Likewise.
36836 (grub_lua_file_getline): Likewise.
36837 (grub_lua_file_getsize): Likewise.
36838 (grub_lua_file_getpos): Likewise.
36839 (grub_lua_file_eof): Likewise.
36840 (grub_lua_file_exist): Likewise.
36841 (grub_lua_add_menu): Likewise.
36843 * script/lua/grub_lua.h (isupper): New inline function.
36844 (islower): Likewise.
36845 (ispunct): Likewise.
36846 (isxdigit): Likewise.
36847 (strcspn): Change to normal function.
36848 (strpbkr): New function declaration.
36849 (memchr): Likewise.
36851 * script/lua/grub_main.c (scan_str): New function.
36852 (strcspn): Likewise.
36853 (strpbrk): Likewise.
36854 (memchr): Likewise.
36856 * script/lua/linit.c (lualibs): Enable the string library.
36858 * util/osdetect.lua: New file.
36860 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36862 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36863 `capabilities' member.
36865 2009-07-02 Pavel Roskin <proski@gnu.org>
36867 * genparttoollist.sh: Add missing newline at the end.
36869 2009-07-01 Pavel Roskin <proski@gnu.org>
36871 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36873 * util/hostdisk.c (open_device): Remove `const' from
36874 `sysctl_size', as sysctlbyname() can change it (in this case it
36875 doesn't actually happen).
36877 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36878 using signed long int constants.
36880 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36881 constant to avoid a warning on FreeBSD.
36883 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36886 * Makefile.in: Install include/grub/machine symlink.
36888 * Makefile.in: When installing symlinks, use "cp -fR", which
36889 works on FreeBSD and MacOSX.
36890 From Yves Blusseau <cl7m42e02@sneakemail.com>
36892 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36893 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36895 * util/misc.c: Move grub_reboot() and grub_halt() ...
36896 * util/grub-emu.c: ... here. Make main_env static.
36897 * include/grub/util/misc.h: Remove main_env.
36899 * kern/mm.c: Use correct format to print size_t.
36901 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36902 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36903 * kern/powerpc/dl.c: Likewise.
36904 * kern/sparc64/dl.c: Likewise.
36905 * kern/x86_64/dl.c: Likewise.
36907 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36909 Fix grub-emu build on sparc64-ieee1275.
36911 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36914 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36916 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36917 (grub_reboot, grub_halt): New functions.
36919 * util/i386/pc/misc.c: Delete. Update all users.
36920 * util/sparc64/ieee1275/misc.c: Likewise.
36921 * util/powerpc/ieee1275/misc.c: Likewise.
36923 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36925 * conf/i386.rmk (setjmp_mod_SOURCES)
36926 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36927 * conf/common.rmk (setjmp_mod_SOURCES)
36928 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36929 to use $(target_cpu).
36930 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36931 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36932 * conf/powerpc-ieee1275.rmk: Likewise.
36933 * conf/sparc64-ieee1275.rmk: Likewise.
36935 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36936 $(target_cpu) for kern/$(target_cpu)/dl.c.
36937 * conf/i386-efi.rmk: Likewise.
36938 * conf/i386-ieee1275.rmk: Likewise.
36939 * conf/x86_64-efi.rmk: Likewise.
36940 * conf/i386-coreboot.rmk: Likewise.
36941 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36942 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36943 kern/$(target_cpu)/cache.S.
36944 * conf/sparc64-ieee1275.rmk: Likewise.
36946 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36948 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36949 type to `grub_uint8_t', and adjust `padding9' accordingly.
36951 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36953 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36955 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36956 assembly in final jump, using register constraints.
36958 (grub_linux_boot): For text mode, initialize `have_vga' using
36959 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36961 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36962 right before the final jump.
36964 Set `video_mode' to 0x3.
36966 Document initialization of `video_page', `video_mode' and
36969 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36971 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36972 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36973 and set GRUB_LINUX_FLAG_QUIET appropriately.
36975 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36977 Fix build on Debian / sparc.
36979 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36981 2009-06-28 Pavel Roskin <proski@gnu.org>
36983 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36986 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36988 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36990 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36993 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36997 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36998 file can't be opened. grub_file_open() is already supposed to set
36999 grub_errno / grub_errmsg appropriately.
37000 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37002 2009-06-27 Pavel Roskin <proski@gnu.org>
37003 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37005 * include/grub/dl.h: Include grub/elf.h.
37006 (struct grub_dl): Add symtab field.
37007 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37008 GRUB_MODULES_MACHINE_READONLY.
37009 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37010 of the header for read-only modules.
37011 (grub_dl_unload): Free mod->symtab for read-only modules.
37012 * kern/i386/dl.c: Use mod->symtab.
37013 * kern/powerpc/dl.c: Likewise.
37014 * kern/sparc64/dl.c: Likewise.
37015 * kern/x86_64/dl.c: Likewise.
37017 * conf/i386-qemu.rmk: New file.
37018 * kern/i386/qemu/startup.S: Likewise.
37019 * kern/i386/qemu/mmap.c: Likewise.
37020 * boot/i386/qemu/boot.S: Likewise.
37021 * include/grub/i386/qemu/time.h: Likewise.
37022 * include/grub/i386/qemu/serial.h: Likewise.
37023 * include/grub/i386/qemu/kernel.h: Likewise.
37024 * include/grub/i386/qemu/console.h: Likewise.
37025 * include/grub/i386/qemu/boot.h: Likewise.
37026 * include/grub/i386/qemu/init.h: Likewise.
37027 * include/grub/i386/qemu/machine.h: Likewise.
37028 * include/grub/i386/qemu/loader.h: Likewise.
37029 * include/grub/i386/qemu/memory.h: Likewise.
37031 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37032 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37033 [qemu] (pkglib_IMAGES): Add `boot.img'.
37034 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37035 [qemu] (boot_img_FORMAT): New variables.
37036 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37037 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37038 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37039 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37040 [qemu] (kernel_img_FORMAT): New variables.
37042 * configure.ac: Recognise `i386-qemu'.
37044 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37045 (for no compression).
37046 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37047 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37048 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37049 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37052 2009-06-27 Pavel Roskin <proski@gnu.org>
37054 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37056 * efiemu/prepare32.c: Likewise.
37057 * efiemu/prepare64.c: Likewise.
37059 2009-06-26 Pavel Roskin <proski@gnu.org>
37061 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37062 * include/grub/elf.h: Define symbols without "32" or "64" based
37063 on GRUB_TARGET_WORDSIZE.
37064 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37065 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37067 * efiemu/loadcore64.c: Likewise.
37068 * loader/i386/bsd32.c: Likewise.
37069 * loader/i386/bsd64.c: Likewise.
37070 * kern/dl.c: Remove own ELF definitions.
37071 * util/i386/efi/grub-mkimage.c: Likewise.
37073 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37075 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37076 segment 0x0 unconditionally, because the reference generated by
37077 GAS is an absolute address.
37079 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37081 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37082 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37084 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37086 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37087 indexes. Check for -f explicitly.
37088 (search_file): Improve error message.
37089 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37091 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37093 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37094 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37096 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37098 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37099 * conf/i386-ieee1275.rmk: Likewise.
37100 * conf/i386-coreboot.rmk: Likewise.
37102 * kern/i386/pc/startup.S (grub_stop): Remove function.
37103 * kern/i386/ieee1275/startup.S: Likewise.
37104 * kern/i386/coreboot/startup.S: Likewise.
37105 * kern/i386/misc.S (grub_stop): New function.
37107 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37109 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37110 * kern/i386/realmode.S (real_to_prot): ... to here.
37112 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37114 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37116 (kernel_elf_SOURCES): Rename to ...
37117 (kernel_img_SOURCES): ... this.
37118 (kernel_elf_HEADERS): Rename to ...
37119 (kernel_img_HEADERS): ... this. Update all users.
37120 (kernel_elf_ASFLAGS): Rename to ...
37121 (kernel_img_ASFLAGS): ... this.
37122 (kernel_elf_CFLAGS): Rename to ...
37123 (kernel_img_CFLAGS): ... this.
37124 (kernel_elf_LDFLAGS): Rename to ...
37125 (kernel_img_LDFLAGS): ... this.
37126 * conf/i386-coreboot.rmk: Likewise.
37127 * conf/powerpc-ieee1275.rmk: Likewise.
37129 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37132 2009-06-21 Pavel Roskin <proski@gnu.org>
37134 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37135 to match nested functions.
37136 * loader/sparc64/ieee1275/linux.c: Likewise.
37138 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37140 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37142 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37143 all i386 platforms.
37145 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37147 Fix asm file handling on ELF, and remove workarounds.
37149 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37150 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37151 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37152 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37154 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37156 Load BSD ELF modules
37158 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37159 and loader/i386/bsd64.c
37160 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37161 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37162 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37163 (grub_freebsd_load_elfmodule32): New declaration
37164 (grub_freebsd_load_elfmoduleobj64): Likewise
37165 (grub_freebsd_load_elf_meta32): Likewise
37166 (grub_freebsd_load_elf_meta64): Likewise
37167 (grub_freebsd_add_meta): Likewise
37168 (grub_freebsd_add_meta_module): Likewise
37169 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37170 (grub_freebsd_add_meta_module): Likewise and move module-specific
37171 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37172 (grub_cmd_freebsd): Add elf-kernel specific parts
37173 based on grub_freebsd_add_meta_module
37174 (grub_cmd_freebsd_module): Add type parsing moved from
37175 grub_freebsd_add_meta_module
37176 (grub_cmd_freebsd_module_elf): New function
37177 (cmd_freebsd_module_elf): New variable
37178 (GRUB_MOD_INIT): Register freebsd_module_elf
37179 * loader/i386/bsd32.c: New file
37180 * loader/i386/bsd64.c: Likewise
37181 * loader/i386/bsdXX.c: Likewise
37182 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37183 (grub_elf64_load): Likewise
37184 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37186 (grub_elf64_load_hook_t): Likewise
37188 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37190 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37192 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37193 don't write a menu entry for recovery mode.
37195 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37197 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37198 after it's no longer needed.
37200 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37202 * include/grub/i386/loader.h (grub_linux_prot_size)
37203 (grub_linux_tmp_addr, grub_linux_real_addr)
37204 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37205 GRUB_MACHINE_PCBIOS.
37206 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37207 common grub_util_info() call to ...
37208 (generate_image): ... here.
37209 Fix use of uninitialized memory, comparison of signed with
37210 unsigned integers and memory leak.
37211 Remove bogus module address message.
37213 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37215 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37217 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37219 2009-06-19 Pavel Roskin <proski@gnu.org>
37221 * configure.ac: Remove stray AC_MSG_CHECKING.
37223 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37225 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37227 2009-06-18 Pavel Roskin <proski@gnu.org>
37229 * conf/common.rmk: Add fs_file.mod.
37230 * disk/fs_file.c: New file.
37231 * include/grub/disk.h (enum grub_disk_dev_id): Add
37232 GRUB_DISK_DEVICE_FILE_ID.
37234 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37236 Fix build with Apple's toolchain. Part 2
37238 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37241 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37243 Fix build with Apple's toolchain. Part 1
37245 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37247 * configure.ac: remove a leftover AC_MSG_RESULT
37248 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37251 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37255 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37256 (decomp_block): initialize ch
37257 use grub_memcpy instead of memcpy
37259 2009-06-17 Pavel Roskin <proski@gnu.org>
37261 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37262 version, use declarations needed to use vga_text as the startup
37265 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37266 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37268 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37269 and grub_at_keyboard_fini(), it's done on module load and
37272 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37274 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37275 file can't be found.
37276 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37278 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37280 Fix newline handling
37282 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37283 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37284 (grub_script_yylex): don't segfault on unterminated script
37285 newline terminates command and variable
37287 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37289 avoid double grub_adjust_range call. Bug reported by David Simner
37291 * kern/disk.c (grub_disk_write): change to raw disk access before
37294 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37296 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37297 spaces, for the benefit of help2man.
37298 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37300 2009-06-16 Pavel Roskin <proski@gnu.org>
37302 * kern/i386/halt.c: Include grub/machine/init.h.
37303 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37305 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37307 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37308 drivemap menuentry.
37310 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37312 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37315 2009-06-16 Pavel Roskin <proski@gnu.org>
37317 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37318 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37319 save %dx, we only need %dl and we never change it.
37320 * boot/i386/pc/cdboot.S: Don't set the root drive.
37321 * boot/i386/pc/pxeboot.S: Likewise.
37322 * include/grub/i386/pc/boot.h: Remove
37323 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37324 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37325 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37326 * kern/i386/pc/init.c (make_install_device): Remove references
37327 to grub_root_drive.
37328 * kern/i386/pc/startup.S: Likewise.
37329 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37331 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37335 * commands/xnu_uuid.c: new file
37336 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37337 (xnu_uuid_mod_SOURCES): new variable
37338 (xnu_uuid_mod_CFLAGS): likewise
37339 (xnu_uuid_mod_LDFLAGS): likewise
37340 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37341 * conf/i386-ieee1275.rmk: likewise
37342 * conf/i386-pc.rmk: likewise
37343 * conf/powerpc-ieee1275.rmk: likewise
37344 * conf/sparc64-ieee1275.rmk: likewise
37345 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37347 2009-06-16 Pavel Roskin <proski@gnu.org>
37349 * configure.ac: Avoid '==' in test command, it's not portable.
37351 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37355 * commands/probe.c: new file
37356 * conf/common.rmk (pkglib_MODULES): add probe.mod
37357 (probe_mod_SOURCES): new variable
37358 (probe_mod_CFLAGS): likewise
37359 (probe_mod_LDFLAGS): likewise
37360 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37361 * conf/i386-ieee1275.rmk: likewise
37362 * conf/i386-pc.rmk: likewise
37363 * conf/powerpc-ieee1275.rmk: likewise
37364 * conf/sparc64-ieee1275.rmk: likewise
37366 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37368 Fix handling of string like \"hello\" and "a
37371 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37372 (grub_script_yylex): fix parsing of quoting, escaping and newline
37374 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37376 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37379 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37381 * util/grub-mkconfig.in: Fix parsing of --output option.
37383 2009-06-12 Pavel Roskin <proski@gnu.org>
37385 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37386 genmk.rb don't need to be generated or installed.
37388 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37390 * commands/i386/pc/drivemap_int13h.S: add more comments
37392 2009-06-11 Pavel Roskin <proski@gnu.org>
37394 * Makefile.in (uninstall): Uninstall manuals.
37396 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37397 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37398 and update-grub_lib in two places.
37399 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37401 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37402 a compiler warning.
37404 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37405 `entry_lo' to fix variable shadowing.
37407 2009-06-11 Christian Franke <franke@computer.org>
37409 * kern/misc.c (__enable_execute_stack): Add missing return type
37410 to prevent gcc warning.
37412 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37414 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37416 2009-06-11 Pavel Roskin <proski@gnu.org>
37418 * Makefile.in: Don't rely on any scripts being executable.
37419 Always use $(SHELL) to run shell scripts.
37421 * configure.ac: Always define ___main if using -nostdlib. This
37422 fixes tests on Cygwin.
37424 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37428 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37429 is in bytes and not in blocks
37431 2009-06-11 Pavel Roskin <proski@gnu.org>
37433 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37436 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37438 * util/grub.d/30_os-prober.in: Fix a comment. Source
37439 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37440 to set the root device. Place drivemap command in the generated
37443 2009-06-11 Pavel Roskin <proski@gnu.org>
37445 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37446 have long been resolved.
37448 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37450 * util/grub.d/10_linux.in: Capitalise "Linux".
37452 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37454 2009-06-11 Pavel Roskin <proski@gnu.org>
37456 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37457 fix a gcc warning and ensure that the function won't ever exit.
37459 * kern/i386/ieee1275/init.c: Add missing prototype for
37460 grub_stop_floppy().
37462 * loader/ieee1275/multiboot2.c [__i386__]: Include
37463 grub/cpu/multiboot.h.
37465 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37466 casts to short - they are not portable and cause warnings. Fix
37467 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37469 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37473 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37475 (grub_get_root_biosnumber_saved): new variable
37476 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37477 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37478 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37479 %dx after the call if necessary
37480 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37481 (boot_mod_SOURCES): remove
37482 (boot_mod_CFLAGS): remove
37483 (boot_mod_LDFLAGS): remove
37484 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37485 (boot_mod_SOURCES): new variable
37486 (boot_mod_CFLAGS): likewise
37487 (boot_mod_LDFLAGS): likewise
37488 * conf/i386-efi.rmk: likewise
37489 * conf/i386-ieee1275.rmk: likewise
37490 * conf/i386-pc.rmk: likewise
37491 * conf/powerpc-ieee1275.rmk: likewise
37492 * conf/sparc64-ieee1275.rmk: likewise
37493 * conf/x86_64-efi.rmk: likewise
37494 * include/grub/i386/pc/biosnum.h: new file
37495 * lib/i386/pc/biosnum.c: likewise
37496 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37497 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37498 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37500 2009-06-10 Pavel Roskin <proski@gnu.org>
37502 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37503 Use separate variables. Read only the file size at the end, but
37504 not the checksum that we don't use.
37506 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37507 Adjust all callers.
37509 * kern/ieee1275/openfw.c: Remove libc includes.
37510 * kern/ieee1275/cmain.c: Likewise.
37511 * include/grub/ieee1275/ieee1275.h: Likewise.
37513 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37516 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37518 * Makefile.in: Remove all trailing whitespace.
37519 * conf/i386-pc.rmk: Likewise.
37520 * conf/powerpc-ieee1275.rmk: Likewise.
37521 * conf/sparc64-ieee1275.rmk: Likewise.
37522 * docs/grub.texi: Likewise.
37523 * docs/texinfo.tex: Likewise.
37524 * disk/fs_uuid.c: Likewise.
37525 * disk/lvm.c: Likewise.
37526 * disk/scsi.c: Likewise.
37527 * disk/ata.c: Likewise.
37528 * disk/ieee1275/ofdisk.c: Likewise.
37529 * disk/i386/pc/biosdisk.c: Likewise.
37530 * disk/host.c: Likewise.
37531 * disk/raid.c: Likewise.
37532 * disk/efi/efidisk.c: Likewise.
37533 * disk/usbms.c: Likewise.
37534 * disk/memdisk.c: Likewise.
37535 * disk/loopback.c: Likewise.
37536 * kern/powerpc/dl.c: Likewise.
37537 * kern/device.c: Likewise.
37538 * kern/dl.c: Likewise.
37539 * kern/sparc64/dl.c: Likewise.
37540 * kern/ieee1275/ieee1275.c: Likewise.
37541 * kern/term.c: Likewise.
37542 * kern/fs.c: Likewise.
37543 * kern/i386/dl.c: Likewise.
37544 * kern/i386/pc/startup.S: Likewise.
37545 * kern/i386/pc/init.c: Likewise.
37546 * kern/i386/pc/mmap.c: Likewise.
37547 * kern/i386/pc/lzo1x.S: Likewise.
37548 * kern/i386/ieee1275/init.c: Likewise.
37549 * kern/i386/realmode.S: Likewise.
37550 * kern/i386/tsc.c: Likewise.
37551 * kern/partition.c: Likewise.
37552 * kern/corecmd.c: Likewise.
37553 * kern/file.c: Likewise.
37554 * kern/efi/efi.c: Likewise.
37555 * kern/efi/init.c: Likewise.
37556 * kern/efi/mm.c: Likewise.
37557 * kern/main.c: Likewise.
37558 * kern/err.c: Likewise.
37559 * kern/env.c: Likewise.
37560 * kern/disk.c: Likewise.
37561 * kern/generic/millisleep.c: Likewise.
37562 * kern/generic/rtc_get_time_ms.c: Likewise.
37563 * kern/misc.c: Likewise.
37564 * kern/parser.c: Likewise.
37565 * genmk.rb: Likewise.
37566 * configure.ac: Likewise.
37567 * boot/i386/pc/diskboot.S: Likewise.
37568 * boot/i386/pc/pxeboot.S: Likewise.
37569 * boot/i386/pc/boot.S: Likewise.
37570 * boot/i386/pc/lnxboot.S: Likewise.
37571 * boot/i386/pc/cdboot.S: Likewise.
37572 * parttool/pcpart.c: Likewise.
37573 * video/readers/tga.c: Likewise.
37574 * video/video.c: Likewise.
37575 * video/bitmap.c: Likewise.
37576 * lib/envblk.c: Likewise.
37577 * lib/i386/setjmp.S: Likewise.
37578 * fs/xfs.c: Likewise.
37579 * fs/afs.c: Likewise.
37580 * fs/fat.c: Likewise.
37581 * fs/ntfs.c: Likewise.
37582 * fs/udf.c: Likewise.
37583 * fs/affs.c: Likewise.
37584 * fs/iso9660.c: Likewise.
37585 * fs/hfs.c: Likewise.
37586 * fs/fshelp.c: Likewise.
37587 * fs/ext2.c: Likewise.
37588 * fs/jfs.c: Likewise.
37589 * fs/reiserfs.c: Likewise.
37590 * fs/hfsplus.c: Likewise.
37591 * fs/minix.c: Likewise.
37592 * fs/cpio.c: Likewise.
37593 * fs/sfs.c: Likewise.
37594 * fs/ufs.c: Likewise.
37595 * efiemu/prepare.c: Likewise.
37596 * efiemu/loadcore_common.c: Likewise.
37597 * efiemu/runtime/efiemu.sh: Likewise.
37598 * efiemu/runtime/efiemu.S: Likewise.
37599 * efiemu/runtime/efiemu.c: Likewise.
37600 * efiemu/pnvram.c: Likewise.
37601 * efiemu/main.c: Likewise.
37602 * efiemu/i386/pc/cfgtables.c: Likewise.
37603 * efiemu/i386/loadcore64.c: Likewise.
37604 * efiemu/i386/loadcore32.c: Likewise.
37605 * efiemu/loadcore.c: Likewise.
37606 * efiemu/symbols.c: Likewise.
37607 * efiemu/mm.c: Likewise.
37608 * include/grub/autoefi.h: Likewise.
37609 * include/grub/datetime.h: Likewise.
37610 * include/grub/term.h: Likewise.
37611 * include/grub/hfs.h: Likewise.
37612 * include/grub/lvm.h: Likewise.
37613 * include/grub/i386/tsc.h: Likewise.
37614 * include/grub/i386/linux.h: Likewise.
37615 * include/grub/i386/xnu.h: Likewise.
37616 * include/grub/i386/efiemu.h: Likewise.
37617 * include/grub/i386/pc/biosdisk.h: Likewise.
37618 * include/grub/i386/pc/memory.h: Likewise.
37619 * include/grub/i386/pc/vbe.h: Likewise.
37620 * include/grub/parttool.h: Likewise.
37621 * include/grub/video.h: Likewise.
37622 * include/grub/memory.h: Likewise.
37623 * include/grub/fs.h: Likewise.
37624 * include/grub/partition.h: Likewise.
37625 * include/grub/xnu.h: Likewise.
37626 * include/grub/efi/api.h: Likewise.
37627 * include/grub/efi/pe32.h: Likewise.
37628 * include/grub/efi/memory.h: Likewise.
37629 * include/grub/multiboot.h: Likewise.
37630 * include/grub/usbdesc.h: Likewise.
37631 * include/grub/multiboot2.h: Likewise.
37632 * include/grub/acpi.h: Likewise.
37633 * include/grub/efiemu/efiemu.h: Likewise.
37634 * include/grub/disk.h: Likewise.
37635 * include/grub/ieee1275/ieee1275.h: Likewise.
37636 * include/grub/net.h: Likewise.
37637 * include/grub/machoload.h: Likewise.
37638 * include/grub/macho.h: Likewise.
37639 * include/multiboot.h: Likewise.
37640 * genmoddep.awk: Likewise.
37641 * normal/main.c: Likewise.
37642 * normal/menu_entry.c: Likewise.
37643 * normal/menu_viewer.c: Likewise.
37644 * normal/completion.c: Likewise.
37645 * normal/cmdline.c: Likewise.
37646 * normal/misc.c: Likewise.
37647 * normal/datetime.c: Likewise.
37648 * bus/usb/usbtrans.c: Likewise.
37649 * bus/usb/ohci.c: Likewise.
37650 * bus/usb/uhci.c: Likewise.
37651 * bus/usb/usb.c: Likewise.
37652 * mmap/efi/mmap.c: Likewise.
37653 * mmap/i386/pc/mmap_helper.S: Likewise.
37654 * mmap/i386/pc/mmap.c: Likewise.
37655 * mmap/i386/mmap.c: Likewise.
37656 * mmap/i386/uppermem.c: Likewise.
37657 * mmap/mmap.c: Likewise.
37658 * commands/acpi.c: Likewise.
37659 * commands/echo.c: Likewise.
37660 * commands/blocklist.c: Likewise.
37661 * commands/loadenv.c: Likewise.
37662 * commands/usbtest.c: Likewise.
37663 * commands/boot.c: Likewise.
37664 * commands/parttool.c: Likewise.
37665 * commands/search.c: Likewise.
37666 * commands/cat.c: Likewise.
37667 * commands/i386/pc/play.c: Likewise.
37668 * commands/i386/pc/drivemap.c: Likewise.
37669 * commands/i386/pc/vbeinfo.c: Likewise.
37670 * commands/i386/pc/acpi.c: Likewise.
37671 * commands/i386/pc/vbetest.c: Likewise.
37672 * commands/ls.c: Likewise.
37673 * commands/cmp.c: Likewise.
37674 * commands/test.c: Likewise.
37675 * commands/efi/acpi.c: Likewise.
37676 * commands/gptsync.c: Likewise.
37677 * commands/help.c: Likewise.
37678 * partmap/amiga.c: Likewise.
37679 * partmap/apple.c: Likewise.
37680 * partmap/acorn.c: Likewise.
37681 * partmap/pc.c: Likewise.
37682 * partmap/sun.c: Likewise.
37683 * partmap/gpt.c: Likewise.
37684 * script/sh/lexer.c: Likewise.
37685 * script/sh/function.c: Likewise.
37686 * font/font.c: Likewise.
37687 * font/font_cmd.c: Likewise.
37688 * loader/powerpc/ieee1275/linux.c: Likewise.
37689 * loader/efi/chainloader.c: Likewise.
37690 * loader/multiboot_loader.c: Likewise.
37691 * loader/macho.c: Likewise.
37692 * loader/i386/multiboot.c: Likewise.
37693 * loader/i386/linux.c: Likewise.
37694 * loader/i386/pc/linux.c: Likewise.
37695 * loader/i386/pc/multiboot2.c: Likewise.
37696 * loader/i386/pc/chainloader.c: Likewise.
37697 * loader/i386/pc/xnu.c: Likewise.
37698 * loader/i386/bsd_trampoline.S: Likewise.
37699 * loader/i386/efi/linux.c: Likewise.
37700 * loader/i386/multiboot_elfxx.c: Likewise.
37701 * loader/i386/bsd_helper.S: Likewise.
37702 * loader/i386/bsd.c: Likewise.
37703 * loader/i386/linux_trampoline.S: Likewise.
37704 * loader/i386/xnu_helper.S: Likewise.
37705 * loader/i386/xnu.c: Likewise.
37706 * loader/i386/bsd_pagetable.c: Likewise.
37707 * loader/i386/multiboot_helper.S: Likewise.
37708 * loader/xnu.c: Likewise.
37709 * loader/xnu_resume.c: Likewise.
37710 * io/gzio.c: Likewise.
37711 * term/efi/console.c: Likewise.
37712 * term/terminfo.c: Likewise.
37713 * term/ieee1275/ofconsole.c: Likewise.
37714 * term/i386/pc/serial.c: Likewise.
37715 * term/i386/pc/vesafb.c: Likewise.
37716 * term/i386/pc/vga.c: Likewise.
37717 * term/usb_keyboard.c: Likewise.
37718 * term/gfxterm.c: Likewise.
37719 * aclocal.m4: Likewise.
37720 * util/lvm.c: Likewise.
37721 * util/grub.d/30_os-prober.in: Likewise.
37722 * util/grub.d/10_hurd.in: Likewise.
37723 * util/console.c: Likewise.
37724 * util/grub-macho2img.c: Likewise.
37725 * util/grub-probe.c: Likewise.
37726 * util/hostfs.c: Likewise.
37727 * util/i386/pc/grub-mkimage.c: Likewise.
37728 * util/i386/pc/grub-setup.c: Likewise.
37729 * util/i386/efi/grub-mkimage.c: Likewise.
37730 * util/grub-mkconfig.in: Likewise.
37731 * util/raid.c: Likewise.
37732 * util/resolve.c: Likewise.
37733 * util/grub-mkdevicemap.c: Likewise.
37734 * util/grub-emu.c: Likewise.
37735 * util/getroot.c: Likewise.
37736 * util/hostdisk.c: Likewise.
37737 * util/usb.c: Likewise.
37738 * util/grub-editenv.c: Likewise.
37739 * util/misc.c: Likewise.
37741 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37743 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37744 `genparttoollist.sh'.
37745 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37746 Add `*.sh' to the list find searches for and change `mdate.sh'
37749 2009-06-10 Pavel Roskin <proski@gnu.org>
37751 * include/grub/multiboot2.h: Provide compatibility defines for
37753 * include/multiboot2.h: Include stdint.h only if needed, using
37755 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37757 * loader/ieee1275/multiboot2.c: Likewise.
37758 * loader/multiboot2.c: Likewise.
37759 * loader/multiboot_loader.c: Likewise.
37761 * configure.ac: Use -nostdlib when probing for the target. It
37762 should not be required to have libc for the target.
37764 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37765 they fail without libc headers for the target.
37766 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37768 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37769 preprocessor conditionals.
37771 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37772 build system doesn't need to be aware of the tar.c internals.
37774 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37776 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37778 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37780 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37781 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37783 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37785 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37786 aren't available if ata.mod gets used.
37788 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37790 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37791 initialising controller.
37792 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37794 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37796 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37797 to choose between ata and biosdisk module on i386-pc.
37799 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37801 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37802 Subclass and Programming Interface fields in terms of the 3 byte
37803 Class Code register.
37804 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37806 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37807 interface is OHCI. Add grub_dprintf for symmetry with
37809 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37810 interface is UHCI. Add interf variable for programming
37811 interface. Print interface with class/subclass.
37813 * bus/usb/ohci.c: Set interf with correct field.
37815 * bus/usb/uhci.c: Remove unneeded doubled lines.
37816 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37817 Remove whitespace inside comment.
37819 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37821 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37822 as fallback an equivalent option without depth.
37824 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37826 Not fail if unable to retrieve C/H/S on LBA disks
37828 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37829 if unable to retrieve C/H/S on LBA disks
37831 2009-06-08 Pavel Roskin <proski@gnu.org>
37833 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37836 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37838 * Makefile.in (uninstall): Remove all $lib_DATA files.
37840 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37842 Bugfix: install on partitionless device
37844 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37847 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37849 * Makefile.in (uninstall): Remove all $include_DATA files.
37851 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37853 * commands/true.c: New file. Implement the true and false commands.
37854 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37855 (true_mod_SOURCES): New variable.
37856 (true_mod_CFLAGS): Likewise.
37857 (true_mod_LDFLAGS): Likewise.
37859 2009-06-05 Colin D Bennett <colin@gibibit.com>
37861 Optimized font character lookup using binary search instead of linear
37862 search. Fonts now are required to have the character index ordered by
37865 * font/font.c (load_font_index): Verify that fonts have ordered
37867 (find_glyph): Use binary search instead of linear search to find a
37868 character in a font.
37870 2009-06-05 Michael Scherer <misc@mandriva.org>
37872 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37873 uses case sensitive btree.
37874 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37875 only for case insensitive filesystems.
37877 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37879 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37880 * conf/common.rmk (search_mod_CFLAGS): likewise
37882 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37884 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37885 compensate a compiler bug
37887 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37889 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37892 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37894 Definitions for creating asm symbols with Apple's CC
37896 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37897 [APPLE_CC] (VARIABLE): likewise
37899 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37901 Disable lnxboot.img when compiled
37904 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37905 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37906 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37907 [! APPLE_CC] (CODE_LENG): skip
37908 [! APPLE_CC] (setup_sects): likewise
37909 [! APPLE_CC]: skip filling
37911 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37913 Address in trampolines based on 32-bit registers when compiled
37916 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37918 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37920 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37922 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37924 * kern/misc.c [APPLE_CC] (memcpy): new function
37925 [APPLE_CC] (memmove): likewise
37926 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37927 (memcpy): define alias conditionally on !APPLE_CC
37930 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37931 APPLE_CC are defined
37932 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37933 (grub_assert_fail): make prototype conditional
37935 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37937 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37939 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37941 (CLEANFILES): add grub-macho2img
37942 (grub_macho2img_SOURCES): new variable
37943 * kern/i386/pc/startup.S (bss_start): new variable
37944 (bss_end): likewise
37945 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37946 * util/grub-macho2img.c: new file
37948 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37950 Use objconv when compiling with Apple's CC
37952 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37953 (efiemu64.o): likewise
37954 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37955 when compiling with Apple's CC
37956 (efiemu64_s.o): likewise
37957 * configure.ac: check for objconv when compiling with Apple's CC
37958 * genmk.rb: use objconv for modules when compiled with Apple's CC
37960 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37962 Define segment as well as section when compiling with
37965 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37966 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37967 (efiemu_convert_pointer): likewise
37968 (efiemu_set_virtual_address_map): likewise
37969 (efiemu_convert_pointer): likewise
37970 (efiemu_getcrc32): likewise
37971 (init_crc32_table): likewise
37972 (reflect): likewise
37973 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37974 (GRUB_MOD_DEP): likewise
37976 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37978 Allow a compilation without -mcmodel=large
37980 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37981 when compiled without -mcmodel=large
37982 (filter_memory_map): remove memory post 4 GiB when compiled
37983 without -mcmodel=large
37984 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37985 TARGET_CFLAGS when -mcmodel=large isn't supported
37987 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37989 Remove nested functions in efiemu core
37991 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37993 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37995 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37997 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37999 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38001 (grub_cpu_is_tsc_supported): likewise
38002 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38004 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38006 Absolute addressing through constant with Apple's cc
38008 * kern/i386/pc/startup.S: Define necessary constants
38009 and address through it when using ABS with Apple's CC
38010 * boot/i386/pc/diskboot.S: likewise
38011 * boot/i386/pc/boot.S: likewise
38012 * boot/i386/pc/lnxboot.S: likewise
38013 * boot/i386/pc/cdboot.S: likewise
38014 * mmap/i386/pc/mmap_helper.S: likewise
38015 * commands/i386/pc/drivemap_int13h.S: likewise
38017 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38019 Check if compiler is apple cc
38021 * Makefile.in (ASFLAGS): new variable
38022 (TARGET_ASFLAGS): likewise
38023 (TARGET_MODULE_FORMAT): likewise
38024 (TARGET_APPLE_CC): likewise
38025 (OBJCONV): likewise
38026 (TARGET_IMG_CFLAGS): likewise
38027 (TARGET_CPPFLAGS): add includedir
38028 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38029 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38030 Check for linker script only if compiler isn't Apple's CC
38031 (TARGET_MODULE_FORMAT): set
38032 (TARGET_APPLE_CC): likewise
38033 (TARGET_ASFLAGS): likewise
38034 (ASFLAGS): likewise
38035 Check for objcopy only if compiler isn't Apple's CC
38036 Check for BSS symbol only if compiler isn't Apple's CC
38037 * genmk.rb: adapt nm options if we use Apple's utils
38038 * aclocal.m4 (grub_apple_cc): new test
38039 (grub_apple_target_cc): likewise
38041 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38043 Simplify sed expressions and improve awk
38045 * Makefile.in (install-local): simplify sed expression
38046 * gencmdlist.sh: likewise
38047 * genmoddep.awk: avoid adding module as a dependency of itself
38049 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38051 Add missing start symbols
38053 * boot/i386/pc/boot.S: add start
38054 * boot/i386/pc/pxeboot.S: likewise
38056 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38058 Fix wrong assumptions with grub-mkimage on EFI
38060 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38061 (relocate_addresses): consider both r_addend and value at offset
38062 (make_mods_section): zerofill modinfo and header
38063 (convert_elf): write prefix here
38065 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38067 Use .asciz instead of .string
38069 * i386/pc/diskboot.S: use .asciz instead of .string
38070 * i386/pc/boot.S: likewise
38071 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38072 (GRUB_MOD_NAME): likewise
38074 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38078 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38079 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38080 (grub_video_setup): remove
38081 (grub_video_set_mode): new prototype
38082 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38084 (linux_vesafb_res): compile only on PCBIOS
38085 (grub_linux_boot): support gfxpayload
38086 * loader/i386/pc/xnu.c (video_hook): new function
38087 (grub_xnu_set_video): support gfxpayload
38088 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38089 (DEFAULT_VIDEO_HEIGHT): likewise
38090 (DEFAULT_VIDEO_FLAGS): likewise
38091 (DEFAULT_VIDEO_MODE): new definition
38092 (video_hook): new function
38093 (grub_gfxterm_init): use grub_video_set_mode
38094 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38096 * video/video.c (grub_video_setup): removed
38097 (grub_video_set_mode): new function based on grub_gfxterm_init and
38100 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38102 Avoid calling biosdisk in drivemap
38104 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38105 (revparse_biosdisk): likewise
38106 (list_mappings): derive name from id directly
38107 (grub_cmd_drivemap): use tryparse_diskstring
38109 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38113 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38114 (grub_lexer_param): add tokenonhold
38115 (grub_script_create_cmdline): remove cmdline. All callers updated
38116 (grub_script_function_create): make functionname
38117 grub_script_arg. All callers updated
38118 (grub_script_execute_argument_to_string): new prototype
38119 * kern/parser.c (state_transitions): reorder
38120 (grub_parser_cmdline_state): fix a bug and make more compact
38121 * script/sh/execute.c (grub_script_execute_argument_to_string):
38123 (grub_script_execute_cmdline): use new format
38124 * script/sh/function.c (grub_script_function_create): make functionname
38125 grub_script_arg. All callers updated
38126 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38127 (grub_script_yylex): remove
38128 (grub_script_yylex2): renamed to ...
38129 (grub_script_yylex): ...renamed
38130 parse the expressions like a${b}c
38131 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38132 (GRUB_PARSER_TOKEN_VAR): remove
38133 (GRUB_PARSER_TOKEN_NAME): likewise
38134 ("if"): declare as typeless
38135 ("while"): likewise
38136 ("function"): likewise
38141 (argument): likewise
38142 (script): accept empty scripts and make exit on error
38143 (arguments): use GRUB_PARSER_TOKEN_ARG
38144 (function): likewise
38145 (command): move error handling to script
38146 (menuentry): move grub_script_lexer_ref before
38147 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38148 argument. All callers updated
38150 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38152 Prevent GRUB from probing floppies during boot.
38154 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38155 * commands/search.c (options): Add --no-floppy.
38156 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38157 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38158 --no-floppy when searching for UUIDs.
38160 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38162 Simplify the code duplication in commands/search.c.
38164 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38165 (search_fs): ... this. Update all users.
38167 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38169 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38171 2009-05-28 Pavel Roskin <proski@gnu.org>
38173 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38174 Remove the original symlink explicitly.
38176 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38177 just one slash. That's how grub_fshelp_find_file() does it.
38179 2009-05-26 Pavel Roskin <proski@gnu.org>
38181 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38184 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38187 2009-05-25 Christian Franke <franke@computer.org>
38189 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38191 (grub_atapi_identify): Add wait after drive select.
38192 (grub_ata_identify): Do more strict status register check before
38193 calling grub_atapi_identify (). Suppress error message if status
38194 register is 0x00 after command failure. Add status register
38195 check after PIO read to avoid bogus identify due to stuck DRQ.
38196 Thanks to Pavel Roskin for testing.
38197 (grub_device_initialize): Remove unsafe status register check.
38198 Thanks to 'phcoder' for problem report and patch.
38199 Prevent sign extension in debug message.
38201 2009-05-23 Colin D Bennett <colin@gibibit.com>
38203 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38204 definition file, and functions defined in `normal/menu.c' have had
38205 their prototypes moved to `include/grub/menu.h' for consistency.
38207 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38209 (grub_menu_get_entry): Likewise.
38210 (grub_menu_get_timeout): Likewise.
38211 (grub_menu_set_timeout): Likewise.
38212 (grub_menu_execute_entry): Likewise.
38213 (grub_menu_execute_with_fallback): Likewise.
38214 (grub_menu_entry_run): Likewise.
38216 * include/grub/normal.h: Re-ordered and grouped function
38217 prototypes by file that the function is defined in.
38218 (grub_menu_execute_callback): Removed; moved to menu.h.
38219 (grub_menu_get_entry): Likewise.
38220 (grub_menu_get_timeout): Likewise.
38221 (grub_menu_set_timeout): Likewise.
38222 (grub_menu_execute_entry): Likewise.
38223 (grub_menu_execute_with_fallback): Likewise.
38224 (grub_menu_entry_run): Likewise.
38225 (grub_menu_addentry): Renamed from this ...
38226 (grub_normal_add_menu_entry): ... to this.
38228 * normal/main.c (grub_menu_addentry): Renamed from this ...
38229 (grub_normal_add_menu_entry): ... to this.
38231 * script/sh/execute.c (grub_script_execute_menuentry): Update
38232 reference to renamed grub_menu_addentry function.
38234 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38236 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38238 2009-05-22 Pavel Roskin <proski@gnu.org>
38240 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38241 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38242 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38243 compiling for the i386 targets, but not for the utilities.
38245 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38247 (grub_root_drive): Likewise.
38248 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38250 (grub_root_drive): Change size to byte.
38251 (grub_start_addr): Remove.
38252 (grub_end_addr): Likewise.
38253 (grub_apm_bios_info): Likewise.
38255 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38257 * normal/i386: Remove.
38258 * normal/powerpc: Likewise.
38259 * normal/sparc64: Likewise.
38260 * normal/x86_64: Likewise.
38262 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38264 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38265 * loader/i386/linux_trampoline.S: Fix indentation
38266 * loader/i386/xnu_helper.S: Likewise
38268 2009-05-18 Colin D Bennett <colin@gibibit.com>
38270 Display error messages when parsing a Lua statement fails.
38271 Previously, executing a syntactically invalid statement like
38272 ")foo" or "bar;" would silently fail.
38274 * script/lua/grub_main.c (handle_lua_error): New function.
38275 (grub_lua_parse_line): Improved reporting of Lua parser and
38278 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38280 Remove -Werror which causes build to fail on some systems
38282 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38283 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38284 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38286 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38288 trampoline for linux on 64-bit platform
38290 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38291 loader/i386/efi/linux_trampoline.S
38292 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38294 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38296 * loader/i386/linux_trampoline.S: moved here
38297 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38299 (jumpvector): removed
38300 (grub_linux_trampoline_start): new declaration
38301 (grub_linux_trampoline_end): likewise
38302 (grub_linux_boot): use trampoline when on 64-bit platform
38303 * loader/i386/linux.c: likewise
38305 2009-05-16 Pavel Roskin <proski@gnu.org>
38307 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38308 const to avoid a warning.
38309 (grub_lua_setenv): Likewise.
38310 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38311 lmsg to fix a warning.
38313 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38315 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38316 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38317 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38318 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38319 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38320 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38321 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38322 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38324 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38326 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38328 2009-05-16 Bean <bean123ch@gmail.com>
38330 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38331 (lua_mod_SOURCES): New variable.
38332 (lua_mod_CFLAGS): Likewise.
38333 (lua_mod_LDFLAGS): Likewise.
38335 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38336 (setjmp_mod_SOURCES): New variable.
38337 (setjmp_mod_CFLAGS): Likewise.
38338 (setjmp_LDFLAGS): Likewise.
38340 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38341 (setjmp_mod_SOURCES): New variable.
38342 (setjmp_mod_CFLAGS): Likewise.
38343 (setjmp_LDFLAGS): Likewise.
38345 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38346 (setjmp_mod_SOURCES): New variable.
38347 (setjmp_mod_CFLAGS): Likewise.
38348 (setjmp_LDFLAGS): Likewise.
38350 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38351 (setjmp_mod_SOURCES): New variable.
38352 (setjmp_mod_CFLAGS): Likewise.
38353 (setjmp_LDFLAGS): Likewise.
38355 * normal/i386/setjmp.S: Moved from here ...
38356 * lib/i386/setjmp.S: ... Moved here
38357 * normal/x86_64/setjmp.S: Moved from here ...
38358 * lib/x86_64/setjmp.S: ... Moved here
38359 * normal/powerpc/setjmp.S: Moved from here ...
38360 * lib/powerpc/setjmp.S: ... Moved here
38361 * normal/sparc64/setjmp.S: Moved from here ...
38362 * lib/sparc64/setjmp.S: ... Moved here
38364 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38365 returns_twice in mingw.
38367 * script/lua/grub_lib.c: New file.
38368 * script/lua/grub_lib.h: Likewise.
38369 * script/lua/grub_lua.h: Likewise.
38370 * script/lua/grub_main.c: Likewise.
38371 * script/lua/lapi.c: Likewise.
38372 * script/lua/lapi.h: Likewise.
38373 * script/lua/lauxlib.c: Likewise.
38374 * script/lua/lauxlib.h: Likewise.
38375 * script/lua/lbaselib.c: Likewise.
38376 * script/lua/lcode.c: Likewise.
38377 * script/lua/lcode.h: Likewise.
38378 * script/lua/ldblib.c: Likewise.
38379 * script/lua/ldebug.c: Likewise.
38380 * script/lua/ldebug.h: Likewise.
38381 * script/lua/ldo.c: Likewise.
38382 * script/lua/ldo.h: Likewise.
38383 * script/lua/ldump.c: Likewise.
38384 * script/lua/lfunc.c: Likewise.
38385 * script/lua/lfunc.h: Likewise.
38386 * script/lua/lgc.c: Likewise.
38387 * script/lua/lgc.h: Likewise.
38388 * script/lua/linit.c: Likewise.
38389 * script/lua/liolib.c: Likewise.
38390 * script/lua/llex.c: Likewise.
38391 * script/lua/llex.h: Likewise.
38392 * script/lua/llimits.h: Likewise.
38393 * script/lua/lmathlib.c: Likewise.
38394 * script/lua/lmem.c: Likewise.
38395 * script/lua/lmem.h: Likewise.
38396 * script/lua/loadlib.c: Likewise.
38397 * script/lua/lobject.c: Likewise.
38398 * script/lua/lobject.h: Likewise.
38399 * script/lua/lopcodes.c: Likewise.
38400 * script/lua/lopcodes.h: Likewise.
38401 * script/lua/loslib.c: Likewise.
38402 * script/lua/lparser.c: Likewise.
38403 * script/lua/lparser.h: Likewise.
38404 * script/lua/lstate.c: Likewise.
38405 * script/lua/lstate.h: Likewise.
38406 * script/lua/lstring.c: Likewise.
38407 * script/lua/lstring.h: Likewise.
38408 * script/lua/lstrlib.c: Likewise.
38409 * script/lua/ltable.c: Likewise.
38410 * script/lua/ltable.h: Likewise.
38411 * script/lua/ltablib.c: Likewise.
38412 * script/lua/ltm.c: Likewise.
38413 * script/lua/ltm.h: Likewise.
38414 * script/lua/lua.h: Likewise.
38415 * script/lua/luaconf.h: Likewise.
38416 * script/lua/lualib.h: Likewise.
38417 * script/lua/lundump.c: Likewise.
38418 * script/lua/lundump.h: Likewise.
38419 * script/lua/lvm.c: Likewise.
38420 * script/lua/lvm.h: Likewise.
38421 * script/lua/lzio.c: Likewise.
38422 * script/lua/lzio.h: Likewise.
38424 2009-05-16 Bean <bean123ch@gmail.com>
38426 * include/grub/kernel.h (grub_module_header_types): Add type
38429 * kern/main.c (grub_load_config): New function.
38430 (grub_main): Call grub_load_config to read boot config.
38432 * grub-mkimage (generate_image): New parameter config_path.
38433 (options): New option --config.
38434 (main): Parse --config option, and pass it to generate_image.
38436 2009-05-14 Christian Franke <franke@computer.org>
38438 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38439 This fixes build on Cygwin.
38441 2009-05-14 Pavel Roskin <proski@gnu.org>
38443 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38444 jump. This saves two bytes, so the typical case of 2 swapped
38445 drives would fit 32 bytes.
38447 2009-05-13 Pavel Roskin <proski@gnu.org>
38449 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38450 grub_uint32_t to avoid a warning.
38452 * loader/i386/linux.c (allocate_pages): When assigning
38453 real_mode_mem, cast through grub_size_t to fix a warning. The
38454 code already makes sure that the value would fit a pointer.
38455 (grub_linux_setup_video): Cast render_target->data to
38456 grub_size_t to fix a warning.
38458 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38460 * commands/i386/pc/drivemap.c: New file - implement drivemap
38462 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38463 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38465 2009-05-13 Pavel Roskin <proski@gnu.org>
38467 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38468 embedding_area_exists.
38470 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38472 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38473 it easier to understand / work with.
38474 Improve warning messages for cases where there's no embedding area,
38475 or when it is too small (or core.img too large).
38477 2009-05-13 Pavel Roskin <proski@gnu.org>
38479 * loader/i386/pc/multiboot2.c: Add necessary includes for
38480 grub_multiboot2_real_boot().
38482 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38483 PX record is always little-endian. We only need the lower 2
38486 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38487 facilitate code reuse.
38488 (grub_cpio_mount): Use "struct head", not a char buffer. This
38489 fixes a warning reported by gcc 4.4.
38491 * kernel/disk.c (grub_disk_read): Use void pointer for the
38493 (grub_disk_write): Use const void pointer for the buffer.
38494 Adjust all callers. Remove unnecessary casts.
38496 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38498 * util/i386/pc/grub-install.in: Update copyright year.
38500 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38504 * commands/gptsync.c: new file
38505 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38506 (gptsync_mod_SOURCES): new variable
38507 (gptsync_mod_CFLAGS): likewise
38508 (gptsync_mod_LDFLAGS): likewise
38509 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38511 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38512 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38513 * conf/i386-ieee1275.rmk: likewise
38514 * conf/i386-pc.rmk: likewise
38515 * conf/powerpc-ieee1275.rmk: likewise
38517 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38521 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38522 (grub_dl_ref): likewise
38524 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38526 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38527 split in two functions (one for msdos and one for gpt).
38529 2009-05-08 Pavel Roskin <proski@gnu.org>
38531 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38534 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38535 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38536 Initialize them with -1. Add sanity check for bad1. Eliminate
38539 2009-05-08 David S. Miller <davem@davemloft.net>
38541 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38543 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38545 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38548 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38550 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38551 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38553 2009-05-05 David S. Miller <davem@davemloft.net>
38555 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38557 2009-05-05 Pavel Roskin <proski@gnu.org>
38559 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38560 of grub_dl_ref() and grub_dl_unref().
38561 * commands/parttool.c: Remove preprocessor conditionals around
38562 grub_dl_ref() and grub_dl_unref().
38563 * fs/affs.c: Likewise.
38564 * fs/afs.c: Likewise.
38565 * fs/cpio.c: Likewise.
38566 * fs/ext2.c: Likewise.
38567 * fs/fat.c: Likewise.
38568 * fs/hfs.c: Likewise.
38569 * fs/hfsplus.c: Likewise.
38570 * fs/iso9660.c: Likewise.
38571 * fs/jfs.c: Likewise.
38572 * fs/minix.c: Likewise.
38573 * fs/ntfs.c: Likewise.
38574 * fs/reiserfs.c: Likewise.
38575 * fs/sfs.c: Likewise.
38576 * fs/udf.c: Likewise.
38577 * fs/ufs.c: Likewise.
38578 * fs/xfs.c: Likewise.
38579 * include/grub/dl.h: Likewise.
38580 * loader/xnu.c: Likewise.
38582 2009-05-04 Pavel Roskin <proski@gnu.org>
38584 * commands/acpi.c: Remove unused variable my_mod.
38585 * partmap/amiga.c: Likewise.
38586 * partmap/apple.c: Likewise.
38587 * partmap/gpt.c: Likewise.
38588 * partmap/pc.c: Likewise.
38589 * partmap/sun.c: Likewise.
38590 * term/gfxterm.c: Likewise.
38591 * term/i386/pc/vesafb.c: Likewise.
38592 * term/i386/pc/vga.c: Likewise.
38594 2009-05-04 David S. Miller <davem@davemloft.net>
38596 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38597 pointer args to grub_ieee1275_get_property().
38599 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38601 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38602 devices, and do not traverse down under controller nodes.
38604 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38605 (grub_ofdisk_open): Use it to un-escape "," characters.
38606 * kern/disk.c (find_part_sep): New.
38607 (grub_disk_open): Use it to find the first non-escaped ','
38608 character in the disk name.
38609 * util/ieee1275/devicemap.c (escape_of_path): New.
38610 (grub_util_emit_devicemap_entry): Use it.
38611 * util/sparc64/ieee1275/grub-install.in: Update script to
38612 strip partition specifiers properly by not triggering on
38613 '\' escaped ',' characters.
38615 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38617 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38619 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38621 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38622 on documentation from Wikipedia).
38624 2009-05-04 Pavel Roskin <proski@gnu.org>
38626 * disk/ata.c: Spelling fixes.
38627 * disk/raid.c: Likewise.
38628 * disk/usbms.c: Likewise.
38629 * disk/dmraid_nvidia.c: Likewise.
38630 * kern/ieee1275/openfw.c: Likewise.
38631 * kern/ieee1275/init.c: Likewise.
38632 * kern/ieee1275/cmain.c: Likewise.
38633 * boot/i386/pc/cdboot.S: Likewise.
38634 * video/readers/png.c: Likewise.
38635 * video/i386/pc/vbe.c: Likewise.
38636 * fs/udf.c: Likewise.
38637 * fs/hfs.c: Likewise.
38638 * fs/reiserfs.c: Likewise.
38639 * efiemu/runtime/efiemu.c: Likewise.
38640 * efiemu/main.c: Likewise.
38641 * efiemu/mm.c: Likewise.
38642 * include/grub/elf.h: Likewise.
38643 * include/grub/xnu.h: Likewise.
38644 * include/grub/usbdesc.h: Likewise.
38645 * include/grub/usb.h: Likewise.
38646 * include/grub/script_sh.h: Likewise.
38647 * include/grub/lib/LzmaEnc.h: Likewise.
38648 * include/grub/efiemu/efiemu.h: Likewise.
38649 * include/grub/command.h: Likewise.
38650 * normal/menu.c: Likewise.
38651 * normal/main.c: Likewise.
38652 * normal/datetime.c: Likewise.
38653 * bus/usb/uhci.c: Likewise.
38654 * mmap/i386/uppermem.c: Likewise.
38655 * mmap/mmap.c: Likewise.
38656 * commands/acpi.c: Likewise.
38657 * commands/test.c: Likewise.
38658 * partmap/apple.c: Likewise.
38659 * font/font.c: Likewise.
38660 * loader/sparc64/ieee1275/linux.c: Likewise.
38661 * loader/macho.c: Likewise.
38662 * loader/i386/bsd_trampoline.S: Likewise.
38663 * loader/i386/bsd.c: Likewise.
38664 * loader/xnu.c: Likewise.
38665 * term/i386/pc/vesafb.c: Likewise.
38666 * term/usb_keyboard.c: Likewise.
38667 * util/resolve.c: Likewise.
38668 * util/getroot.c: Likewise.
38670 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38672 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38674 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38676 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38679 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38681 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38682 parameter only available on BIOS.
38684 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38686 Removed wrong semicolon in declaration
38688 * grub/misc.h (grub_dprintf): remove semicolon
38690 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38692 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38693 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38694 is done by grub_cmd_linux() now).
38695 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38696 restore video to text mode.
38697 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38698 indicates lack of "vga=" parameter. "vga=0" is mapped to
38699 `GRUB_LINUX_VID_MODE_NORMAL'.
38701 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38703 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38704 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38705 and `normal/script.c'. Add `kern/rescue_reader.c',
38706 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38707 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38708 `grub_script.tab.c'.
38710 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38711 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38714 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38716 * Makefile.in: Remove duplicated 2008 in Copyright line.
38718 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38720 * util/misc.c (grub_util_warn): New function. Emits a warning
38722 * include/grub/util/misc.h (grub_util_warn): New declaration.
38724 * util/i386/pc/grub-install.in: Understand --force and pass it down
38727 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38729 (setup): Improve error messages and add warnings when requested to
38730 install in odd layouts. Refuse to install using blocklists unless
38733 2009-05-04 martin f. krafft <madduck@madduck.net>
38735 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38737 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38739 Updated copyright year
38741 * fs/hfsplus.c: updated copyright year
38743 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38747 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38748 in the space previously used by unused3
38749 (grub_hfsplus_uuid): new function
38750 (grub_hfsplus_fs): added uuid field
38752 2009-05-03 Pavel Roskin <proski@gnu.org>
38754 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38755 suppress warnings. It's no longer needed.
38756 * disk/host.c: Likewise.
38757 * disk/ata_pthru.c: Likewise.
38758 * disk/loopback.c: Likewise.
38759 * hook/datehook.c: Likewise.
38760 * parttool/pcpart.c: Likewise.
38761 * fs/i386/pc/pxe.c: Likewise.
38762 * fs/ntfscomp.c: Likewise.
38763 * efiemu/main.c: Likewise.
38764 * mmap/mmap.c: Likewise.
38765 * commands/crc.c: Likewise.
38766 * commands/hexdump.c: Likewise.
38767 * commands/hdparm.c: Likewise.
38768 * commands/acpi.c: Likewise.
38769 * commands/echo.c: Likewise.
38770 * commands/minicmd.c: Likewise.
38771 * commands/blocklist.c: Likewise.
38772 * commands/memrw.c: Likewise.
38773 * commands/loadenv.c: Likewise.
38774 * commands/usbtest.c: Likewise.
38775 * commands/lsmmap.c: Likewise.
38776 * commands/boot.c: Likewise.
38777 * commands/parttool.c: Likewise.
38778 * commands/configfile.c: Likewise.
38779 * commands/search.c: Likewise.
38780 * commands/ieee1275/suspend.c: Likewise.
38781 * commands/cat.c: Likewise.
38782 * commands/i386/pc/pxecmd.c: Likewise.
38783 * commands/i386/pc/play.c: Likewise.
38784 * commands/i386/pc/halt.c: Likewise.
38785 * commands/i386/pc/vbeinfo.c: Likewise.
38786 * commands/i386/pc/vbetest.c: Likewise.
38787 * commands/lspci.c: Likewise.
38788 * commands/date.c: Likewise.
38789 * commands/handler.c: Likewise.
38790 * commands/ls.c: Likewise.
38791 * commands/test.c: Likewise.
38792 * commands/cmp.c: Likewise.
38793 * commands/efi/loadbios.c: Likewise.
38794 * commands/efi/fixvideo.c: Likewise.
38795 * commands/halt.c: Likewise.
38796 * commands/help.c: Likewise.
38797 * commands/reboot.c: Likewise.
38798 * hello/hello.c: Likewise.
38799 * script/sh/main.c: Likewise.
38800 * loader/xnu.c: Likewise.
38801 * term/terminfo.c: Likewise.
38802 * term/i386/pc/serial.c: Likewise.
38803 * term/usb_keyboard.c: Likewise.
38805 2009-05-03 David S. Miller <davem@davemloft.net>
38807 * normal/menu.c: Include grub/parser.h
38809 2009-05-03 Pavel Roskin <proski@gnu.org>
38811 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38813 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38814 Suggested by Javier Martín <lordhabbit@gmail.com>
38816 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38817 efiemu??.o doesn't exist.
38818 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38821 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38823 FreeBSD 64-bit support
38825 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38826 and loader/i386/bsd_trampoline.S
38827 (bsd_mod_ASFLAGS): new variable
38828 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38829 (FREEBSD_MODTYPE_KERNEL64): likewise
38830 (grub_bsd64_trampoline_start): likewise
38831 (grub_bsd64_trampoline_end): likewise
38832 (grub_bsd64_trampoline_selfjump): likewise
38833 (grub_bsd64_trampoline_gdt): likewise
38834 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38835 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38836 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38837 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38838 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38840 * loader/i386/bsd_pagetable.c: new file
38841 * loader/i386/bsd_trampoline.S: likewise
38842 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38843 (ALIGN_VAR): likewise
38844 (entry_hi): new variable
38845 (kern_end_mdofs): likewise
38846 (is_64bit): likewise
38847 (grub_freebsd_add_meta): use ALIGN_VAR
38848 (grub_e820_mmap): new declaration
38849 (grub_freebsd_add_mmap): new function
38850 (grub_freebsd_add_meta_module): support 64 bit kernels
38851 (grub_freebsd_list_modules): use ALIGN_VAR
38852 (gdt_descriptor): new declaration
38853 (grub_freebsd_boot): support 64 bit kernels
38854 (grub_bsd_elf64_hook): new function
38855 (grub_bsd_load_elf): support elf64
38857 2009-05-03 Bean <bean123ch@gmail.com>
38859 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38860 after we get the result of if statement.
38862 2009-05-03 Bean <bean123ch@gmail.com>
38864 * Makefile.in (enable_efiemu): New variable.
38866 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38868 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38870 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38871 path, add -mno-red-zone option.
38872 (efiemu64_s.o): Likewise.
38873 (efiemu64.o): Use macro $^ for source file.
38875 * configure.ac (--enable-efiemu): New option.
38877 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38881 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38882 (pkglib_MODULES): add xnu.mod
38883 (xnu_mod_SOURCES): new variable
38884 (xnu_mod_CFLAGS): likewise
38885 (xnu_mod_LDFLAGS): likewise
38886 (xnu_mod_ASFLAGS): likewise
38887 * conf/i386-pc.rmk: likewise
38888 * conf/x86_64-efi.rmk: likewise
38889 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38891 * include/grub/i386/macho.h: new file
38892 * include/grub/i386/xnu.h: likewise
38893 * include/grub/macho.h: likewise
38894 * include/grub/machoload.h: likewise
38895 * include/grub/x86_64/macho.h: likewise
38896 * include/grub/x86_64/xnu.h: likewise
38897 * include/grub/xnu.h: likewise
38898 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38899 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38900 * loader/i386/efi/xnu.c: new file
38901 * loader/i386/pc/xnu.c: likewise
38902 * loader/i386/xnu.c: likewise
38903 * loader/i386/xnu_helper.S: likewise
38904 * loader/macho.c: likewise
38905 * loader/xnu.c: likewise
38906 * loader/xnu_resume.c: likewise
38907 * util/grub-dumpdevtree: likewise
38908 * include/grub/i386/pit.h: include grub/err.h
38909 (grub_pit_wait): export
38910 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38912 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38916 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38917 _linux_efi, linux_efi.
38918 new files in grub-emu
38919 new targets efiemu32.o and efiemu64.o
38920 * loader/linux_normal_efiemu.c: likewise
38921 * loader/i386/efi/linux.c: added preliminary efiemu support
38922 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38924 * include/grub/autoefi.h: new file
38925 * include/grub/i386/efiemu.h: likewise
38926 * include/grub/i386/pc/efiemu.h: likewise
38927 * include/grub/efi/api.h: add LL suffix when necessary
38928 new definitions relating to tables
38929 * include/grub/efiemu/efiemu.h: new file
38930 * include/grub/efiemu/runtime.h: likewise
38931 * efiemu/prepare.c: likewise
38932 * efiemu/loadcore_common.c: likewise
38933 * efiemu/loadcore64.c: likewise
38934 * efiemu/runtime/efiemu.sh: likewise
38935 * efiemu/runtime/efiemu.S: likewise
38936 * efiemu/runtime/efiemu.c: likewise
38937 * efiemu/runtime/config.h: likewise
38938 * efiemu/prepare32.c: likewise
38939 * efiemu/main.c: likewise
38940 * efiemu/modules/pnvram.c: likewise
38941 * efiemu/modules/i386: likewise
38942 * efiemu/modules/i386/pc: likewise
38943 * efiemu/modules/acpi.c: likewise
38944 * efiemu/i386/pc/cfgtables.c: likewise
38945 * efiemu/i386/loadcore64.c: likewise
38946 * efiemu/i386/loadcore32.c: likewise
38947 * efiemu/prepare64.c: likewise
38948 * efiemu/loadcore.c: likewise
38949 * efiemu/symbols.c: likewise
38950 * efiemu/mm.c: likewise
38951 * efiemu/loadcore32.c: likewise
38953 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38957 * commands/acpi.c: new file
38958 * commands/i386/pc/acpi.c: likewise
38959 * commands/efi/acpi.c: likewise
38960 * include/grub/acpi.h: likewise
38961 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38962 (acpi_mod_SOURCES): new variable
38963 (acpi_mod_CFLAGS): likewise
38964 (acpi_mod_LDFLAGS): likewise
38965 * conf/i386-efi.rmk: likewise
38966 * conf/x86_64-efi.rmk: likewise
38968 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38970 Missing part from mmap patch
38972 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38973 (grub_mmap_unregister)
38974 (grub_mmap_free_and_unregister): use grub_mmap_register
38976 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38980 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38981 * loader/i386/linux.c (find_mmap_size): likewise
38982 (allocate_pages): likewise
38983 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38984 (grub_fill_multiboot_mmap): likewise
38985 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38986 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38987 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38988 (OPENBSD_MMAP_RESERVED): likewise
38989 * include/grub/i386/pc/memory.h: include grub/memory.h
38990 (grub_lower_mem): removed
38991 (grub_upper_mem): likewise
38992 (GRUB_MACHINE_MEMORY_ACPI): new definition
38993 (GRUB_MACHINE_MEMORY_NVS): likewise
38994 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38995 (GRUB_MACHINE_MEMORY_HOLE): likewise
38996 (grub_machine_mmap_register): likewise
38997 (grub_machine_mmap_unregister): likewise
38998 (grub_machine_get_upper): likewise
38999 (grub_machine_get_lower): likewise
39000 (grub_machine_get_post64): likewise
39001 * include/grub/i386/efi/memory.h: new file
39002 * include/grub/x86_64/efi/memory.h: likewise
39003 * include/grub/efi/memory.h: likewise
39004 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39005 (mmap_mod_SOURCES): new variable
39006 (mmap_mod_LDFLAGS): likewise
39007 (mmap_mod_ASFLAGS): likewise
39008 * conf/i386-coreboot.rmk: likewise
39009 * conf/i386-ieee1275.rmk: likewise
39010 * conf/i386-efi.rmk: likewise
39011 * conf/x86_64-efi.rmk: likewise
39012 * include/grub/types.h (UINT_TO_PTR): new macro
39013 (PTR_TO_UINT32): likewise
39014 (PTR_TO_UINT64): likewise
39015 * include/grub/memory.h: new file
39016 * mmap/i386/pc/mmap.c: likewise
39017 * mmap/i386/pc/mmap_helper.S: likewise
39018 * mmap/i386/uppermem.c: likewise
39019 * mmap/mmap.c: likewise
39020 * mmap/efi/mmap.c: likewise
39021 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39023 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39024 (grub_upper_mem): likewise
39025 (grub_machine_init): don't use grub_upper_mem,
39026 make grub_lower_mem local
39027 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39028 grub_mmap_iterate and grub_mmap_get_upper
39029 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39031 2009-05-02 Bean <bean123ch@gmail.com>
39033 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39034 script/sh/parser.y.
39035 (pkglib_MODULES): Add normal.mod and sh.mod.
39036 (normal_SOURCES): New variable.
39037 (normal_mod_CFLAGS): Likewise.
39038 (normal_mod_LDFLAGS): Likewise.
39039 (sh_mod_SOURCES): Likewise.
39040 (sh_mod_CFLAGS): Likewise.
39041 (sh_mod_LDFLAGS): Likewise.
39043 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39044 script/sh/lexer.c_DEPENDENCIES.
39045 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39046 kern/rescue_reader.c and kern/rescue_parser.c.
39047 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39048 (grub_emu_SOURCES): Change source files.
39049 (pkglib_MODULES): Remove normal.mod.
39050 (normal_SOURCES): Removed.
39051 (normal_mod_CFLAGS): Likewise.
39052 (normal_mod_LDFLAGS): Likewise.
39053 * conf/i386-coreboot.rmk: Likewise.
39054 * conf/i386-efi.rmk: Likewise.
39055 * conf/i386-ieee1276.rmk: Likewise.
39056 * conf/powerpc-ieee1275.rmk: Likewise.
39057 * conf/sparc64-ieee1275.rmk: Likewise.
39058 * conf/x86_64-efi.rmk: Likewise.
39060 * include/grub/command.h (grub_command_execute): New inline function.
39062 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39064 * include/grub/normal.h: Remove <grub/setjmp.h>.
39065 (grub_fs_module_list): Moved to normal/autofs.c.
39066 (grub_exit_env): Removed.
39067 (grub_command_execute): Likewise.
39068 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39070 (read_command_list): New function declaration.
39071 (read_fs_list): Likewise.
39073 * include/parser.h: Include <grub/reader.h>.
39074 (grub_parser_split_cmdline): Change type of getline parameter.
39075 (grub_parser): New structure.
39076 (grub_parser_class): New variable.
39077 (grub_parser_execute): New function declaration.
39078 (grub_register_rescue_parser): Likewise.
39079 (grub_parser_register): New inline function.
39080 (grub_parser_unregister): Likewise.
39081 (grub_parser_get_current): Likewise.
39082 (grub_parser_set_current): Likewise.
39084 * include/grub/reader.h: New file.
39085 * kern/reader.c: Likewise.
39086 * kern/rescue_parser.c: Likewise.
39087 * kern/rescue_reader.c: Likewise.
39088 * normal/autofs.c: Likewise.
39089 * normal/dyncmd.c: Likewise.
39091 * include/grub/rescue.h: Removed.
39092 * normal/command.h: Likewise.
39094 * include/grub/script.h: Moved to ...
39095 * include/grub/script_sh.h: ... Moved here.
39096 * normal/execute.c: Moved to ...
39097 * script/sh/execute.c: ... Moved here.
39098 * normal/function.c: Moved to ...
39099 * script/sh/function.c: ... Moved here.
39100 * normal/lexer.c: Moved to ...
39101 * script/sh/lexer.c: ... Moved here.
39102 * normal/parser.y: Moved to ...
39103 * script/sh/parser.y: ... Moved here.
39104 * normal/script.c: Moved to ...
39105 * script/sh/script.c: ... Moved here.
39107 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39109 (grub_exit_env): Removed.
39110 (fs_module_list): Moved to normal/autofs.c.
39111 (grub_file_getline): Don't handle comment here.
39112 (free_menu): Skip removed field entry->commands.
39113 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39115 (read_config_file): Removed nested parameter, change getline function.
39116 (grub_enter_normal_mode): Removed.
39117 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39118 (read_command_list): Likewise.
39119 (autoload_fs_module): Moved to normal/autofs.c.
39120 (read_fs_list): Likewise.
39121 (reader_nested): New variable.
39122 (grub_normal_execute): Run parser.sh to switch to sh parser.
39123 (grub_cmd_rescue): Removed.
39124 (cmd_normal): Removed.
39125 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39127 (grub_cmdline_run): New function.
39128 (grub_normal_reader_init): Likewise.
39129 (grub_normal_read_line): Likewise.
39130 (grub_env_write_pager): Likewise.
39131 (cmdline): New variable.
39132 (grub_normal_reader): Likewise.
39133 (GRUB_MOD_INIT): Register normal reader and set as current, register
39134 pager hook, register normal command with grub_register_command_prio,
39135 so that it won't show up in command.lst.
39136 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39137 grub_fs_autoload_hook.
39139 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39140 (grub_menu_execute_entry): Replace grub_script_execute with
39141 grub_parser_execute, change parameter to grub_command_execute.
39143 * normal/menu_text.c: Remove <grub/script.h>.
39145 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39146 and <grub/parser.h>.
39147 (run): Change editor_getline to use new parser interface. Change
39148 parameter to grub_command_execute.
39150 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39151 <grub/reader.h> and <grub/parser.h>.
39152 (grub_load_normal_mode): Execute normal command.
39153 (grub_main): Call grub_register_core_commands,
39154 grub_register_rescue_parser and grub_register_rescue_reader, use
39155 grub_reader_loop to enter input loop.
39157 * kern/parser.c (grub_parser_split_cmdline): Change type of
39159 (grub_parser_class): New variable.
39160 (grub_parser_execute): New function.
39162 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39163 * loader/multiboot2.c: Likewise.
39164 * loader/sparc64/ieee1275/linux.c: Likewise.
39166 * util/grub-emu.c (read_command_list): New dummy function.
39168 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39170 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39171 count to 16 for CCISS and IDA.
39173 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39175 * normal/menu_text.c (grub_wait_after_message): Print a newline
39176 after waiting for user input.
39178 * loader/i386/linux.c: Include `<grub/normal.h>'.
39179 (grub_cmd_linux): Improve the error message about `ask' mode, by
39180 waiting for user input so it's not missed (we can do this, since
39181 user requested interaction).
39183 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39185 Added missing lst to grub-mkrescue
39187 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39188 and ${input_dir}/parttool.lst
39190 2009-04-30 David S. Miller <davem@davemloft.net>
39192 * util/hostdisk.c (device_is_wholedisk): New function.
39193 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39194 zero only if device_is_wholedisk() returns true.
39196 * util/hostdisk.c (convert_system_partition_to_system_disk):
39197 Handle virtual disk devices named /dev/vdiskX as found on sparc
39200 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39201 lettered partition specifier is found, convert to numbered.
39203 2009-04-29 David S. Miller <davem@davemloft.net>
39205 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39206 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39208 * normal/command.c: Add missing newline at end of file.
39210 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39212 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39213 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39214 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39215 ihandles have a 32-bit type but need to be stored in a "void *".
39217 2009-04-28 Pavel Roskin <proski@gnu.org>
39219 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39220 not disk. Adjust all dependencies.
39221 (grub_fs_uuid_close): Use grub_device_close(), not
39224 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39225 parent's partition, don't copy it by reference, as it gets freed
39228 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39230 Preboot hooks support
39232 * commands/boot.c (struct grub_preboot_t): new declaration
39233 (preboots_head): new variable
39234 (preboots_tail): likewise
39235 (grub_loader_register_preboot_hook): new function
39236 (grub_loader_unregister_preboot_hook): likewise
39237 (grub_loader_set): launch preboot hooks
39238 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39239 (grub_loader_register_preboot_hook): new declaration
39240 (grub_loader_unregister_preboot_hook): likewise
39242 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39246 * disk/scsi.c (grub_scsi_open): added missing cast when
39247 calling grub_dprintf
39249 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39251 Bug and warning fixes
39253 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39255 * commands/test.c (test_parse): fixed bug with file tests and corrected
39256 declaration of find_file
39258 2009-04-26 Pavel Roskin <proski@gnu.org>
39260 * Makefile.in: Don't install empty manual pages if help2man is
39261 missing. Use help2man option for output, not shell redirection.
39263 2009-04-26 David S. Miller <davem@davemloft.net>
39265 * util/grub-mkdevicemap.c (make_device_map): Add missing
39266 NESTED_FUNC_ATTR to process_device().
39268 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39272 * commands/test.c: rewritten to use bash-like test
39274 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39276 Parttool autoloading and improvements
39278 * Makefile.in (pkglib_DATA): add parttool.lst
39279 (parttool.lst): new target
39280 * genmk.rb: generate parttool-*
39281 (CLEANFILES): add #{parttool}
39282 (PARTTOOLFILES): new variable
39283 * genparttoollist.sh: new file
39284 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39285 (grub_pcpart_type): likewise
39286 * commands/parttool.c (helpmsg): new variable
39287 (grub_cmd_parttool): output help if not enough arguments are supplied
39289 (GRUB_MOD_INIT(parttool)): use helpmsg
39291 2009-04-24 David S. Miller <davem@davemloft.net>
39293 Avoiding opening same device multiple times in device iterator.
39295 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39296 and use it to build a list of partitions in iterate_disk() and
39297 iterate_partition().
39299 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39302 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39303 grub_devalias_iterate() result instead of unconditional 0.
39304 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39305 Also, capture hook return value, either directly or via
39306 grub_children_iterate(), and propagate to caller.
39307 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39308 grub_children_iterate): Return value is now 'int' instead of
39310 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39311 like a proper iterator, stopping when hooks return non-zero.
39312 (grub_devalias_iterate): Likewise.
39314 2009-04-23 David S. Miller <davem@davemloft.net>
39316 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39318 2009-04-22 David S. Miller <davem@davemloft.net>
39320 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39321 is larger than address_cells, use that value for address_cells too.
39323 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39324 IEEE1275_MAX_PATH_LEN): Define.
39325 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39326 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39327 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39328 'devtype'. Explicitly NULL terminate devalias expansion.
39330 * util/sparc64/ieee1275/misc.c: New file.
39331 * util/sparc64/ieee1275/grub-setup.c: New file.
39332 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39333 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39334 * util/sparc64/ieee1275/grub-install.in: New file.
39335 * util/ieee1275/ofpath.c: New file.
39336 * util/ieee1275/devicemap.c: New file.
39337 * util/devicemap.c: New file.
39338 * util/deviceiter.c: New file.
39339 * kern/sparc64/ieee1275/init.c: New file.
39340 * include/grub/util/ofpath.h: New file.
39341 * include/grub/util/deviceiter.h: New file.
39342 * util/grub-mkdevicemap.c: Include deviceiter.h.
39343 Implement using grub_util_emit_devicemap_entry and
39344 grub_util_iterate_devices.
39345 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39346 util/devicemap.c into grub-mkdevicemap
39347 * conf/i386-efi.rmk: Likewise.
39348 * conf/i386-ieee1275.rmk: Likewise.
39349 * conf/i386-pc.rmk: Likewise.
39350 * conf/powerpc-ieee1275.rmk: Likewise.
39351 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39352 images and installation utilities. Build kernel as image
39353 instead of as elf binary. Use common rules as much as possible.
39355 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39357 Correct GPT definition
39359 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39362 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39364 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39366 2009-04-19 David S. Miller <davem@davemloft.net>
39368 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39369 (grub_rescue_cmd_linux): Rename to...
39370 (grub_cmd_linux): and fix prototype.
39371 (grub_rescue_cmd_initrd): Rename to...
39372 (grub_cmd_initrd): and fix prototype.
39373 (cmd_linux, cmd_initrd): New.
39374 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39375 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39377 2009-04-17 Pavel Roskin <proski@gnu.org>
39379 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39381 (grub_ohci_transfer): Likewise.
39383 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39385 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39386 return without a value. Fix inconsistent indentation.
39388 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39389 match struct grub_fs.
39391 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39392 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39393 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39394 * commands/lspci.c (grub_lspci_iter): Likewise.
39396 2009-04-16 Bean <bean123ch@gmail.com>
39398 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39401 2009-04-15 Pavel Roskin <proski@gnu.org>
39403 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39404 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39405 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39408 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39410 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39411 that no multiple data or metadata areas are supported and `Unknown
39414 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39416 Move loader out of the kernel
39418 * kern/loader.c: moved to ...
39419 * commands/boot.c: ... moved here
39420 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39421 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39422 * include/grub/kernel.h (grub_machine_fini): export
39423 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39424 (grub_loader_set): likewise
39425 (grub_loader_unset): likewise
39426 (grub_loader_boot): likewise
39427 * conf/common.rmk: new module boot.mod
39428 (pkglib_MODULES): add boot.mod
39429 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39430 (grub_emu_SOURCES): likewise
39431 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39432 (grub_emu_SOURCES): likewise
39433 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39434 (grub_emu_SOURCES): likewise
39435 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39436 (grub_emu_SOURCES): likewise
39437 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39438 (grub_emu_SOURCES): likewise
39439 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39440 (grub_emu_SOURCES): likewise
39441 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39442 (grub_emu_SOURCES): likewise
39444 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39446 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39448 * kern/misc.c (grub_itoa): Removed function
39449 (grub_ltoa): likewise
39450 (grub_vsprintf): use grub_lltoa
39452 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39456 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39457 * conf/i386-coreboot.rmk: likewise
39458 * conf/i386-ieee1275.rmk: likewise
39459 * conf/powerpc-ieee1275.rmk: likewise
39461 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39463 * INSTALL: Add that `./autogen.sh' needs to be run before
39466 2009-04-14 Bean <bean123ch@gmail.com>
39468 * Makefile.in (pkglib_DATA): Add handler.lst.
39469 (handler.lst): New rule.
39471 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39472 * conf/i386-coreboot.rmk: Likewise.
39473 * conf/i386-ieee1275.rmk: Likewise.
39474 * conf/i386-efi.rmk: Likewise.
39475 * conf/x86_64-efi.rmk: Likewise.
39476 * conf/powerpc-ieee1275.rmk: Likewise.
39477 * conf/sparc64-ieee1275.rmk: Likewise.
39479 * genhandlerlist.sh: New file.
39481 * genmk.rb: Add rules to generate handler.lst.
39483 * include/grub/normal.h (grub_file_getline): New function definition.
39484 (read_handler_list): Likewise.
39485 (free_handler_list): Likewise.
39487 * include/grub/term.h (grub_term_register_input): Add name parameter
39488 for auto generation of handler.lst.
39489 (grub_term_register_output): Likewise.
39491 * normal/handler.c: New file.
39493 * normal/main.c (get_line): Renamed to grub_file_getline.
39494 (read_config_file): Use the newly renamed grub_file_getline.
39495 (read_command_list): Likewise.
39496 (read_fs_list): Likewise.
39497 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39498 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39500 * term/efi/console.c (grub_console_init): Add name parameter for auto
39501 generation of handler.lst.
39502 * term/gfxterm.c: Likewise.
39503 * term/i386/pc/at_keyboard.c: Likewise.
39504 * term/i386/pc/console.c: Likewise.
39505 * term/i386/pc/serial.c: Likewise.
39506 * term/i386/pc/vesafb.c: Likewise.
39507 * term/i386/pc/vga.c: Likewise.
39508 * term/i386/pc/vga_text.c: Likewise.
39509 * term/ieee1275/ofconsole.c: Likewise.
39510 * term/usb_keyboard.c: Likewise.
39512 2009-04-14 Bean <bean123ch@gmail.com>
39514 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39515 properly with null character.
39517 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39519 * configure: Remove.
39520 * config.h.in: Likewise.
39521 * stamp-h.in: Likewise.
39522 * DISTLIST: Likewise.
39523 * conf/common.mk: Likewise.
39524 * conf/i386-coreboot.mk: Likewise.
39525 * conf/i386-efi.mk: Likewise.
39526 * conf/i386-ieee1275.mk: Likewise.
39527 * conf/i386.mk: Likewise.
39528 * conf/i386-pc.mk: Likewise.
39529 * conf/powerpc-ieee1275.mk: Likewise.
39530 * conf/sparc64-ieee1275.mk: Likewise.
39531 * conf/x86_64-efi.mk: Likewise.
39533 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39536 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39537 David S. Miller <davem@davemloft.net>
39539 * util/hostdisk.c (make_device_name): Fix buffer length
39542 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39544 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39545 <sys/param.h> and <sys/sysctl.h>.
39546 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39547 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39548 opening the device and reset them afterwards.
39550 2009-04-13 Pavel Roskin <proski@gnu.org>
39552 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39553 Reported by John Stanley <jpsinthemix@verizon.net>
39555 2009-04-13 Robert Millan <rmh@aybabtu.com>
39557 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39558 that name for menuentries when appropriate.
39560 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39562 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39564 2009-04-13 Robert Millan <rmh@aybabtu.com>
39566 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39567 to Linux, simply abort telling the user it's no longer supported.
39569 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39571 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39572 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39573 `freebsd_loadenv' only when devices.hints exist.
39575 2009-04-13 Pavel Roskin <proski@gnu.org>
39577 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39579 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39581 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39583 (grub_drive): Likewise.
39585 2009-04-13 David S. Miller <davem@davemloft.net>
39587 * kern/sparc64/ieee1275/ieee1275.c: New file.
39588 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39589 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39590 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39591 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39592 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39593 grub_ieee1275_alloc_physmem): Declare new exported functions.
39595 * include/grub/sparc64/ieee1275/loader.h: New file.
39596 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39597 * include/grub/sparc64/kernel.h: Likewise.
39598 * loader/sparc64/ieee1275/linux.c: Likewise.
39600 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39601 (grub_fstest_SOURCES): Likewise.
39603 * util/hostdisk.c (make_device_name): Do not make any assumptions
39604 about the length of drive names.
39606 * kern/dl.c (grub_dl_load_file): Close file immediately when
39607 we are done using it.
39609 2009-04-12 David S. Miller <davem@davemloft.net>
39611 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39612 values. Noticed by Pavel Roskin.
39614 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39617 * genmk.rb: Add more flexible image type specification, also
39618 pass --strip-unneeded to objcopy.
39619 * conf/i386-pc.rmk: Use *_FORMAT.
39620 * conf/i386-pc.mk: Rebuilt.
39622 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39623 (OFDISK_HASH_SZ): Define.
39624 (ofdisk_hash): New hash table.
39625 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39626 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39627 instead of device phandle which is not unique.
39629 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39630 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39631 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39632 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39633 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39634 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39635 GRUB_KERNEL_MACHINE_DATA_END): Define.
39636 (grub_kernel_image_size, grub_total_module_size): Declare.
39638 2009-04-12 Pavel Roskin <proski@gnu.org>
39640 * configure.ac: Change the logic when we check for target tools.
39641 Do it when the target is specified and it's different from the
39642 specified value of the host.
39644 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39646 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39647 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39648 GNU/kFreeBSD. Check if a device is a character device. Use
39649 DIOCGMEDIASIZE to get the size.
39650 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39651 support for GNU/kFreeBSD.
39652 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39653 is a character device instead of a block device. Add support for
39654 FreeBSD device names.
39656 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39657 is a character device instead of a block device.
39659 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39660 is a character device instead of a block device.
39662 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39664 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39665 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39666 FreeBSD. Check if a device is a character device. Use
39667 DIOCGMEDIASIZE to get the size.
39668 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39669 support for FreeBSD.
39670 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39671 is a character device instead of a block device. Add support for
39672 FreeBSD device names.
39674 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39675 a character device instead of a block device.
39676 (grub_util_check_char_device): New function.
39678 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39679 a character device instead of a block device.
39681 * include/grub/util/getroot.h (grub_util_check_char_device): New
39684 2009-04-11 David S. Miller <davem@davemloft.net>
39686 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39688 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39689 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39690 function, if present.
39691 (__bswapdi2): Likewise.
39693 * include/grub/sparc64/ieee1275/boot.h: New file.
39694 * boot/sparc64/ieee1275/boot.S: Likewise.
39695 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39697 * kern/misc.c (grub_ltoa): New function.
39698 (grub_vsprintf): Use it to format 'long' integers.
39700 2009-04-10 David S. Miller <davem@davemloft.net>
39702 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39703 slots are of type grub_ieee1275_cell_t.
39704 (grub_nand_read): Likewise.
39705 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39706 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39707 macros are used to compare values in arg/ret block of the call.
39708 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39709 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39710 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39711 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39712 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39713 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39714 grub_ieee1275_close, grub_ieee1275_set_property,
39715 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39716 grub_ieee1275_cell_t.
39717 * kern/ieee1275/openfw.c (grub_map): Likewise.
39718 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39719 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39721 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39722 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39723 (grub_devalias_iterate): Likewise.
39725 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39729 * fs/ufs.c (INODE_NBLOCKS): new definition
39730 (struct grub_ufs_dirent): added fields for non-BSD dirents
39731 (grub_ufs_get_file_block): fixed double indirect handling
39732 (grub_ufs_lookup_symlink): use more robust way to determine whether
39734 (grub_ufs_find_file): support for non-BSD dirents
39735 (grub_ufs_dir): support for non-BSD dirents
39737 2009-04-10 Bean <bean123ch@gnail.com>
39739 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39740 attribute, otherwise the size would be wrong for i386 platform.
39742 * include/grub/pci.h (grub_pci_read_word): New inline function.
39743 (grub_pci_read_byte): Likewise.
39744 (grub_pci_write): Likewise.
39745 (grub_pci_write_word): Likewise.
39746 (grub_pci_write_byte): Likewise.
39748 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39750 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39751 (find_framebuf): Scan pci to locate the frame buffer address.
39753 * commands/efi/fixvideo.c: New file.
39755 * commands/efi/loadbios.c: Likewise.
39757 * commands/memrw.c: Likewise.
39759 * util/grub-dumpbios.in: Likewise.
39761 * conf/common.rmk (grub-dumpbios): New utility.
39762 (pkglib_MODULES): New module memrw.mod.
39763 (memrw_mod_SOURCE): New macro.
39764 (memrw_mod_CFLAGS): Likewise.
39765 (memrw_mod_LDFLAGS): Likewise.
39767 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39769 (loadbios_mod_SOURCE): New macro.
39770 (loadbios_mod_CFLAGS): Likewise.
39771 (loadbios_mod_LDFLAGS): Likewise.
39772 (fixvideo_mod_SOURCE): Likewise.
39773 (fixvideo_mod_CFLAGS): Likewise.
39774 (fixvideo_mod_LDFLAGS): Likewise.
39776 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39778 (loadbios_mod_SOURCE): New macro.
39779 (loadbios_mod_CFLAGS): Likewise.
39780 (loadbios_mod_LDFLAGS): Likewise.
39781 (fixvideo_mod_SOURCE): Likewise.
39782 (fixvideo_mod_CFLAGS): Likewise.
39783 (fixvideo_mod_LDFLAGS): Likewise.
39785 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39787 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39789 2009-04-07 David S. Miller <davem@davemloft.net>
39791 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39792 support for R_SPARC_OLO10 relocations. Fix compile warning for
39793 R_SPARC_WDISP30 case.
39794 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39796 2009-04-06 Pavel Roskin <proski@gnu.org>
39798 * include/grub/misc.h (ARRAY_SIZE): New macro.
39799 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39801 * loader/i386/linux.c (allocate_pages): Use free_pages().
39802 (grub_linux_unload): Don't use free_pages().
39803 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39804 wrong index. Treat all other modes as text modes.
39805 (grub_cmd_linux): Initialize vid_mode unconditionally to
39806 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39808 * commands/help.c (print_command_help): Use cmd->prio, not
39809 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39811 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39815 * parttool/pcpart.c: new file
39816 * commands/parttool.c: likewise
39817 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39818 (parttool_mod_SOURCES): new variable
39819 (parttool_mod_CFLAGS): likewise
39820 (parttool_mod_LDFLAGS): likewise
39821 (pcpart_mod_SOURCES): likewise
39822 (pcpart_mod_CFLAGS): likewise
39823 (pcpart_mod_LDFLAGS): likewise
39824 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39825 and parttool/pcpart.c
39826 * conf/i386-efi.rmk: likewise
39827 * conf/i386-ieee1275.rmk: likewise
39828 * conf/i386-pc.rmk: likewise
39829 * conf/powerpc-ieee1275.rmk: likewise
39830 * conf/sparc64-ieee1275.rmk: likewise
39831 * conf/x86_64-ieee1275.rmk: likewise
39833 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39835 Support for mtime and further expandability of dir command
39837 * include/grub/lib/datetime.h: moved to ...
39838 * include/grub/datetime.h: ... moved here and added
39839 declaration of grub_unixtime2datetime. All users updated
39840 * include/grub/fs.h: new syntax for dir and mtime functions in
39842 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39843 and GRUB_FSHELP_FLAGS_MASK
39844 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39845 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39846 (grub_ext2_mtime): new function
39847 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39848 (grub_hfsplus_mtime): new function
39849 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39850 (GRUB_UFS_ATTR_FILE): likewise
39851 (GRUB_UFS_ATTR_LNK): likewise
39852 (struct grub_ufs_sblock): new fields mtime
39853 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39855 (grub_ufs_dir): mtime support
39856 (grub_ufs_mtime): new function
39857 * fs/affs.c (grub_affs_dir): use new dir syntax
39858 * fs/afs.c (grub_afs_dir): likewise
39859 * fs/cpio.c (grub_cpio_dir): likewise
39860 * fs/fat.c (grub_fat_find_dir): likewise
39861 * fs/hfs.c (grub_hfs_dir): likewise
39862 * fs/iso9660.c (grub_iso9660_dir): likewise
39863 * fs/jfs.c (grub_jfs_dir): likewise
39864 * fs/minix.c (grub_minix_dir): likewise
39865 * fs/ntfs.c (grub_ntfs_dir): likewise
39866 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39867 * fs/sfs.c (grub_sfs_dir): likewise
39868 * fs/xfs.c (grub_xfs_dir): likewise
39869 * util/hostfs.c (grub_hostfs_dir): likewise
39870 * lib/datetime.c: moved to ...
39871 * normal/datetime.c: ... moved here
39872 (grub_unixtime2datetime): new function
39873 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39874 * normal/completion.c (iterate_dir): use new dir syntax
39875 * normal/misc.c (grub_normal_print_device_info): tell the
39876 last modification time of a volume
39877 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39878 * conf/common.rmk: added lib/datetime.c to ls.mod
39879 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39880 (normal_mod_SOURCES): likewise
39881 (datetime_mod_SOURCES): Removed lib/datetime.c
39882 * conf/i386-efi.rmk: likewise
39883 * conf/i386-ieee1275.rmk: likewise
39884 * conf/i386-pc.rmk: likewise
39885 * conf/powerpc-ieee1275.rmk: likewise
39886 * conf/sparc64-ieee1275.rmk: likewise
39887 * conf/x86_64-efi.rmk: likewise
39889 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39891 Trim trailing spaces in FAT label and support mtools-like labels
39893 * fs/fat.c (grub_fat_iterate_dir): New function based
39894 on grub_fat_find_dir
39895 (grub_fat_find_dir): use grub_fat_iterate_dir
39896 (grub_fat_label): likewise
39898 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39900 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39902 remove extraneous kernel_elf_HEADERS
39904 2009-04-04 Bean <bean123ch@gnail.com>
39906 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39908 * util/misc.c: Likewise.
39910 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39912 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39913 instead of grub_printf.
39915 2009-04-03 Robert Millan <rmh@aybabtu.com>
39917 * loader/i386/linux.c (grub_linux_setup_video): Fill
39918 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39919 values from `mode info' structure instead of hardcoded
39922 2009-04-01 Pavel Roskin <proski@gnu.org>
39924 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39926 * genmk.rb: Likewise.
39927 * configure.ac: Likewise.
39929 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39931 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39932 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39934 2009-04-01 David S. Miller <davem@davemloft.net>
39936 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39937 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39938 (grub_setjmp): Mark with 'returns_twice' attribute.
39939 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39940 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39941 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39943 2009-04-01 Robert Millan <rmh@aybabtu.com>
39945 Reapply fix from 2008-07-28 which was accidentally reverted; also
39946 perform the same fix to a similar check in same function.
39948 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39949 with the same number are found, just use issue a warning with
39950 grub_dprintf(), as this error has been reported to be non-fatal.
39952 2009-03-31 Pavel Roskin <proski@gnu.org>
39954 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39955 for cross-compilation.
39957 2009-03-30 Robert Millan <rmh@aybabtu.com>
39959 Fix i386-ieee1275 build.
39961 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39962 Remove declaration.
39964 2009-03-30 Pavel Roskin <proski@gnu.org>
39966 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39967 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39968 zero-terminated, rely only on the strlen value. Fix comparison
39969 of strings differing in length.
39971 2009-03-30 Robert Millan <rmh@aybabtu.com>
39973 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39974 checking for abi version. Improve error messages on BIOS to notify
39975 user about `linux16' command.
39977 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39981 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39982 in case of collision
39983 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39985 2009-03-29 Robert Millan <rmh@aybabtu.com>
39987 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39988 set `vid_mode' accordingly.
39989 (grub_linux_boot): Process `vid_mode' and set video mode.
39991 2009-03-29 Robert Millan <rmh@aybabtu.com>
39993 * util/grub.d/10_linux.in (linux_entry): New function.
39994 Factorize generation of Linux boot entries.
39996 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39998 Make the format of Environment Block plain text. The boot loader
39999 part is not tested well yet.
40001 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40003 (envblk): Likewise.
40004 (usage): Remove "info" and "clear". Add "unset". Update the
40005 description of "set", as this does not delete variables any
40007 (create_envblk_file): Complete rewrite.
40008 (open_envblk_file): Likewise.
40009 (cmd_info): Removed.
40010 (cmd_list): Likewise.
40011 (cmd_set): Likewise.
40012 (cmd_clear): Likewise.
40013 (list_variables): New function.
40014 (write_envblk): Likewise.
40015 (set_variables): Likewise.
40016 (unset_variables): Likewise.
40017 (main): Complete rewrite.
40019 * commands/loadenv.c (buffer): Removed.
40020 (envblk): Likewise.
40021 (open_envblk_file): New function.
40022 (read_envblk_file): Complete rewrite.
40023 (grub_cmd_load_env): Likewise.
40024 (grub_cmd_list_env): Likewise.
40025 (struct blocklist): New struct.
40026 (free_blocklists): New function.
40027 (check_blocklists): Likewise.
40028 (write_blocklists): Likewise.
40029 (grub_cmd_save_env): Complete rewrite.
40031 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40032 a plain text signature.
40033 (GRUB_ENVBLK_MAXLEN): Removed.
40034 (struct grub_envblk): Complete rewrite.
40035 (grub_envblk_find): Removed.
40036 (grub_envblk_insert): Likewise.
40037 (grub_envblk_open): New prototype.
40038 (grub_envblk_set): Likewise.
40039 (grub_envblk_delete): Put const to VALUE.
40040 (grub_envblk_iterate): Put const to NAME and VALUE.
40041 (grub_envblk_close): New prototype.
40042 (grub_envblk_buffer): New inline function.
40043 (grub_envblk_size): Likewise.
40045 * lib/envblk.c: Include grub/mm.h.
40046 (grub_env_find): Removed.
40047 (grub_envblk_open): New function.
40048 (grub_envblk_close): Likewise.
40049 (escaped_value_len): Likewise.
40050 (find_next_line): Likewise.
40051 (grub_envblk_insert): Removed.
40052 (grub_envblk_set): New function.
40053 (grub_envblk_delete): Complete rewrite.
40054 (grub_envblk_iterate): Likewise.
40056 2009-03-28 Robert Millan <rmh@aybabtu.com>
40058 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40059 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40060 variables. Use 16-bit loader.
40061 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40063 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40064 (grub_linux16_boot): ... this. Update all users.
40065 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40066 (grub_linux_boot): ... this. Update all users.
40068 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40069 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40070 commands to `linux16' and `initrd16'.
40071 (GRUB_MOD_FINI(linux)): Rename to ...
40072 (GRUB_MOD_FINI(linux16)): ... this.
40074 2009-03-24 Pavel Roskin <proski@gnu.org>
40076 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40077 not just for compilation.
40079 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40081 Move multiboot helper out of kernel
40083 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40084 `loader/i386/multiboot_helper.S'.
40085 * conf/i386-coreboot.rmk: Likewise
40086 * conf/i386-ieee1275.rmk: Likewise
40088 * kern/i386/loader.S: Move multiboot helpers from here...
40089 * loader/i386/multiboot_helper.S: ...moved here
40090 * include/grub/i386/loader.h: Move declarations of multiboot
40091 helpers from here...
40092 * include/grub/i386/multiboot.h: ...moved here
40093 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40095 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40097 * kern/env.c (grub_env_context_open): Added an argument to specify
40098 whether a new context inherits exported variables from current
40099 one. This is useful when making a sandbox to interpret a config
40101 All callers updated.
40103 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40105 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40107 * kern/env.c (grub_env_context_close): Fix memory leaks.
40109 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40111 * normal/main.c (grub_normal_execute): Added an argument
40112 BATCH to specify if an interactive interface should be provided
40113 after reading a config file.
40114 All callers updated.
40115 (read_command_list): Prevent being executed twice.
40116 (read_fs_list): Likewise.
40118 * include/grub/normal.h (grub_normal_execute): Updated the
40121 2009-03-22 Pavel Roskin <proski@gno.org>
40123 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40125 * kern/i386/pc/startup.S: Likewise.
40126 * kern/i386/efi/startup.S: Likewise.
40127 * kern/i386/ieee1275/startup.S: Likewise.
40128 * kern/i386/coreboot/startup.S: Likewise.
40129 * kern/x86_64/efi/startup.S: Likewise.
40131 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40132 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40133 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40135 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40137 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40139 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40141 Use vaddr of correct segment for entry_point.
40143 2009-03-21 Bean <bean123ch@gmail.com>
40145 * commands/blocklist.c: Add include file <grub/command.h>, remove
40146 <grub/normal.h> and <grub/arg.h>.
40147 (grub_cmd_blocklist): Use the new command interface.
40148 (GRUB_MOD_INIT): Likewise.
40149 (GRUB_MOD_FINI): Likewise.
40150 * commands/boot.c: Likewise.
40151 * commands/cat.c: Likewise.
40152 * commands/cmp.c: Likewise.
40153 * commands/configfile.c: Likewise.
40154 * commands/crc.c: Likewise.
40155 * commands/echo.c: Likewise.
40156 * commands/halt.c: Likewise.
40157 * commands/handler.c: Likewise.
40158 * commands/hdparm.c: Likewise.
40159 * commands/help.c: Likewise.
40160 * commands/hexdump.c: Likewise.
40161 * commands/loadenv.c: Likewise.
40162 * commands/ls.c: Likewise.
40163 * commands/lsmmap.c: Likewise.
40164 * commands/lspci.c: Likewise.
40165 * commands/loadenv.c: Likewise.
40166 * commands/read.c: Likewise.
40167 * commands/reboot.c: Likewise.
40168 * commands/search.c: Likewise.
40169 * commands/sleep.c: Likewise.
40170 * commands/test.c: Likewise.
40171 * commands/usbtest.c: Likewise.
40172 * commands/videotest.c: Likewise.
40173 * commands/i386/cpuid.c: Likewise.
40174 * commands/i386/pc/halt.c: Likewise.
40175 * commands/i386/pc/play.c: Likewise.
40176 * commands/i386/pc/pxecmd.c: Likewise.
40177 * commands/i386/pc/vbeinfo.c: Likewise.
40178 * commands/i386/pc/vbetest.c: Likewise.
40179 * commands/ieee1275/suspend.c: Likewise.
40180 * disk/loopback.c: Likewise.
40181 * font/font_cmd.c: Likewise.
40182 * hello/hello.c: Likewise.
40183 * loader/efi/appleloader.c: Likewise.
40184 * loader/efi/chainloader.c: Likewise.
40185 * loader/i386/bsd.c: Likewise.
40186 * loader/i386/efi/linux.c: Likewise.
40187 * loader/i386/ieee1275/linux.c: Likewise.
40188 * loader/i386/linux.c: Likewise.
40189 * loader/i386/pc/chainloader.c: Likewise.
40190 * loader/i386/pc/linux.c: Likewise.
40191 * loader/powerpc/ieee1275/linux.c: Likewise.
40192 * loader/multiboot_loader.c: Likewise.
40193 * term/gfxterm.c: Likewise.
40194 * term/i386/pc/serial.c: Likewise.
40195 * term/terminfo.c: Likewise.
40197 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40198 * term/i386/pc/vga.c: Likewise.
40199 * video/readers/jpeg.c: Likewise.
40200 * video/readers/png.c: Likewise.
40201 * video/readers/tga.c: Likewise.
40203 * util/grub-fstest (cmd_loopback): Removed.
40204 (cmd_blocklist): Likewise.
40205 (cmd_ls): Likewise.
40206 (grub_register_command): Likewise.
40207 (grub_unregister_command): Likewise.
40208 (execute_command): Use grub_command_find to locate command and execute
40211 * include/grub/efi/chainloader.h: Removed.
40212 * loader/efi/chainloader_normal.c: Likewise.
40213 * loader/i386/bsd_normal.c: Likewise.
40214 * loader/i386/pc/chainloader_normal.c: Likewise.
40215 * loader/i386/pc/multiboot_normal.c: Likewise.
40216 * loader/linux_normal.c: Likewise.
40217 * loader/multiboot_loader_normal.c: Likewise.
40218 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40220 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40221 and grub_register_command_p1.
40223 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40224 kern/command.c, lib/arg.c and commands/extcmd.c.
40225 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40226 (minicmd_mod_SOURCES): New variable.
40227 (minicmd_mod_CFLAGS): Likewise.
40228 (minicmd_mod_LDFLAGS): Likewise.
40229 (extcmd_mod_SOURCES): Likewise.
40230 (extcmd_mod_CFLAGS): Likewise.
40231 (extcmd_mod_LDFLAGS): Likewise.
40232 (boot_mod_SOURCES): Removed.
40233 (boot_mod_CFLAGS): Likewise.
40234 (boot_mod_LDFLAGS): Likewise.
40236 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40238 (kernel_img_HEADERS): Add command.h.
40239 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40240 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40242 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40243 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40244 remove the corresponding normal mode command.
40245 (normal_mod_SOURCES): Remove normal/arg.c.
40246 * conf/i386-coreboot.rmk: Likewise.
40247 * conf/i386-efi.rmk: Likewise.
40248 * conf/i386-ieee1275.rmk: Likewise.
40249 * conf/powerpc-ieee1275.rmk: Likewise.
40250 * conf/x86_64-efi.rmk: Likewise.
40252 * include/grub/arg.h: Move from here ...
40253 * include/grub/lib/arg.h: ... to here.
40255 * normal/arg.c: Move from here ...
40256 * lib/arg.c: ... to here.
40258 * commands/extcmd.c: New file.
40259 * commands/minicmd.c: Likewise.
40260 * include/grub/command.h: Likewise.
40261 * include/grub/extcmd.h: Likewise.
40262 * kern/command.c: Likewise.
40263 * kern/corecmd.c: Likewise.
40265 * kern/list.c (grub_list_iterate): Return int instead of void.
40266 (grub_list_insert): New function.
40267 (grub_prio_list_insert): Likewise.
40269 * kern/rescue.c (grub_rescue_command): Removed.
40270 (grub_rescue_command_list): Likewise.
40271 (grub_rescue_register_command): Likewise.
40272 (grub_rescue_unregister_command): Likewise.
40273 (grub_rescue_cmd_boot): Move to minicmd.c
40274 (grub_rescue_cmd_help): Likewise.
40275 (grub_rescue_cmd_info): Likewise.
40276 (grub_rescue_cmd_boot): Likewise.
40277 (grub_rescue_cmd_testload): Likewise.
40278 (grub_rescue_cmd_dump): Likewise.
40279 (grub_rescue_cmd_rmmod): Likewise.
40280 (grub_rescue_cmd_lsmod): Likewise.
40281 (grub_rescue_cmd_exit): Likewise.
40282 (grub_rescue_print_devices): Moved to corecmd.c.
40283 (grub_rescue_print_files): Likewise.
40284 (grub_rescue_cmd_ls): Likewise.
40285 (grub_rescue_cmd_insmod): Likewise.
40286 (grub_rescue_cmd_set): Likewise.
40287 (grub_rescue_cmd_unset): Likewise.
40288 (attempt_normal_mode): Use grub_command_find to get normal module.
40289 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40290 commands, remove grub_rescue_register_command calls.
40292 * normal/command.c (grub_register_command): Removed.
40293 (grub_unregister_command): Likewise.
40294 (grub_command_find): Likewise.
40295 (grub_iterate_commands): Likewise.
40296 (rescue_command): Likewise.
40297 (export_command): Moved to corecmd.c.
40298 (set_command): Removed.
40299 (unset_command): Likewise.
40300 (insmod_command): Likewise.
40301 (rmmod_command): Likewise.
40302 (lsmod_command): Likewise.
40303 (grub_command_init): Likewise.
40305 * normal/completion.c (iterate_command): Use cmd->prio to check for
40307 (complete_arguments): Use grub_extcmd_t structure to find options.
40308 (grub_normal_do_completion): Change function grub_iterate_commands to
40309 grub_command_iterate.
40311 * normal/execute.c (grub_script_execute_cmd): No need to parse
40314 * normal/main.c (grub_dyncmd_dispatcher): New function.
40315 (read_command_list): Register unload commands as dyncmd.
40316 (grub_cmd_normal): Use new command interface, register rescue,
40317 unregister normal at entry, register normal, unregister rescue at exit.
40319 * include/grub/list.h (grub_list_test_t): New type.
40320 (grub_list_iterate): Return int instead of void.
40321 (grub_list_insert): New function.
40322 (GRUB_AS_NAMED_LIST_P): New macro.
40323 (GRUB_AS_PRIO_LIST): Likewise.
40324 (GRUB_AS_PRIO_LIST_P): Likewise.
40325 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40326 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40327 (grub_prio_list): New structure.
40328 (grub_prio_list_insert): New function.
40329 (grub_prio_list_remove): New inline function.
40331 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40332 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40333 (GRUB_COMMAND_FLAG_MENU): Likewise.
40334 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40335 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40336 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40337 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40338 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40339 (grub_command): Likewise.
40340 (grub_register_command): Likewise.
40341 (grub_command_find): Likewise.
40342 (grub_iterate_commands): Likewise.
40343 (grub_command_init): Likewise.
40344 (grub_arg_parse): Likewise.
40345 (grub_arg_show_help): Likewise.
40347 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40348 (grub_rescue_unregister_command): Likewise.
40350 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40351 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40352 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40354 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40355 grub_rescue_cmd_initrd.
40356 * include/grub/i386/loader.h: Likewise.
40357 * include/grub/x86_64/loader.h: Likewise.
40359 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40361 2009-03-21 Bean <bean123ch@gmail.com>
40363 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40364 instead of stat in mingw environment.
40366 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40368 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40370 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40373 2009-03-21 Bean <bean123ch@gmail.com>
40375 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40376 out of range error.
40378 2009-03-18 Michel Dänzer <michel@daenzer.net>
40380 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40381 checking inode flags for EXT4_EXTENTS_FLAG.
40383 2009-03-18 Robert Millan <rmh@aybabtu.com>
40385 * loader/i386/linux.c: Include `<grub/video.h>' and
40386 `<grub/i386/pc/vbe.h>'..
40387 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40388 (grub_linux32_boot): Attempt to configure video settings with
40389 grub_linux_setup_video().
40390 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40391 to avoid grub_console_fini() which would step out of graphical mode
40394 2009-03-14 Robert Millan <rmh@aybabtu.com>
40396 Fix build on powerpc.
40397 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40399 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40401 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40402 background image command.
40404 2009-03-12 Colin D Bennett <colin@gibibit.com>
40406 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40407 (grub_gfxterm_putchar): Extract pairs of identical calls to
40408 draw_cursor out of conditional blocks.
40410 2009-03-11 Pavel Roskin <proski@gnu.org>
40412 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40413 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40415 2009-03-11 Robert Millan <rmh@aybabtu.com>
40417 * loader/i386/multiboot_elfxx.c
40418 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40420 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40422 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40425 2009-03-11 Robert Millan <rmh@aybabtu.com>
40427 * loader/i386/multiboot.c (code_size): New variable.
40428 (grub_multiboot): Define offsets by adding to `code_size' rather
40429 than subtracting from `grub_multiboot_payload_size'. Provide
40430 4-byte alignment to MBI and others by increasing
40431 `boot_loader_name_length' appropriately.
40433 * loader/i386/multiboot_elfxx.c
40434 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40436 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40441 2009-03-08 Robert Millan <rmh@aybabtu.com>
40443 Make loader/i386/linux.c usable on i386-pc again.
40445 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40447 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40450 2009-03-07 Bean <bean123ch@gmail.com>
40452 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40455 2009-03-06 Robert Millan <rmh@aybabtu.com>
40457 Fix display issue on terminals with screen size other than 80x25
40458 (e.g. gfxterm with resolution higher than 640x480).
40460 * normal/main.c (grub_normal_init_page): Display title text in a
40461 position relative to the center of the terminal instead of relying
40462 on a hardcoded offset.
40464 2009-03-04 Robert Millan <rmh@aybabtu.com>
40466 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40469 * Makefile.in (host_kernel): New variable.
40470 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40471 scripts instead of just the windows one.
40472 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40474 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40476 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40478 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40479 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40480 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40482 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40483 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40485 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40487 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40488 or if there's no space for the disk label and print the partition number on a
40491 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40493 * util/misc.c: Include <time.h>.
40494 (grub_millisleep): New function.
40496 2009-03-04 Bean <bean123ch@gmail.com>
40498 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40499 another option -mno-red-zone.
40501 * commands/handler.c: Change module description.
40503 * kern/handler.c: Add missing space at the end of description line.
40505 * kern/list.c: Likewise.
40507 2009-03-03 Robert Millan <rmh@aybabtu.com>
40509 Move more components to the relocation area, and fix mbi pointer
40510 handling to use the destination rather than the origin (thanks to
40511 Vladimir Serbinenko for spotting).
40513 * loader/i386/multiboot.c (mbi_dest): New variable.
40514 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40515 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40518 2009-03-01 Bean <bean123ch@gmail.com>
40520 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40521 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40522 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40523 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40525 * loader/i386/efi/linux.c (acpi_guid): New variable.
40526 (acpi_guid): Likewise.
40527 (EBDA_SEG_ADDR): New constant.
40528 (LOW_MEM_ADDR): Likewise.
40529 (FAKE_EBDA_SEG): Likewise.
40530 (fake_bios_data): New function.
40531 (grub_linux_boot): Call fake_bios_data.
40533 2009-03-01 Bean <bean123ch@gmail.com>
40535 * commands/terminal.c: Removed.
40537 * commands/handler.c: New file.
40539 * include/grub/list.h: Likewise.
40541 * include/grub/handler.h: Likewise.
40543 * kern/list.c: Likewise.
40545 * kern/handler.c: Likewise.
40547 * kern/term.h: Include header file <grub/handler.h>.
40548 (grub_term_input): Move next field to the beginning.
40549 (grub_term_output): Likewise.
40550 (grub_term_input_class): New variable.
40551 (grub_term_output_class): Likewise.
40552 (grub_term_register_input): Changed to inline function.
40553 (grub_term_register_output): Likewise.
40554 (grub_term_unregister_input): Likewise.
40555 (grub_term_unregister_output): Likewise.
40556 (grub_term_set_current_input): Likewise.
40557 (grub_term_set_current_output): Likewise.
40558 (grub_term_get_current_input): Likewise.
40559 (grub_term_get_current_output): Likewise.
40560 (grub_term_iterate_input): Removed.
40561 (grub_term_iterate_output): Likewise.
40563 * kern/term.c (grub_term_list_input): Removed.
40564 (grub_term_list_output): Likewise.
40565 (grub_term_input_class): New variable.
40566 (grub_term_output_class): Likewise.
40567 (grub_cur_term_input): Change variable as macro.
40568 (grub_cur_term_output): Likewise.
40569 (grub_term_register_input): Removed.
40570 (grub_term_register_output): Likewise.
40571 (grub_term_unregister_input): Likewise.
40572 (grub_term_unregister_output): Likewise.
40573 (grub_term_set_current_input): Likewise.
40574 (grub_term_set_current_output): Likewise.
40575 (grub_term_iterate_input): Likewise.
40576 (grub_term_iterate_output): Likewise.
40577 (grub_term_get_current_input): Likewise.
40578 (grub_term_get_current_output): Likewise.
40580 * util/grub-editenv.c: Include header file <grub/handler.h>.
40581 (grub_term_get_current_input): Removed.
40582 (grub_term_get_current_output): Likewise.
40583 (grub_term_input_class): New variable.
40584 (grub_term_output_class): Likewise.
40586 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40587 (grub_term_get_current_output): Likewise.
40588 (grub_term_input_class): New variable.
40589 (grub_term_output_class): Likewise.
40591 * util/grub-probe.c (grub_term_get_current_input): Removed.
40592 (grub_term_get_current_output): Likewise.
40593 (grub_term_input_class): New variable.
40594 (grub_term_output_class): Likewise.
40596 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40597 (grub_term_get_current_output): Likewise.
40598 (grub_term_input_class): New variable.
40599 (grub_term_output_class): Likewise.
40601 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40602 (terminal_mod_SOURCES): Likewise.
40603 (terminal_mod_CFLAGS): Likewise.
40604 (terminal_mod_LDFLAGS): Likewise.
40606 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40608 (kernel_img_SOURCES): Add list.c and handler.c.
40609 (kernel_img_HEADERS): Add list.h and handler.h.
40611 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40613 (kernel_mod_SOURCES): Add list.c and handler.c.
40614 (kernel_mod_HEADERS): Add list.h and handler.h.
40616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40618 (kernel_elf_SOURCES): Add list.c and handler.c.
40619 (kernel_elf_HEADERS): Add list.h and handler.h.
40621 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40623 (kernel_elf_SOURCES): Add list.c and handler.c.
40624 (kernel_elf_HEADERS): Add list.h and handler.h.
40626 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40628 (kernel_mod_SOURCES): Add list.c and handler.c.
40629 (kernel_mod_HEADERS): Add list.h and handler.h.
40631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40633 (kernel_elf_SOURCES): Add list.c and handler.c.
40634 (kernel_elf_HEADERS): Add list.h and handler.h.
40636 2009-02-27 Robert Millan <rmh@aybabtu.com>
40638 Factorize elf32 / elf64 code in Multiboot loader. This will
40639 prevent it from getting out of sync again.
40641 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40642 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40643 grub_multiboot_load_elf64): Move from here ...
40644 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40645 grub_multiboot_load_elf): ... to here (new file).
40647 2009-02-27 Robert Millan <rmh@aybabtu.com>
40649 * util/grub.d/10_linux.in: Rename "single-user mode" to
40652 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40654 Don't leak in SCSI code.
40655 * disk/scsi.c (grub_scsi_close): free `scsi'.
40657 2009-02-27 Robert Millan <rmh@aybabtu.com>
40659 * loader/i386/pc/multiboot.c: Move from here ...
40660 * loader/i386/multiboot.c: ... to here. Update all users.
40662 2009-02-27 Robert Millan <rmh@aybabtu.com>
40664 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40665 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40667 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40669 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40672 2009-02-27 Robert Millan <rmh@aybabtu.com>
40674 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40675 `0x' qualifier as 0 when base is specified as parameter).
40677 2009-02-24 Bean <bean123ch@gmail.com>
40679 * configure.ac: Check for -mcmodel=large in x86_64 target.
40681 * include/grub/efi/api.h (efi_call_10): New macro.
40682 (efi_wrap_10): New function.
40684 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40685 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40686 (GRUB_PE32_REL_BASED_LOW): Likewise.
40687 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40688 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40689 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40690 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40691 (GRUB_PE32_REL_BASED_REL): Likewise.
40692 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40693 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40694 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40696 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40699 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40700 (efi_wrap_10): New function.
40702 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40704 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40705 MB/MBP model (NV chipset).
40706 (devdata_devs): Add devpath_5 to the list.
40708 * load/i386/efi/linux.c (video_base): Remove variable.
40709 (RGB_MASK): New macro.
40710 (RGB_MAGIC): Likewise.
40711 (LINE_MIN): Likewise.
40712 (LINE_MAX): Likewise.
40713 (FBTEST_STEP): Likewise.
40714 (FBTEST_COUNT): Likewise.
40715 (fb_list): New variable.
40716 (grub_find_video_card): Remove function.
40717 (find_framebuf): New function.
40718 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40721 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40722 problem for x86_64.
40724 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40726 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40728 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40731 2009-02-22 Robert Millan <rmh@aybabtu.com>
40733 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40734 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40735 in our relocation, instead of using it directly from heap. Also
40736 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40738 2009-02-21 Robert Millan <rmh@aybabtu.com>
40740 Implement USB keyboard support (based on patch by Marco Gerards)
40742 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40743 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40744 (usb_keyboard_mod_LDFLAGS): New variables.
40746 * term/usb_keyboard.c: New file.
40748 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40750 Corrected wrong declaration
40752 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40754 2009-02-14 Christian Franke <franke@computer.org>
40756 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40757 (grub_lspci_iter): Print class code and programming interface byte.
40759 2009-02-14 Christian Franke <franke@computer.org>
40761 * gendistlist.sh: Ignore `.svn' directories.
40763 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40765 * fs/fat.c: Add 2009 to Copyright line.
40767 2009-02-14 Christian Franke <franke@computer.org>
40769 * commands/hdparm.c: New file. Provides `hdparm' command
40770 which sends ATA commands via grub_disk_ata_pass_through ().
40772 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40774 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40775 and <grub/cpu/io.h> to include/grub/ata.h.
40776 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40777 (GRUB_CDROM_SECTOR_SIZE): Remove.
40778 (GRUB_ATA_*): Move to include/grub/ata.h.
40779 (GRUB_ATAPI_*): Likewise.
40780 (enum grub_ata_commands): Likewise.
40781 (enum grub_ata_timeout_milliseconds): Likewise.
40782 (struct grub_ata_device): Likewise.
40783 (grub_ata_regset): Likewise.
40784 (grub_ata_regget): Likewise.
40785 (grub_ata_regset2): Likewise.
40786 (grub_ata_regget2): Likewise.
40787 (grub_ata_check_ready): Likewise.
40788 (grub_ata_wait_not_busy): Remove static, exported in
40789 include/grub/ata.h.
40790 (grub_ata_wait_drq): Likewise.
40791 (grub_ata_pio_read): Likewise.
40793 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40794 function for hdparm.mod.
40796 * include/grub/ata.h: New file, contains declarations from
40798 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40800 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40801 (grub_disk_ata_pass_through): New exported variable.
40803 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40805 2009-02-13 Colin D Bennett <colin@gibibit.com>
40807 Support multiple fallback entries, and provide an API to support
40808 executing default+fallback menu entries. Renamed the `terminal' menu
40811 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40812 variable declaration.
40813 (grub_menu_execute_callback): New structure declaration.
40814 (grub_menu_execute_callback_t): New typedef.
40815 (grub_menu_execute_with_fallback): New function declaration.
40816 (grub_menu_get_entry): Likewise.
40817 (grub_menu_get_timeout): Likewise.
40818 (grub_menu_set_timeout): Likewise.
40820 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40822 * normal/menu.c (grub_wait_after_message): Moved to
40823 `normal/menu_text.c'.
40824 (draw_border): Likewise.
40825 (print_message): Likewise.
40826 (print_entry): Likewise.
40827 (print_entries): Likewise.
40828 (grub_menu_init_page): Likewise.
40829 (get_entry_number): Likewise.
40830 (print_timeout): Likewise.
40831 (run_menu): Likewise.
40832 (grub_menu_execute_entry): Likewise.
40833 (show_text_menu): Likewise.
40834 (get_and_remove_first_entry_number): New function.
40835 (grub_menu_execute_with_fallback): Likewise.
40836 (get_entry): Renamed to ...
40837 (grub_menu_get_entry): .. this and made it global.
40838 (get_timeout): Renamed to ...
40839 (grub_menu_get_timeout): ... this and made it global.
40840 (set_timeout): Renamed to ...
40841 (grub_menu_set_timeout): ... this and made it global.
40842 (grub_normal_terminal_menu_viewer): Renamed to ...
40843 (grub_normal_text_menu_viewer): ... this.
40845 * normal/menu_text.c: New file. Extracted text-menu-specific code
40846 from normal/menu.c.
40848 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40849 (normal_mod_SOURCES): Likewise.
40851 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40852 (normal_mod_SOURCES): Likewise.
40854 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40855 (normal_mod_SOURCES): Likewise.
40857 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40858 (normal_mod_SOURCES): Likewise.
40860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40861 (normal_mod_SOURCES): Likewise.
40863 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40864 (normal_mod_SOURCES): Likewise.
40866 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40867 (normal_mod_SOURCES): Likewise.
40869 2009-02-11 Robert Millan <rmh@aybabtu.com>
40871 * util/grub.d/00_header.in: Update old reference to `font' command.
40873 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40875 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40877 Based on patch from Javier Martín.
40879 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40881 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40882 to avoid false positives with FAT.
40883 (grub_fstest_SOURCES): Likewise.
40884 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40885 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40887 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40888 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40889 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40891 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40893 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40894 bpb.version_specific.fat12_or_fat16.fstype and
40895 bpb.version_specific.fat32.fstype.
40897 2009-02-08 Robert Millan <rmh@aybabtu.com>
40899 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40901 2009-02-08 Robert Millan <rmh@aybabtu.com>
40903 * Makefile.in (host_os, host_cpu): New variables.
40904 (target_os): Remove. Update all users.
40906 2009-02-08 Marco Gerards <marco@gnu.org>
40908 * Makefile.in (enable_grub_emu_usb): New variable.
40909 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40910 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40911 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40912 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40913 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40914 `usbtest.mod' and `usbms.mod'.
40915 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40916 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40917 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40918 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40919 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40922 * disk/usbms.c: New file.
40924 * include/grub/usb.h: Likewise.
40926 * include/grub/usbtrans.h: Likewise.
40928 * include/grub/usbdesc.h: Likewise.
40930 * bus/usb/usbtrans.c: Likewise.
40932 * bus/usb/ohci.c: Likewise.
40934 * bus/usb/uhci.c: Likewise.
40936 * bus/usb/usbhub.c: Likewise.
40938 * bus/usb/usb.c: Likewise.
40940 * commands/usbtest.c: Likewise.
40942 * util/usb.c: Likewise.
40944 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40946 * configure.ac: Test for libusb presence.
40948 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40950 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40952 * kern/mm.c: Add more comments.
40954 2009-02-08 Robert Millan <rmh@aybabtu.com>
40956 Patch from Javier Martín.
40957 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40958 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40960 2009-02-08 Robert Millan <rmh@aybabtu.com>
40962 * fs/cpio.c: Split tar functionality to ...
40963 * fs/tar.c: ... here (new file). Update all users.
40965 2009-02-07 Robert Millan <rmh@aybabtu.com>
40967 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40968 backward-incompatible features.
40970 Based on patch from Javier Martín, with some adjustments.
40972 2009-02-07 Michael Scherer <misc@mandriva.org>
40974 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40976 2009-02-07 Robert Millan <rmh@aybabtu.com>
40978 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40979 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40980 after the RAID stuff.
40982 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40984 Fixes problem when running vbetest command as reported by
40985 Vladimir Serbinenko <phcoder@gmail.com>.
40987 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40989 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40991 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40992 /dev/md/NpN style mdraid devices.
40994 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40996 * util/unifont2pff.rb: Remove.
40998 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41000 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41003 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41005 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41006 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41007 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41008 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41010 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41011 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41013 2009-02-02 Christian Franke <franke@computer.org>
41015 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41017 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41019 * INSTALL: Note that we now require at least autoconf 2.59 and
41020 that LZO is optional.
41022 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41024 Base on patch on bug #24154 created by Tomas Tintera
41025 <trosos@seznam.cz>.
41027 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41029 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41031 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41032 <bero@arklinux.org>.
41034 * normal/parser.y (script_init): Add missing semicolon.
41036 2009-01-31 Colin D Bennett <colin@gibibit.com>
41038 * normal/main.c: Add include to grub/menu_viewer.h.
41039 (free_menu_entry_classes): Added.
41040 (grub_normal_menu_addentry): Added class property handling.
41041 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41042 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41044 * normal/menu_viewer.c: New file.
41046 * normal/menu.c (run_menu_entry): Renamed to ...
41047 (grub_menu_execute_entry): ... this and made it as global.
41048 (grub_menu_run): Renamed to ...
41049 (show_text_menu): ... this and made it local.
41050 (show_text_menu): Adapt to new function names.
41051 (grub_normal_terminal_menu_viewer): New global variable.
41053 * include/grub/menu.h: New file.
41055 * include/grub/menu_viewer.h: New file.
41057 * include/grub/normal.h: Added include to grub/menu.h.
41058 (grub_menu_entry): Moved to include/grub/menu.h.
41059 (grub_menu_entry_t): Likewise.
41060 (grub_menu): Likewise.
41061 (grub_menu_t): Likewise.
41062 (grub_normal_terminal_menu_viewer): Added.
41063 (grub_menu_execute_entry): Likewise.
41064 (grub_menu_run): Removed.
41066 * DISTLIST: Added include/grub/menu.h.
41067 Added include/grub/menu_viewer.h.
41068 Added normal/menu_viewer.c.
41070 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41072 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41073 arglist for menutitle arguments.
41075 * normal/main.c (grub_normal_menu_addentry): Likewise.
41077 * normal/parser.y (menuentry): Likewise.
41079 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41081 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41082 (grub_script_create_cmdmenu): Likewise.
41084 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41086 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41089 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41091 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41093 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41095 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41097 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41099 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41101 2009-01-30 Christian Franke <franke@computer.org>
41103 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41104 in option help text.
41106 2009-01-27 Pavel Roskin <proski@gnu.org>
41108 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41110 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41112 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41114 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41116 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41117 unregister function.
41119 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41121 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41123 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41125 * util/grub-mkfont.c (usage): Fix typo.
41127 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41129 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41131 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41133 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41135 * kern/misc.c (grub_strcasecmp): New function.
41136 (grub_strcasecmp): Use grub_size_t instead of int for length.
41138 * include/grub/misc.h: Update function prototypes.
41140 2009-01-26 Robert Millan <rmh@aybabtu.com>
41142 * configure.ac: Fix cross-compilation check.
41144 2009-01-22 Christian Franke <franke@computer.org>
41146 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41147 (precision) digit string. Allow `.format2' without `format1' (width).
41148 Limit input chars for `%s' output to `format2' if specified. This is
41149 compatible with standard printf ().
41151 2009-01-22 Christian Franke <franke@computer.org>
41153 * disk/ata.c (grub_ata_wait_status): Replace by ...
41154 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41155 other status bits may be invalid while BSY is asserted.
41156 (grub_ata_check_ready): New function.
41157 (grub_ata_cmd): Removed.
41158 (grub_ata_wait_drq): New function.
41159 (grub_ata_strncpy): Remove inline.
41160 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41161 and error check now done by grub_ata_wait_drq ().
41162 (grub_ata_pio_write): Likewise.
41163 (grub_atapi_identify): Set DEV before check for !BSY. Use
41164 grub_ata_wait_drq () to wait for data.
41165 (grub_ata_device_initialize): Add status register check to
41166 detect missing SATA slave devices. Add debug messages.
41167 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41168 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41169 transfer loop by grub_ata_pio_write ().
41170 (grub_ata_identify): Set DEV before check for !BSY. Use
41171 grub_ata_wait_drq () to wait for data.
41172 (grub_ata_setaddress): Set DEV before check for !BSY.
41173 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41174 read/write in one loop. Fix invalid command on write. Fix incomplete
41175 command on (size % batch) == 0. Add missing error check after write of
41176 last block. Add debug messages.
41177 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41179 2009-01-19 Christian Franke <franke@computer.org>
41181 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41182 (GRUB_ATAPI_IREASON_*): Likewise.
41183 (grub_ata_pio_write): Fix timeout error return.
41184 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41185 (grub_atapi_wait_drq): New function.
41186 (grub_atapi_packet): New parameter `size'.
41187 Use grub_atapi_wait_drq () and direct write instead of
41188 grub_ata_pio_write ().
41189 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41190 reads the number of bytes requested by the device for each DRQ
41192 (grub_atapi_write): Remove old implementation, return not
41193 implemented instead.
41195 2009-01-19 Christian Franke <franke@computer.org>
41197 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41198 of 512 to calculate data size.
41199 (grub_scsi_read12): Likewise.
41200 (grub_scsi_write10): Likewise.
41201 (grub_scsi_write12): Likewise.
41202 (grub_scsi_read): Adjust size according to blocksize.
41203 Add checks for invalid blocksize and unaligned transfer.
41205 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41207 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41209 * term/gfxterm.c (write_char): Fix background rendering for wide
41212 2009-01-19 Robert Millan <rmh@aybabtu.com>
41214 * config.guess: Update to latest version from config git.
41215 * config.sub: Likewise.
41217 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41219 * Makefile.in: Change font compilation to use new grub-mkfont instead
41222 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41223 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41224 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41225 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41226 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41227 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41228 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41229 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41230 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41232 2009-01-16 Christian Franke <franke@computer.org>
41234 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41235 (enum grub_ata_timeout_milliseconds): New enum.
41236 (grub_ata_wait_status): Add parameter milliseconds.
41237 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41238 recovery from timed-out commands.
41239 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41240 return grub_errno instead of REG_ERROR.
41241 (grub_ata_pio_write): Add parameter milliseconds.
41242 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41243 Pass milliseconds to grub_ata_wait_status () and
41244 grub_ata_pio_read ().
41245 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41246 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41247 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41248 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41249 It is not suitable for device detection, because DEV bit is ignored,
41250 the command may run too long, and not all devices set the signature
41252 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41253 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41254 Fix device selection, DEV bit must be set first to address the registers
41255 of the correct device.
41256 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41257 grub_ata_pio_read/write ().
41258 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41259 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41261 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41263 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41265 2009-01-13 Bean <bean123ch@gmail.com>
41267 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41269 2009-01-13 Bean <bean123ch@gmail.com>
41271 * Makefile.in: (enable_grub_mkfont): New variable.
41272 (freetype_cflags): Likewise.
41273 (freetype_libs): Likewise.
41275 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41276 (grub_mkfont_SOURCES): New variable.
41277 (grub_mkfont_CFLAGS): Likewise.
41278 (grub_mkfont_LDFLAGS): Likewise.
41280 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41281 library if `--enable-grub-mkfont' is requested.
41282 (enable_grub_mkfont): New variable.
41283 (freetype_cflags): Likewise.
41284 (freetype_libs): Likewise.
41286 * util/grub-mkfont.c: New file.
41288 2009-01-12 Christian Franke <franke@computer.org>
41290 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41291 mode check. Fix setting of compat_use[].
41293 2009-01-10 Robert Millan <rmh@aybabtu.com>
41295 Update a few copyright years which we forgot to do in 2008 (only for
41296 files whose changes made in 2008 were copyright-significant)
41298 * Makefile.in: Add 2008 to Copyright line.
41299 * disk/ieee1275/ofdisk.c: Likewise.
41300 * disk/efi/efidisk.c: Likewise.
41301 * kern/dl.c: Likewise.
41302 * kern/sparc64/ieee1275/init.c: Likewise.
41303 * kern/mm.c: Likewise.
41304 * kern/efi/mm.c: Likewise.
41305 * boot/i386/pc/boot.S: Likewise.
41306 * genfslist.sh: Likewise.
41307 * fs/iso9660.c: Likewise.
41308 * fs/hfs.c: Likewise.
41309 * fs/jfs.c: Likewise.
41310 * fs/minix.c: Likewise.
41311 * fs/ufs.c: Likewise.
41312 * gensymlist.sh.in: Likewise.
41313 * genkernsyms.sh.in: Likewise.
41314 * include/grub/misc.h: Likewise.
41315 * include/grub/types.h: Likewise.
41316 * include/grub/symbol.h: Likewise.
41317 * include/grub/elf.h: Likewise.
41318 * include/grub/kernel.h: Likewise.
41319 * include/grub/disk.h: Likewise.
41320 * include/grub/dl.h: Likewise.
41321 * include/grub/i386/linux.h: Likewise.
41322 * include/grub/i386/pc/biosdisk.h: Likewise.
41323 * include/grub/efi/api.h: Likewise.
41324 * include/grub/efi/pe32.h: Likewise.
41325 * include/grub/util/misc.h: Likewise.
41326 * normal/execute.c: Likewise.
41327 * normal/arg.c: Likewise.
41328 * normal/completion.c: Likewise.
41329 * normal/lexer.c: Likewise.
41330 * normal/parser.y: Likewise.
41331 * normal/misc.c: Likewise.
41332 * commands/i386/pc/vbeinfo.c: Likewise.
41333 * commands/hexdump.c: Likewise.
41334 * commands/terminal.c: Likewise.
41335 * commands/ls.c: Likewise.
41336 * commands/help.c: Likewise.
41337 * partmap/pc.c: Likewise.
41338 * loader/efi/chainloader.c: Likewise.
41339 * loader/multiboot_loader.c: Likewise.
41340 * loader/i386/pc/multiboot2.c: Likewise.
41341 * term/efi/console.c: Likewise.
41342 * term/i386/pc/serial.c: Likewise.
41343 * util/lvm.c: Likewise.
41344 * util/console.c: Likewise.
41345 * util/i386/efi/grub-mkimage.c: Likewise.
41346 * util/raid.c: Likewise.
41348 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41350 * commands/videotest.c: Removed include to grub/machine/memory.h.
41352 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41353 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41354 (video_mod_SOURCES): Removed.
41355 (video_mod_CFLAGS): Likewise.
41356 (video_mod_LDFLAGS): Likewise.
41357 (gfxterm_mod_SOURCES): Likewise.
41358 (gfxterm_mod_CFLAGS): Likewise.
41359 (gfxterm_mod_LDFLAGS): Likewise.
41360 (videotest_mod_SOURCES): Likewise.
41361 (videotest_mod_CFLAGS): Likewise.
41362 (videotest_mod_LDFLAGS): Likewise.
41363 (bitmap_mod_SOURCES): Likewise.
41364 (bitmap_mod_CFLAGS): Likewise.
41365 (bitmap_mod_LDFLAGS): Likewise.
41366 (tga_mod_SOURCES): Likewise.
41367 (tga_mod_CFLAGS): Likewise.
41368 (tga_mod_LDFLAGS): Likewise.
41369 (jpeg_mod_SOURCES): Likewise.
41370 (jpeg_mod_CFLAGS): Likewise.
41371 (jpeg_mod_LDFLAGS): Likewise.
41372 (png_mod_SOURCES): Likewise.
41373 (png_mod_CFLAGS): Likewise.
41374 (png_mod_LDFLAGS): Likewise.
41376 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41377 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41378 (video_mod_SOURCES): Added.
41379 (video_mod_CFLAGS): Likewise.
41380 (video_mod_LDFLAGS): Likewise.
41381 (videotest_mod_SOURCES): Likewise.
41382 (videotest_mod_CFLAGS): Likewise.
41383 (videotest_mod_LDFLAGS): Likewise.
41384 (bitmap_mod_SOURCES): Likewise.
41385 (bitmap_mod_CFLAGS): Likewise.
41386 (bitmap_mod_LDFLAGS): Likewise.
41387 (tga_mod_SOURCES): Likewise.
41388 (tga_mod_CFLAGS): Likewise.
41389 (tga_mod_LDFLAGS): Likewise.
41390 (jpeg_mod_SOURCES): Likewise.
41391 (jpeg_mod_CFLAGS): Likewise.
41392 (jpeg_mod_LDFLAGS): Likewise.
41393 (png_mod_SOURCES): Likewise.
41394 (png_mod_CFLAGS): Likewise.
41395 (png_mod_LDFLAGS): Likewise.
41396 (gfxterm_mod_SOURCES): Likewise.
41397 (gfxterm_mod_CFLAGS): Likewise.
41398 (gfxterm_mod_LDFLAGS): Likewise.
41400 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41401 grub/machine/console.h.
41403 2009-01-04 Jerone Young <jerone@gmail.com>
41405 Make on screen instructions clearer
41407 Based on patch created by Jidanni <jidanni@jidanni.org>
41409 * normal/menu.c: print clearer instructions on the screen
41411 2009-01-02 Colin D Bennett <colin@gibibit.com>
41415 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41416 build system and fixed gfxterm.c to work with different sized fonts.
41418 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41420 * configure: Re-generated.
41422 * DISTLIST: Removed font/manager.c.
41424 Added font/font_cmd.c.
41426 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41429 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41431 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41433 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41435 * normal/menu.c: Likewise.
41437 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41438 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41440 * include/grub/font.h: Replaced with new file.
41442 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41443 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41444 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41445 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41446 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41447 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41448 fg_red, fg_green, fg_blue, fg_alpha.
41449 (grub_video_adapter): Removed blit_glyph.
41450 (grub_video_blit_glyph): Removed.
41452 * font/manager.c: Removed file.
41454 * font/font.c: New file.
41456 * font/font_cmd.c: Likewise.
41458 * video/video.c (grub_video_blit_glyph): Removed.
41460 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41461 (grub_video_vbe_map_rgba): Likewise.
41462 (grub_video_vbe_unmap_color_int): Likewise.
41463 (grub_video_vbe_blit_glyph): Removed.
41464 (grub_video_vbe_adapter): Removed blit_glyph.
41466 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41467 (get_pixel): Likewise.
41468 (set_pixel): Likewise.
41470 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41472 * term/gfxterm.c: Adapted to new font engine.
41474 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41476 * term/i386/pc/vga.c: Likewise.
41478 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41480 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41482 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41484 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41486 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41488 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41490 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41492 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41494 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41496 * util/grub.d/00_header.in: Changed to use new loadfont command.
41498 * util/grub-mkconfig_lib.in: Changed font extension.
41500 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41502 * util/getroot.c (grub_util_get_grub_dev): Add support for
41503 /dev/md/dNNpNN style partitionable mdraid devices.
41505 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41507 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41508 at a time limit of the PXE TFTP API correctly.
41509 (grub_pxefs_close): Likewise.
41511 2008-11-29 Robert Millan <rmh@aybabtu.com>
41513 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41514 grub_ata_device_initialize() calls.
41516 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41518 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41520 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41522 2008-11-28 Robert Millan <rmh@aybabtu.com>
41524 Fix build on powerpc-ieee1275. Based on patch created by
41525 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41526 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41527 `kern/ieee1275/mmap.c'.
41528 * include/grub/powerpc/ieee1275/memory.h: New file.
41530 Provide grub-install on coreboot.
41531 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41532 (grub_install_SOURCES): New variable.
41533 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41534 usable on coreboot.
41536 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41538 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41539 to `grub_term_input_t'.
41540 (grub_term_get_current_output): Change return type to
41541 `grub_term_output_t'.
41543 2008-11-22 Robert Millan <rmh@aybabtu.com>
41545 Fix breakage on coreboot due to declaration mismatch.
41546 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41547 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41548 grub_vga_text_cls().
41550 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41551 comments. Avoid copying one more byte than necessary (just in case).
41553 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41554 to 0x200000 (avoids trouble with some OFW implementations, and matches
41555 with the one in Yaboot).
41556 Reported by Manoel Abranches
41558 2008-11-20 Robert Millan <rmh@aybabtu.com>
41560 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41561 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41563 * util/grub-mkconfig_lib.in (grub_warn): New function.
41564 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41565 warnings, to obtain consistent formatting.
41566 * util/grub.d/00_header.in: Likewise.
41567 * util/update-grub_lib.in: Likewise.
41569 * loader/i386/linux.c (allocate_pages): Fix a warning.
41570 Move comment text to `#error' stanza.
41572 Harmonize ieee1275's grub_available_iterate() with the generic
41573 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41574 build problem on i386-ieee1275):
41575 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41576 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41577 parameter `type'. Update all users of this function.
41578 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41579 `kern/ieee1275/mmap.c'.
41580 * kern/ieee1275/init.c
41581 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41583 (grub_machine_mmap_iterate): ... this.
41584 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41585 return type to `grub_err_t'. Update all implementations of this
41586 function prototype.
41587 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41590 Add `lsmmap' command (lists firmware-provided memory map):
41591 * commands/lsmmap.c: New file.
41592 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41593 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41595 * conf/powerpc-ieee1275.rmk: Likewise.
41596 * conf/i386-coreboot.rmk: Likewise.
41597 * conf/i386-ieee1275.rmk: Likewise.
41599 2008-11-19 Robert Millan <rmh@aybabtu.com>
41601 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41602 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41603 constraints to initrd allocation (based on code from
41604 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41605 for Linux to find it.
41607 2008-11-14 Robert Millan <rmh@aybabtu.com>
41609 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41610 order to cope with duplicate slashes.
41612 2008-11-14 Robert Millan <rmh@aybabtu.com>
41614 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41615 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41616 don't want to mess with lower memory, because it is used in the Linux
41619 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41620 an appropriate place in lower memory, between 0x10000 and 0x90000,
41621 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41622 is in our heap (probably as a result of it being corrupted during
41623 decompression). Add #error instance with comment to explain why this
41624 loader isn't currently usable on PC/BIOS.
41626 2008-11-14 Robert Millan <rmh@aybabtu.com>
41628 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41629 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41631 2008-11-12 Robert Millan <rmh@aybabtu.com>
41633 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41635 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41636 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41638 * include/grub/i386/pc/memory.h: ... to here.
41640 2008-11-12 Robert Millan <rmh@aybabtu.com>
41642 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41645 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41646 (grub_console_cur_color, grub_console_real_putchar)
41647 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41648 (grub_console_setcolorstate, grub_console_setcolor)
41649 (grub_console_getcolor): Move from here ...
41650 * include/grub/i386/vga_common.h: ... to here (new file).
41652 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41653 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41654 `<grub/i386/io.h>'.
41655 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41656 `<grub/i386/vga_common.h>'.
41658 2008-11-12 Robert Millan <rmh@aybabtu.com>
41660 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41661 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41662 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41664 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41665 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41667 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41668 grub_console_init() with call to grub_vga_text_init().
41669 (grub_machine_fini): Replace call to
41670 grub_console_fini() with call to grub_vga_text_fini() and
41671 grub_at_keyboard_fini().
41673 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41674 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41675 (grub_console_setcolorstate, grub_console_setcolor)
41676 (grub_console_getcolor): New function prototypes.
41678 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41679 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41680 (grub_vga_text_setcursor): Static-ize.
41681 (grub_vga_text_term): New structure.
41682 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41684 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41685 (grub_console_cur_color, grub_console_standard_color)
41686 (grub_console_normal_color, grub_console_highlight_color)
41687 (map_char, grub_console_putchar, grub_console_getcharwidth)
41688 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41689 (grub_console_getcolor): Move from here ...
41690 * term/i386/vga_common.c: ... to here (same function names).
41692 2008-11-12 Robert Millan <rmh@aybabtu.com>
41694 Use newly-added Multiboot support in coreboot.
41696 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41697 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41699 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41700 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41701 (codestart): Store the MBI in `startup_multiboot_info' when we're
41702 being loaded using Multiboot.
41704 * kern/i386/coreboot/init.c (grub_machine_init): Move
41705 grub_at_keyboard_init() call to beginning of function (useful for
41706 debugging). Call grub_machine_mmap_init() before attempting to use
41707 grub_machine_mmap_iterate().
41708 (grub_lower_mem, grub_upper_mem): Move from here ...
41709 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41712 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41713 function prototype.
41715 2008-11-12 Robert Millan <rmh@aybabtu.com>
41717 Fix a regression introduced by the at_keyboard.mod split. Because
41718 some terminals are default on some platforms and non-default on
41719 others, the first terminal being registered determines which is
41720 going to be default.
41722 * kern/term.c (grub_term_register_input): If this is the first
41723 terminal being registered, set it as the current one.
41724 (grub_term_register_output): Likewise.
41726 * term/efi/console.c (grub_console_init): Do not call
41727 grub_term_set_current_output() or grub_term_set_current_input().
41728 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41729 * term/i386/pc/console.c (grub_console_init): Likewise.
41730 (grub_console_fini): Do not call grub_term_set_current_input()
41731 (but leave grub_term_set_current_output() to restore text mode).
41733 2008-11-10 Robert Millan <rmh@aybabtu.com>
41735 * util/grub.d/00_header.in: Add backward compatibility check for
41736 versions of terminal.mod that don't understand `terminal_input' or
41739 2008-11-09 Robert Millan <rmh@aybabtu.com>
41741 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41742 `terminal_input' / `terminal_output', not `terminal'.
41744 2008-11-08 Robert Millan <rmh@aybabtu.com>
41746 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41747 (DISTCLEANFILES): Add `build_env.mk'.
41749 2008-11-08 Robert Millan <rmh@aybabtu.com>
41751 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41752 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41753 members. Update all users.
41754 * util/console.c (grub_ncurses_term): Split in ...
41755 (grub_ncurses_term_input): ... this, and ...
41756 (grub_ncurses_term_output): ... this. Update all users.
41757 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41759 2008-11-08 Robert Millan <rmh@aybabtu.com>
41761 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41762 (PKGDATA): Add $(pkgdata_SRCDIR).
41763 (pkglib_BUILDDIR): New variable.
41764 (pkgdata_SRCDIR): New variable.
41765 (build_env.mk): New target.
41766 (include_DATA): New variable.
41767 (install-local): Install $(include_DATA) files in $(includedir).
41769 2008-11-07 Pavel Roskin <proski@gnu.org>
41771 * gendistlist.sh: Use C locale for sorting to ensure consistent
41772 output on all systems.
41774 * util/grub.d/00_header.in: Remove incorrect space before
41777 2008-11-07 Robert Millan <rmh@aybabtu.com>
41779 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41781 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41782 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41783 (based on find_multi_boot1_header).
41784 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41785 using find_multi_boot2_header(), and abort if neither Multiboot or
41786 Multiboot headers were found.
41788 2008-11-07 Robert Millan <rmh@aybabtu.com>
41790 Modularize at_keyboard.mod:
41792 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41793 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41794 (at_keyboard_mod_LDFLAGS): New variables.
41796 Actual terminal split:
41798 * include/grub/term.h (struct grub_term): Split in ...
41799 (struct grub_term_input): ... this, and ...
41800 (struct grub_term_output): ... this. Update all users.
41801 (grub_term_set_current): Split in ...
41802 (grub_term_set_current_input): ... this, and ...
41803 (grub_term_set_current_output): ... this.
41804 (grub_term_get_current): Split in ...
41805 (grub_term_get_current_input): ... this, and ...
41806 (grub_term_get_current_output): ... this.
41807 (grub_term_register): Split in ...
41808 (grub_term_register_input): ... this, and ...
41809 (grub_term_register_output): ... this.
41810 (grub_term_unregister): Split in ...
41811 (grub_term_unregister_input): ... this, and ...
41812 (grub_term_unregister_output): ... this.
41813 (grub_term_iterate): Split in ...
41814 (grub_term_iterate_input): ... this, and ...
41815 (grub_term_iterate_output): ... this.
41817 * kern/term.c (grub_term_list): Split in ...
41818 (grub_term_list_input): ... this, and ...
41819 (grub_term_list_output): ... this. Update all users.
41820 (grub_cur_term): Split in ...
41821 (grub_cur_term_input): ... this, and ...
41822 (grub_cur_term_output): ... this. Update all users.
41823 (grub_term_set_current): Split in ...
41824 (grub_term_set_current_input): ... this, and ...
41825 (grub_term_set_current_output): ... this.
41826 (grub_term_get_current): Split in ...
41827 (grub_term_get_current_input): ... this, and ...
41828 (grub_term_get_current_output): ... this.
41829 (grub_term_register): Split in ...
41830 (grub_term_register_input): ... this, and ...
41831 (grub_term_register_output): ... this.
41832 (grub_term_unregister): Split in ...
41833 (grub_term_unregister_input): ... this, and ...
41834 (grub_term_unregister_output): ... this.
41835 (grub_term_iterate): Split in ...
41836 (grub_term_iterate_input): ... this, and ...
41837 (grub_term_iterate_output): ... this.
41839 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41840 a check for input and one for output (and only attempt to get keys
41841 from user when input works).
41843 * util/grub-probe.c (grub_term_get_current): Split in ...
41844 (grub_term_get_current_input): ... this, and ...
41845 (grub_term_get_current_output): ... this.
41846 * util/grub-fstest.c: Likewise.
41847 * util/i386/pc/grub-setup.c: Likewise.
41848 * util/grub-editenv.c: Likewise.
41850 Portability adjustments:
41852 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41853 `term/i386/pc/at_keyboard.c'.
41854 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41855 grub_keyboard_controller_init() (now handled by terminal .init).
41856 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41857 grub_at_keyboard_init().
41858 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41859 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41860 at_keyboard.mod via input terminal interface).
41861 * include/grub/i386/coreboot/console.h: Convert into a stub for
41862 `<grub/i386/pc/console.h>'.
41864 Migrate full terminals to new API:
41866 * term/efi/console.c (grub_console_term): Split into ...
41867 (grub_console_term_input): ... this, and ...
41868 (grub_console_term_output): ... this. Update all users.
41869 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41870 (grub_ofconsole_init): Split into ...
41871 (grub_ofconsole_init_input): ... this, and ...
41872 (grub_ofconsole_init_output): ... this.
41873 (grub_ofconsole_term): Split into ...
41874 (grub_ofconsole_term_input): ... this, and ...
41875 (grub_ofconsole_term_output): ... this. Update all users.
41876 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41877 (grub_serial_term_input): ... this, and ...
41878 (grub_serial_term_output): ... this. Update all users.
41879 * term/i386/pc/console.c (grub_console_term): Split into ...
41880 (grub_console_term_input): ... this, and ...
41881 (grub_console_term_output): ... this. Update all users.
41882 (grub_console_term_input): Only enable it on PC/BIOS platform.
41883 (grub_console_init): Remove grub_keyboard_controller_init() call.
41885 Migrate input terminals to new API:
41887 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41888 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41889 i386-specific anyway).
41890 (grub_console_checkkey): Rename to ...
41891 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41893 (grub_keyboard_controller_orig): New variable.
41894 (grub_console_getkey): Rename to ...
41895 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41897 (grub_keyboard_controller_init): Static-ize. Save original
41898 controller value so that it can be restored ...
41899 (grub_keyboard_controller_fini): ... here (new function).
41900 (grub_at_keyboard_term): New structure.
41901 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41904 Migrate output terminals to new API:
41906 * term/i386/pc/vga.c (grub_vga_term): Change type to
41907 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41908 members. Update all users.
41909 * term/gfxterm.c (grub_video_term): Change type to
41910 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41911 members. Update all users.
41912 * include/grub/i386/pc/console.h (grub_console_checkkey)
41913 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41916 Migrate `terminal' command and userland tools to new API:
41918 * commands/terminal.c (grub_cmd_terminal): Split into ...
41919 (grub_cmd_terminal_input): ... this, and ...
41920 (grub_cmd_terminal_output): ... this.
41921 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41922 `terminal_input' and `terminal_output'.
41923 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41924 `terminal_input' / `terminal_output' API.
41925 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41926 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41927 provided ${GRUB_TERMINAL}, convert it).
41929 2008-11-04 Robert Millan <rmh@aybabtu.com>
41931 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41933 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41935 2008-11-03 Bean <bean123ch@gmail.com>
41937 * kern/elf.c (grub_elf32_load): Revert to previous code.
41938 (grub_elf64_load): Likewise.
41940 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41942 2008-11-01 Robert Millan <rmh@aybabtu.com>
41944 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41945 (TARGET_CPPFLAGS): Likewise.
41946 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41948 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41950 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41952 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41954 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41955 addition of objects until the code is not going to be able to fail.
41957 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41959 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41960 (add a missing NULL check, and correct them by moving the pointer
41961 operations after the actual check).
41963 2008-10-29 Robert Millan <rmh@aybabtu.com>
41965 * util/i386/pc/grub-install.in: Handle empty string as output from
41966 make_system_path_relative_to_its_root().
41968 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41970 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41971 circular metadata worst case scenario. If the metadata is circular
41972 then copy the wrap in place.
41973 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41974 project lib/format_text/layout.h
41975 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41977 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41979 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41981 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41983 * util/update-grub_lib.in: Mention filename in warning message.
41985 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41987 * NEWS: Update for rename of update-grub to grub-mkconfig.
41989 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41991 * util/update-grub_lib.in: Copy to ...
41992 * util/grub-mkconfig_lib.in: ... this. Update all users.
41993 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41994 * util/update-grub.in: Rename to ...
41995 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41996 option. Add `--output' option to allow users to specify the generated
41997 configuration file. Default to stdout.
41998 (update_grub_dir): Rename to ...
41999 (grub_mkconfig_dir): ... this.
42000 (grub_cfg): Default to an empty string.
42001 * conf/common.rmk (update-grub): Rename to ...
42002 (grub-mkconfig): ... this.
42003 (update-grub_lib): Copy to ...
42004 (grub-mkconfig_lib): ... this.
42005 (update-grub_SCRIPTS): Copy to ...
42006 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42007 (update-grub_DATA): Rename to ...
42008 (grub-mkconfig_DATA): ... this.
42010 2008-09-28 Robert Millan <rmh@aybabtu.com>
42012 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42013 to `modified'. Add the real `created' field.
42014 (grub_iso9660_uuid): Use `modified' rather than `created' for
42015 constructing the UUID.
42017 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42019 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42020 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42022 2008-09-28 Bean <bean123ch@gmail.com>
42024 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42025 Thanks to Christian Franke for finding this bug.
42027 2008-09-25 Robert Millan <rmh@aybabtu.com>
42029 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42030 instances of grub_util_get_disk_name() (see previous commit).
42032 2008-09-25 Robert Millan <rmh@aybabtu.com>
42034 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42035 `util/i386/get_disk_name.c'.
42036 * conf/i386-efi.rmk: Likewise.
42037 * conf/x86_64-efi.rmk: Likewise.
42038 * conf/i386-coreboot.rmk: Likewise.
42039 * conf/i386-ieee1275.rmk: Likewise.
42040 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42041 `util/ieee1275/get_disk_name.c'.
42042 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42043 * util/ieee1275/get_disk_name.c: Remove file.
42044 * util/i386/get_disk_name.c: Remove file.
42045 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42046 "hd%d" for device.map entries, rather than using
42047 grub_util_get_disk_name().
42049 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42051 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42053 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42055 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42057 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42059 (GRUB_TERM_PPAGE): Changed to 0x4900.
42061 2008-09-24 Robert Millan <rmh@aybabtu.com>
42063 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42064 macros (they were i386-pc specific).
42065 * include/grub/sparc64/ieee1275/console.h: Likewise.
42066 * include/grub/efi/console.h: Likewise.
42068 2008-09-22 Bean <bean123ch@gmail.com>
42070 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42071 resident and in attribute list.
42073 * include/grub/ntfs.h (BMP_LEN): Removed.
42075 2008-09-22 Bean <bean123ch@gmail.com>
42077 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42078 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42080 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42081 error occurs, as grub_disk_open will call grub_disk_close, which will
42082 call p->close (scsi).
42084 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42086 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42087 (AC_PREREQ): Bumped to 2.59.
42088 (AC_TRY_COMPILE): Replace obsolete macro with ...
42089 (AC_COMPILE_IFELSE): ... this.
42090 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42091 (AC_LINK_IFELSE): ... this.
42093 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42095 * autogen.sh: Add a call to `gendistlist.sh'.
42097 2008-09-19 Christian Franke <franke@computer.org>
42099 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42100 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42101 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42102 Export __enable_execute_stack() to modules.
42103 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42106 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42108 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42111 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42113 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42114 #include <grub/util/hostdisk.h>.
42116 2008-09-08 Robert Millan <rmh@aybabtu.com>
42118 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42119 segments when their filesz is zero (grub_file_read() interprets
42120 zero-size as "read until EOF", which results in memory corruption).
42121 Use `lowest_segment' rather than 0 for calculating the current
42122 segment load address.
42124 2008-09-08 Robert Millan <rmh@aybabtu.com>
42126 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42127 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42128 clobbered useful information.
42130 2008-09-08 Robert Millan <rmh@aybabtu.com>
42132 * include/grub/util/biosdisk.h: Move to ...
42133 * include/grub/util/hostdisk.h: ... here. Update all users.
42134 * util/biosdisk.c: Move to ...
42135 * util/hostdisk.c: ... here. Update all users.
42137 2008-09-07 Robert Millan <rmh@aybabtu.com>
42139 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42141 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42142 and length can be stored directly in the `mbi->mmap_addr' and
42143 `mbi->mmap_length' struct fields.
42145 2008-09-07 Robert Millan <rmh@aybabtu.com>
42147 * conf/i386.rmk: New file. Provides declaration for building
42149 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42150 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42152 Include `conf/i386.mk'.
42153 * conf/i386-efi.rmk: Likewise.
42154 * conf/x86_64-efi.rmk: Likewise.
42155 * conf/i386-coreboot.rmk: Likewise.
42156 * conf/i386-ieee1275.rmk: Likewise.
42158 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42160 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42161 Adds optimization support for BGR based modes.
42163 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42164 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42165 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42166 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42167 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42168 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42169 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42170 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42171 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42172 (grub_video_i386_vbeblit_index_index): Likewise.
42173 (grub_video_i386_vbeblit_replace_directN): Added.
42174 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42175 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42176 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42177 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42178 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42179 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42180 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42181 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42182 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42183 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42184 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42185 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42186 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42188 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42189 (grub_video_i386_vbefill_R8G8B8): Likewise.
42190 (grub_video_i386_vbefill_index): Likewise.
42191 (grub_video_i386_vbefill_direct32): Added.
42192 (grub_video_i386_vbefill_direct24): Likewise.
42193 (grub_video_i386_vbefill_direct16): Likewise.
42194 (grub_video_i386_vbefill_direct8): Likewise.
42196 * include/grub/video.h (grub_video_blit_format): Removed
42197 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42198 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42199 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42200 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42201 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42203 * video/video.c (grub_video_get_blit_format): Updated to use new
42204 blit formats. Added handling for 16 bit color modes.
42206 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42208 (common_blitter): Updated to use new blitters.
42210 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42212 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42213 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42214 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42215 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42216 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42217 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42218 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42219 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42220 (grub_video_i386_vbeblit_index_index): Likewise.
42221 (grub_video_i386_vbeblit_replace_directN): Added.
42222 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42223 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42224 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42225 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42226 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42227 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42228 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42229 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42230 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42231 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42232 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42233 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42234 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42236 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42237 (grub_video_i386_vbefill_R8G8B8): Likewise.
42238 (grub_video_i386_vbefill_index): Likewise.
42239 (grub_video_i386_vbefill_direct32): Added.
42240 (grub_video_i386_vbefill_direct24): Likewise.
42241 (grub_video_i386_vbefill_direct16): Likewise.
42242 (grub_video_i386_vbefill_direct8): Likewise.
42244 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42247 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42250 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42253 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42256 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42258 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42261 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42263 * fs/iso9660.c (grub_iso9660_date): New structure.
42264 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42265 (grub_iso9660_uuid): New function.
42267 2008-09-05 Bean <bean123ch@gmail.com>
42269 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42271 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42272 insensitive bit for names in Win32 and Win32 & DOS namespace.
42274 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42276 * include/grub/types.h (LONG_MAX): Likewise.
42278 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42280 * util/getroot.c: Include <config.h>.
42281 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42282 add support for /dev/md/N devices and handle LVM double dash escaping.
42284 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42286 * config.guess: Update to latest version from config git.
42287 * config.sub: Likewise.
42289 2008-09-03 Robert Millan <rmh@aybabtu.com>
42291 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42292 `disk->total_sectors'.
42294 2008-09-01 Colin D Bennett <colin@gibibit.com>
42296 * include/grub/normal.h: Fixed incorrect comment for
42297 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42299 2008-09-01 Colin D Bennett <colin@gibibit.com>
42301 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42302 values with defines.
42304 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42305 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42306 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42307 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42308 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42309 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42310 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42311 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42312 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42313 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42314 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42315 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42316 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42317 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42318 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42319 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42320 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42321 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42322 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42324 2008-08-31 Robert Millan <rmh@aybabtu.com>
42326 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42328 (grub_multiboot): Fix a few warnings.
42330 2008-08-31 Robert Millan <rmh@aybabtu.com>
42332 * loader/i386/pc/multiboot.c: Update comment not to say that
42333 boot_device support is unimplemented.
42335 2008-08-31 Robert Millan <rmh@aybabtu.com>
42337 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42338 or memory map support are unimplemented.
42340 2008-08-31 Colin D Bennett <colin@gibibit.com>
42342 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42344 2008-08-31 Colin D Bennett <colin@gibibit.com>
42346 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42347 total video memory in 'vbeinfo' output; show color format details for
42350 2008-08-30 Pavel Roskin <proski@gnu.org>
42352 * util/genmoddep.c: Remove for real this time.
42353 * DISTLIST: Remove util/genmoddep.c.
42355 2008-08-30 Robert Millan <rmh@aybabtu.com>
42357 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42358 as required by Multiboot spec (it was already 4-byte aligned, but
42361 2008-08-29 Pavel Roskin <proski@gnu.org>
42363 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42364 * kern/powerpc/ieee1275/startup.S: ... this.
42365 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42366 * DISTLIST: Likewise.
42368 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42369 grub/cpu/kernel.h. Add start label for consistency with other
42370 platforms. Add grub_prefix immediately after start. Add jump
42371 to the code after grub_prefix.
42372 * include/grub/powerpc/kernel.h: Provide valid values for
42373 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42375 2008-08-29 Bean <bean123ch@gmail.com>
42377 * configure.ac: Change host_os to cygwin for mingw.
42378 (asprintf): New check for function.
42380 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42381 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42383 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42384 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42385 sync, sleep and grub_util_get_disk_size for mingw.
42387 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42388 to get size in mingw.
42389 (open_device): Use flag O_BINARY if it's defined.
42390 (find_root_device): Add dummy code for mingw.
42392 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42393 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42394 (get_scsi_disk_name): Return 0 for mingw.
42396 * util/hostfs.c: #include <grub/util/misc.h>.
42397 (grub_hostfs_open): Use "rb" flag to open file, use
42398 grub_util_get_disk_size to get disk size for mingw.
42400 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42401 (asprintf): New function if HAVE_ASPRINTF is not set.
42402 (sync): New function for mingw.
42404 (grub_util_get_disk_size): Likewise.
42406 2008-08-28 Pavel Roskin <proski@gnu.org>
42408 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42411 2008-08-28 Robert Millan <rmh@aybabtu.com>
42413 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42415 2008-08-28 Robert Millan <rmh@aybabtu.com>
42417 Change find_grub_drive() syntax so it doesn't prevent it from
42418 detecting NULL names as errors.
42420 * util/biosdisk.c (find_grub_drive): Move free slot search code
42422 (find_free_slot): ... to here.
42423 (read_device_map): Use find_free_slot() to search for free slots.
42425 2008-08-27 Marco Gerards <marco@gnu.org>
42427 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42428 (scsi_mod_SOURCES): New variable.
42429 (scsi_mod_CFLAGS): Likewise
42430 (scsi_mod_LDFLAGS): Likewise.
42432 * disk/scsi.c: New file.
42434 * include/grub/scsi.h: Likewise.
42436 * include/grub/scsicmd.h: Likewise.
42438 * disk/ata.c: Include <grub/scsi.h>.
42439 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42441 (grub_ata_iterate): Skip ATAPI devices.
42442 (grub_ata_open): Only handle ATAPI devices.
42443 (struct grub_atapi_read): Removed.
42444 (grub_atapi_readsector): Likewise.
42445 (grub_ata_read): No longer handle ATAPI devices.
42446 (grub_ata_write): Likewise.
42447 (grub_atapi_iterate): New function.
42448 (grub_atapi_read): Likewise.
42449 (grub_atapi_write): Likewise.
42450 (grub_atapi_open): Likewise.
42451 (grub_atapi_close): Likewise.
42452 (grub_atapi_dev): New variable.
42453 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42454 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42456 * include/grub/disk.h (enum grub_disk_dev_id): Add
42457 `GRUB_DISK_DEVICE_SCSI_ID'.
42459 2008-08-26 Robert Millan <rmh@aybabtu.com>
42461 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42462 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42465 2008-08-23 Bean <bean123ch@gmail.com>
42467 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42468 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42469 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42470 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42472 (raid5rec_mod_SOURCES): New macro.
42473 (raid5rec_mod_CFLAGS): Likewise.
42474 (raid5rec_mod_LDFLAGS): Likewise.
42475 (raid6rec_mod_SOURCES): Likewise.
42476 (raid6rec_mod_CFLAGS): Likewise.
42477 (raid6rec_mod_LDFLAGS): Likewise.
42478 (mdraid_mod_SOURCES): Likewise.
42479 (mdraid_mod_CFLAGS): Likewise.
42480 (mdraid_mod_LDFLAGS): Likewise.
42481 (dm_nv_mod_SOURCES): Likewise.
42482 (dm_nv_mod_CFLAGS): Likewise.
42483 (dm_nv_mod_LDFLAGS): Likewise.
42485 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42486 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42487 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42489 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42490 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42492 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42494 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42496 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42500 * disk/raid5_recover.c: New file.
42502 * disk/raid6_recover.c: Likewise.
42504 * disk/mdraid_linux.c: Likewise.
42506 * disk/dmraid_nvidia.c: Likewise.
42508 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42511 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42512 calculate the size of raid device.
42513 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42514 different layout of raid5.
42515 (grub_raid_scan_device): Remove code specific to mdraid.
42516 (grub_raid_list): New variable.
42517 (free_array): New function.
42518 (grub_raid_register): Likewise.
42519 (grub_raid_unregister): Likewise.
42520 (grub_raid_rescan): Likewise.
42521 (GRUB_MOD_INIT): Don't iterate device here.
42522 (GRUB_MOD_FINI): Use free_array to release resource.
42524 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42525 (grub_raid5_recover_func_t): New function variable type.
42526 (grub_raid6_recover_func_t): Likewise.
42527 (grub_raid5_recover_func): New variable.
42528 (grub_raid6_recover_func): Likewise.
42529 (grub_raid_register): New function.
42530 (grub_raid_unregister): Likewise.
42531 (grub_raid_rescan): Likewise.
42532 (grub_raid_block_xor): Likewise.
42534 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42535 (CMD_CRC): New macro.
42537 (read_file): Handle device as well as file.
42538 (cmd_crc): New function.
42539 (fstest): Handle multiple disks.
42540 (options): Remove part, raw and long, add root and diskcount.
42541 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42542 (main): Find the first non option entry and ignore subsequent options,
42543 add handling for the new options, support multiple disks.
42545 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42547 2008-08-23 Bean <bean123ch@gmail.com>
42549 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42551 * genfslist.sh: Ignore kernel.mod.
42553 * genpartmaplist.sh: Likewise.
42555 2008-08-23 Robert Millan <rmh@aybabtu.com>
42557 * util/getroot.c (find_root_device): Skip anything that starts with
42558 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42560 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42562 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42563 * util/grub.d/00_header.in: Allow the administrator to change default
42564 gfxmode via ${GRUB_GFXMODE}.
42566 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42568 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42570 2008-08-21 Robert Millan <rmh@aybabtu.com>
42572 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42574 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42575 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42577 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42579 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42580 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42582 2008-08-19 Robert Millan <rmh@aybabtu.com>
42584 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42585 (struct grub_virtual_screen): Remove `cursor_color'.
42586 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42588 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42590 2008-08-18 Robert Millan <rmh@aybabtu.com>
42592 Unify (identical) linux_normal.c files.
42593 * loader/i386/efi/linux_normal.c: Move from here ...
42594 * loader/linux_normal.c: ... to here. Update all users.
42595 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42596 * loader/i386/ieee1275/linux_normal.c: Likewise.
42598 2008-08-18 Robert Millan <rmh@aybabtu.com>
42600 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42601 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42602 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42603 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42604 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42606 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42607 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42608 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42609 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42610 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42611 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42612 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42613 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42614 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42615 portably using grub_getxy().
42616 Replace `-EFI' with `-bzImage' in boot message.
42618 2008-08-17 Robert Millan <rmh@aybabtu.com>
42620 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42622 2008-08-17 Robert Millan <rmh@aybabtu.com>
42624 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42626 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42627 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42628 (grub_machine_mmap_iterate): New function declaration.
42629 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42631 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42634 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42635 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42636 Move e820 parsing from here ...
42637 * kern/i386/pc/mmap.c: New file.
42638 (grub_machine_mmap_iterate): ... to here.
42640 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42641 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42642 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42643 (grub_available_iterate): Redeclare to return `void', and redeclare
42644 its hook to use grub_uint64_t as addr and size parameters, and rename
42646 (grub_machine_mmap_iterate): ... this. Update all users.
42648 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42649 to make it more readable. Rename to ...
42650 (grub_machine_mmap_iterate): ... this.
42652 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42653 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42654 (grub_multiboot): Allocate an extra region after the payload, and fill
42655 it with a Multiboot memory map. Adjust a.out loader to calculate size
42656 with the extra space.
42657 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42658 with the extra space.
42660 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42662 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42664 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42666 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42667 mdate-sh to the list `find' searches for.
42668 * DISTLIST: Regenerated.
42670 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42672 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42673 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42674 genmoddep.awk, gensymlist.sh.in.
42675 (DISTDIRS): Add bus, docs, hook, lib.
42676 * DISTLIST: Regenerated.
42677 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42679 2008-08-16 Robert Millan <rmh@aybabtu.com>
42681 * disk/raid.c (grub_raid_init): Handle/report errors set by
42682 grub_device_iterate().
42683 * disk/lvm.c (grub_lvm_init): Likewise.
42685 2008-08-15 Bean <bean123ch@gmail.com>
42687 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42689 (datetime_mod_SOURCES): New macro.
42690 (datetime_mod_CFLAGS): Likewise.
42691 (datetime_mod_LDFLAGS): Likewise.
42692 (date_mod_SOURCES): Likewise.
42693 (date_mod_CFLAGS): Likewise.
42694 (date_mod_LDFLAGS): Likewise.
42695 (datehook_mod_SOURCES): Likewise.
42696 (datehook_mod_CFLAGS): Likewise.
42697 (datehook_mod_LDFLAGS): Likewise.
42699 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42701 (datetime_mod_SOURCES): New macro.
42702 (datetime_mod_CFLAGS): Likewise.
42703 (datetime_mod_LDFLAGS): Likewise.
42704 (date_mod_SOURCES): Likewise.
42705 (date_mod_CFLAGS): Likewise.
42706 (date_mod_LDFLAGS): Likewise.
42707 (datehook_mod_SOURCES): Likewise.
42708 (datehook_mod_CFLAGS): Likewise.
42709 (datehook_mod_LDFLAGS): Likewise.
42711 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42713 (datetime_mod_SOURCES): New macro.
42714 (datetime_mod_CFLAGS): Likewise.
42715 (datetime_mod_LDFLAGS): Likewise.
42716 (date_mod_SOURCES): Likewise.
42717 (date_mod_CFLAGS): Likewise.
42718 (date_mod_LDFLAGS): Likewise.
42719 (datehook_mod_SOURCES): Likewise.
42720 (datehook_mod_CFLAGS): Likewise.
42721 (datehook_mod_LDFLAGS): Likewise.
42723 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42725 (datetime_mod_SOURCES): New macro.
42726 (datetime_mod_CFLAGS): Likewise.
42727 (datetime_mod_LDFLAGS): Likewise.
42728 (date_mod_SOURCES): Likewise.
42729 (date_mod_CFLAGS): Likewise.
42730 (date_mod_LDFLAGS): Likewise.
42731 (datehook_mod_SOURCES): Likewise.
42732 (datehook_mod_CFLAGS): Likewise.
42733 (datehook_mod_LDFLAGS): Likewise.
42735 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42737 (datetime_mod_SOURCES): New macro.
42738 (datetime_mod_CFLAGS): Likewise.
42739 (datetime_mod_LDFLAGS): Likewise.
42740 (date_mod_SOURCES): Likewise.
42741 (date_mod_CFLAGS): Likewise.
42742 (date_mod_LDFLAGS): Likewise.
42743 (datehook_mod_SOURCES): Likewise.
42744 (datehook_mod_CFLAGS): Likewise.
42745 (datehook_mod_LDFLAGS): Likewise.
42747 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42749 * commands/date.c: New file.
42751 * hook/datehook.c: Likewise.
42753 * include/grub/lib/datetime.h: Likewise.
42755 * include/grub/i386/cmos.h: Likewise.
42757 * lib/datetime.c: Likewise.
42759 * lib/i386/datetime.c: Likewise.
42761 * lib/efi/datetime.c: Likewise.
42763 2008-08-14 Robert Millan <rmh@aybabtu.com>
42765 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42766 (grub_mkelfimage_SOURCES): New variable.
42767 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42769 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42770 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42771 * conf/powerpc-ieee1275.rmk: Likewise.
42772 * conf/i386-ieee1275.rmk: Likewise.
42774 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42775 * kern/i386/coreboot/init.c: Likewise.
42777 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42778 with `<grub/cpu/kernel.h>'.
42779 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42781 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42782 * kern/i386/coreboot/startup.S: Likewise.
42784 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42785 (GRUB_MOD_GAP): Remove.
42786 * include/grub/powerpc/kernel.h: New file.
42787 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42788 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42789 * include/grub/i386/kernel.h: New file.
42790 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42791 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42792 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42794 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42796 Use --directory when invoking grub_mkimage.
42798 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42799 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42800 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42801 and GRUB_KERNEL_CPU_PREFIX.
42803 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42805 * include/grub/err.h (grub_err_printf): New function prototype.
42806 * util/misc.c (grub_err_printf): New function.
42807 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42809 * kern/err.c (grub_print_error): Use grub_err_printf.
42811 2008-08-13 Robert Millan <rmh@aybabtu.com>
42813 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42815 2008-08-13 Robert Millan <rmh@aybabtu.com>
42817 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42820 2008-08-12 Robert Millan <rmh@aybabtu.com>
42822 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42823 of the relocation code from here ...
42824 (grub_multiboot): ... to here.
42825 (forward_relocator, backward_relocator): Move from here ...
42826 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42827 (grub_multiboot_backward_relocator): ... to here.
42828 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42829 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42830 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42831 (grub_multiboot_forward_relocator_end)
42832 (grub_multiboot_backward_relocator)
42833 (grub_multiboot_backward_relocator_end): New variables.
42835 2008-08-12 Bean <bean123ch@gmail.com>
42837 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42839 2008-08-11 Robert Millan <rmh@aybabtu.com>
42841 * kern/i386/linuxbios/startup.S: Move from here ...
42842 * kern/i386/coreboot/startup.S: ... to here.
42844 * kern/i386/linuxbios/init.c: Move from here ...
42845 * kern/i386/coreboot/init.c: ... to here.
42847 * kern/i386/linuxbios/table.c: Move from here ...
42848 * kern/i386/coreboot/mmap.c: ... to here.
42850 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42852 2008-08-11 Robert Millan <rmh@aybabtu.com>
42854 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42855 errors. Leave it to the upper layer to handle them.
42857 2008-08-09 Christian Franke <franke@computer.org>
42859 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42860 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42861 Install `grub.d/10_windows' only on Cygwin.
42862 * configure.ac: Add subst of `target_os'.
42863 Check `target_os' also before setting TARGET_OBJ2ELF.
42864 Add `--enable-grub-pe2elf'.
42866 2008-08-08 Robert Millan <rmh@aybabtu.com>
42868 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42869 (grub_last_time): Change type to grub_uint64_t.
42870 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42871 (grub_disk_close): Likewise.
42873 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42874 (run_menu): Migrate code from to using grub_get_time_ms().
42876 * util/misc.c (grub_get_time_ms): New function.
42878 2008-08-08 Marco Gerards <marco@gnu.org>
42880 * disk/ata.c (grub_ata_regget): Change return type to
42882 (grub_ata_regget2): Likewise.
42883 (grub_ata_wait_status): New function.
42884 (grub_ata_wait_busy): Removed function, updated all users to use
42885 `grub_ata_wait_status'.
42886 (grub_ata_wait_drq): Likewise.
42887 (grub_ata_cmd): New function.
42888 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42890 (grub_ata_pio_write): Add error handling.
42891 (grub_atapi_identify): Likewise.
42892 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42894 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42895 handling. Actually use the detected registers. Reorder the
42896 detection logic such that it is easier to read.
42897 (grub_ata_pciinit): Do not assign the same ID to each controller.
42898 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42900 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42902 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42904 2008-08-08 Marco Gerards <marco@gnu.org>
42908 2008-08-07 Bean <bean123ch@gmail.com>
42910 * include/grub/x86_64/pci.h: New file.
42912 2008-08-07 Christian Franke <franke@computer.org>
42914 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42915 (TIMER2_GATE): Likewise.
42916 (grub_pit_wait): Add enable/disable of the timer2 gate
42917 bit of port 0x61. This fixes a possible infinite loop.
42919 2008-08-07 Bean <bean123ch@gmail.com>
42921 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42922 kern/i386/tsc.c and kern/i386/pit.c.
42924 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42927 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42930 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42932 2008-08-07 Bean <bean123ch@gmail.com>
42934 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42936 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42938 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42939 multiple inclusion. Add #include <grub/types.h>.
42941 2008-08-06 Christian Franke <franke@computer.org>
42943 * conf/common.rmk: Build and install `10_windows'.
42944 * util/grub.d/10_windows.in: New script.
42946 2008-08-06 Pavel Roskin <proski@gnu.org>
42948 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42950 2008-08-06 Robert Millan <rmh@aybabtu.com>
42952 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42953 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42955 2008-08-06 Bean <bean123ch@gmail.com>
42957 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42958 (grub_pxefs_fs_int): Remove dummy definition.
42959 (grub_pxefs_open): Use data->block_size to store the current block
42961 (grub_pxefs_read): Use block size stored in data->block_size. As the
42962 value of grub_pxe_blksize can be changed after the file is opened.
42964 2008-08-06 Bean <bean123ch@gmail.com>
42966 * fs/i386/pc/pxe.c (curr_file): new variable.
42967 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42968 require the dummy internal file system anymore.
42969 (grub_pxefs_read): Removed.
42970 (grub_pxefs_close): Likewise.
42971 (grub_pxefs_fs_int): Likewise.
42972 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42973 connection when we switch file.
42974 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42976 2008-08-06 Robert Millan <rmh@aybabtu.com>
42978 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42980 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42981 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42983 * kern/i386/halt.c: New file.
42984 * kern/i386/reboot.c: Likewise.
42985 * include/grub/i386/reboot.h: Likewise.
42986 * include/grub/i386/halt.h: Likewise.
42988 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42989 Include `<grub/cpu/halt.h>'.
42990 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42991 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42993 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42994 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42995 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42996 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42997 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42998 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43000 * include/grub/i386/at_keyboard.h: ... to here.
43002 2008-08-05 Robert Millan <rmh@aybabtu.com>
43004 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43005 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43006 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43007 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43008 `kern/generic/millisleep.c'.
43010 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43011 instead of grub_get_rtc().
43012 (grub_tsc_init): Initialize `tsc_boot_time'.
43014 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43015 (grub_machine_init): Use grub_tsc_init() rather than
43016 installing an RTC-based handler via grub_install_get_time_ms().
43018 * kern/i386/pit.c: New file.
43019 * include/grub/i386/pit.h: Likewise.
43021 2008-08-05 Bean <bean123ch@gmail.com>
43023 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43025 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43026 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43027 (pxe_mod_SOURCES): New macro.
43028 (pxe_mod_CFLAGS): Likewise.
43029 (pxe_mod_LDFLAGS): Likewise.
43030 (pxecmd_mod_SOURCES): Likewise.
43031 (pxecmd_mod_CFLAGS): Likewise.
43032 (pxecmd_mod_LDFLAGS): Likewise.
43034 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43035 (grub_pxe_call): Likewise.
43037 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43039 * commands/i386/pc/pxecmd.c: New file.
43041 * fs/i386/pc/pxe.c: Likewise.
43043 * include/grub/i386/pc/pxe.h: Likewise.
43045 2008-08-05 Bean <bean123ch@gmail.com>
43047 * util/console.c (grub_console_cur_color): New variable.
43048 (grub_console_standard_color): Likewise.
43049 (grub_console_normal_color): Likewise.
43050 (grub_console_highlight_color): Likewise.
43051 (color_map): Likewise.
43052 (use_color): Likewise.
43053 (NUM_COLORS): New macro.
43054 (grub_ncurses_setcolorstate): Handle color properly.
43055 (grub_ncurses_setcolor): Don't change color here, just remember the
43056 settings, color will be set in grub_ncurses_setcolorstate.
43057 (grub_ncurses_getcolor): New function.
43058 (grub_ncurses_init): Initialize color pairs.
43059 (grub_ncurses_term): New member grub_ncurses_getcolor.
43061 2008-08-05 Colin D Bennett <colin@gibibit.com>
43063 High resolution timer support. Implemented for x86 CPUs using TSC.
43064 Extracted generic grub_millisleep() so it's linked in only as needed.
43065 This requires a Pentium compatible CPU; if the RDTSC instruction is
43066 not supported, then it falls back on the generic grub_get_time_ms()
43067 implementation that uses the machine's RTC.
43069 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43070 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43071 `kern/generic/millisleep.c'.
43073 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43074 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43076 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43077 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43079 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43081 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43082 `kern/generic/millisleep.c'.
43084 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43086 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43088 * kern/generic/rtc_get_time_ms.c: New file.
43090 * kern/generic/millisleep.c: New file.
43092 * kern/misc.c: Don't include
43093 <kern/time.h> anymore.
43094 (grub_millisleep_generic): Removed.
43096 * commands/sleep.c (grub_interruptible_millisleep): Uses
43097 grub_get_time_ms() instead of grub_get_rtc().
43099 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43101 (grub_cpu_is_cpuid_supported): New inline function.
43102 (grub_cpu_is_tsc_supported): New inline function.
43103 (grub_tsc_init): New function prototype.
43104 (grub_tsc_get_time_ms): New function prototype.
43106 * kern/i386/tsc.c (grub_get_time_ms): New file.
43108 * include/grub/time.h: Include <grub/types.h.
43109 (grub_millisleep_generic): Removed.
43110 (grub_get_time_ms): New prototype.
43111 (grub_install_get_time_ms): New prototype.
43112 (grub_rtc_get_time_ms): New prototype.
43114 * kern/time.c (grub_get_time_ms): New function.
43115 (grub_install_get_time_ms): New function.
43117 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43118 <grub/time.h> anymore.
43119 (grub_millisleep): Removed.
43120 (grub_machine_init): Call grub_tsc_init.
43122 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43123 get_time_ms() implementation.
43125 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43126 (ieee1275_get_time_ms): New function.
43127 (grub_machine_init): Install get_time_ms() implementation.
43129 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43130 (grub_machine_init): Call grub_tsc_init().
43131 (grub_millisleep): Removed.
43133 * kern/ieee1275/init.c (grub_millisleep): Removed.
43134 (grub_machine_init): Install ieee1275_get_time_ms()
43136 (ieee1275_get_time_ms): New function.
43137 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43140 2008-08-05 Marco Gerards <marco@gnu.org>
43142 * disk/ata.c: Include <grub/pci.h>.
43143 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43144 (grub_ata_initialize): Rewritten.
43145 (grub_ata_device_initialize): New function.
43147 2008-08-04 Pavel Roskin <proski@gnu.org>
43149 * kern/main.c: Include grub/mm.h.
43151 2008-08-04 Robert Millan <rmh@aybabtu.com>
43153 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43154 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43155 corruption problem).
43157 2008-08-04 Robert Millan <rmh@aybabtu.com>
43159 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43160 warnings introduced in my last commit.
43162 2008-08-03 Robert Millan <rmh@aybabtu.com>
43164 Make PCI available on all i386 architectures.
43166 * include/grub/i386/pc/pci.h: Move from here ...
43167 * include/grub/i386/pci.h: ... to here.
43169 * include/grub/i386/pc/pci.h: Remove.
43170 * include/grub/i386/efi/pci.h: Remove.
43171 * include/grub/x86_64/efi/pci.h: Remove.
43173 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43174 `<grub/cpu/pci.h>'.
43176 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43177 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43178 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43180 * conf/i386-ieee1275.rmk: Likewise.
43182 2008-08-03 Robert Millan <rmh@aybabtu.com>
43184 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43185 (grub_console_setcursor): Make it possible to set cursor off.
43187 2008-08-03 Robert Millan <rmh@aybabtu.com>
43189 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43190 of modules instead of assuming which platform provides what.
43191 * util/update-grub.in: Likewise.
43193 2008-08-03 Robert Millan <rmh@aybabtu.com>
43195 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43196 instead of `grub_install_dos_part' to determine whether a drive needs
43197 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43198 because it can be overridden when loading GRUB via Multiboot).
43200 2008-08-02 Robert Millan <rmh@aybabtu.com>
43202 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43204 2008-08-02 Robert Millan <rmh@aybabtu.com>
43206 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43207 of informational grub_dprintf() calls.
43209 2008-08-02 Robert Millan <rmh@aybabtu.com>
43211 * disk/memdisk.c (memdisk_size): Don't initialize.
43212 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43214 * include/grub/i386/pc/kernel.h
43215 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43216 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43217 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43218 (grub_arch_memdisk_size): Remove.
43220 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43221 field (was only used to transfer a constant). Add `type' field to
43222 support multiple module types.
43223 (grub_module_iterate): New function.
43225 * kern/device.c (grub_device_open): Do not hide error messages
43226 when grub_disk_open() fails. Use grub_print_error() instead.
43228 * kern/i386/pc/init.c (grub_arch_modules_addr)
43229 (grub_arch_memdisk_size): Remove functions.
43230 (grub_arch_modules_addr): Return the module address in high memory
43231 (now that it isn't copied anymore).
43233 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43234 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43235 decompression routine (grub_total_module_size already includes that
43236 now). Don't copy modules back to low memory.
43238 * kern/main.c: Include `<grub/mm.h>'.
43239 (grub_load_modules): Split out (and use) ...
43240 (grub_module_iterate): ... this function, which iterates through
43241 module objects and runs a hook.
43242 Comment out grub_mm_init_region() call, as it would cause non-ELF
43243 modules to be overwritten.
43245 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43246 the memdisk image in its own region, make it part of the module list.
43247 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43248 (main): Parse --memdisk|-m option, and pass user-provided path as
43249 parameter to generate_image().
43250 (add_segments): Pass `memdisk_path' down to load_modules().
43251 (load_modules): Embed memdisk image in module section when requested.
43252 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43253 `header.type' instead of `header.offset'.
43255 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43256 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43257 (memdisk_mod_LDFLAGS): New variables.
43258 * conf/i386-coreboot.rmk: Likewise.
43259 * conf/i386-ieee1275.rmk: Likewise.
43261 2008-08-02 Robert Millan <rmh@aybabtu.com>
43263 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43264 (backward_relocator): New variables. Used to allocate and relocate
43265 the payload, respectively.
43266 (grub_multiboot_load_elf32): Load into heap instead of requested
43267 address, install the appropriate relocator code in each bound of
43268 the payload, and set the entry point such that
43269 grub_multiboot_real_boot() will jump to one of them.
43271 * kern/i386/loader.S (grub_multiboot_payload_size)
43272 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43273 (grub_multiboot_payload_entry_offset): New variables.
43274 (grub_multiboot_real_boot): Set cpu context to what the relocator
43275 expects, and jump to the relocator instead of the payload.
43277 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43278 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43279 (grub_multiboot_payload_entry_offset): Export.
43281 2008-08-01 Bean <bean123ch@gmail.com>
43283 * normal/menu_entry.c (editor_getline): Don't return the original
43284 string as result, as it will be released by lexer once it has done
43287 2008-08-01 Robert Millan <rmh@aybabtu.com>
43289 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43290 within menuentries, not before them.
43291 util/grub.d/10_hurd.in: Likewise.
43293 2008-08-01 Bean <bean123ch@gmail.com>
43295 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43296 (bufio_mod_SOURCES): New macro.
43297 (bufio_mod_CFLAGS): Likewise.
43298 (bufio_mod_LDFLAGS): Likewise.
43300 * include/grub/bufio.h: New file.
43302 * io/bufio.c: Likewise.
43304 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43305 (grub_video_reader_png): Use grub_buffile_open to open file.
43307 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43308 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43310 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43311 (grub_video_reader_tga): Use grub_buffile_open to open file.
43313 * font/manager.c: Include <grub/bufio.h>.
43314 (add_font): Use grub_buffile_open to open file.
43316 2008-07-31 Robert Millan <rmh@aybabtu.com>
43318 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43319 ELF segments, use a macro for arbitrarily accessing any of them instead
43320 of preparing a pointer that allows access to one at a time.
43321 (grub_multiboot_load_elf64): Likewise.
43323 2008-07-31 Bean <bean123ch@gmail.com>
43325 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43326 GRUB_KERNEL_MACHINE_DATA_END.
43328 2008-07-30 Robert Millan <rmh@aybabtu.com>
43330 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43331 Increase from 0x50 to 0x60.
43332 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43333 use UUIDs to identify the root drive for them. If that's not
43335 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43336 check, for cross-disk installs.
43338 2008-07-30 Robert Millan <rmh@aybabtu.com>
43340 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43341 is non-empty, use it to set the `prefix' environment variable instead
43342 of the usual approach.
43343 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43344 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43345 environment variable instead of dummy make_install_device().
43347 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43348 (start): Insert a data section, with `grub_prefix' variable.
43349 * kern/i386/linuxbios/startup.S: Likewise.
43351 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43352 New variable reference.
43353 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43354 New macro. Defines offset of `grub_prefix' within startup.S (relative
43356 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43357 section within startup.S (relative to `start').
43358 * include/grub/i386/coreboot/kernel.h: Likewise.
43360 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43361 Overwrite grub_prefix with its contents, at the beginning of the
43363 (main): Understand -p|--prefix.
43365 2008-07-30 Robert Millan <rmh@aybabtu.com>
43367 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43369 2008-07-30 Robert Millan <rmh@aybabtu.com>
43371 * term/i386/pc/vga_text.c (grub_console_cls): Use
43372 grub_console_gotoxy() to go back to beginning of the screen.
43373 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43375 2008-07-29 Christian Franke <franke@computer.org>
43377 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43378 Add conversion of emulated mount points on Cygwin.
43380 2008-07-29 Christian Franke <franke@computer.org>
43382 * util/update-grub.in: Add a check for admin
43384 Remove old `grub.cfg.new' before creation.
43385 Add `-f' to `mv' to handle the different filesystem
43386 semantics of Windows.
43388 2008-07-29 Bean <bean123ch@gmail.com>
43390 * normal/main.c (get_line): Fix buffer overflow bug.
43392 2008-07-28 Robert Millan <rmh@aybabtu.com>
43394 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43395 (struct grub_apple_header): New struct. Describes the layout of
43396 the partmap header.
43397 (apple_partition_map_iterate): Check the header magic as well as the
43398 partition magic (which was already being checked).
43400 2008-07-28 Pavel Roskin <proski@gnu.org>
43402 * genmk.rb: Add a warning to the beginning of the output that
43403 it's a generated file and should not be edited.
43405 2008-07-28 Robert Millan <rmh@aybabtu.com>
43407 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43408 with the same number are found, just use issue a warning with
43409 grub_dprintf(), as this error has been reported to be non-fatal.
43411 2008-07-27 Robert Millan <rmh@aybabtu.com>
43413 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43416 2008-07-27 Bean <bean123ch@gmail.com>
43418 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43419 (grub_fat_find_dir): Ignore case when comparing filename.
43421 2008-07-27 Bean <bean123ch@gmail.com>
43423 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43424 smallino, as it's more descriptive, and i8count can be confused with
43425 the other field count.
43426 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43429 2008-07-27 Bean <bean123ch@gmail.com>
43431 * commands/crc.c: New file.
43433 * lib/crc.c: Likewise.
43435 * include/grub/lib/crc.h: Likewise.
43437 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43439 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43440 (hexdump): Move this function to ...
43442 * lib/hexdump.c: ... here.
43444 * include/grub/hexdump.h: Renamed to ...
43446 * include/grub/lib/hexdump.h: ... this.
43448 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43450 * util/grub-editenv.c: Likewise.
43452 * include/envblk.h: Renamed to ...
43454 * include/lib/envblk.h: ... this.
43456 * util/envblk.c: Renamed to ...
43458 * lib/envblk.c: ... this.
43460 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43462 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43463 (pkglib_MODULES): Add crc.mod.
43464 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43465 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43466 (crc_mod_SOURCES): New macro.
43467 (crc_mod_CFLAGS): Likewise.
43468 (crc_mod_LDFLAGS): Likewise.
43470 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43472 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43474 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43478 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43480 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43482 * commands/help.c: Include <grub/term.h>.
43483 (TERM_WIDTH): Removed. Updated all users.
43485 2008-07-27 Pavel Roskin <proski@gnu.org>
43487 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43488 spurious warnings about a comment within a comment.
43490 2008-07-25 Robert Millan <rmh@aybabtu.com>
43492 * util/getroot.c (find_root_device): Skip devices that match
43493 /dev/dm-[0-9]. This lets the real device be found for any type of
43494 abstraction (LVM, EVMS, RAID..).
43495 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43496 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43497 device is found first, find_root_device() will now skip it.
43499 2008-07-24 Pavel Roskin <proski@gnu.org>
43501 * include/grub/types.h: Use __builtin_bswap32() and
43502 __builtin_bswap64() with gcc 4.3 and newer.
43504 2008-07-24 Christian Franke <franke@computer.org>
43506 * util/i386/pc/grub-install.in: If `--debug' is specified,
43507 pass `--verbose' to grub-setup.
43508 Abort script if make_system_path_relative_to_its_root() fails.
43510 2008-07-24 Bean <bean123ch@gmail.com>
43512 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43513 variable `target_platform' should be `platform'.
43515 2008-07-24 Bean <bean123ch@gmail.com>
43517 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43518 (grub_png_init_fixed_block): New function.
43519 (grub_png_decode_image_data): Handle fixed huffman code compression.
43521 2008-07-24 Bean <bean123ch@gmail.com>
43523 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43524 (grub_pe2elf_SOURCES): New macro.
43525 (CLEANFILES): Add grub-pe2elf.
43527 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43528 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43529 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43530 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43531 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43532 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43533 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43534 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43535 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43536 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43537 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43538 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43539 (GRUB_PE32_DT_FUNCTION): Likewise.
43540 (GRUB_PE32_REL_I386_DIR32): Likewise.
43541 (GRUB_PE32_REL_I386_REL32): Likewise.
43542 (grub_pe32_symbol): New structure.
43543 (grub_pe32_reloc): Likewise.
43545 * util/grub-pe2elf.c: New file.
43547 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43548 start symbol in non pc platform.
43550 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43552 The following patches are from Christian Franke.
43554 * include/grub/dl.h: Remove .previous, gas supports this only
43557 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43558 Remove .type, gas supports this only for ELF format.
43560 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43561 nullbytes in symbol table. This fixes an infinite loop if table is
43564 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43565 TARGET_IMG_LDFLAGS and EXEEXT.
43567 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43568 TARGET_IMG_LDFLAGS_AC.
43569 (grub_CHECK_STACK_ARG_PROBE): New function.
43571 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43573 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43575 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43576 to set TARGET_IMG_LD* accordingly.
43577 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43578 Add call to grub_CHECK_STACK_ARG_PROBE.
43579 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43581 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43583 * genmk.rb: Add EXEEXT to CLEANFILES.
43585 2008-07-23 Robert Millan <rmh@aybabtu.com>
43587 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43588 define the codes for arrows and lines used for the menu).
43589 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43592 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43593 fonts, because the latter are too slow.
43595 2008-07-21 Bean <bean123ch@gmail.com>
43597 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43598 a20. Run keyboard test last, as it will cause macbook to halt.
43600 2008-07-18 Pavel Roskin <proski@gnu.org>
43602 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43603 load foreign architecture modules correctly anyway. Keep
43604 support for loading host architecture modules, whether we
43605 compile them or not.
43607 2008-07-17 Pavel Roskin <proski@gnu.org>
43609 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43610 change target_cpu. The compiler default can mismatch target_cpu
43613 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43614 * kern/efi/efi.c: Likewise.
43616 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43617 target compiler is functional.
43618 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43621 * configure.ac: Default to efi platform for x86_64-apple. Allow
43622 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43623 adjustments from the rest, only do them if target is not
43624 explicitly given. Merge other adjustments with the final sanity
43625 check. Remove an extraneous check for supported CPU. Be
43626 specific which CPU and which platform is not supported.
43628 * configure.ac: Default to pc platform for x86_64.
43630 2008-07-17 Robert Millan <rmh@aybabtu.com>
43632 Partial LinuxBIOS -> Coreboot rename.
43634 * conf/i386-linuxbios.rmk: Renamed to ...
43635 * conf/i386-coreboot.rmk: ... this.
43636 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43637 * configure.ac: Accept "coreboot" as input platform (but maintain
43638 compatibility with "linuxbios").
43639 * include/grub/i386/linuxbios: Renamed to ...
43640 * include/grub/i386/coreboot: ... this.
43642 2008-07-17 Bean <bean123ch@gmail.com>
43644 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43645 (appleldr_mod_SOURCE): New variable.
43646 (appleldr_mod_CFLAGS): Likewise.
43647 (appleldr_mod_LDFLAGS): Likewise.
43648 (pci_mod_SOURCES): Likewise.
43649 (pci_mod_CFLAGS): Likewise.
43650 (pci_mod_LDFLAGS): Likewise.
43651 (lspci_mod_SOURCES): Likewise.
43652 (lspci_mod_CFLAGS): Likewise.
43653 (lspci_mod_LDFLAGS): Likewise.
43655 * conf/x86_64-efi.rmk: New file.
43657 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43659 (grub_efidisk_write): Likewise.
43661 * include/efi/api.h (efi_call_0): New macro.
43662 (efi_call_1): Likewise.
43663 (efi_call_2): Likewise.
43664 (efi_call_3): Likewise.
43665 (efi_call_4): Likewise.
43666 (efi_call_5): Likewise.
43667 (efi_call_6): Likewise.
43669 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43670 grub_rescue_cmd_chainloader.
43672 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43673 (grub_pe32_optional_header): Change some fields based on i386 or
43675 (GRUB_PE32_PE32_MAGIC): Likewise.
43677 * include/grub/efi/uga_draw.h: New file.
43679 * include/grub/elf.h (STN_ABS): New constant.
43680 (R_X86_64_NONE): Relocation constant for x86_64.
43681 (R_X86_64_64): Likewise.
43682 (R_X86_64_PC32): Likewise.
43683 (R_X86_64_GOT32): Likewise.
43684 (R_X86_64_PLT32): Likewise.
43685 (R_X86_64_COPY): Likewise.
43686 (R_X86_64_GLOB_DAT): Likewise.
43687 (R_X86_64_JUMP_SLOT): Likewise.
43688 (R_X86_64_RELATIVE): Likewise.
43689 (R_X86_64_GOTPCREL): Likewise.
43690 (R_X86_64_32): Likewise.
43691 (R_X86_64_32S): Likewise.
43692 (R_X86_64_16): Likewise.
43693 (R_X86_64_PC16): Likewise.
43694 (R_X86_64_8): Likewise.
43695 (R_X86_64_PC8): Likewise.
43697 * include/grub/i386/efi/pci.h: New file.
43699 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43700 Change it value based on platform.
43701 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43702 (GRUB_E820_RAM): Likewise.
43703 (GRUB_E820_RESERVED): Likewise.
43704 (GRUB_E820_ACPI): Likewise.
43705 (GRUB_E820_NVS): Likewise.
43706 (GRUB_E820_EXEC_CODE): Likewise.
43707 (GRUB_E820_MAX_ENTRY): Likewise.
43708 (grub_e820_mmap): New structure.
43709 (linux_kernel_header): Change the efi field according to different
43710 kernel version, also field from linux_kernel_header.
43712 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43714 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43715 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43716 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43717 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43718 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43719 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43720 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43721 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43722 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43723 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43725 * include/grub/x86_64/efi/kernel.h: New file.
43727 * include/grub/x86_64/efi/loader.h: Likewise.
43729 * include/grub/x86_64/efi/machine.h: Likewise.
43731 * include/grub/x86_64/efi/pci.h: Likewise.
43733 * include/grub/x86_64/efi/time.h: Likewise.
43735 * include/grub/x86_64/linux.h: Likewise.
43737 * include/grub/x86_64/setjmp.h: Likewise.
43739 * include/grub/x86_64/time.h: Likewise.
43741 * include/grub/x86_64/types.h: Likewise.
43743 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43744 GRUB_TARGET_SIZEOF_VOID_P.
43746 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43747 (grub_efi_locate_handle): Likewise.
43748 (grub_efi_open_protocol): Likewise.
43749 (grub_efi_set_text_mode): Likewise.
43750 (grub_efi_stall): Likewise.
43751 (grub_exit): Likewise.
43752 (grub_reboot): Likewise.
43753 (grub_halt): Likewise.
43754 (grub_efi_exit_boot_services): Likewise.
43755 (grub_get_rtc): Likewise.
43757 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43758 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43759 (grub_efi_allocate_pages): Wrap efi calls.
43760 (grub_efi_free_pages): Wrap efi calls.
43761 (grub_efi_get_memory_map): Wrap efi calls.
43763 * kern/x86_64/dl.c: New file.
43765 * kern/x86_64/efi/callwrap.S: Likewise.
43767 * kern/x86_64/efi/startup.S: Likewise.
43769 * loader/efi/appleloader.c: Likewise.
43771 * loader/efi/chainloader.c (cmdline): New variable.
43772 (grub_chainloader_unload): Wrap efi calls.
43773 (grub_chainloader_boot): Likewise.
43774 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43777 * loader/efi/chainloader_normal.c (chainloader_command):
43778 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43781 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43783 (grub_e820_add_region): New function.
43784 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43786 (grub_find_video_card): New function.
43787 (grub_linux_setup_video): New function.
43788 (grub_rescue_cmd_linux): Probe for video information.
43790 * normal/x86_64/setjmp.S: New file.
43792 * term/efi/console.c (map_char): New function.
43793 (grub_console_putchar): Map unicode char.
43794 (grub_console_checkkey): Wrap efi calls.
43795 (grub_console_getkey): Likewise.
43796 (grub_console_getwh): Likewise.
43797 (grub_console_gotoxy): Likewise.
43798 (grub_console_cls): Likewise.
43799 (grub_console_setcolorstate): Likewise.
43800 (grub_console_setcursor): Likewise.
43802 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43804 2008-07-16 Pavel Roskin <proski@gnu.org>
43806 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43809 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43810 pointer, not an integer. This fixes a warning and prevents
43811 precision loss on 64-bit systems.
43812 (relocate_addresses): Remove unneeded cast.
43814 2008-07-15 Pavel Roskin <proski@gnu.org>
43816 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43818 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43820 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43821 Fix comparison between signed and unsigned.
43823 * include/grub/i386/ieee1275/console.h: Declare
43824 grub_console_init() and grub_console_fini().
43826 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43827 It's empty and unused.
43829 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43830 beginning to avoid warnings with some compilers.
43832 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43833 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43835 2008-07-14 Pavel Roskin <proski@gnu.org>
43837 * kern/env.c (grub_register_variable_hook): Don't copy empty
43838 string, it leaks memory. Pass "" to grub_env_set(), it should
43839 handle constant strings.
43841 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43842 * commands/cmp.c (grub_cmd_cmp): Likewise.
43843 * kern/dl.c (grub_dl_flush_cache): Likewise.
43844 (grub_dl_load_core): Likewise.
43845 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43846 (grub_elf64_load_phdrs): Likewise.
43848 2008-07-13 Pavel Roskin <proski@gnu.org>
43850 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43851 between signed and unsigned.
43852 (LzmaEnc_Finish): Fix warning about an unused parameter.
43854 2008-07-13 Bean <bean123ch@gmail.com>
43856 * Makefile.in (enable_lzo): New rule.
43858 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43860 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43862 * boot/i386/pc/lnxboot.S: #include <config.h>.
43864 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43865 its value according to the compression algorithm used, lzo or lzma.
43867 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43868 compression algorithm according to configure macro.
43870 * kern/i386/pc/startup.S (codestart): Likewise.
43872 * kern/i386/pc/lzma_decode.S: New file.
43874 * include/grub/lib/LzFind.h: Likewise.
43876 * include/grub/lib/LzHash.h: Likewise.
43878 * include/grub/lib/LzmaDec.h: Likewise.
43880 * include/grub/lib/LzmaEnc.h: Likewise.
43882 * include/grub/lib/LzmaTypes.h: Likewise.
43884 * lib/LzFind.c: Likewise.
43886 * lib/LzmaDec.c: Likewise.
43888 * lib/LzmaEnc.c: Likewise.
43890 2008-07-13 Bean <bean123ch@gmail.com>
43892 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43893 (grub_ext4_extent_header): New structure.
43894 (grub_ext4_extent): Likewise.
43895 (grub_ext4_extent_idx): Likewise.
43896 (grub_ext4_find_leaf): New function.
43897 (grub_ext2_read_block): Handle extents.
43899 2008-07-12 Robert Millan <rmh@aybabtu.com>
43901 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43903 2008-07-11 Robert Millan <rmh@aybabtu.com>
43905 * util/grub.d/40_custom.in: New file. Example on how to add custom
43906 entries to /etc/grub.d.
43907 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43908 40_custom (implicitly, by merging all the grub.d rules).
43910 2008-07-11 Pavel Roskin <proski@gnu.org>
43912 * commands/read.c (grub_getline): Fix invalid memory access.
43913 Don't add newline to the variable value.
43915 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43916 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43917 (serial_hw_get_port): Check validity of the port number.
43918 (grub_cmd_serial): Check return value of serial_hw_get_port().
43920 2008-07-07 Pavel Roskin <proski@gnu.org>
43922 * boot/i386/pc/diskboot.S (notification_string): Replace
43923 "Loading kernel" with just "loading". This is shorter, less
43924 confusing and saves a few bytes for possible future changes.
43926 2008-07-05 Pavel Roskin <proski@gnu.org>
43928 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43929 size for ATAPI devices, they are undefined. Output sector
43930 number in decimal form.
43932 * disk/ata.c: Use named constants for status bits.
43934 2008-07-04 Pavel Roskin <proski@gnu.org>
43936 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43937 grub_addr_t before casting it to the void pointer to fix a
43938 warning. Non-addressable regions are discarded earlier.
43939 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43940 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43941 (check_signature): Don't shadow table_header.
43942 (grub_linuxbios_table_iterate): Cast numeric constants to
43943 grub_linuxbios_table_header_t.
43944 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43947 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43950 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43951 pointer, which can cause warnings. Support 64-bit addresses.
43953 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43954 of sizeof(long). This fixes PowerPC image generation on x86_64.
43956 2008-07-04 Robert Millan <rmh@aybabtu.com>
43958 This fixes a performance issue when pc & gpt partmap iterators
43959 didn't abort iteration even after our hook found what it was
43960 looking for (often causing expensive probes of non-existent drives).
43962 Some callers relied on previous buggy behaviour, since they would
43963 raise an error when their own hooks caused early abortion of its
43966 * kern/device.c (grub_device_open): Improve error message.
43967 * disk/lvm.c (grub_lvm_open): Likewise.
43968 * disk/raid.c (grub_raid_open): Likewise.
43970 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43971 when hook requests it, independently of grub_errno.
43972 (pc_partition_map_probe): Do not fail when find_func() caused
43973 early abortion of pc_partition_map_iterate().
43975 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43976 when hook requests it, independently of grub_errno.
43977 (gpt_partition_map_probe): Do not fail when find_func() caused
43978 early abortion of gpt_partition_map_iterate().
43980 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43981 when hook requests it, independently of grub_errno. Do not fail when
43982 part_map_iterate_hook() caused early abortion of p->iterate().
43984 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43985 when grub_partition_iterate() returned with non-zero.
43987 2008-07-03 Pavel Roskin <proski@gnu.org>
43989 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43990 like we do in grub_ata_pio_read().
43991 (grub_ata_readwrite): Always write individual sectors. Fix the
43992 sector count for the remainder.
43993 (grub_ata_write): Enable writing to ATA devices. Correctly
43994 report error for ATAPI devices.
43996 2008-07-02 Pavel Roskin <proski@gnu.org>
43998 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44001 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44002 for every read sector, we already increment it for the whole
44003 batch. This fixes reading more than 256 sectors at once.
44005 * util/grub-editenv.c (cmd_info): Cast argument to long
44006 explicitly. ptrdiff_t reduces to int on i386.
44008 * util/grub-editenv.c (main): Be specific which parameter is
44011 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44012 (memdisk): Make memdisk_orig_addr a pointer.
44014 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44015 for file offsets, use grub_off_t instead. Fix printf format
44018 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44019 there. Real unexpected warnings should not drown in the noise
44020 about known problems.
44022 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44023 grub_disk_addr_t for memory addresses.
44025 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44026 explicitly to fix a warning.
44028 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44030 * Makefile.in (MODULE_LDFLAGS): New variable.
44031 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44032 the linker accepts --build-id=none.
44033 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44035 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44037 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44038 those in Linux XFS code. Provide a way to access 64-bit parent
44040 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44041 the end of struct grub_xfs_dir_header.
44043 2008-07-02 Bean <bean123ch@gmail.com>
44045 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44046 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44047 and GRUB_IEEE1275_FLAG_NO_ANSI.
44049 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44050 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44051 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44053 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44054 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44056 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44057 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44059 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44060 esc sequence on non ANSI terminal.
44061 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44063 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44066 2008-07-02 Bean <bean123ch@gmail.com>
44068 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44069 (grub_editenv_SOURCES): New variable.
44070 (pkglib_MODULES): Add loadenv.mod.
44071 (loadenv_mod_SOURCES): New variable.
44072 (loadenv_mod_CFLAGS): Likewise.
44073 (loadenv_mod_LDFLAGS): Likewise.
44075 * include/grub/envblk.h: New file.
44077 * util/envblk.c: New file.
44079 * util/grub-editenv.c: New file.
44081 * commands/loadenv.c: New file.
44083 2008-07-01 Pavel Roskin <proski@gnu.org>
44085 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44086 not unsigned char. This fixes warnings and is consistent with
44089 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44091 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44093 * term/tparm.c (analyze): Always set *popcount.
44095 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44096 cast to fix a warning.
44098 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44099 cast to suppress a warning.
44101 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44102 grub_fshelp_read_file() expects.
44104 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44105 write uuid as a 32-bit value in CPU byte order, so declare and
44108 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44109 long if the format specifier expects it.
44110 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44111 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44112 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44113 long to fix a warning.
44114 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44115 grub_dprintf() arguments to fix warnings.
44117 2008-06-30 Pavel Roskin <proski@gnu.org>
44119 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44120 install_bsd_part immediately before core.img is embedded or
44121 modified on disk. This fixes core.img verification if core.img
44122 cannot be embedded.
44124 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44125 core_path to calculate the blocklist.
44126 Patch from Javier Martín <lordhabbit@gmail.com>
44128 2008-06-29 Robert Millan <rmh@aybabtu.com>
44130 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44131 block to disk block.
44132 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44133 Patch from Niels Böhm <bitbucket@arcor.de>
44135 2008-06-29 Robert Millan <rmh@aybabtu.com>
44137 * util/update-grub_lib.in (font_path): Search for fonts in
44138 /boot/grub first, which is more likely to be readable (we aren't
44139 deciding where fonts live, just looking for them).
44141 2008-06-26 Pavel Roskin <proski@gnu.org>
44143 * util/biosdisk.c (read_device_map): Don't leave dead map
44144 entries for devices failing stat() check.
44146 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44147 core_path_dev for the core.img path on the target device.
44149 2008-06-26 Robert Millan <rmh@aybabtu.com>
44151 * disk/fs_uuid.c: New file.
44152 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44153 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44154 (fs_uuid_mod_LDFLAGS): New variables.
44155 * include/grub/disk.h (grub_disk_dev_id): Add
44156 `GRUB_DISK_DEVICE_UUID_ID'.
44157 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44158 implement iterate().
44160 2008-06-26 Robert Millan <rmh@aybabtu.com>
44162 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44163 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44164 Linux image includes no initrd.
44166 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44168 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44169 call to resolve the core image location that effectively appended the
44172 2008-06-21 Robert Millan <rmh@aybabtu.com>
44174 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44177 * util/grub.d/10_hurd.in: ... to here ...
44178 * util/grub.d/10_linux.in: ... and here.
44180 2008-06-19 Robert Millan <rmh@aybabtu.com>
44182 * kern/main.c (grub_main): Export `prefix' variable immediately
44183 after it has been set by grub_machine_set_prefix().
44185 2008-06-19 Robert Millan <rmh@aybabtu.com>
44187 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44188 search result when not saving to variable, not the other way around.
44189 When saving to variable, abort iteration as soon as a match is found.
44191 2008-06-19 Robert Millan <rmh@aybabtu.com>
44193 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44194 check for partition that provides /boot/grub. Its logic is flawed,
44195 as it prevents prepare_grub_to_access_device() from being called
44198 2008-06-19 Robert Millan <rmh@aybabtu.com>
44200 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44201 "insmod" command directly when abstraction modules are needed,
44202 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44203 since it had already been processed).
44205 2008-06-19 Pavel Roskin <proski@gnu.org>
44207 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44208 changed. This is needed in case GRUB_LIBDIR changes.
44209 * conf/i386-ieee1275.rmk: Likewise.
44210 * conf/i386-linuxbios.rmk: Likewise.
44211 * conf/i386-pc.rmk: Likewise.
44212 * conf/powerpc-ieee1275.rmk: Likewise.
44214 2008-06-18 Pavel Roskin <proski@gnu.org>
44216 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44217 kernel_elf_symlist.c to symlist.c for consistency with other
44218 architectures. Update all users.
44219 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44221 2008-06-18 Robert Millan <rmh@aybabtu.com>
44223 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44226 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44227 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44228 a RAID device, run setup() for all members independently on whether
44229 LVM abstraction is being used.
44230 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44231 If grub-mkimage has set `*install_dos_part == -2', don't override this
44233 Perform *install_dos_part adjustments independently on whether
44234 we're embedding or not.
44235 Clarify error message when image is too big for embedding.
44236 Remove duplicate *install_dos_part stanza.
44238 2008-06-17 Robert Millan <rmh@aybabtu.com>
44240 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44241 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44243 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44244 values in grub_ofconsole_normal_color and
44245 grub_ofconsole_highlight_color (they're not directly related to
44246 background and foreground).
44247 (grub_ofconsole_setcolorstate): Extract background and foreground
44248 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44250 2008-06-17 Robert Millan <rmh@aybabtu.com>
44252 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44253 /boot/grub for the check in last commit, not /boot (they could be
44254 different partitions).
44256 2008-06-16 Robert Millan <rmh@aybabtu.com>
44258 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44259 asked to setup access for the same partition that provides /boot,
44260 don't bother using UUIDs since our root already has the value we
44263 2008-06-16 Robert Millan <rmh@aybabtu.com>
44265 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44267 Patch from Sven Mueller <sven@debian.org>.
44269 2008-06-16 Robert Millan <rmh@aybabtu.com>
44271 * util/update-grub.in: Check for $EUID instead of $UID.
44272 Reported by Vincent Zweije.
44274 2008-06-16 Bean <bean123ch@gmail.com>
44276 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44277 (grub_ext2_read_block): Likewise.
44278 (grub_ext2_read_inode): Likewise.
44279 (grub_ext2_mount): Likewise.
44280 (grub_ext2_close): Likewise.
44281 (grub_ext3_get_journal): Removed.
44283 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44284 (grub_reiserfs_read_symlink): Likewise.
44285 (grub_reiserfs_mount): Likewise.
44286 (grub_reiserfs_open): Likewise.
44287 (grub_reiserfs_read): Likewise.
44288 (grub_reiserfs_close): Likewise.
44289 (grub_reiserfs_get_journal): Removed.
44291 * fs/fshelp.c (grub_fshelp_read): Removed.
44292 (grub_fshelp_map_block): Likewise.
44294 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44295 (grub_fshelp_journal): Likewise.
44296 (grub_fshelp_read): Likewise.
44297 (grub_fshelp_map_block): Likewise.
44299 2008-06-16 Pavel Roskin <proski@gnu.org>
44301 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44302 floating point anymore.
44303 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44305 2008-06-15 Pavel Roskin <proski@gnu.org>
44307 * commands/ls.c (grub_ls_list_files): Use integer calculations
44308 for human readable format, avoid floating point use.
44309 * kern/misc.c (grub_ftoa): Remove.
44310 (grub_vsprintf): Remove floating point support.
44312 2008-06-15 Robert Millan <rmh@aybabtu.com>
44314 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44316 Reported by Max Vozeler.
44318 2008-06-15 Robert Millan <rmh@aybabtu.com>
44320 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44321 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44323 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44324 the beginning of the prefix.
44326 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44327 It is assumed that if we have a memdisk, grub-mkimage has set
44328 grub_prefix to include the "(memdisk)" drive in it.
44330 2008-06-15 Robert Millan <rmh@aybabtu.com>
44332 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44333 Initialize keyboard controller after registering the terminal, so that
44334 grub_printf() can be called from grub_keyboard_controller_init().
44336 2008-06-15 Robert Millan <rmh@aybabtu.com>
44338 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44339 extent-btree which is written as big endian on disk.
44340 Reported by Alain Greppin <al@chilibi.org>.
44342 2008-06-14 Robert Millan <rmh@aybabtu.com>
44344 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44345 * util/i386/pc/grub-install.in (modules): Likewise.
44347 2008-06-13 Pavel Roskin <proski@gnu.org>
44349 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44351 2008-06-13 Bean <bean123ch@gmail.com>
44353 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44355 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44357 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44358 to indicate sparse block.
44360 2008-06-12 Pavel Roskin <proski@gnu.org>
44362 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44363 number, grub_fshelp_read() does it for us.
44365 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44366 linear disk read with journal translation.
44367 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44368 * include/grub/fshelp.h: Declare grub_fshelp_read().
44370 2008-06-09 Pavel Roskin <proski@gnu.org>
44372 * fs/minix.c (grub_minix_mount): Handle error reading
44375 2008-06-08 Robert Millan <rmh@aybabtu.com>
44377 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44378 don't append the RAID prefix afterwards.
44379 Reported by Clint Adams.
44381 2008-06-08 Robert Millan <rmh@aybabtu.com>
44383 Based on description from Pavel:
44384 * kern/disk.c (grub_disk_check_range): Rename to ...
44385 (grub_disk_adjust_range): ... this. Add a comment explaining the
44386 tasks performed by this function.
44388 2008-06-08 Robert Millan <rmh@aybabtu.com>
44390 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44391 `num_serial' (for consistency with other variables).
44392 (struct grub_ntfs_data): Add `uuid' member.
44393 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44394 (grub_ntfs_uuid): New function.
44395 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44397 2008-06-07 Pavel Roskin <proski@gnu.org>
44399 * util/biosdisk.c (open_device): Revert last change to the
44400 function, it broke installation. The sector needs to be
44401 different dependent on which device is opened.
44403 2008-06-06 Robert Millan <rmh@aybabtu.com>
44405 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44406 rest of GRUB, and breakage doesn't happen if its value were modified.
44408 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44409 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44410 a constant (same value).
44411 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44412 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44414 2008-06-06 Robert Millan <rmh@aybabtu.com>
44416 * util/biosdisk.c (open_device): Do not modify sector offset when
44417 accessing a partition. kern/disk.c already handles this for us.
44419 2008-06-06 Robert Millan <rmh@aybabtu.com>
44421 * util/grub-emu.c (grub_machine_init): Move code in this function from
44423 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44424 segfault in case grub_printf() is called).
44426 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44427 grub_probe. Update all users not to explicitly add it again.
44428 (grub_device): New variable; contains corresponding device for grubdir.
44429 (fs_module, partmap_module, devabstraction_module): Pass
44430 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44433 2008-06-05 Robert Millan <rmh@aybabtu.com>
44435 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44436 is found, print it (same layout as with labels).
44438 2008-06-04 Robert Millan <rmh@aybabtu.com>
44440 * util/biosdisk.c (get_drive): Rename to ...
44441 (find_grub_drive): ... this. Update all users.
44443 (get_os_disk): Rename to ...
44444 (convert_system_partition_to_system_disk): ... this. Update all users.
44446 (find_drive): Rename to ...
44447 (find_system_device): ... this. Update all users.
44449 2008-06-04 Robert Millan <rmh@aybabtu.com>
44451 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44452 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44453 (make_device_map): Likewise.
44455 2008-06-01 Robert Millan <rmh@aybabtu.com>
44457 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44458 before dereferencing it.
44460 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44461 union with fat12/fat16-specific ones. Add some new fields, including
44462 `num_serial' for both versions.
44463 (struct grub_fat_data): Add `uuid' member.
44464 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44465 names. Initialize `data->uuid' using `num_serial'.
44466 (grub_fat_uuid): New function.
44467 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44469 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44470 (grub_reiserfs_uuid): New function.
44471 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44474 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44475 (grub_xfs_uuid): New function.
44476 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44478 2008-06-01 Robert Millan <rmh@aybabtu.com>
44480 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44481 code that is backward compatible with pre-uuid search command.
44483 2008-05-31 Robert Millan <rmh@aybabtu.com>
44485 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44486 floppies after everything else, to ensure floppy drive isn't accessed
44487 unnecessarily (patch from Bean).
44489 2008-05-31 Robert Millan <rmh@aybabtu.com>
44491 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44492 not print device names when we were asked to set a variable.
44494 2008-05-31 Robert Millan <rmh@aybabtu.com>
44496 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44497 using "cursor-on" and "cursor-off" commands (understood at least by
44498 the Open Firmware flavour on OLPC).
44500 2008-05-31 Michael Gorven <michael@gorven.za.net>
44502 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44503 on and off sequences.
44505 2008-05-31 Robert Millan <rmh@aybabtu.com>
44507 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44508 * util/update-grub.in: Likewise.
44510 2008-05-30 Pavel Roskin <proski@gnu.org>
44512 * util/biosdisk.c (linux_find_partition): Simplify logic and
44513 make the code more universal. Keep special processing for
44514 devfs, but use a simple rule for all other devices. If the
44515 device ends with a number, append 'p' and the partition number.
44516 Otherwise, append only the partition number.
44518 2008-05-30 Robert Millan <rmh@aybabtu.com>
44520 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44521 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44522 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44523 the `root' parameter to Linux.
44525 2008-05-30 Robert Millan <rmh@aybabtu.com>
44527 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44528 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44529 --fs_uuid with --fs-uuid.
44530 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44531 all filesystems support them).
44533 2008-05-30 Robert Millan <rmh@aybabtu.com>
44535 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44536 grub_printf() flags, since we're printing in units of 2 bytes.
44538 2008-05-30 Robert Millan <rmh@aybabtu.com>
44540 * util/grub.d/00_header.in: Remove obsolete comment referencing
44541 convert_system_path_to_grub_path().
44542 * util/update-grub.in: Likewise.
44543 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44544 (convert_system_path_to_grub_path): Add a warning message explaining
44545 that this function is deprecated. Rely on is_path_readable_by_grub()
44546 for the readability checks.
44547 (font_path): Use is_path_readable_by_grub() for the readability
44548 check rather than convert_system_path_to_grub_path().
44550 2008-05-30 Robert Millan <rmh@aybabtu.com>
44552 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44553 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44554 converting it first.
44555 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44556 grub.cfg for access to font file, and afterwards call it again to set
44559 2008-05-30 Robert Millan <rmh@aybabtu.com>
44561 * commands/search.c (options): Add --fs_uuid option.
44562 (search_fs_uuid): New function.
44563 (grub_cmd_search): Fix --set argument passing.
44564 Use search_fs_uuid() when requested via --fs_uuid.
44565 (grub_search_init): Update help message.
44566 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44567 and redeclare it as an array of 16-bit words.
44568 (grub_ext2_uuid): New function.
44569 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44570 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44571 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44572 (GRUB_DEVICE_BOOT_UUID): New variables.
44573 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44574 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44576 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44577 just assume `root' variable has the right value.
44578 * util/grub.d/10_linux.in: Likewise.
44579 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44581 (main): Recognise `-t fs_uuid' argument.
44583 2008-05-30 Robert Millan <rmh@aybabtu.com>
44585 * util/biosdisk.c (map): Redefine structure to hold information
44586 about GRUB drive name.
44587 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44589 (call_hook): Remove.
44590 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44591 member. Assume drive has partitions.
44592 (grub_util_biosdisk_open): Access device names via `.device' struct
44594 (open_device): Likewise.
44595 (find_drive): Likewise.
44596 (read_device_map): Adjust map[] usage to match the new struct
44597 definition. Don't check for duplicates (still possible, but not cheap
44599 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44600 (make_device_name): Remove assumption of BIOS-like drive names.
44602 2008-05-30 Pavel Roskin <proski@gnu.org>
44604 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44605 compiling execute.c doesn't need grub_script.tab.h anymore.
44606 (normal/command.c_DEPENDENCIES): Likewise.
44607 (normal/function.c_DEPENDENCIES): Likewise.
44608 * conf/i386-ieee1275.rmk: Likewise.
44609 * conf/i386-linuxbios.rmk: Likewise.
44610 * conf/i386-pc.rmk: Likewise.
44611 * conf/powerpc-ieee1275.rmk: Likewise.
44612 * conf/sparc64-ieee1275.rmk: Likewise.
44614 2008-05-29 Pavel Roskin <proski@gnu.org>
44616 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44617 when scanning metadata for volume group name.
44619 * include/grub/script.h: Don't include grub_script.tab.h. It's
44620 a generated file, which may only be included from the files with
44621 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44622 use union YYSTYPE, as the later allows forward declaration.
44623 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44625 2008-05-29 Robert Millan <rmh@aybabtu.com>
44627 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44628 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44629 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44630 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44633 2008-05-29 Robert Millan <rmh@aybabtu.com>
44635 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44636 control key combinations.
44638 2008-05-29 Robert Millan <rmh@aybabtu.com>
44640 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44641 * util/ieee1275/grub-install.in: ... to here.
44642 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44643 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44644 (grub_install_SOURCES): Likewise.
44646 2008-05-29 Robert Millan <rmh@aybabtu.com>
44648 * fs/affs.c: Update copyright year.
44649 * fs/ext2.c: Likewise.
44650 * fs/fshelp.c: Likewise.
44651 * fs/hfsplus.c: Likewise.
44652 * fs/ntfs.c: Likewise.
44653 * fs/xfs.c: Likewise.
44654 * include/grub/fshelp.h: Likewise.
44655 * util/grub-mkdevicemap.c: Likewise.
44657 2008-05-28 Robert Millan <rmh@aybabtu.com>
44659 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44660 might need to be fatfs to support some firmware implementations
44663 2008-05-28 Robert Millan <rmh@aybabtu.com>
44665 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44667 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44668 (make_device_map): Likewise.
44670 2008-05-20 Bean <bean123ch@gmail.com>
44672 * fs/fshelp.c (grub_fshelp_map_block): New function.
44673 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44674 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44676 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44677 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44678 (grub_fshelp_journal): New structure.
44679 (grub_fshelp_map_block): New function prototype.
44680 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44681 (grub_fshelp_map_block): Likewise.
44683 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44684 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44685 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44686 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44687 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44688 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44689 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44690 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44691 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44692 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44693 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44694 (grub_ext2_sblock): New members for journal support.
44695 (grub_ext3_journal_header): New structure.
44696 (grub_ext3_journal_revoke_header): Likewise.
44697 (grub_ext3_journal_block_tag): Likewise.
44698 (grub_ext3_journal_sblock): Likewise.
44699 (grub_fshelp_node): New members logfile and journal.
44700 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44701 grub_fshelp_map_block to get real block number.
44702 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44704 (grub_ext2_read_inode): Likewise.
44705 (grub_ext3_get_journal): New function.
44706 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44707 (grub_ext2_close): Release memory used by journal.
44709 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44710 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44711 (grub_reiserfs_transaction_header): Renamed to
44712 grub_reiserfs_description_block, replace field data with real_blocks.
44713 (grub_reiserfs_commit_block): New structure.
44714 (grub_reiserfs_data): New member journal.
44715 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44717 (grub_reiserfs_read_symlink): Likewise.
44718 (grub_reiserfs_iterate_dir): Likewise.
44719 (grub_reiserfs_open): Likewise.
44720 (grub_reiserfs_read): Likewise.
44721 (grub_reiserfs_get_journal): New function.
44722 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44723 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44724 using grub_reiserfs_get_journal.
44725 (grub_reiserfs_close): Release memory used by journal.
44727 * fs/affs.c (grub_affs_read_block): Change block type to
44728 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44730 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44732 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44734 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44736 * fs/udf.c (grub_udf_read_block): Change block type to
44737 grub_disk_addr_t. Use type cast to avoid warning.
44739 * fs/xfs.c (grub_xfs_read_block): Likewise.
44741 2008-05-16 Christian Franke <franke@computer.org>
44743 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44744 to ensure that break with ESC will always work.
44745 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44746 Remove ESC from keyboard queue.
44748 2008-05-16 Christian Franke <franke@computer.org>
44750 * util/biosdisk.c: [__CYGWIN__] Add includes.
44751 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44752 (get_os_disk): Move variable declarations to OS specific
44753 parts to avoid warning.
44754 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44755 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44756 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44758 * util/getroot.c: [__CYGWIN__] Add includes.
44759 (strip_extra_slashes): Fix "/" case.
44760 [__CYGWIN__] (get_win32_path): New function.
44761 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44762 [__CYGWIN__] (find_root_device): Disable.
44763 [__CYGWIN__] (get_bootsec_serial): New function.
44764 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44765 [__linux__] (grub_guess_root_device): Add early returns to simplify
44767 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44768 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44769 check for Linux only.
44771 2008-05-15 Bean <bean123ch@gmail.com>
44773 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44774 keyboard hang problem in apple's intel mac.
44776 2008-05-09 Robert Millan <rmh@aybabtu.com>
44778 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44780 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44781 (make_device_map): Likewise.
44782 Reported by Aurelien Jarno <aurel32@debian.org>
44784 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44786 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44787 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44788 (make_device_map): Output entries for xvd type disks.
44790 2008-05-07 Robert Millan <rmh@aybabtu.com>
44792 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44794 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44795 (make_device_map): Likewise.
44796 Reported by Roland Dreier <rdreier@cisco.com>
44798 2008-05-07 Robert Millan <rmh@aybabtu.com>
44800 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44801 grub_strstr() call. Correct a few mistakes in failure path handling.
44803 2008-05-06 Robert Millan <rmh@aybabtu.com>
44805 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44806 Do not print a trailing slash (therefore, the root directory is an
44808 (convert_system_path_to_grub_path): Do not remove trailing slash
44809 from make_system_path_relative_to_its_root() output.
44811 * util/i386/pc/grub-install.in: Add trailing slash to output from
44812 make_system_path_relative_to_its_root().
44814 2008-05-06 Robert Millan <rmh@aybabtu.com>
44816 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44817 ensures that output lines aren't intermangled with those sent to
44818 stderr (via grub_util_info()).
44819 * util/grub-probe.c (grub_refresh): Likewise.
44820 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44822 2008-05-05 Christian Franke <franke@computer.org>
44824 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44825 Add Cygwin device names.
44826 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44827 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44828 (check_device): Return error instead of success on empty name.
44829 (make_device_map): Move label inside linux specific code to
44830 prevent compiler warning.
44832 2008-04-30 Robert Millan <rmh@aybabtu.com>
44834 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44835 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44837 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44839 2008-04-29 Robert Millan <rmh@aybabtu.com>
44841 * docs/grub.cfg: New file (example GRUB configuration).
44843 2008-04-26 Robert Millan <rmh@aybabtu.com>
44845 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44846 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44847 and `disk/ieee1275/nand.c'.
44849 2008-04-25 Bean <bean123ch@gmail.com>
44851 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44854 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44855 change the buffer size to 4096 for cdrom device.
44857 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44859 (_linux_mod_SOURCES): New variable.
44860 (_linux_mod_CFLAGS): Likewise.
44861 (_linux_mod_LDFLAGS): Likewise.
44862 (linux_mod_SOURCES): Likewise.
44863 (linux_mod_CFLAGS): Likewise.
44864 (linux_mod_LDFLAGS): Likewise.
44865 (nand_mod_SOURCES): Likewise.
44866 (nand_mod_CFLAGS): Likewise.
44867 (nand_mod_LDFLAGS): Likewise.
44869 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44870 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44871 type property. (nand device in olpc don't have this property)
44873 * include/grub/disk.h (grub_disk_dev_id): New macro
44874 GRUB_DISK_DEVICE_NAND_ID.
44876 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44877 function prototype.
44878 (grub_rescue_cmd_initrd): Likewise.
44880 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44881 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44882 ofw_cif_handler and ofw_idt, adjust padding number.
44884 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44885 GRUB_MACHINE_IEEE1275 is defined.
44887 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44888 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44890 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44891 on nested function heap_init.
44892 (grub_upper_mem): New variable for i386-ieee1275.
44893 (grub_get_extended_memory): New function for i386-ieee1275.
44894 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44896 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44897 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44900 * loader/i386/ieee1275/linux.c: New file.
44902 * loader/i386/ieee1275/linux_normal.c: New file.
44904 * disk/ieee1275/nand.c: New file.
44906 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44908 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44910 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44912 2008-04-18 Robert Millan <rmh@aybabtu.com>
44914 Restructures early code path on ieee1275 to unify grub_main() as
44915 the first C function that is executed in every platform.
44917 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44918 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44920 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44921 * kern/ieee1275/cmain.c (cmain): Rename to ...
44922 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44923 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44926 2008-04-18 Robert Millan <rmh@aybabtu.com>
44928 * util/update-grub.in: Fix syntax error when setting
44929 `GRUB_PRELOAD_MODULES'.
44930 Reported by Stephane Chazelas <stephane@artesyncp.com>
44932 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44934 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44935 section into account, newer toolchains generate unique build ids
44936 * configure.ac: remove the test for --build-id=none acceptance,
44937 we want build ids to be preserved
44938 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44939 far from other sections don't cause the raw binary images grow
44942 2008-04-15 Robert Millan <rmh@aybabtu.com>
44944 * disk/lvm.c: Update copyright year.
44945 * kern/misc.c: Likewise.
44947 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44949 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44950 there is no memory left for physical volume name.
44952 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44954 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44955 volume name mapping to support bigger than 9 character names properly.
44957 2008-04-13 Robert Millan <rmh@aybabtu.com>
44959 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44960 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44962 2008-04-13 Christian Franke <franke@computer.org>
44964 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44965 to create a floppy emulation boot CD when non emulation mode
44967 Enable Joliet CD filesystem extension.
44969 2008-04-13 Robert Millan <rmh@aybabtu.com>
44971 * kern/misc.c (grub_strncat): Fix off-by-one error.
44972 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44974 * kern/env.c (grub_env_context_close): Clear current context, not
44976 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44978 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44980 2008-04-13 Robert Millan <rmh@aybabtu.com>
44982 Improve robustness when handling LVM.
44984 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44985 (and leave `*p' unmodified).
44986 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44988 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44989 iterating through it.
44990 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44992 (grub_lvm_scan_device): Check the return value (and fail gracefully
44993 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44994 Don't assume `vg->pvs != NULL' when iterating through it.
44996 2008-04-13 Robert Millan <rmh@aybabtu.com>
44998 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44999 * genmk.rb (partmap): New variable.
45000 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45001 (#{partmap}): New target rule.
45002 * genpartmaplist.sh: New file.
45003 * Makefile.in (pkglib_DATA): Add partmap.lst.
45004 (partmap.lst): New target rule.
45005 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45006 modules (including all partition maps), instead of preloading them.
45008 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45010 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45011 `linux-boot-prober' (if installed) to detect other operating
45012 systems which are installed on the computer and add them to
45014 * conf/common.rmk: Build and install 30_os-prober.
45016 2008-04-12 Robert Millan <rmh@aybabtu.com>
45018 * kern/powerpc/ieee1275/init.c: Move from here ...
45019 * kern/ieee1275/init.c: ... to here. Update all users.
45021 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45022 * kern/ieee1275/cmain.c: ... to here. Update all users.
45024 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45025 * kern/ieee1275/openfw.c: ... to here. Update all users.
45027 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45028 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45030 2008-04-10 Pavel Roskin <proski@gnu.org>
45032 * configure.ac: Always use "_cv_" in cache variables for
45033 compatibility with Autoconf 2.62.
45035 2008-04-07 Robert Millan <rmh@aybabtu.com>
45037 Revert grub/machine/init.h addition by Pavel (since it breaks on
45038 i386-ieee1275 and others):
45039 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45040 * util/powerpc/ieee1275/misc.c: Likewise.
45042 2008-04-07 Robert Millan <rmh@aybabtu.com>
45044 * util/grub-probe.c (probe): Improve error message.
45046 2008-04-07 Robert Millan <rmh@aybabtu.com>
45048 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45049 (this prevents the presence of a bogus entry from ruining the whole
45052 2008-04-06 Pavel Roskin <proski@gnu.org>
45054 * util/biosdisk.c: Include grub/util/biosdisk.h.
45055 * util/grub-fstest.c (execute_command): Make static.
45056 * util/grub-mkdevicemap.c (check_device): Likewise.
45057 * util/i386/pc/misc.c: Include grub/machine/init.h.
45058 * util/powerpc/ieee1275/misc.c: Likewise.
45059 * util/lvm.c: Include grub/util/lvm.h.
45060 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45062 * util/raid.c: Include grub/util/raid.h.
45063 (grub_util_getdiskname): Make static.
45065 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45066 grub_hostfs_fini(), as they are called from grub_init_all() and
45067 grub_fini_all() respectively. This fixes an infinite loop in
45068 grub-fstest due to double registration of hostfs.
45069 Reported by Christian Franke <Christian.Franke@t-online.de>
45071 2008-04-05 Pavel Roskin <proski@gnu.org>
45073 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45074 all 8 functions. Otherwise, probe function 0 only.
45076 2008-04-04 Pavel Roskin <proski@gnu.org>
45078 * commands/lspci.c (grub_lspci_iter): Print the bus number
45081 * commands/lspci.c (grub_pci_classes): Fix typos.
45082 (grub_lspci_iter): Don't print func twice. Print vendor ID
45083 before device ID, as it's normally done.
45085 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45086 Fix signedness warnings.
45087 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45089 * util/ieee1275/get_disk_name.c: Include config.h so that
45090 _GNU_SOURCE is defined and getline() is declared. Mark an
45091 unused argument as such. Fix a signedness warning.
45093 2008-04-02 Pavel Roskin <proski@gnu.org>
45095 * genkernsyms.sh.in: Use more robust assignments for CC and
45096 srcdir. Quote srcdir.
45097 * gensymlist.sh.in: Likewise. Assert at the compile time that
45098 the symbol table is not empty.
45100 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45101 * fs/cpio.c (grub_cpio_read): Likewise.
45103 2008-04-01 Pavel Roskin <proski@gnu.org>
45105 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45106 * disk/host.c (grub_host_open): Likewise.
45107 * disk/loopback.c (grub_loopback_open): Likewise.
45108 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45109 disk->id as in disk/host.c, not a multi-character constant.
45111 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45112 later is obsolete, potentially dangerous and sets a bad example.
45113 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45114 * util/misc.c (grub_util_get_image_size): Likewise.
45116 * disk/loopback.c (options): Improve help for "--partitions".
45118 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45119 options to align them with the short options, e.g. "echo -e".
45121 2008-03-31 Bean <bean123ch@gmail.com>
45123 * video/reader/png.c (grub_png_data): New member is_16bit and
45125 (grub_png_decode_image_header): Detect 16 bit png image.
45126 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45127 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45128 (grub_video_reader_png): Release memory occupied by image_data.
45130 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45132 (grub_nfs_mount): Skip the test for sector per cluster.
45134 * include/grub/ntfs.h (MAX_SPC): Removed.
45136 2008-03-31 Bean <bean123ch@gmail.com>
45138 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45139 (grub_probe_SOURCES): Add fs/afs.c.
45140 (grub_fstest_SOURCES): Likewise.
45141 (afs_mod_SOURCES): New variable.
45142 (afs_mod_CFLAGS): Likewise.
45143 (afs_mod_LDFLAGS): Likewise.
45145 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45146 (grub_emu_SOURCES): Likewise.
45148 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45150 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45152 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45154 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45156 * fs/afs.c: New file.
45158 2008-03-30 Pavel Roskin <proski@gnu.org>
45160 * disk/host.c: Include grub/misc.h to fix a warning.
45161 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45162 warnings about implicit declarations.
45164 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45166 * include/grub/i386/loader.h: Change declaration of
45167 grub_linux_boot() to match what grub_loader_set() expects.
45168 * util/getroot.c (grub_guess_root_device): Return const char* to
45170 * util/grub-probe.c (probe): Fix a warning about uninitialized
45171 abstraction_name variable.
45172 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45173 second argument as unused to fix a warning.
45175 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45176 missing grub_error() call.
45178 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45179 2.60 and newer uses it to define datadir.
45181 * commands/sleep.c: Fix warning about implicit declaration.
45182 * disk/memdisk.c: Likewise.
45183 * loader/aout.c: Likewise.
45184 * loader/i386/bsd_normal.c: Likewise.
45185 * util/grub-probe.c: Likewise.
45187 * commands/i386/cpuid.c (has_longmode): Make static.
45188 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45189 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45191 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45192 GDT. This is more robust, as %ds can change.
45193 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45194 calling real_to_prot().
45195 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45197 2008-03-28 Pavel Roskin <proski@gnu.org>
45199 * kern/i386/pc/startup.S: Assert that uncompressed functions
45200 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45201 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45202 code, as they push parts of the code (error handlers) beyond
45203 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45204 code as correctness and size.
45206 2008-03-28 Pavel Roskin <proski@gnu.org>
45208 * kern/i386/pc/startup.S
45209 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45210 data block address to the real mode, keep offset minimal. This
45211 works around a bug in AWARD BIOS on old Athlon systems, which
45212 makes CD detection hang.
45214 2008-03-26 Pavel Roskin <proski@gnu.org>
45216 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45218 * include/grub/normal.h: Add grub_parse_color_name_pair()
45221 2008-03-24 Bean <bean123ch@gmail.com>
45223 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45224 (cd_count): Removed.
45225 (cd_drive): New variable.
45226 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45227 (grub_biosdisk_call_hook): Likewise.
45228 (grub_biosdisk_iterate): Change cdrom detection method.
45229 (grub_biosdisk_open): Replace cd_start with cd_drive.
45230 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45231 detect cdrom device.
45233 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45235 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45236 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45237 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45238 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45239 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45240 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45241 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45242 (grub_biosdisk_cdrp): New structure.
45243 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45245 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45247 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45250 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45253 2008-03-20 Robert Millan <rmh@aybabtu.com>
45255 Remove 2 TiB limit in ata.mod.
45256 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45257 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45258 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45259 grub_uint64_t instead of grub_uint32_t.
45261 2008-03-05 Bean <bean123ch@gmail.com>
45263 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45264 (grub_multiboot): Set boot device.
45266 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45268 2008-03-02 Bean <bean123ch@gmail.com>
45270 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45273 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45275 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45278 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45281 * docs/fdl.texi: New file.
45283 * docs/mdate-sh: New file. Copied from gnulib.
45284 * docs/texinfo.tex: Likewise.
45286 * config.guess: Updated from gnulib.
45287 * install-sh: Likewise.
45289 2008-02-28 Robert Millan <rmh@aybabtu.com>
45291 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45292 (aout_mod_SOURCES): New variable.
45293 (aout_mod_CFLAGS): Likewise.
45294 (aout_mod_LDFLAGS): Likewise.
45296 * conf/i386-ieee1275.rmk: Likewise.
45298 2008-02-28 Robert Millan <rmh@aybabtu.com>
45300 * util/update-grub.in: Reorganise terminal validity check. Accept
45301 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45302 Based on suggestion by Franklin PIAT.
45304 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45306 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45308 * util/getroot.c (grub_util_check_block_device): New function that
45309 returns the given argument if it is a block device and returns NULL else.
45310 * util/grub-probe.c (argument_is_device): New variable.
45311 (probe): Promote device_name from a variable to an argument. Receive
45312 device_name from grub_util_check_block_device() if path is NULL and from
45313 grub_guess_root_device() else. Do not free() device_name anymore.
45314 (options): Introduce new parameter '-d, --device'.
45315 (main): Add description of the new parameter to the help screen.
45316 Rename path variable to argument. Set argument_is_device if the '-d'
45317 option is given. Pass argument to probe() depending on
45318 argument_is_device.
45320 2008-02-24 Bean <bean123ch@gmail.com>
45322 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45323 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45324 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45325 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45326 (GRUB_ISO9660_VOLDESC_END): Likewise.
45327 (grub_iso9660_primary_voldesc): New member escape.
45328 (grub_iso9660_data): New member joliet.
45329 (grub_iso9660_convert_string): New function.
45330 (grub_iso9660_mount): Detect joliet extension.
45331 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45332 (grub_iso9660_iso9660_label): Likewise.
45334 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45335 (grub_setup_SOURCES): Add fs/udf.c.
45336 (grub_fstest_SOURCES): Likewise.
45337 (udf_mod_SOURCES): New variable.
45338 (udf_mod_CFLAGS): Likewise.
45339 (udf_mod_LDFLAGS): Likewise.
45341 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45342 (grub_emu_SOURCES): Likewise.
45344 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45346 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45348 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45352 * fs/udf.c: New file.
45354 2008-02-24 Robert Millan <rmh@aybabtu.com>
45356 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45357 (normal/lexer.c_DEPENDENCIES): New variables.
45358 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45359 (normal/lexer.c_DEPENDENCIES): Likewise.
45360 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45361 (normal/lexer.c_DEPENDENCIES): Likewise.
45362 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45363 (normal/lexer.c_DEPENDENCIES): Likewise.
45364 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45365 (normal/lexer.c_DEPENDENCIES): Likewise.
45366 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45367 (normal/lexer.c_DEPENDENCIES): Likewise.
45369 2008-02-23 Robert Millan <rmh@aybabtu.com>
45371 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45372 since they were intended to be in hex. This didn't break previously
45373 because of a bug in gpt_partition_map_iterate() (see below).
45375 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45376 when checking the validity of GPT header.
45377 Remove `partno', since it always provides the same information as `i'.
45379 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45381 * include/grub/efi/time.h: Fix a wrong comment.
45383 2008-02-19 Pavel Roskin <proski@gnu.org>
45385 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45388 2008-02-19 Bean <bean123ch@gmail.com>
45390 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45391 (aout_mod_SOURCES): New variable.
45392 (aout_mod_CFLAGS): Likewise.
45393 (aout_mod_LDFLAGS): Likewise.
45394 (_bsd_mod_SOURCES): New variable.
45395 (_bsd_mod_CFLAGS): Likewise.
45396 (_bsd_mod_LDFLAGS): Likewise.
45397 (bsd_mod_SOURCES): New variable.
45398 (bsd_mod_CFLAGS): Likewise.
45399 (bsd_mod_LDFLAGS): Likewise.
45401 * include/grub/aout.h: New file.
45403 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45405 * include/grub/i386/bsd.h: New file.
45407 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45410 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45411 function is called, so that it's possible to change it inside the hook.
45412 (grub_elf64_load): Likewise.
45413 (grub_elf_file): Don't close the file if elf header is not found.
45414 (grub_elf_close): Close the file if grub_elf_file fails (The new
45415 grub_elf_file won't close it).
45416 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45417 (grub_elf64_size): Likewise.
45419 * kern/i386/loader.S (grub_unix_real_boot): New function.
45421 * loader/aout.c: New file.
45423 * loader/i386/bsd.c: New file.
45425 * loader/i386/bsd_normal.c: New file.
45427 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45429 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45430 can test other formats.
45432 2008-02-19 Robert Millan <rmh@aybabtu.com>
45434 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45435 (grub_gpt_partition_type_empty): Redefine with macro from
45436 `<grub/gpt_partition.h>'.
45437 (gpt_partition_map_iterate): Adjust partition type comparison.
45439 Export `entry' as partmap-specific `part.data' struct.
45440 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45442 * include/grub/gpt_partition.h (grub_gpt_header)
45443 (grub_gpt_partentry): ... to here (new file).
45445 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45447 (grub_gpt_partition_type_bios_boot): New const variable, defined
45448 with macro from `<grub/gpt_partition.h>'.
45450 (setup): Replace `first_start' with `embed_region', which keeps
45451 track of the embed region (and is partmap-agnostic).
45453 Replace find_first_partition_start() with find_usable_region(),
45454 which finds a usable region for embedding using partmap-specific
45455 knowledge (supports PC/MSDOS and GPT).
45457 Fix all assumptions that the embed region start at sector 1, using
45458 `embed_region.start' from now on. Similarly, use `embed_region.end'
45459 rather than `first_start' to calculate available size.
45461 In grub_util_info() message, replace "into after the MBR" with an
45462 indication of the specific sector our embed region starts at.
45464 2008-02-19 Robert Millan <rmh@aybabtu.com>
45466 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45467 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45468 `commands/reboot.c'.
45469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45470 (halt_mod_SOURCES): Likewise.
45471 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45472 (halt_mod_SOURCES): Likewise.
45474 2008-02-17 Christian Franke <franke@computer.org>
45476 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45478 2008-02-17 Robert Millan <rmh@aybabtu.com>
45480 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45481 set `first_start' to 0 for non-PC/MSDOS partition maps.
45483 2008-02-16 Robert Millan <rmh@aybabtu.com>
45485 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45486 do not assume partition map is PC/MSDOS before performing checks that
45487 are specific to that layout.
45489 2008-02-13 Robert Millan <rmh@aybabtu.com>
45491 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45492 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45493 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45495 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45497 * configure.ac: Only a cosmetic change on the handling of
45498 -fno-stack-protector.
45500 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45502 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45503 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45505 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45506 (halt_mod_SOURCES): New variable.
45507 (halt_mod_CFLAGS): Likewise.
45508 (halt_mod_LDFLAGS): Likewise.
45509 (reboot_mod_SOURCES): Likewise.
45510 (reboot_mod_CFLAGS): Likewise.
45511 (reboot_mod_LDFLAGS): Likewise.
45513 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45514 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45516 (halt_mod_SOURCES): Likewise.
45517 (reboot_mod_SOURCES): Likewise.
45519 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45520 commands/i386/pc/reboot.c by commands/reboot.c.
45521 (reboot_mod_SOURCES): Likewise.
45523 * commands/i386/pc/reboot.c: merge this file ...
45525 * commands/ieee1275/reboot.c: ... and this file ...
45527 * commands/reboot.c: ... to this file.
45528 Add some precompiler directive to include the correct header for
45531 * commands/ieee1275/halt.c: move this file ...
45533 * commands/halt.c: ... to here.
45534 Add some precompiler directive to include the correct header for
45537 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45538 (grub_halt): Likewise.
45540 * kern/efi/efi.c (grub_reboot): New function.
45541 (grub_halt): Likewise.
45543 2008-02-12 Robert Millan <rmh@aybabtu.com>
45545 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45546 /dev (like it is done for /dev/mapper). This doesn't provide support
45547 for EVMS, but at least it is now easy to identify the problem when it
45550 2008-02-11 Robert Millan <rmh@aybabtu.com>
45552 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45553 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45554 comparing it with -1, not 0.
45556 2008-02-10 Robert Millan <rmh@aybabtu.com>
45558 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45560 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45561 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45563 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45564 `disk/lvm.c' to the end of the list.
45565 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45566 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45568 2008-02-10 Robert Millan <rmh@aybabtu.com>
45570 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45571 grub_print_error() instead. This will let user know why we're entering
45573 Based on suggestions from Sam Morris.
45575 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45577 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45578 on remaining N args, instead of "--" arg N times.
45580 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45582 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45583 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45584 pattern for unknown glyphs.
45586 2008-02-09 Robert Millan <rmh@aybabtu.com>
45588 * configure.ac: Probe for `help2man'.
45589 * Makefile.in (builddir): New variable.
45590 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45591 or otherwise add a few flags/options to it.
45592 (install-local): For every executable utility or script that is
45593 installed, invoke $(HELP2MAN) to install a manpage based on --help
45596 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45597 that it doesn't prevent --help from working in build tree.
45599 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45600 with `bug-grub@gnu.org'.
45601 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45602 * util/update-grub.in (usage): New function.
45603 Implement proper argument check, with support for --help and --version
45604 (as well as existing -y).
45606 2008-02-09 Christian Franke <franke@computer.org>
45608 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45609 avoid overwriting previous output.
45610 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45612 2008-02-09 Robert Millan <rmh@aybabtu.com>
45614 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45617 2008-02-09 Robert Millan <rmh@aybabtu.com>
45619 * commands/sleep.c: New file.
45620 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45621 (sleep_mod_SOURCES): New variable.
45622 (sleep_mod_CFLAGS): Likewise.
45623 (sleep_mod_LDFLAGS): Likewise.
45625 2008-02-09 Robert Millan <rmh@aybabtu.com>
45627 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45628 situations in which we can deduce the RAID size and the superblock
45631 2008-02-09 Robert Millan <rmh@aybabtu.com>
45633 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45634 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45635 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45637 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45638 and return a grub_diskmemberlist_t composed of physical array members.
45639 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45641 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45643 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45644 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45645 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45647 * util/grub-probe.c (probe): Move partmap probing code from here ...
45648 (probe_partmap): ... to here.
45649 (probe): Use probe_partmap() once for the disk we're probing, and
45650 additionally, when such disk contains a memberlist() struct member,
45651 once for each disk that is contained in the structure returned by
45654 2008-02-09 Robert Millan <rmh@aybabtu.com>
45656 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45657 environment variable to 'all' in order to obtain debug output from
45659 * util/i386/pc/grub-setup.c (main): Likewise.
45661 2008-02-08 Robert Millan <rmh@aybabtu.com>
45663 * disk/raid.c (grub_raid_scan_device): Check for
45664 `array->device[sb.this_disk.number]' rather than for
45665 `array->device[sb.this_disk.number]->name', since the latter is not
45666 guaranteed to be accessible.
45668 2008-02-08 Robert Millan <rmh@aybabtu.com>
45670 * disk/raid.c: Update copyright.
45671 * fs/cpio.c: Likewise.
45672 * include/grub/raid.h: Likewise.
45673 * loader/i386/pc/multiboot.c: Likewise.
45674 * util/hostfs.c: Likewise.
45676 2008-02-08 Robert Millan <rmh@aybabtu.com>
45678 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45679 to a grub_disk_t array.
45680 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45682 (grub_raid_scan_device): Replace `device[x].name' accesses with
45683 `device[x]->name'. Simplify initialization of `array->device[x]'.
45685 2008-02-08 Robert Millan <rmh@aybabtu.com>
45687 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45688 grub_dprintf() calls.
45689 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45692 2008-02-07 Christian Franke <franke@computer.org>
45694 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45695 instead of fseek and ftell to support large files.
45696 (grub_hostfs_read): Likewise.
45698 2008-02-07 Robert Millan <rmh@aybabtu.com>
45700 Patch from Jeroen Dekkers.
45701 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45702 failure, since successfully reading all array members might not be
45705 2008-02-06 Robert Millan <rmh@aybabtu.com>
45707 * util/grub-probe.c (probe): Simplify partmap probing (with the
45708 assumption that the first word up to the underscore equals to
45711 2008-02-06 Christian Franke <franke@computer.org>
45713 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45714 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45715 last block of a cpio or tar stream.
45716 Check for "TRAILER!!!" instead of any empty data
45717 block to detect last block of a cpio stream.
45718 (grub_cpio_dir): Fix constness of variable np.
45719 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45720 cpio or tar trailer is detected. This fixes a crash
45721 on open of a non existing file.
45723 2008-02-05 Bean <bean123ch@gmail.com>
45725 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45727 (grub_multiboot_load_elf64): Likewise.
45728 (grub_multiboot): Initialize mbi structure.
45730 * util/grub-fstest.c: Don't include unused header file script.h.
45732 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45734 (grub_fstest_SOURCES): Likewise.
45736 2008-02-05 Robert Millan <rmh@aybabtu.com>
45738 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45739 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45740 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45741 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45743 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45744 (translation_table): Replace hardcoded values with macros
45745 provided by `<grub/term.h>'.
45747 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45748 (keyboard_map): Correct/add a few values, with macros provided
45749 by `<grub/term.h>'.
45750 (keyboard_map_shift): Zero values that don't differ from their
45751 `keyboard_map' equivalents.
45752 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45753 Discard the second scan code that is always sent by Caps lock.
45754 Only use `keyboard_map_shift' when it provides a non-zero value,
45755 otherwise fallback to `keyboard_map'.
45757 2008-02-04 Bean <bean123ch@gmail.com>
45759 * Makefile.in (enable_grub_fstest): New variable.
45761 * conf/common.rmk (grub_fstest_init.lst): New rule.
45762 (grub_fstest_init.h): Likewise.
45763 (grub_fstest_init.c): Likewise.
45764 (util/grub-fstest.c_DEPENDENCIES): New variable.
45765 (grub_fstest_SOURCES): Likewise.
45767 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45769 * util/grub-fstest.c: New file.
45771 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45773 Make grub-setup handle a separate root device.
45775 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45776 so that the root device can be compared with the destination
45778 When embedding the core image, if the root and destination devices
45779 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45781 When not embedding, set ROOT_DRIVE to 0xFF.
45783 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45785 Add support for having a grub directory in a different drive. This
45786 is still only the data handling part.
45788 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45789 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45790 (grub_root_drive): New variable.
45792 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45793 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45794 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45797 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45799 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45801 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45803 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45804 is bogus, because PXE booting does not specify any drive
45807 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45808 am not sure if this is really correct.
45810 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45811 is always identical to the boot drive when booting from a CD.
45813 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45815 (root_drive): New variable.
45816 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45817 (setup_sectors): Push %dx right after popping it, because %dh will
45819 (copy_buffer): Restore %dx.
45821 2008-02-03 Robert Millan <rmh@aybabtu.com>
45823 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45824 use `cdboot.img' for cdrom images.
45826 2008-02-03 Robert Millan <rmh@aybabtu.com>
45828 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45829 only setup gfxterm when `font' command has succeeded.
45831 2008-02-03 Robert Millan <rmh@aybabtu.com>
45833 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45834 (grub_rescue_cmd_multiboot_loader)
45835 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45837 2008-02-03 Pavel Roskin <proski@gnu.org>
45839 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45840 %edx and %esi from stack only after grub_gate_a20() is called.
45841 grub_gate_a20() clobbers %edx.
45843 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45845 * configure.ac (AC_INIT): Bumped to 1.96.
45847 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45848 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45849 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45850 video/readers/png.c.
45852 2008-02-03 Bean <bean123ch@gmail.com>
45854 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45855 (cdboot_img_SOURCES): New variable.
45856 (cdboot_img_ASFLAGS): New variable.
45857 (cdboot_img_LDFLAGS): New variable.
45859 * boot/i386/pc/cdboot.S: New file.
45861 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45862 (cd_count): Likewise.
45863 (grub_biosdisk_get_drive): Add support for cd device.
45864 (grub_biosdisk_call_hook): Likewise.
45865 (grub_biosdisk_iterate): Likewise.
45866 (grub_biosdisk_open): Likewise.
45867 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45868 (grub_biosdisk_rw): Support reading from cd device.
45869 (GRUB_MOD_INIT): Iterate cd devices.
45871 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45872 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45873 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45875 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45877 2008-02-02 Robert Millan <rmh@aybabtu.com>
45879 * commands/read.c: New file.
45880 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45881 (read_mod_SOURCES): New variable.
45882 (read_mod_CFLAGS): Likewise.
45883 (read_mod_LDFLAGS): Likewise.
45885 2008-02-02 Robert Millan <rmh@aybabtu.com>
45887 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45888 determining whether menu has to be displayed.
45890 2008-02-02 Marco Gerards <marco@gnu.org>
45892 * bus/pci.c: New file.
45894 * include/grub/pci.h: Likewise.
45896 * include/grub/i386/pc/pci.h: Likewise.
45898 * commands/lspci.c: Likewise.
45900 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45902 (pci_mod_SOURCES): New variable.
45903 (pci_mod_CFLAGS): Likewise.
45904 (pci_mod_LDFLAGS): Likewise.
45905 (lspci_mod_SOURCES): Likewise.
45906 (lspci_mod_CFLAGS): Likewise.
45907 (lspci_mod_LDFLAGS): Likewise.
45909 2008-02-02 Bean <bean123ch@gmail.com>
45911 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45912 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45914 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45915 (grub_xfs_btree_node): New structure.
45916 (grub_xfs_btree_root): New structure.
45917 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45918 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45919 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45920 (GRUB_XFS_EXTENT_SIZE): Likewise.
45921 (grub_xfs_read_block): Support btree format type.
45922 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45923 Use directory block as basic unit.
45925 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45927 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45928 __attribute__ ((__regparm__ (1))).
45930 2008-02-01 Robert Millan <rmh@aybabtu.com>
45932 Correct a mistake in previous commit.
45934 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45936 (normal/command.c_DEPENDENCIES): New variable.
45938 2008-02-01 Robert Millan <rmh@aybabtu.com>
45940 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45942 (normal/command.c_DEPENDENCIES): New variable.
45943 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45944 * conf/i386-ieee1275.rmk: Likewise.
45945 * conf/i386-linuxbios.rmk: Likewise.
45946 * conf/i386-pc.rmk: Likewise.
45947 * conf/sparc64-ieee1275.rmk: Likewise.
45948 * conf/powerpc-ieee1275.rmk: Likewise.
45949 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45951 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45953 2008-02-01 Robert Millan <rmh@aybabtu.com>
45955 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45956 call at beginning of function.
45958 2008-01-31 Pavel Roskin <proski@gnu.org>
45960 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45961 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45962 (grub_mkrescue_SOURCES): Likewise.
45963 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45965 2008-01-30 Robert Millan <rmh@aybabtu.com>
45967 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45968 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45969 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45970 (grub_probe_SOURCES): ... to here.
45972 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45973 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45974 * conf/i386-ieee1275.rmk: Likewise.
45975 * conf/i386-linuxbios.rmk: Likewise.
45976 * conf/powerpc-ieee1275.rmk: Likewise.
45978 2008-01-30 Tristan Gingold <gingold@free.fr>
45980 * kern/rescue.c: Silently accept empty lines.
45982 2008-01-29 Bean <bean123ch@gmail.com>
45984 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45985 (real_code_2): Code cleanup and change comment style.
45986 (move_memory): Avoid using 32-bit address mode.
45988 2008-01-29 Bean <bean123ch@gmail.com>
45990 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45991 (png_mod_SOURCES): New variable.
45992 (png_mod_CFLAGS): Likewise.
45993 (png_mod_LDFLAGS): Likewise.
45995 * video/readers/png.c: New file.
45997 2008-01-28 Robert Millan <rmh@aybabtu.com>
45999 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46000 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46001 `ifndef GRUB_MOD_GAP' hack.
46002 * util/elf/grub-mkimage.c (add_segments): Likewise.
46004 2008-01-27 Robert Millan <rmh@aybabtu.com>
46006 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46007 `GRUB_MOD_GAP' for platforms in which it's not defined.
46008 * util/elf/grub-mkimage.c (add_segments): Likewise.
46010 2008-01-27 Robert Millan <rmh@aybabtu.com>
46012 Get grub-emu to build again (including parallel builds).
46014 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46016 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46017 (normal/execute.c_DEPENDENCIES): ... this, ...
46018 (grub-emu_DEPENDENCIES): ... and this.
46020 * conf/i386-efi.rmk: Likewise.
46021 * conf/i386-linuxbios.rmk: Likewise.
46022 * conf/i386-ieee1275.rmk: Likewise.
46023 * conf/powerpc-ieee1275.rmk: Likewise.
46024 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46026 2008-01-27 Robert Millan <rmh@aybabtu.com>
46028 * NEWS: Add a few items.
46030 2008-01-27 Robert Millan <rmh@aybabtu.com>
46032 Fix parallel builds with grub-emu. Based on earlier commit for
46033 grub-probe and grub-setup.
46035 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46036 (util/grub-emu.c_DEPENDENCIES): ... this.
46037 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46038 (util/grub-emu.c_DEPENDENCIES): ... this.
46039 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46040 (util/grub-emu.c_DEPENDENCIES): ... this.
46041 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46042 (util/grub-emu.c_DEPENDENCIES): ... this.
46043 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46044 (util/grub-emu.c_DEPENDENCIES): ... this.
46046 2008-01-27 Pavel Roskin <proski@gnu.org>
46048 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46049 to create a gap between _end and the modules added to the image
46050 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46051 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46052 * util/elf/grub-mkimage.c (add_segments): Likewise.
46054 2008-01-26 Pavel Roskin <proski@gnu.org>
46056 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46057 just return an error.
46059 2008-01-26 Bean <bean123ch@gmail.com>
46061 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46062 (grub_reiserfs_get_item): Save offset of the next item.
46063 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46065 2008-01-25 Robert Millan <rmh@aybabtu.com>
46067 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46068 make all filesystem sources appear together (possibly fixing omissions
46070 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46071 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46072 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46073 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46075 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46077 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46078 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46079 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46080 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46082 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46083 (probe): Add a sanity check to make sure of our ability to read
46084 requested files when probing for filesystem type.
46086 * genmk.rb: Update copyright year (2007).
46088 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46089 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46090 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46091 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46092 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46093 : Remove function prototypes.
46095 2008-01-25 Robert Millan <rmh@aybabtu.com>
46097 Revert my previous commits (based on wrong assumption of how grub_errno
46100 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46101 * kern/file.c (grub_file_open): Likewise.
46103 2008-01-24 Pavel Roskin <proski@gnu.org>
46105 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46106 that hang if GRUB tries to setup colors.
46107 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46108 colors for firmwares that don't support it.
46109 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46110 Recognize Open Hack'Ware, set flags to work around its
46113 2008-01-24 Robert Millan <rmh@aybabtu.com>
46115 * kern/file.c (grub_file_open): Do not account previous failures of
46116 unrelated functions when grub_errno is checked for.
46117 Reported by Oleg Strikov.
46119 2008-01-24 Bean <bean123ch@gmail.com>
46121 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46122 (grub_ufs_sblock): New member volume name.
46123 (grub_ufs_find_file): Fix string copy bug.
46124 (grub_ufs_label): Implement this function properly.
46126 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46127 (grub_hfs_iterate_records): Use the correct file number for extents
46128 and catalog file. Fix problem in next index calculation.
46129 (grub_hfs_find_node): Replace recursive function call with loop.
46130 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46132 2008-01-23 Robert Millan <rmh@aybabtu.com>
46134 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46135 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46136 (grub_multiboot2_real_boot): New function prototype.
46138 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46139 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46141 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46142 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46144 2008-01-23 Robert Millan <rmh@aybabtu.com>
46146 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46147 #ifdef'ed out grub_printf().
46149 2008-01-23 Robert Millan <rmh@aybabtu.com>
46151 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46152 grub_dprintf calls, since they make "debug=all" mode unusable.
46153 (grub_console_checkkey): Likewise.
46155 2008-01-23 Robert Millan <rmh@aybabtu.com>
46157 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46158 `term/i386/pc/at_keyboard.c'.
46159 (pkglib_MODULES): Add `serial.mod'.
46160 (serial_mod_SOURCES): New variable.
46161 (serial_mod_CFLAGS): Likewise.
46162 (serial_mod_LDFLAGS): Likewise.
46164 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46165 `<grub/powerpc/ieee1275/console.h>'.
46166 (grub_keyboard_controller_init): New function prototype.
46167 (grub_console_checkkey): Likewise.
46168 (grub_console_getkey): Likewise.
46170 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46173 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46174 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46176 2008-01-23 Robert Millan <rmh@aybabtu.com>
46178 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46179 present, "(memdisk)/boot/grub" becomes the default prefix.
46181 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46182 a memdisk tarball with all the modules. Add --overlay=DIR option that
46183 allows users to overlay additional files into the image.
46185 2008-01-23 Robert Millan <rmh@aybabtu.com>
46187 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46188 and `machine/memory.h'.
46189 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46190 (_multiboot_mod_SOURCES): New variable.
46191 (_multiboot_mod_CFLAGS): Likewise.
46192 (_multiboot_mod_LDFLAGS): Likewise.
46193 (multiboot_mod_SOURCES): Likewise.
46194 (multiboot_mod_CFLAGS): Likewise.
46195 (multiboot_mod_LDFLAGS): Likewise.
46197 * include/grub/i386/ieee1275/loader.h: New file.
46199 * include/grub/i386/ieee1275/machine.h: Likewise.
46201 * include/grub/i386/ieee1275/memory.h: Likewise.
46203 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46204 variable declaration.
46205 (grub_os_area_size): Likewise.
46207 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46208 (grub_lower_mem, grub_upper_mem): New variables.
46209 (grub_stop_floppy): New function (just to make
46210 grub_multiboot2_real_boot() happy).
46212 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46213 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46214 (grub_stop): New function.
46215 Include `"../realmode.S"' and `"../loader.S"'.
46217 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46218 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46220 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46221 rely on grub_multiboot2_real_boot() for final boot.
46223 2008-01-22 Robert Millan <rmh@aybabtu.com>
46225 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46226 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46227 device that doesn't look like an SD card.
46228 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46229 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46230 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46231 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46234 2008-01-22 Robert Millan <rmh@aybabtu.com>
46236 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46237 avoid claiming over our own code.
46239 2008-01-22 Bean <bean123ch@gmail.com>
46241 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46242 (jpeg_mod_SOURCES): New variable.
46243 (jpeg_mod_CFLAGS): Likewise.
46244 (jpeg_mod_LDFLAGS): Likewise.
46246 * video/readers/jpeg.c : New file.
46248 2008-01-22 Bean <bean123ch@gmail.com>
46250 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46251 there are no more items.
46253 2008-01-21 Robert Millan <rmh@aybabtu.com>
46255 * kern/mm.c (grub_mm_init_region): Improve debug message.
46257 2008-01-21 Robert Millan <rmh@aybabtu.com>
46259 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46260 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46262 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46264 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46265 Indicates start of upper memory.
46266 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46267 (generate_image): Abort when image size is big enough to corrupt
46270 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46271 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46272 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46273 instead of hardcoding 0xA0000.
46274 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46275 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46276 instead of hardcoding 0xA0000.
46278 2008-01-21 Robert Millan <rmh@aybabtu.com>
46280 * disk/memdisk.c (memdisk_size): New variable.
46281 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46283 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46284 image to dynamic memory.
46285 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46286 `memdisk_size'. Free memdisk block.
46288 2008-01-21 Robert Millan <rmh@aybabtu.com>
46290 Fix detection of very small filesystems (like tar).
46292 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46293 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46294 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46295 a problem with this disk).
46297 2008-01-21 Robert Millan <rmh@aybabtu.com>
46299 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46300 on grub_biosdisk_rw_standard() error.
46302 2008-01-21 Robert Millan <rmh@aybabtu.com>
46304 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46306 * kern/elf.c: Likewise.
46307 * kern/ieee1275/ieee1275.c: Likewise.
46308 * kern/powerpc/ieee1275/openfw.c: Likewise.
46309 * term/ieee1275/ofconsole.c: Likewise.
46311 2008-01-21 Robert Millan <rmh@aybabtu.com>
46313 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46315 * include/grub/kernel.h (grub_arch_memdisk_addr)
46316 (grub_arch_memdisk_size): Moved from here ...
46318 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46319 (grub_arch_memdisk_size): ... to here.
46321 2008-01-21 Robert Millan <rmh@aybabtu.com>
46323 Mostly based on bugfix from Bean.
46325 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46326 attribute with hook() parameter.
46327 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46329 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46330 attribute with hook() parameter.
46331 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46334 2008-01-21 Robert Millan <rmh@aybabtu.com>
46336 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46337 (pkglib_MODULES): Add `memdisk.mod'.
46338 (memdisk_mod_SOURCES): New variable.
46339 (memdisk_mod_CFLAGS): Likewise.
46340 (memdisk_mod_LDFLAGS): Likewise.
46342 * disk/memdisk.c: New file.
46344 * include/grub/disk.h (grub_disk_dev_id): Add
46345 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46347 * include/grub/i386/pc/kernel.h
46348 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46349 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46350 (grub_kernel_image_size): New variable declaration.
46351 (grub_total_module_size): Likewise.
46352 (grub_memdisk_image_size): Likewise.
46354 * include/grub/i386/pc/memory.h
46355 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46357 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46358 (grub_arch_memdisk_addr): New variable declaration.
46359 (grub_arch_memdisk_size): Likewise.
46361 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46362 (grub_arch_memdisk_size): Likewise.
46364 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46365 (codestart): Replace hardcoded `0x100000' with
46366 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46368 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46369 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46370 not NULL, append the contents of the file it refers to, at the end of
46371 the compressed kernel image. Initialize `grub_memdisk_image_size'
46372 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46373 (options): Add "memdisk"|'m' option.
46374 (main): Parse --memdisk|-m option, and pass user-provided path as
46375 parameter to generate_image().
46377 2008-01-20 Robert Millan <rmh@aybabtu.com>
46379 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46380 grub_dprintf() calls from here ...
46381 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46383 2008-01-20 Robert Millan <rmh@aybabtu.com>
46385 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46387 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46389 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46390 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46391 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46392 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46394 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46395 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46397 2008-01-19 Robert Millan <rmh@aybabtu.com>
46399 Get rid of confusing function (superseded by
46400 `grub_ieee1275_get_integer_property')
46401 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46403 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46405 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46406 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46407 in native endianness from grub_ieee1275_get_integer_property().
46409 2008-01-19 Robert Millan <rmh@aybabtu.com>
46411 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46412 command after "shut-down", since implementations differ on which
46413 the command for halt is.
46415 2008-01-19 Robert Millan <rmh@aybabtu.com>
46417 * include/grub/i386/linuxbios/console.h: Add header protection.
46418 (grub_keyboard_controller_init): New function prototype.
46419 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46420 (KEYBOARD_COMMAND_READ): Likewise.
46421 (KEYBOARD_COMMAND_WRITE): Likewise.
46422 (KEYBOARD_SCANCODE_SET1): Likewise.
46423 (grub_keyboard_controller_write): New function.
46424 (grub_keyboard_controller_read): Likewise.
46425 (grub_keyboard_controller_init): Likewise.
46427 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46428 (grub_console_init): On coreboot/LinuxBIOS, call
46429 grub_keyboard_controller_init().
46431 2008-01-19 Robert Millan <rmh@aybabtu.com>
46433 PowerPC changes provided by Pavel Roskin.
46435 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46436 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46437 don't rely on cmain() doing it.
46438 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46439 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46441 2008-01-16 Robert Millan <rmh@aybabtu.com>
46443 * include/grub/i386/linuxbios/memory.h
46444 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46445 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46446 receive `table_header' as argument. Instead, probe for it in the
46447 known memory ranges where it can be present.
46448 (grub_available_iterate): Do not pass a fixed `table_header' address
46449 to grub_linuxbios_table_iterate().
46451 2008-01-15 Robert Millan <rmh@aybabtu.com>
46453 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46454 * conf/i386-ieee1275.rmk: New file.
46455 * include/grub/i386/ieee1275/console.h: Likewise.
46456 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46457 * include/grub/i386/ieee1275/kernel.h: Likewise.
46458 * include/grub/i386/ieee1275/time.h: Likewise.
46459 * kern/i386/ieee1275/init.c: Likewise.
46460 * kern/i386/ieee1275/startup.S: Likewise.
46462 2008-01-15 Robert Millan <rmh@aybabtu.com>
46464 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46465 when pointers are 32-bit (but still do set it to one when they are
46468 2008-01-15 Robert Millan <rmh@aybabtu.com>
46470 * include/grub/ieee1275/ieee1275.h
46471 (grub_ieee1275_get_integer_property): New function prototype.
46473 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46474 (grub_ieee1275_get_integer_property): New function. Wraps around
46475 grub_ieee1275_get_property() to handle endianness.
46477 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46478 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46480 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46481 (grub_map): Likewise.
46482 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46484 2008-01-15 Bean <bean123ch@gmail.com>
46486 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46487 (grub_script_execute_cmdline): Reset grub_errno.
46489 * normal/main.c (read_config_file): Reset grub_errno.
46491 * normal/parse.y (script_init): New.
46492 (script): Move function and menuentry here.
46494 (command): Add delimiter at the end of command.
46495 (commands): Adjust to match the new command.
46496 (commandblock): Remove grub_script_lexer_record_start.
46497 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46498 (if): Use the new commands.
46500 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46502 2008-01-15 Robert Millan <rmh@aybabtu.com>
46504 * normal/menu.c (run_menu): Move timeout message from here ...
46505 (print_timeout): ... to here.
46506 (run_menu): Use print_timeout() once during initial draw to print
46507 the whole message, and again in every clock tick to update only
46508 the number of seconds.
46510 2008-01-15 Robert Millan <rmh@aybabtu.com>
46512 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46513 actual size of `available' from grub_ieee1275_get_property(), and
46514 restrict parsing to that bound.
46516 2008-01-15 Christian Franke <franke@computer.org>
46518 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46519 (argp_program_version): Remove variable.
46520 (argp_program_bug_address): Likewise.
46521 (options): Convert from struct argp_option to struct option.
46522 (struct arguments): Remove.
46523 (parse_opt): Remove.
46524 (usage): New function.
46525 (main): Replace struct args members by simple variables.
46526 Replace argp_parse() by getopt_long().
46527 Add switch to evaluate options.
46528 Add missing "(...)" around root_dev in prefix string.
46530 2008-01-14 Robert Millan <rmh@aybabtu.com>
46532 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46533 for grub_ieee1275_exit(), in order to improve portability.
46535 2008-01-14 Robert Millan <rmh@aybabtu.com>
46537 * util/grub.d/10_linux.in (prefix): Define.
46538 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46540 2008-01-13 Pavel Roskin <proski@gnu.org>
46542 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46543 grub_errno if no errors have been detected.
46545 2008-01-12 Robert Millan <rmh@aybabtu.com>
46547 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46548 (grub_util_get_dev_abstraction): New function prototype.
46550 * util/getroot.c: Include `<grub/util/getroot.h>'
46551 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46552 (grub_util_get_dev_abstraction): ... here (new function).
46554 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46555 `PRINT_ABSTRACTION'.
46556 (probe): Probe for abstraction type when requested.
46557 (main): Understand `--target=abstraction'.
46559 * util/i386/efi/grub-install.in: Add abstraction module to core
46560 image when it is found to be necessary.
46561 * util/i386/pc/grub-install.in: Likewise.
46562 * util/powerpc/ieee1275/grub-install.in: Likewise.
46564 * util/update-grub_lib.in (font_path): Return system path without
46565 converting to GRUB path.
46566 * util/update-grub.in: Convert system path returned by font_path()
46567 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46568 abstraction module is needed for loading fonts (if any). Export
46569 that as `GRUB_PRELOAD_MODULES'.
46570 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46573 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46575 Remove some unused code from reiserfs.
46577 * fs/reiserfs.c (struct grub_reiserfs_key)
46578 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46579 (struct grub_reiserfs_node_body): Removed.
46580 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46582 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46584 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46586 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46588 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46590 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46592 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46593 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46594 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46596 2008-01-10 Robert Millan <rmh@aybabtu.com>
46598 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46599 Determines if a file is garbage left by packaging systems, etc.
46600 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46601 for processing /etc/grub.d scripts.
46602 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46603 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46604 as a condition for processing Linux images.
46606 2008-01-10 Pavel Roskin <proski@gnu.org>
46608 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46609 to compile reiserfs.c on PowerPC.
46611 2008-01-10 Robert Millan <rmh@aybabtu.com>
46613 * kern/device.c (grub_device_iterate): Do not abort device iteration
46614 when one of the devices cannot be opened.
46615 * kern/disk.c (grub_disk_open): Do not account previous failures of
46616 unrelated functions when grub_errno is checked for.
46618 2008-01-08 Robert Millan <rmh@aybabtu.com>
46620 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46621 `! grub_linux_is_bzimage', change order of address comparison to make
46622 it more intuitive, and improve "too big zImage" error message.
46624 2008-01-08 Robert Millan <rmh@aybabtu.com>
46626 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46627 `$(update-grub_DATA)'.
46628 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46631 2008-01-07 Robert Millan <rmh@aybabtu.com>
46633 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46634 which instruction is modified by grub-setup during installation
46635 (since it wasn't obvious by only looking at this file).
46637 2008-01-07 Robert Millan <rmh@aybabtu.com>
46639 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46640 listing actual TODO items.
46642 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46644 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46646 (grub_reiserfs_get_key_offset): Likewise.
46647 (grub_reiserfs_set_key_offset): Likewise.
46648 (grub_reiserfs_set_key_type): Likewise.
46649 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46651 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46652 better to remove the bitfield version completely.
46654 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46656 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46657 allocated from the heap, due to the fshelp implementation.
46658 (grub_reiserfs_dir): Free NODE, due to the same reason.
46660 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46662 Mostly from Vincent Pelletier:
46664 * fs/reiserfs.c: New file.
46666 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46667 (reiserfs_mod_SOURCES): New variable.
46668 (reiserfs_mod_CFLAGS): Likewise.
46669 (reiserfs_mod_LDFLAGS): Likewise.
46671 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46672 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46673 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46676 2008-01-06 Robert Millan <rmh@aybabtu.com>
46678 * normal/color.c: Remove `<grub/env.h>'.
46680 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46682 * include/grub/normal.h: Include <grub/env.h>.
46684 2008-01-05 Robert Millan <rmh@aybabtu.com>
46686 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46687 usage example with `(hd0,1)'.
46688 Reported by Samuel Thibault.
46690 2008-01-05 Robert Millan <rmh@aybabtu.com>
46692 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46693 (grub_linux_boot_zimage): Rename to ...
46694 (grub_linux_boot): ... this.
46695 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46696 (grub_linux_boot_zimage): Conditionalize zImage copy.
46698 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46699 (grub_linux_boot_bzimage): Remove prototype.
46700 (grub_linux_boot_zimage): Rename to ...
46701 (grub_linux_boot): ... this.
46703 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46704 (grub_linux_boot): Remove function.
46706 2008-01-05 Robert Millan <rmh@aybabtu.com>
46708 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46709 (grub_env_write_color_highlight): Likewise.
46710 (grub_wait_after_message): Likewise.
46712 * normal/color.c: New file.
46714 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46715 (normal_mod_DEPENDENCIES): Likewise.
46717 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46718 (normal_mod_DEPENDENCIES): Likewise.
46720 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46721 (normal_mod_DEPENDENCIES): Likewise.
46723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46724 (normal_mod_DEPENDENCIES): Likewise.
46726 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46727 for waiting after a message is printed.
46728 * normal/main.c (read_config_file): Likewise.
46729 (grub_normal_init): Register grub_env_write_color_normal() and
46730 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46731 `color_highlight' variables as global.
46733 * normal/menu.c (grub_wait_after_message): New function.
46734 (grub_color_menu_normal): New variable. Replaces ...
46735 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46736 (grub_color_menu_highlight): New variable. Replaces ...
46737 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46738 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46739 `GRUB_TERM_COLOR_STANDARD'.
46740 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46741 `normal_code' and `highlight_code' to `old_color_normal' and
46742 `old_color_highlight', respectively.
46743 (grub_menu_init_page): Update colors when drawing the menu, based on
46744 `menu_color_normal' and `menu_color_highlight' variables.
46745 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46746 a message is printed.
46748 2008-01-05 Robert Millan <rmh@aybabtu.com>
46750 * kern/env.c (grub_env_context_open): Propagate hooks for global
46751 variables to new context.
46753 * kern/main.c (grub_set_root_dev): Export `root' variable.
46755 2008-01-05 Robert Millan <rmh@aybabtu.com>
46757 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46758 discs unconditionally, since udev and others have options to provide
46761 2008-01-05 Robert Millan <rmh@aybabtu.com>
46763 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46765 2008-01-04 Christian Franke <franke@computer.org>
46767 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46770 2008-01-03 Pavel Roskin <proski@gnu.org>
46772 * kern/i386/linuxbios/init.c: Put "void" to all function
46773 declarations with no arguments.
46774 * kern/powerpc/ieee1275/init.c: Likewise.
46775 * term/i386/pc/at_keyboard.c: Likewise.
46776 * term/i386/pc/vga_text.c: Likewise.
46777 * util/grub-mkdevicemap.c: Likewise.
46779 2008-01-02 Robert Millan <rmh@aybabtu.com>
46781 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46782 message when loaded image is out of bounds.
46783 (grub_multiboot_load_elf64): Likewise.
46785 2008-01-02 Pavel Roskin <proski@gnu.org>
46787 * util/grub.d/10_linux.in: Try version without ".old" when
46788 looking for initrd. It's better to use initrd from the newer
46789 kernel of the same version than no initrd at all.
46791 2008-01-01 Robert Millan <rmh@aybabtu.com>
46793 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46795 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46797 * include/grub/video.h: Added grub_video_unmap_color and
46798 grub_video_get_active_render_target.
46799 (grub_video_adapter): Added unmap_color and get_active_render_target.
46801 * video/video.c: Added grub_video_unmap_color and
46802 grub_video_get_active_render_target.
46803 (grub_video_get_info): Changed method to accept NULL pointer as an
46804 argument to allow detection of active video adapter.
46806 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46807 grub_video_vbe_unmap_color_int.
46808 Added grub_video_vbe_unmap_color and
46809 grub_video_vbe_get_active_render_target.
46810 (grub_video_vbe_adapter): Added unmap_color and
46811 get_active_render_target.
46813 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46814 with grub_video_vbe_unmap_color_int.
46816 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46817 (DEFAULT_NORMAL_COLOR): Likewise.
46818 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46819 (DEFAULT_FG_COLOR): Removed.
46820 (DEFAULT_BG_COLOR): Likewise.
46821 (DEFAULT_CURSOR_COLOR): Changed value.
46822 (grub_virtual_screen): Added standard_color_setting,
46823 normal_color_setting, highlight_color_setting and term_color.
46824 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46825 (bitmap_width): Added.
46826 (bitmap_height): Likewise.
46827 (bitmap): Likewise.
46828 (set_term_color): Likewise.
46829 (grub_virtual_screen_setup): Changed to use new terminal coloring
46831 (grub_gfxterm_init): Added init for bitmap.
46832 (grub_gfxterm_fini): Added destroy for bitmap.
46833 (redraw_screen_rect): Updated to use background bitmap and new
46835 (scroll_up): Added optimization for case when there is no bitmap.
46836 (grub_gfxterm_cls): Fixed to use correct background color.
46837 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46839 (grub_virtual_screen_setcolor): Likewise.
46840 (grub_virtual_screen_getcolor): Added.
46841 (grub_gfxterm_background_image_cmd): Likewise.
46842 (grub_video_term): Added setcolor and getcolor.
46843 (MOD_INIT): Added registration of background_image command.
46844 (MOD_TERM): Added unregistration for background_image command.
46846 2007-12-30 Pavel Roskin <proski@gnu.org>
46848 * loader/multiboot_loader.c: Fix multiboot command
46849 unregistration. Fix all typos in the word "multiboot".
46851 2007-12-29 Pavel Roskin <proski@gnu.org>
46853 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46854 support for initrd names used in Fedora.
46856 2007-12-26 Bean <bean123ch@gmail.com>
46858 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46859 (cpio_mod_SOURCES): New variable.
46860 (cpio_mod_CFLAGS): Likewise.
46861 (cpio_mod_LDFLAGS): Likewise.
46863 * fs/cpio.c: New file.
46865 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46867 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46869 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46873 2007-12-25 Robert Millan <rmh@aybabtu.com>
46875 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46876 (grub_getcolor): New function.
46878 * kern/term.c (grub_getcolor): New function.
46879 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46880 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46881 (print_entry): Set normal and highlight colors to
46882 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46883 respectively, before printing and restore them to old
46885 (grub_menu_init_page): Likewise. Fill an additional colored space
46886 that would otherwise be left blank.
46888 * term/efi/console.c (grub_console_getcolor): New function.
46889 (struct grub_console_term.getcolor): New variable.
46890 * term/i386/pc/console.c (grub_console_getcolor): New function.
46891 (struct grub_console_term.getcolor): New variable.
46892 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46893 (struct grub_console_term.getcolor): New variable.
46895 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46896 (struct grub_console_term.setcolor): Remove variable.
46897 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46898 (struct grub_console_term.setcolor): Remove variable.
46899 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46900 (struct grub_console_term.setcolor): Remove variable.
46901 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46902 (struct grub_console_term.setcolor): Remove variable.
46904 2007-12-25 Robert Millan <rmh@aybabtu.com>
46906 * configure.ac: Search for possible unifont.hex locations, and
46907 define UNIFONT_HEX if found.
46909 * Makefile.in (UNIFONT_HEX): Define variable.
46910 (DATA): Rename to ...
46911 (PKGLIB): ... this. Update all users.
46912 (PKGDATA): New variable.
46913 (pkgdata_IMAGES): Rename to ...
46914 (pkglib_IMAGES): ... this. Update all users.
46915 (pkgdata_MODULES): Rename to ...
46916 (pkglib_MODULES): ... this. Update all users.
46917 (pkgdata_PROGRAMS): Rename to ...
46918 (pkglib_PROGRAMS): ... this. Update all users.
46919 (pkgdata_DATA): Rename to ...
46920 (pkglib_DATA): ... this. Update all users.
46921 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46922 (unicode.pff, ascii.pff): New rules.
46923 (all-local): Add `$(PKGDATA)' dependency.
46924 (install-local): Process `$(PKGDATA)'.
46926 * util/update-grub_lib.in (font_path): Search for *.pff files in
46927 a few more locations, including `${pkgdata}'.
46929 2007-12-23 Robert Millan <rmh@aybabtu.com>
46931 Patch from Bean <bean123ch@gmail.com>:
46932 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46935 2007-12-21 Bean <bean123ch@gmail.com>
46937 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46938 (ntfscomp_mod_SOURCES): New variable.
46939 (ntfscomp_mod_CFLAGS): Likewise.
46940 (ntfscomp_mod_LDFLAGS): Likewise.
46942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46943 (grub_probe_SOURCES): Likewise.
46944 (grub_emu_SOURCES): Likewise.
46946 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46947 (grub_emu_SOURCES): Likewise.
46949 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46950 (grub_emu_SOURCES): Likewise.
46952 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46953 (grub_emu_SOURCES): Likewise.
46955 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46956 (read_run_list): Renamed to grub_ntfs_read_run_list.
46957 (decomp_nextvcn): Moved to ntfscomp.c.
46958 (decomp_getch): Likewise.
46959 (decomp_get16): Likewise.
46960 (decomp_block): Likewise.
46961 (read_block): Likewise.
46962 (read_data): Partially moved to ntfscomp.c.
46963 (fixup): Change unsigned to grub_uint16_t.
46964 (read_mft): Change unsigned long to grub_uint32_t.
46965 (read_attr): Likewise.
46966 (read_data): Likewise.
46967 (read_run_data): Likewise.
46968 (read_run_list): Likewise.
46969 (read_mft): Likewise.
46971 * fs/ntfscomp.c: New file.
46973 * include/grub/ntfs.h: New file.
46975 2007-12-16 Robert Millan <rmh@aybabtu.com>
46977 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46978 IDE disk check, since Linux is known to support 20 IDE disks.
46979 Reported by Colin Watson.
46981 2007-12-15 Bean <bean123ch@gmail.com>
46983 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46984 (lnxboot_img_SOURCES): New variable.
46985 (lnxboot_img_ASFLAGS): Likewise.
46986 (lnxboot_img_LDFLAGS): Likewise.
46988 * boot/i386/pc/lnxboot.S: New file.
46990 2007-11-24 Pavel Roskin <proski@gnu.org>
46992 * configure.ac: Test if '--build-id=none' is supported by the
46993 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46994 objcopy to generate incorrect binary files (binutils
46995 2.17.50.0.18-1 as shipped by Fedora 8).
46996 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46997 linking, so that build ID doesn't break the test.
46999 2007-11-24 Pavel Roskin <proski@gnu.org>
47001 * include/grub/i386/time.h: use "void" in the argument list
47002 of grub_cpu_idle().
47003 * include/grub/powerpc/time.h: Likewise.
47004 * include/grub/sparc64/time.h: Likewise.
47006 2007-11-18 Christian Franke <franke@computer.org>
47008 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47009 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47010 This fixes the problem that function keys did not work in grub-emu.
47012 2007-11-18 Christian Franke <franke@computer.org>
47014 * disk/host.c (grub_host_open): Remove attribute unused from
47015 name parameter. Add check for "host". This fixes the problem
47016 that grub-emu does not find partitions.
47018 2007-11-18 Christian Franke <franke@computer.org>
47020 * util/hostfs.c (is_dir): New function.
47021 (grub_hostfs_dir): Handle missing dirent.d_type case.
47022 (grub_hostfs_read): Add missing fseek().
47023 (grub_hostfs_label): Clear label pointer. This fixes a crash
47024 of grub-emu on "ls (host)".
47026 2007-11-18 Christian Franke <franke@computer.org>
47028 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47029 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47030 to 64 bit boundary by default.
47032 2007-11-18 Bean <bean123ch@gmail.com>
47034 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47035 (hexdump_mod_SOURCES): New variable.
47036 (hexdump_mod_CFLAGS): Likewise.
47037 (hexdump_mod_LDFLAGS): Likewise.
47039 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47041 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47043 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47045 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47047 * include/grub/hexdump.h: New file.
47049 * commands/hexdump.c: New file.
47051 2007-11-10 Robert Millan <rmh@aybabtu.com>
47053 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47054 in grub_outb() calls.
47055 (beep_on): Likewise.
47057 2007-11-10 Christian Franke <franke@computer.org>
47059 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47060 (grub_menu_run): Likewise.
47062 2007-11-10 Robert Millan <rmh@aybabtu.com>
47064 * include/grub/i386/efi/machine.h: New file.
47065 * include/grub/i386/linuxbios/machine.h: Likewise.
47066 * include/grub/i386/pc/machine.h: Likewise.
47067 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47068 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47070 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47071 (serial_hw_io_addr): New variable.
47072 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47073 instead of `(unsigned short *) 0x400'.
47075 2007-11-10 Bean <bean123ch@gmail.com>
47077 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47079 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47081 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47082 (vga_mod_SOURCES): Added.
47083 (vga_mod_CFLAGS): Likewise.
47084 (vga_mod_LDFLAGS): Likewise.
47086 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47088 (set_map_mask): Likewise.
47089 (set_read_map): Likewise.
47090 (set_read_address): Likewise.
47091 (vga_font): Removed variable.
47092 (get_vga_glyph): Removed function.
47093 (invalidate_char): Likewise.
47094 (write_char): Changed to use grub_font_get_glyph() for font
47096 (grub_vga_putchar): Likewise.
47097 (grub_vga_getcharwidth): Likewise.
47099 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47101 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47103 (pxeboot_img_LDFLAGS): Likewise.
47104 (diskboot_img_LDFLAGS): Likewise.
47105 (kernel_img_LDFLAGS): Likewise.
47107 2007-11-06 Robert Millan <rmh@aybabtu.com>
47109 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47110 in grub_outb() calls.
47111 (serial_hw_init): Likewise.
47113 2007-11-05 Robert Millan <rmh@aybabtu.com>
47115 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47116 spaces. Skip non-regular files.
47118 2007-11-05 Robert Millan <rmh@aybabtu.com>
47120 * kern/disk.c (grub_disk_firmware_fini)
47121 (grub_disk_firmware_is_tainted): New variables.
47123 * include/grub/disk.h (grub_disk_firmware_fini)
47124 (grub_disk_firmware_is_tainted): Likewise.
47126 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47127 (grub_disk_biosdisk_fini): ... to here.
47128 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47129 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47130 is set. Register grub_disk_biosdisk_fini() in
47131 `grub_disk_firmware_fini'.
47133 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47134 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47135 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47136 to finish existing firmware disk interface.
47138 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47139 (ata_mod_SOURCES): New variable.
47140 (ata_mod_CFLAGS): Likewise.
47141 (ata_mod_LDFLAGS): Likewise.
47143 2007-11-05 Robert Millan <rmh@aybabtu.com>
47145 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47146 (grub_ata_wait): Reimplement using grub_millisleep().
47148 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47149 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47151 2007-11-03 Marco Gerards <marco@gnu.org>
47153 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47154 (CRTC_ADDR_PORT): New macro.
47155 (CRTC_DATA_PORT): Likewise.
47156 (CRTC_CURSOR): Likewise.
47157 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47158 (CRTC_CURSOR_ADDR_LOW): Likewise.
47159 (update_cursor): New function.
47160 (grub_console_real_putchar): Call `update_cursor'.
47161 (grub_console_gotoxy): Likewise.
47162 (grub_console_cls): Set the default color when clearing the
47164 (grub_console_setcursor): Implemented.
47166 2007-11-03 Marco Gerards <marco@gnu.org>
47168 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47170 (grub_ata_pio_write): Likewise.
47172 (grub_atapi_identify): Wait after issuing an ATA command.
47173 (grub_atapi_packet): Likewise.
47174 (grub_ata_identify): Likewise.
47175 (grub_ata_readwrite): Likewise.
47177 2007-11-03 Marco Gerards <marco@gnu.org>
47179 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47180 (grub_ata_pio_write): Likewise.
47181 (grub_ata_readwrite): Use `grub_error', instead of
47182 returning `grub_errno'.
47184 2007-11-03 Marco Gerards <marco@gnu.org>
47186 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47187 grub_ata_pio_write once for every single sector, instead of for
47190 2007-10-31 Robert Millan <rmh@aybabtu.com>
47192 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47194 * conf/i386-linuxbios.rmk: New file.
47196 * kern/i386/pc/hardware.c: Likewise.
47197 * term/i386/pc/at_keyboard.c: Likewise.
47198 * term/i386/pc/vga_text.c: Likewise.
47200 * include/grub/i386/linuxbios/boot.h: Likewise.
47201 * include/grub/i386/linuxbios/console.h: Likewise.
47202 * include/grub/i386/linuxbios/init.h: Likewise.
47203 * include/grub/i386/linuxbios/kernel.h: Likewise.
47204 * include/grub/i386/linuxbios/loader.h: Likewise.
47205 * include/grub/i386/linuxbios/memory.h: Likewise.
47206 * include/grub/i386/linuxbios/serial.h: Likewise.
47207 * include/grub/i386/linuxbios/time.h: Likewise.
47209 * kern/i386/linuxbios/init.c: Likewise.
47210 * kern/i386/linuxbios/startup.S: Likewise.
47211 * kern/i386/linuxbios/table.c: Likewise.
47213 2007-10-31 Marco Gerards <marco@gnu.org>
47215 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47216 (ata_mod_SOURCES): New variable.
47217 (ata_mod_CFLAGS): Likewise.
47218 (ata_mod_LDFLAGS): Likewise.
47220 * disk/ata.c: New file.
47222 * include/grub/disk.h (grub_disk_dev_id): Add
47223 `GRUB_DISK_DEV_ATA_ID'.
47225 2007-10-31 Robert Millan <rmh@aybabtu.com>
47227 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47228 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47230 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47231 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47233 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47236 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47238 2007-10-27 Robert Millan <rmh@aybabtu.com>
47240 * include/grub/types.h (ULONG_MAX): Define macro.
47242 2007-10-22 Robert Millan <rmh@aybabtu.com>
47244 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47246 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47248 2007-10-22 Robert Millan <rmh@aybabtu.com>
47250 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47251 (pkgdata_MODULES): Add `biosdisk.mod'.
47252 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47255 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47256 (grub_biosdisk_init): Replace with ...
47257 (GRUB_MOD_INIT(biosdisk)): ... this.
47258 (grub_biosdisk_fini): Replace with ...
47259 (GRUB_MOD_FINI(biosdisk)): ... this.
47261 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47262 (grub_machine_init): Remove call to grub_biosdisk_init().
47263 (grub_machine_fini): Remove call to grub_machine_fini().
47265 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47267 2007-10-22 Robert Millan <rmh@aybabtu.com>
47269 * include/grub/time.h: New file.
47270 * include/grub/i386/time.h: Likewise.
47271 * include/grub/powerpc/time.h: Likewise.
47272 * include/grub/sparc64/time.h: Likewise.
47274 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47276 (KERNEL_MACHINE_TIME_HEADER): ... this.
47277 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47279 (KERNEL_MACHINE_TIME_HEADER): ... this.
47280 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47282 (KERNEL_MACHINE_TIME_HEADER): ... this.
47284 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47285 (grub_millisleep): New function.
47286 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47287 (grub_millisleep): New function.
47288 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47289 Remove `grub/machine/time.h' include.
47290 (grub_millisleep): New function.
47291 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47292 Remove `grub/machine/time.h' include.
47293 (grub_millisleep): New function.
47295 * include/grub/misc.h (grub_div_roundup): New function.
47297 * kern/misc.c: Include `<grub/time.h>'.
47298 (grub_millisleep_generic): New function.
47300 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47302 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47304 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47305 `machine/time.h'. Add `time.h'.
47306 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47308 2007-10-21 Robert Millan <rmh@aybabtu.com>
47310 * include/grub/misc.h (grub_max): New function.
47312 2007-10-21 Robert Millan <rmh@aybabtu.com>
47314 * util/misc.c (grub_util_info): Call fflush() before returning.
47316 2007-10-20 Robert Millan <rmh@aybabtu.com>
47318 * genmk.rb (Image): Copy `extra_flags' from here ...
47319 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47321 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47322 to `argc' and `args' arguments.
47324 2007-10-17 Robert Millan <rmh@aybabtu.com>
47326 * kern/i386/loader.S: New file.
47328 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47329 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47330 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47331 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47332 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47333 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47334 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47335 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47336 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47337 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47338 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47339 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47340 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47341 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47343 * kern/i386/realmode.S: New file.
47345 * kern/i386/pc/startup.S (protstack): Moved from here ...
47346 * kern/i386/realmode.S (protstack)... to here.
47347 * kern/i386/pc/startup.S (gdt): Moved from here ...
47348 * kern/i386/realmode.S (gdt)... to here.
47349 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47350 * kern/i386/realmode.S (prot_to_real)... to here.
47352 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47353 `kern/i386/realmode.S'.
47355 2007-10-17 Robert Millan <rmh@aybabtu.com>
47357 * include/grub/i386/loader.h: New file.
47359 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47360 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47361 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47362 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47363 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47364 * include/grub/i386/loader.h (grub_linux_prot_size)
47365 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47366 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47367 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47368 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47370 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47372 2007-10-15 Robert Millan <rmh@aybabtu.com>
47374 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47375 filesystem when dev->disk is unset.
47376 Do probe for filesystem even when dev->disk->has_partitions is set.
47377 In case a filesystem is found, always report it.
47378 In case it isn't, if dev->disk->has_partitions is set, report that
47379 a partition table was found instead of reporting that no filesystem
47380 could be identified.
47382 2007-10-12 Robert Millan <rmh@aybabtu.com>
47384 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47385 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47387 * include/grub/types.h (grub_host_to_target16): New macro.
47388 (grub_host_to_target32): Likewise.
47389 (grub_host_to_target64): Likewise.
47390 (grub_target_to_host16): Likewise.
47391 (grub_target_to_host32): Likewise.
47392 (grub_target_to_host64): Likewise.
47394 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47395 Renamed from to ...
47396 (GRUB_MOD_ALIGN): ...this. Update all users.
47398 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47399 grub_host_to_target32.
47400 Replace grub_be_to_cpu32 with grub_target_to_host32.
47401 (load_modules): Likewise.
47402 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47403 Replace grub_be_to_cpu32 with grub_target_to_host32.
47404 Replace grub_cpu_to_be16 with grub_host_to_target16.
47405 Replace grub_cpu_to_be32 grub_host_to_target32.
47407 2007-10-12 Robert Millan <rmh@aybabtu.com>
47409 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47410 * util/elf/grub-mkimage.c: ... here.
47412 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47413 `util/powerpc/ieee1275/grub-mkimage.c'.
47415 2007-10-07 Robert Millan <rmh@aybabtu.com>
47417 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47418 and make it easier to figure out.
47419 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47420 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47421 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47422 leave us with less than HEAP_MIN_SIZE total heap.
47423 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47425 2007-10-03 Robert Millan <rmh@aybabtu.com>
47427 * include/grub/i386/io.h: New file.
47428 * commands/i386/pc/play.c (inb): Removed.
47430 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47432 * term/i386/pc/serial.c (inb): Removed.
47434 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47436 * term/i386/pc/vga.c (inb): Removed.
47438 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47441 2007-10-02 Robert Millan <rmh@aybabtu.com>
47443 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47445 Reported by Marcin Kurek.
47447 2007-09-07 Robert Millan <rmh@aybabtu.com>
47449 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47450 SmartFirmware version updates (as released by Sven Luther), and avoid
47451 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47452 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47455 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47457 From Hitoshi Ozeki:
47458 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47459 when merging two regions.
47461 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47463 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47464 * normal/completion.c (grub_normal_do_completion): Likewise.
47465 Reported by Hitoshi Ozeki.
47467 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47469 Do not use devices at boot in chainloading.
47471 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47472 (boot_part_addr): Likewise.
47473 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47474 with BOOT_DRIVE and BOOT_PART_ADDR.
47475 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47476 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47478 2007-08-29 Robert Millan <rmh@aybabtu.com>
47480 Patch from Simon Peter <dn.tlp@gmx.net>:
47481 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47482 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47483 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47484 util/i386/pc/grub-setup.c_DEPENDENCIES.
47485 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47486 util/grub-probe.c_DEPENDENCIES.
47487 * conf/powerpc-ieee1275.rmk: Likewise.
47489 2007-08-28 Robert Millan <rmh@aybabtu.com>
47491 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47492 to tell grub-mkdevicemap how to name devices.
47493 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47496 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47497 util/i386/get_disk_name.c.
47498 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47499 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47500 util/ieee1275/get_disk_name.c.
47502 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47504 * DISTLIST: Add util/i386/get_disk_name.c and
47505 util/ieee1275/get_disk_name.c.
47507 * util/grub-mkdevicemap.c: Replace device naming logic with
47508 grub_util_get_disk_name() calls.
47510 2007-08-20 Robert Millan <rmh@aybabtu.com>
47512 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47513 (so that it works for both plural and singular quantities).
47515 2007-08-05 Robert Millan <rmh@aybabtu.com>
47517 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47518 so that [xz] isn't taken into account when determining order.
47520 2007-08-02 Marco Gerards <marco@gnu.org>
47522 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47523 `include/multiboot2.h', `include/grub/elfload.h',
47524 `include/multiboot.h', `include/grub/multiboot.h',
47525 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47526 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47527 `kern/elf.c', `loader/multiboot_loader.c',
47528 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47529 `loader/i386/pc/multiboot2.c',
47530 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47531 `util/i386/pc/grub-mkrescue.in'. Remove
47532 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47533 `include/grub/i386/pc/util/biosdisk.h' and
47534 `include/grub/powerpc/ieee1275/multiboot.h'.
47536 2007-08-02 Bean <bean123ch@gmail.com>
47538 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47539 (ntfs_mod_SOURCES): New variable.
47540 (ntfs_mod_CFLAGS): Likewise.
47541 (ntfs_mod_LDFLAGS): Likewise.
47543 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47544 (grub_probe_SOURCES): Likewise.
47545 (grub_emu_SOURCES): Likewise.
47547 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47548 (grub_emu_SOURCES): Likewise.
47550 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47551 (grub_emu_SOURCES): Likewise.
47553 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47555 * fs/ntfs.c: New file.
47557 2007-08-02 Bean <bean123ch@gmail.com>
47559 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47561 * file.h (grub_file): Likewise.
47563 * fshelp.h (grub_fshelp_read_file): Likewise.
47565 * util/i386/pc/grub-setup.c (setup): Likewise.
47566 (save_first_sector): Likewise.
47567 (save_blocklists): Likewise.
47569 * fs/affs.c (grub_affs_read_file): Likewise.
47571 * fs/ext2.c (grub_ext2_read_file): Likewise.
47573 * fs/fat.c (grub_fat_read_data): Likewise.
47575 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47577 * fs/hfs.c (grub_hfs_read_file): Likewise.
47579 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47581 * fs/jfs.c (grub_jfs_read_file): Likewise.
47583 * fs/minix.c (grub_minix_read_file): Likewise.
47585 * fs/sfs.c (grub_sfs_read_file): Likewise.
47587 * fs/ufs.c (grub_ufs_read_file): Likewise.
47589 * fs/xfs.c (grub_xfs_read_file): Likewise.
47591 * command/blocklist.c (read_blocklist): Likewise.
47592 (print_blocklist): Likewise.
47594 2007-08-02 Marco Gerards <marco@gnu.org>
47596 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47599 * disk/host.c: New file.
47601 * util/hostfs.c: Likewise.
47603 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47604 return `GRUB_ERR_BAD_FS'.
47605 * fs/sfs.c (grub_sfs_mount): Likewise.
47606 * fs/xfs.c (grub_xfs_mount): Likewise.
47608 * include/grub/disk.h (enum grub_disk_dev_id): Add
47609 `GRUB_DISK_DEVICE_HOST_ID'.
47611 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47613 2007-07-24 Jerone Young <jerone@gmail.com>
47615 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47616 modules for compilation.
47617 * conf/powerpc-ieee1275.rmk: Likewise.
47619 * include/multiboot.h: Move multiboot definitions to one file. Rename
47620 many definitions to not get grub specific.
47621 * include/multiboot2.h: Create header with multiboot 2 definitions.
47622 * include/grub/multiboot.h: Header for grub specific function
47623 prototypes and definitions.
47624 * include/grub/multiboot2.h: Likewise.
47625 * include/grub/multiboot_loader.h: Likewise.
47626 * include/grub/i386/pc/multiboot.h: Removed.
47627 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47629 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47630 and 2 to allow for one multiboot and module commands.
47631 * loader/multiboot2.c: Add multiboot2 functionality.
47632 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47633 and definition names.
47634 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47636 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47637 ieee1275 specific multiboot2 code.
47639 * kern/i386/pc/startup.S: Change headers and definition names for
47640 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47642 2007-07-22 Robert Millan <rmh@aybabtu.com>
47644 * geninitheader.sh: Process file specified in first parameter rather
47645 than hardcoding grub_modules_init.lst.
47646 * geninit.sh: Likewise. Also, construct header name dynamically rather
47647 than hardcoding grub_modules_init.h.
47649 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47650 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47651 grub_probe_init.[ch] and grub_setup_init.[ch].
47653 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47654 grub_modules_init.h with grub_emu_init.h.
47655 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47656 grub_probe_init.[ch] files.
47657 * conf/i386-efi.rmk: Likewise.
47658 * conf/i386-pc.rmk: Likewise.
47659 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47660 grub_setup_init.[ch] files.
47662 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47663 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47664 to initialize modules rather than a list of hardcoded functions.
47665 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47666 grub_init_all() to initialize modules rather than a list of hardcoded
47669 2007-07-22 Robert Millan <rmh@aybabtu.com>
47671 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47672 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47674 2007-07-22 Robert Millan <rmh@aybabtu.com>
47676 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47677 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47678 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47679 flag when running on SmartFirmware.
47680 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47681 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47684 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47685 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47686 rather than decreasing it.
47688 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47689 there's not enough space to do it, fail in the same way as when it
47690 can't be done because there are no partitions.
47692 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47693 when nvsetenv failed.
47695 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47697 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47698 because this rule is automatically generated.
47699 (grub-mkrescue): Removed for the same reason as above.
47701 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47703 Migrate to GNU General Public License Version 3.
47705 * COPYING: Replaced with the plain text version of GPLv3.
47707 * config.guess: Updated from gnulib.
47708 * config.sub: Likewise.
47710 * geninit.sh: Output a GPLv3 copyright notice.
47711 * geninitheader.sh: Likewise.
47712 * genmodsrc.sh: Likewise.
47713 * gensymlist.sh.in: Likewise.
47715 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47716 * boot/i386/pc/diskboot.S: Likewise.
47717 * boot/i386/pc/pxeboot.S: Likewise.
47718 * commands/blocklist.c: Likewise.
47719 * commands/boot.c: Likewise.
47720 * commands/cat.c: Likewise.
47721 * commands/cmp.c: Likewise.
47722 * commands/configfile.c: Likewise.
47723 * commands/echo.c: Likewise.
47724 * commands/help.c: Likewise.
47725 * commands/ls.c: Likewise.
47726 * commands/search.c: Likewise.
47727 * commands/terminal.c: Likewise.
47728 * commands/test.c: Likewise.
47729 * commands/videotest.c: Likewise.
47730 * commands/i386/cpuid.c: Likewise.
47731 * commands/i386/pc/halt.c: Likewise.
47732 * commands/i386/pc/play.c: Likewise.
47733 * commands/i386/pc/reboot.c: Likewise.
47734 * commands/i386/pc/vbeinfo.c: Likewise.
47735 * commands/i386/pc/vbetest.c: Likewise.
47736 * commands/ieee1275/halt.c: Likewise.
47737 * commands/ieee1275/reboot.c: Likewise.
47738 * commands/ieee1275/suspend.c: Likewise.
47739 * disk/loopback.c: Likewise.
47740 * disk/lvm.c: Likewise.
47741 * disk/raid.c: Likewise.
47742 * disk/efi/efidisk.c: Likewise.
47743 * disk/i386/pc/biosdisk.c: Likewise.
47744 * disk/ieee1275/ofdisk.c: Likewise.
47745 * font/manager.c: Likewise.
47746 * fs/affs.c: Likewise.
47747 * fs/ext2.c: Likewise.
47748 * fs/fat.c: Likewise.
47749 * fs/fshelp.c: Likewise.
47750 * fs/hfs.c: Likewise.
47751 * fs/hfsplus.c: Likewise.
47752 * fs/iso9660.c: Likewise.
47753 * fs/jfs.c: Likewise.
47754 * fs/minix.c: Likewise.
47755 * fs/sfs.c: Likewise.
47756 * fs/ufs.c: Likewise.
47757 * fs/xfs.c: Likewise.
47758 * hello/hello.c: Likewise.
47759 * include/grub/acorn_filecore.h: Likewise.
47760 * include/grub/arg.h: Likewise.
47761 * include/grub/bitmap.h: Likewise.
47762 * include/grub/boot.h: Likewise.
47763 * include/grub/cache.h: Likewise.
47764 * include/grub/device.h: Likewise.
47765 * include/grub/disk.h: Likewise.
47766 * include/grub/dl.h: Likewise.
47767 * include/grub/elfload.h: Likewise.
47768 * include/grub/env.h: Likewise.
47769 * include/grub/err.h: Likewise.
47770 * include/grub/file.h: Likewise.
47771 * include/grub/font.h: Likewise.
47772 * include/grub/fs.h: Likewise.
47773 * include/grub/fshelp.h: Likewise.
47774 * include/grub/gzio.h: Likewise.
47775 * include/grub/hfs.h: Likewise.
47776 * include/grub/kernel.h: Likewise.
47777 * include/grub/loader.h: Likewise.
47778 * include/grub/lvm.h: Likewise.
47779 * include/grub/misc.h: Likewise.
47780 * include/grub/mm.h: Likewise.
47781 * include/grub/net.h: Likewise.
47782 * include/grub/normal.h: Likewise.
47783 * include/grub/parser.h: Likewise.
47784 * include/grub/partition.h: Likewise.
47785 * include/grub/pc_partition.h: Likewise.
47786 * include/grub/raid.h: Likewise.
47787 * include/grub/rescue.h: Likewise.
47788 * include/grub/script.h: Likewise.
47789 * include/grub/setjmp.h: Likewise.
47790 * include/grub/symbol.h: Likewise.
47791 * include/grub/term.h: Likewise.
47792 * include/grub/terminfo.h: Likewise.
47793 * include/grub/tparm.h: Likewise.
47794 * include/grub/types.h: Likewise.
47795 * include/grub/video.h: Likewise.
47796 * include/grub/efi/api.h: Likewise.
47797 * include/grub/efi/chainloader.h: Likewise.
47798 * include/grub/efi/console.h: Likewise.
47799 * include/grub/efi/console_control.h: Likewise.
47800 * include/grub/efi/disk.h: Likewise.
47801 * include/grub/efi/efi.h: Likewise.
47802 * include/grub/efi/pe32.h: Likewise.
47803 * include/grub/efi/time.h: Likewise.
47804 * include/grub/i386/linux.h: Likewise.
47805 * include/grub/i386/setjmp.h: Likewise.
47806 * include/grub/i386/types.h: Likewise.
47807 * include/grub/i386/efi/kernel.h: Likewise.
47808 * include/grub/i386/efi/loader.h: Likewise.
47809 * include/grub/i386/efi/time.h: Likewise.
47810 * include/grub/i386/pc/biosdisk.h: Likewise.
47811 * include/grub/i386/pc/boot.h: Likewise.
47812 * include/grub/i386/pc/chainloader.h: Likewise.
47813 * include/grub/i386/pc/console.h: Likewise.
47814 * include/grub/i386/pc/init.h: Likewise.
47815 * include/grub/i386/pc/kernel.h: Likewise.
47816 * include/grub/i386/pc/loader.h: Likewise.
47817 * include/grub/i386/pc/memory.h: Likewise.
47818 * include/grub/i386/pc/multiboot.h: Likewise.
47819 * include/grub/i386/pc/serial.h: Likewise.
47820 * include/grub/i386/pc/time.h: Likewise.
47821 * include/grub/i386/pc/vbe.h: Likewise.
47822 * include/grub/i386/pc/vbeblit.h: Likewise.
47823 * include/grub/i386/pc/vbefill.h: Likewise.
47824 * include/grub/i386/pc/vbeutil.h: Likewise.
47825 * include/grub/i386/pc/vga.h: Likewise.
47826 * include/grub/ieee1275/ieee1275.h: Likewise.
47827 * include/grub/ieee1275/ofdisk.h: Likewise.
47828 * include/grub/powerpc/libgcc.h: Likewise.
47829 * include/grub/powerpc/setjmp.h: Likewise.
47830 * include/grub/powerpc/types.h: Likewise.
47831 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47832 * include/grub/powerpc/ieee1275/console.h: Likewise.
47833 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47834 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47835 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47836 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47837 * include/grub/powerpc/ieee1275/time.h: Likewise.
47838 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47839 * include/grub/sparc64/libgcc.h: Likewise.
47840 * include/grub/sparc64/setjmp.h: Likewise.
47841 * include/grub/sparc64/types.h: Likewise.
47842 * include/grub/sparc64/ieee1275/console.h: Likewise.
47843 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47844 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47845 * include/grub/sparc64/ieee1275/time.h: Likewise.
47846 * include/grub/util/biosdisk.h: Likewise.
47847 * include/grub/util/getroot.h: Likewise.
47848 * include/grub/util/lvm.h: Likewise.
47849 * include/grub/util/misc.h: Likewise.
47850 * include/grub/util/raid.h: Likewise.
47851 * include/grub/util/resolve.h: Likewise.
47852 * io/gzio.c: Likewise.
47853 * kern/device.c: Likewise.
47854 * kern/disk.c: Likewise.
47855 * kern/dl.c: Likewise.
47856 * kern/elf.c: Likewise.
47857 * kern/env.c: Likewise.
47858 * kern/err.c: Likewise.
47859 * kern/file.c: Likewise.
47860 * kern/fs.c: Likewise.
47861 * kern/loader.c: Likewise.
47862 * kern/main.c: Likewise.
47863 * kern/misc.c: Likewise.
47864 * kern/mm.c: Likewise.
47865 * kern/parser.c: Likewise.
47866 * kern/partition.c: Likewise.
47867 * kern/rescue.c: Likewise.
47868 * kern/term.c: Likewise.
47869 * kern/efi/efi.c: Likewise.
47870 * kern/efi/init.c: Likewise.
47871 * kern/efi/mm.c: Likewise.
47872 * kern/i386/dl.c: Likewise.
47873 * kern/i386/efi/init.c: Likewise.
47874 * kern/i386/efi/startup.S: Likewise.
47875 * kern/i386/pc/init.c: Likewise.
47876 * kern/i386/pc/lzo1x.S: Likewise.
47877 * kern/i386/pc/startup.S: Likewise.
47878 * kern/ieee1275/ieee1275.c: Likewise.
47879 * kern/powerpc/cache.S: Likewise.
47880 * kern/powerpc/dl.c: Likewise.
47881 * kern/powerpc/ieee1275/cmain.c: Likewise.
47882 * kern/powerpc/ieee1275/crt0.S: Likewise.
47883 * kern/powerpc/ieee1275/init.c: Likewise.
47884 * kern/powerpc/ieee1275/openfw.c: Likewise.
47885 * kern/sparc64/cache.S: Likewise.
47886 * kern/sparc64/dl.c: Likewise.
47887 * kern/sparc64/ieee1275/init.c: Likewise.
47888 * kern/sparc64/ieee1275/openfw.c: Likewise.
47889 * loader/efi/chainloader.c: Likewise.
47890 * loader/efi/chainloader_normal.c: Likewise.
47891 * loader/i386/efi/linux.c: Likewise.
47892 * loader/i386/efi/linux_normal.c: Likewise.
47893 * loader/i386/pc/chainloader.c: Likewise.
47894 * loader/i386/pc/chainloader_normal.c: Likewise.
47895 * loader/i386/pc/linux.c: Likewise.
47896 * loader/i386/pc/linux_normal.c: Likewise.
47897 * loader/i386/pc/multiboot.c: Likewise.
47898 * loader/i386/pc/multiboot_normal.c: Likewise.
47899 * loader/powerpc/ieee1275/linux.c: Likewise.
47900 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47901 * normal/arg.c: Likewise.
47902 * normal/cmdline.c: Likewise.
47903 * normal/command.c: Likewise.
47904 * normal/completion.c: Likewise.
47905 * normal/execute.c: Likewise.
47906 * normal/function.c: Likewise.
47907 * normal/lexer.c: Likewise.
47908 * normal/main.c: Likewise.
47909 * normal/menu.c: Likewise.
47910 * normal/menu_entry.c: Likewise.
47911 * normal/misc.c: Likewise.
47912 * normal/parser.y: Likewise.
47913 * normal/script.c: Likewise.
47914 * normal/i386/setjmp.S: Likewise.
47915 * normal/powerpc/setjmp.S: Likewise.
47916 * normal/sparc64/setjmp.S: Likewise.
47917 * partmap/acorn.c: Likewise.
47918 * partmap/amiga.c: Likewise.
47919 * partmap/apple.c: Likewise.
47920 * partmap/gpt.c: Likewise.
47921 * partmap/pc.c: Likewise.
47922 * partmap/sun.c: Likewise.
47923 * term/gfxterm.c: Likewise.
47924 * term/terminfo.c: Likewise.
47925 * term/efi/console.c: Likewise.
47926 * term/i386/pc/console.c: Likewise.
47927 * term/i386/pc/serial.c: Likewise.
47928 * term/i386/pc/vesafb.c: Likewise.
47929 * term/i386/pc/vga.c: Likewise.
47930 * term/ieee1275/ofconsole.c: Likewise.
47931 * util/biosdisk.c: Likewise.
47932 * util/console.c: Likewise.
47933 * util/genmoddep.c: Likewise.
47934 * util/getroot.c: Likewise.
47935 * util/grub-emu.c: Likewise.
47936 * util/grub-mkdevicemap.c: Likewise.
47937 * util/grub-probe.c: Likewise.
47938 * util/lvm.c: Likewise.
47939 * util/misc.c: Likewise.
47940 * util/raid.c: Likewise.
47941 * util/resolve.c: Likewise.
47942 * util/update-grub.in: Likewise.
47943 * util/update-grub_lib.in: Likewise.
47944 * util/grub.d/00_header.in: Likewise.
47945 * util/grub.d/10_hurd.in: Likewise.
47946 * util/grub.d/10_linux.in: Likewise.
47947 * util/i386/efi/grub-install.in: Likewise.
47948 * util/i386/efi/grub-mkimage.c: Likewise.
47949 * util/i386/pc/grub-install.in: Likewise.
47950 * util/i386/pc/grub-mkimage.c: Likewise.
47951 * util/i386/pc/grub-mkrescue.in: Likewise.
47952 * util/i386/pc/grub-setup.c: Likewise.
47953 * util/i386/pc/misc.c: Likewise.
47954 * util/powerpc/ieee1275/grub-install.in: Likewise.
47955 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47956 * util/powerpc/ieee1275/misc.c: Likewise.
47957 * video/bitmap.c: Likewise.
47958 * video/video.c: Likewise.
47959 * video/i386/pc/vbe.c: Likewise.
47960 * video/i386/pc/vbeblit.c: Likewise.
47961 * video/i386/pc/vbefill.c: Likewise.
47962 * video/i386/pc/vbeutil.c: Likewise.
47963 * video/readers/tga.c: Likewise.
47965 2007-07-02 Robert Millan <rmh@aybabtu.com>
47967 * conf/i386-efi.rmk: Replace obsolete reference to
47968 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47969 with util/getroot.c.
47970 * conf/powerpc-ieee1275.rmk: Likewise.
47971 * conf/sparc64-ieee1275.rmk: Likewise.
47973 * util/grub-emu.c (main): Fix unchecked pointer handling.
47975 2007-07-02 Robert Millan <rmh@aybabtu.com>
47977 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47978 invocation to fail, in order to support partition-less media.
47980 * util/i386/pc/grub-install.in: Likewise.
47982 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47983 which fs or partmap modules are needed (akin to its sister scripts).
47985 Also use grub-probe to get rid of unportable /proc/mounts check.
47987 Print the same informational message that the other scripts do, before
47990 2007-06-23 Robert Millan <rmh@aybabtu.com>
47992 * util/update-grub_lib.in (font_path): New function. Determine whether
47993 a font file can be found and, if so, echo the GRUB path to it.
47995 * util/update-grub.in: Handle multiple terminals depending on user
47996 input, platform availability and font file presence. Propagate
47997 variables of our findings to /etc/grub.d/ children.
47999 * util/grub.d/00_header.in: Handle multiple terminals, based on
48000 environment setup by update-grub.
48002 2007-06-23 Robert Millan <rmh@aybabtu.com>
48004 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48006 2007-06-21 Robert Millan <rmh@aybabtu.com>
48008 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48009 indicate end of data section in kernel image.
48010 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48011 GRUB_KERNEL_MACHINE_DATA_END.
48013 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48015 * kern/i386/efi/startup.S: Likewise.
48017 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48018 during image generation. Implement --prefix option to override this
48020 * util/i386/efi/grub-mkimage.c: Likewise.
48022 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48023 code to make path relative to its root into a separate function.
48025 * util/i386/pc/grub-install.in: Use newly provided
48026 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48027 pass the result to grub-install --prefix.
48029 2007-06-13 Robert Millan <rmh@aybabtu.com>
48031 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48032 DEFAULT_DEVICE_MAP.
48033 * util/grub-emu.c: Use above definitions from misc.h instead of
48035 * util/grub-mkdevicemap.c: Likewise.
48036 * util/i386/pc/grub-setup.c: Likewise.
48037 * util/grub-probe.c: Likewise.
48038 (probe): Abort with grub_util_error() when either
48039 grub_guess_root_device or grub_util_get_grub_dev fails.
48041 2007-06-12 Robert Millan <rmh@aybabtu.com>
48043 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48044 "pager" assignment.
48045 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48047 * util/grub-probe.c (probe): Likewise for "drive_name".
48049 2007-06-11 Robert Millan <rmh@aybabtu.com>
48051 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48052 not just the cdrom one.
48054 2007-06-11 Robert Millan <rmh@aybabtu.com>
48056 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48057 Add --pkglibdir=DIR option to override pkglibdir.
48058 Mention --image-type=TYPE in help output.
48059 Fix --grub-mkimage (it was a no-op).
48060 Abort gracefully when no parameter is given.
48062 2007-06-11 Robert Millan <rmh@aybabtu.com>
48064 * util/i386/pc/grub-mkrescue.in: New file.
48065 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48066 * Makefile.in: Handle bin_SCRIPTS.
48068 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48070 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48071 list of video modes.
48073 2007-06-06 Robert Millan <rmh@aybabtu.com>
48075 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48076 file doesn't exist, or if it is in a filesystem grub can't read.
48078 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48079 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48080 header comment to fit in 80 columns when the variables are resolved.
48082 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48083 could be identified by update-grub. Remove redundant check for
48084 unifont.pff existence (since convert_system_path_to_grub_path now
48087 2007-06-04 Robert Millan <rmh@aybabtu.com>
48089 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48091 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48093 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48095 2007-06-04 Robert Millan <rmh@aybabtu.com>
48097 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48099 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48100 grub_apple_partition_map_fini.
48103 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48104 to access >2 TiB disks).
48106 Print disk->total_sectors with %llu instead of %lu, since this
48107 variable is always 64-bit (prevents wrong disk size from being displayed
48108 on either >2 TiB disk or big-endian CPU).
48110 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48111 into a generic case that supports all (sane) partition maps.
48113 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48116 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48117 and grub_apple_partition_map_fini() after that.
48119 2007-06-01 Robert Millan <rmh@aybabtu.com>
48121 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48123 * util/grub.d/00_header.in: Only enable gfxterm when
48124 convert_system_path_to_grub_path() succeeds.
48126 2007-05-20 Robert Millan <rmh@aybabtu.com>
48128 * util/update-grub_lib.in: New file.
48129 * DISTLIST: Add update-grub_lib.in.
48130 * conf/common.rmk: Generate update-grub_lib and install it in
48132 * Makefile.in: Add install routine for $(lib_DATA).
48134 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48135 function provided by update-grub_lib to support arbitrary paths of
48137 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48138 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48140 2007-05-19 Robert Millan <rmh@aybabtu.com>
48142 * commands/i386/cpuid.c: New module.
48143 * DISTLIST: Add it.
48144 * conf/i386-efi.rmk: Enable cpuid.mod.
48145 * conf/i386-pc.rmk: Likewise.
48147 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48149 * kern/disk.c (grub_disk_read): Check return value of
48152 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48154 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48156 * disk/raid.c (grub_raid_open): Likewise.
48158 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48160 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48161 stack instead of on the heap.
48163 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48164 before doing a read on it.
48166 * configure.ac: Only use -fno-stack-protector for the target
48169 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48171 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48172 __attribute_ ((unused)) to mode_type argument.
48174 * util/getroot.c (grub_guess_root_device): Fix #endif.
48176 * kern/misc.c (memcmp): Fix prototype.
48178 * include/grub/partition.h [GRUB_UTIL]
48179 (grub_gpt_partition_map_init): Add prototype.
48180 (grub_gpt_partition_map_fini): Likewise.
48182 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48183 at the right place.
48185 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48186 (grub_fat_read_data): Likewise.
48187 (grub_fat_find_dir): Likewise.
48189 * font/manager.c (find_glyph): Make table a const.
48190 (grub_font_get_glyph): Remove bitmap from if statement.
48192 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48194 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48195 code, first search for device in /dev/mapper, then in /dev.
48196 (grub_util_get_grub_dev): New function.
48197 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48199 * util/grub-probe.c (probe): Remove check for RAID, call
48200 grub_util_get_grub_dev() instead of
48201 grub_util_biosdisk_get_grub_dev().
48202 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48203 grub_util_biosdisk_get_grub_dev().
48204 * util/i386/pc/grub-setup.c (main): Likewise.
48206 2007-05-16 Robert Millan <rmh@aybabtu.com>
48208 * DISTLIST: Update for the latest changes.
48209 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48210 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48211 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48212 grub/util/biosdisk.h.
48213 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48214 grub/util/biosdisk.h.
48216 2007-05-16 Robert Millan <rmh@aybabtu.com>
48218 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48220 2007-05-16 Robert Millan <rmh@aybabtu.com>
48222 * util/i386/efi/grub-install.in: New.
48223 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48224 newly added grub-install.
48225 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48227 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48228 grub/util/biosdisk.h.
48229 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48230 grub/util/biosdisk.h.
48232 2007-05-16 Robert Millan <rmh@aybabtu.com>
48234 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48235 * include/grub/util/biosdisk.h: ... here.
48236 * util/i386/pc/biosdisk.c: Moved to ...
48237 * util/biosdisk.c: ... here.
48238 * util/i386/pc/getroot.c: Moved to ...
48239 * util/getroot.c: ... here.
48240 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48241 * util/grub-mkdevicemap.c: ... here.
48242 * util/i386/pc/grub-probe.c: Moved to ...
48243 * util/grub-probe.c: ... here.
48245 2007-05-15 Robert Millan <rmh@aybabtu.com>
48247 * util/update-grub.in: Remove duplicated line in grub.cfg header
48250 2007-05-13 Robert Millan <rmh@aybabtu.com>
48252 * util/update-grub.in: Fix a few assumptions about the devices holding
48253 /, /boot and /boot/grub being the same.
48254 * util/grub.d/00_header.in: Likewise.
48255 * util/grub.d/10_hurd.in: Likewise.
48256 * util/grub.d/10_linux.in: Likewise.
48258 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48259 patterns. Use that to define the `.old' suffix as older than `'.
48261 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48263 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48264 the grub.cfg header message.
48266 2007-05-11 Robert Millan <rmh@aybabtu.com>
48268 * util/update-grub.in: Create device.map if it doesn't already exist,
48269 before attempting to run grub-probe.
48270 Check for grub-probe and grub-mkdevicemap with the same code
48271 grub-install is using.
48274 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48276 * Makefile.in: Add the datarootdir autoconf variable.
48278 2007-05-09 Robert Millan <rmh@aybabtu.com>
48280 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48281 fail gracefully if dev->disk->partition == NULL.
48283 2007-05-07 Robert Millan <rmh@aybabtu.com>
48285 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48286 determine partition map module.
48287 * util/i386/pc/grub-install.in: Use this feature to decide which
48288 partition module to load, instead of hardcoding pc and gpt.
48290 2007-05-07 Robert Millan <rmh@aybabtu.com>
48292 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48293 source directory differs from build directory.
48295 2007-05-05 Robert Millan <rmh@aybabtu.com>
48297 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48300 2007-05-05 Robert Millan <rmh@aybabtu.com>
48302 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48304 2007-05-05 Robert Millan <rmh@aybabtu.com>
48306 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48307 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48309 2007-05-05 Robert Millan <rmh@aybabtu.com>
48311 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48312 (grub_probe_SOURCES): Likewise.
48313 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48314 GPT and initialize dos_part and bsd_part accordingly.
48315 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48317 (main): Activate gpt module for use during partition identification,
48318 and deactivate it afterwards.
48319 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48320 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48321 partition identification, and deactivate it afterwards.
48323 2007-05-05 Robert Millan <rmh@aybabtu.com>
48325 * term/i386/pc/console.c (grub_console_fini): Call
48326 grub_term_set_current() before grub_term_unregister().
48328 2007-05-04 Robert Millan <rmh@aybabtu.com>
48330 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48331 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48332 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48333 and update-grub_DATA.
48334 * conf/common.rmk: Build and install update-grub components.
48335 * conf/common.mk: Regenerate.
48336 * util/update-grub.in: New. Core of update-grub.
48337 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48338 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48339 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48340 * util/grub.d/README: New. Document grub.d directory layout.
48342 2007-05-01 Robert Millan <rmh@aybabtu.com>
48344 * util/grub-emu.c: Move initialization functions
48345 grub_util_biosdisk_init() and grub_init_all() before
48346 grub_util_biosdisk_get_grub_dev(), which relies on them.
48348 2007-04-19 Robert Millan <rmh@aybabtu.com>
48350 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48353 2007-04-18 Jerone Young <jerone@gmail.com>
48355 * kernel/elf.c: Add missing parenthesis for conditional statement
48358 2007-04-10 Jerone Young <jerone@gmail.com>
48360 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48361 continue on and look for device node with real device name.
48363 2007-04-10 Jerone Young <jerone@gmail.com>
48365 * configure.ac: Add argument for autoconf to use transformation
48367 * Makefile.in: Add autoconf package transformation code.
48368 * util/i386/pc/grub-install.in: Likewise.
48369 * util/powerpc/ieee1275/grub-install.in: Likewise.
48371 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48373 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48374 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48375 (EXT2_REVISION): Likewise.
48376 (EXT2_INODE_SIZE): Likewise.
48377 (struct grub_ext2_block_group): Added a missing member
48379 (grub_ext2_read_inode): Divide by the inode size in a superblock
48380 instead of 128 to obtain INODES_PER_BLOCK.
48381 Use the macro EXT2_INODE_SIZE instead of directly using
48382 SBLOCK->INODE_SIZE.
48384 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48386 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48387 superblock instead of the structure size to compute an
48388 offset. This fixes the problem that GRUB could not read a
48389 filesystem when inode size is different from 128-byte.
48391 2007-03-05 Marco Gerards <marco@gnu.org>
48393 * normal/main.c (read_config_file): When "menu" is not set, create
48394 an initial context.
48396 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48398 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48399 (HEAP_LIMIT): New macro.
48400 (grub_claim_heap): Claim memory up to `heaplimit'.
48402 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48404 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48405 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48406 (_start): Likewise.
48407 (grub_arch_modules_addr): Return address after `_end'.
48408 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48409 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48410 (add_segments): Calculate `_end' from phdr size and location.
48411 (ALIGN_UP): Moved to ...
48412 * include/grub/misc.h: here.
48413 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48415 (GRUB_IEEE1275_MODULE_BASE): Removed.
48417 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48419 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48422 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48424 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48426 (grub_elf64_load_hook_t): Likewise.
48427 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48430 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48432 * kern/mm.c: Update copyright.
48433 (grub_mm_debug): Correct syntax error.
48434 (grub_mm_dump_free): New function.
48435 (grub_debug_free): Call `grub_free'.
48436 * include/grub/mm.h: Update copyright.
48437 (grub_mm_dump_free): Add declaration.
48439 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48441 * include/grub/ieee1275/ieee1275.h: Update copyright.
48442 * kern/powerpc/ieee1275/init.c: Likewise.
48443 * kern/powerpc/ieee1275/openfw.c: Likewise.
48445 * loader/powerpc/ieee1275/linux.c: Likewise.
48446 * include/grub/elfload.h: Likewise.
48447 * kern/elf.c: Likewise.
48448 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48450 (grub_elf64_load): Likewise.
48451 (grub_elf32_load_segment): Move to a nested function.
48452 (grub_elf64_load_segment): Likewise.
48454 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48456 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48458 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48459 (grub_heap_len): Likewise.
48460 (HEAP_SIZE): New macro.
48461 (grub_claim_heap): New function.
48462 (grub_machine_init): Don't claim heap directly. Call
48464 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48465 (grub_available_iterate): New function.
48467 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48469 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48470 * configure.ac: Use it for testing the HOST and TARGET compilers.
48472 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48474 * Makefile.in (enable_grub_emu): New variable.
48475 * configure.ac (--enable-grub-emu): New option.
48476 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48477 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48478 * conf/i386-pc.rmk: Likewise.
48479 * conf/powerpc-ieee1275.rmk: Likewise.
48480 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48482 2006-12-12 Marco Gerards <marco@gnu.org>
48484 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48486 * kern/env.c (grub_env_unset): Don't free the member `value' when
48487 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48490 * normal/main.c (current_menu): Removed.
48491 (free_menu): Unset the `menu' environment variable.
48492 (grub_normal_menu_addentry): Make use of the environment variable
48493 `menu', instead of using the global `current_menu'. Allocate
48494 memory for the sourcecode of this entry.
48495 (read_config_file): New argument `nested', changed all callers.
48496 Only in the case of a new context, initialize a new menu. Set the
48497 `menu' environment variable.
48498 (grub_normal_execute): Don't set and unset the environment
48499 variable `menu' here anymore. Only free the menu when leaving the
48502 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48505 2006-12-11 Marco Gerards <marco@gnu.org>
48507 * normal/menu_entry.c (run): Fix off by one bug so the last line
48508 is executed. Move the loader check to outside the loop.
48510 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48512 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48514 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48516 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48517 the number of sectors. Reported by Andrey Shuvikov
48518 <mr_hyro@yahoo.com>.
48520 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48522 * kern/disk.c (grub_disk_read): When there is a read error, always
48523 try to read only the necessary data.
48525 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48527 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48529 [GRUB_UTIL] (grub_raid_fini): Likewise.
48530 [GRUB_UTIL] (grub_lvm_init): Likewise.
48531 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48532 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48533 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48534 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48535 and grub_raid_fini().
48537 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48539 * include/grub/types.h (__unused): Rename to UNUSED.
48540 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48541 (grub_elf64_size): Likewise.
48543 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48545 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48546 grub_error_push and grub_error_pop in the error-handling path.
48547 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48550 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48552 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48553 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48554 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48555 (kernel_elf_SOURCES): Likewise.
48556 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48557 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48558 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48559 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48560 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48561 (elf_mod_SOURCES): New variable.
48562 (elf_mod_CFLAGS): Likewise.
48563 (elf_mod_LDFLAGS): Likewise.
48564 * include/grub/types.h (__unused): New macro.
48565 * include/grub/elfload.h: New file.
48566 * kern/elf.c: Likewise.
48567 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48568 (ELF32_LOADMASK): New macro.
48569 (ELF64_LOADMASK): Likewise.
48570 (vmlinux): Removed.
48571 (grub_linux_load32): New function.
48572 (grub_linux_load64): Likewise.
48573 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48574 Use grub_elf_t instead of grub_file_t.
48576 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48578 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48579 `catch_result' to struct set_color_args.
48581 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48583 * normal/menu.c: Include grub/script.h.
48584 * normal/menu_entry.c: Likewise.
48585 * include/grub/normal.h: Do not include grub/script.h.
48587 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48589 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48591 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48593 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48595 (grub_disk_close): Print debug messages when closing a disk.
48596 (grub_disk_read): Print debug messages when disk read fails.
48597 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48599 * kern/partition.c: Include misc.h.
48600 (grub_partition_iterate): Print debug messages when detecting
48603 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48605 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48607 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48609 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48611 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48612 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48614 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48616 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48617 instead of sizeof(lv). Patch by Michael Guntsche.
48619 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48621 * disk/lvm.c: Rename VGS to VG_LIST.
48622 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48623 (grub_lvm_open): Likewise.
48624 Thanks to Michael Guntsche for finding this bug.
48626 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48628 * configure.ac (AC_INIT): Bumped to 1.95.
48630 2006-10-14 Robert Millan <rmh@aybabtu.com>
48632 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48633 with "/dev/.static/dev/md".
48635 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48637 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48638 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48639 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48640 DRIVE_NAME are always freed.
48642 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48643 DOS_PART, as a DOS partition is counted from one instead of zero
48644 now. Reported by Robert Millan.
48646 2006-10-14 Robert Millan <rmh@aybabtu.com>
48648 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48649 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48650 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48651 string returned by grub_guess_root_device.
48652 * util/i386/pc/grub-setup.c: Likewise.
48653 * util/i386/pc/grub-probefs.c: Likewise.
48655 * util/i386/pc/grub-probefs.c: Rename to ...
48656 * util/i386/pc/grub-probe.c: ... this.
48657 * DISTLIST: Remove grub-probefs, add grub-probe.
48658 * conf/i386-efi.rmk: Likewise.
48659 * conf/i386-pc.rmk: Likewise.
48660 * util/i386/pc/grub-install.in: Likewise.
48662 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48663 choose which information we want to print.
48665 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48667 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48668 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48669 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48670 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48671 video/readers/tga.c and video/i386/pc/vbeutil.c.
48673 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48675 Added support for RAID and LVM.
48677 * disk/lvm.c: New file.
48678 * disk/raid.c: Likewise.
48679 * include/grub/lvm.h: Likewise.
48680 * include/grub/raid.h: Likewise.
48681 * include/grub/util/lvm.h: Likewise.
48682 * include/grub/util/raid.h: Likewise.
48683 * util/lvm.c: Likewise.
48684 * util/raid.c: Likewise.
48686 * include/grub/disk.h (grub_disk_dev_id): Add
48687 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48688 (grub_disk_get_size): New prototype.
48689 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48690 returns a partition.
48691 (grub_disk_get_size): New function.
48693 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48694 verbatim if grub_install_dos_part is -2.
48696 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48699 * util/i386/pc/grub-setup.c (setup): New argument
48700 MUST_EMBED. Force embedding of GRUB when the argument is
48701 true. Close FILE before returning.
48702 (main): Add support for RAID and LVM.
48704 * conf/common.rmk: Add RAID and LVM modules.
48705 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48707 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48709 * kern/misc.c (grub_strstr): New function.
48710 * include/grub/misc.h (grub_strstr): New prototype.
48712 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48714 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48716 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48718 * kern/misc.c (grub_strtoull): Guess the base only if not
48721 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48723 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48726 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48728 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48730 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48731 Remove `flags' argument. All callers changed.
48732 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48733 (IEEE1275_IHANDLE_INVALID): New variable.
48734 (IEEE1275_CELL_INVALID): New variable.
48735 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48736 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48737 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48738 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48739 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48740 codes from Open Firmware. All callers updated.
48741 (grub_ieee1275_next_property): Directly return Open Firmware return
48743 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48744 Standardize error checking from `grub_ieee1275_get_property'.
48745 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48746 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48748 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48750 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48751 `instance_to_package_args' to `instance_to_path_args'.
48753 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48754 `grub_ieee1275_chosen'.
48756 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48757 `grub_ieee1275_interpret'.
48759 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48761 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48763 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48765 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48766 (__cmpdi): Likewise.
48768 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48769 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48772 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48774 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48775 to type `grub_ssize_t'.
48776 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48778 2006-09-22 Marco Gerards <marco@gnu.org>
48780 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48783 2006-09-22 Marco Gerards <marco@gnu.org>
48785 * commands/echo.c: New file.
48787 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48789 * conf/common.rmk (echo_mod_SOURCES): New variable.
48790 (echo_mod_CFLAGS): Likewise.
48791 (echo_mod_LDFLAGS): Likewise.
48793 2006-09-22 Marco Gerards <marco@gnu.org>
48795 * normal/main.c (get_line): Malloc memory instead of using
48796 preallocated memory. Removed the arguments `cmdline' and
48797 `max_len'. Updated all callers.
48799 2006-09-22 Marco Gerards <marco@gnu.org>
48801 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48802 (normal_mod_DEPENDENCIES): Likewise.
48804 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48805 (normal_mod_DEPENDENCIES): Likewise.
48807 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48809 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48811 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48813 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48814 (normal_mod_DEPENDENCIES): Likewise.
48815 * conf/i386-pc.mk: Regenerate.
48816 * conf/i386-efi.mk: Likewise
48817 * conf/common.mk: Likewise.
48818 * conf/powerpc-ieee1275.mk: Likewise.
48819 * conf/sparc64-ieee1275.mk: Likewise.
48821 2006-09-22 Robert Millan <rmh@aybabtu.com>
48823 Sync with i386 version.
48824 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48825 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48827 2006-09-21 Robert Millan <rmh@aybabtu.com>
48829 Import from GRUB Legacy (lib/device.c):
48830 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48831 (init_device_map) [__linux__]: Add support for I2O devices.
48833 2006-09-14 Marco Gerards <marco@gnu.org>
48835 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48838 2006-09-14 Robert Millan <rmh@aybabtu.com>
48840 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48843 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48845 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48846 before adding it to device.map.
48848 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48850 * genmk.rb: Let GCC generate dependencies the first time it
48851 compiles a file; using the -MD option.
48852 * conf/common.mk: Regenerate.
48853 * conf/i386-pc.mk: Likewise.
48854 * conf/i386-efi.mk: Likewise.
48855 * conf/powerpc-ieee1275.mk: Likewise.
48856 * conf/sparc64-ieee1275.mk: Likewise.
48858 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48860 Move the prototypes of grub_setjmp and grub_longjmp to
48861 cpu/setjmp.h, so that each architecture may specify different
48864 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48865 (grub_longjmp): Likewise.
48866 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48867 (grub_longjmp): Likewise.
48868 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48869 (grub_longjmp): Likewise.
48871 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48872 [!GRUB_UTIL] (grub_longjmp): Removed.
48874 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48876 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48877 "color!" method does not return any value.
48879 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48881 * include/grub/bitmap.h: New file.
48883 * include/grub/i386/pc/vbeutil.h: Likewise.
48885 * video/bitmap.c: Likewise.
48887 * video/readers/tga.c: Likewise.
48889 * video/i386/pc/vbeutil.c: Likewise.
48891 * commands/videotest.c: Code cleanup and updated to reflect to new
48894 * term/gfxterm.c: Likewise.
48896 * video/video.c: Likewise.
48898 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48899 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48900 (bitmap_mod_SOURCES): New entry.
48901 (bitmap_mod_CFLAGS): Likewise.
48902 (bitmap_mod_LDFLAGS): Likewise.
48903 (tga_mod_SOURCES): Likewise.
48904 (tga_mod_CFLAGS): Likewise.
48905 (tga_mod_LDFLAGS): Likewise.
48907 * include/grub/video.h (grub_video_blit_operators): New enum type.
48908 (grub_video_render_target): Changed as forward declaration and moved
48909 actual definition to be video driver specific.
48910 (grub_video_adapter.blit_bitmap): Added blitting operator.
48911 (grub_video_adapter.blit_render_target): Likewise.
48912 (grub_video_blit_bitmap): Likewise.
48913 (grub_video_blit_render_target): Likewise.
48915 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48916 driver specific render target definition.
48917 (grub_video_vbe_map_rgba): Added driver internal helper.
48918 (grub_video_vbe_unmap_color): Updated to use
48919 grub_video_i386_vbeblit_info.
48920 (grub_video_vbe_get_video_ptr): Likewise.
48922 * include/grub/i386/pc/vbeblit.h
48923 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48924 grub_video_i386_vbeblit_info.
48925 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48926 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48927 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48928 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48929 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48930 (grub_video_i386_vbeblit_index_index): Likewise.
48931 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48932 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48933 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48934 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48936 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48939 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48940 include/grub/i386/pc/vbeblit.h.
48942 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48943 Updated to use grub_video_i386_vbeblit_info.
48944 (grub_video_i386_vbefill_R8G8B8): Likewise.
48945 (grub_video_i386_vbefill_index): Likewise.
48946 (grub_video_i386_vbefill): Added generic filler.
48948 * video/i386/pc/vbefill.c: Updated to reflect changes on
48949 include/grub/i386/pc/vbefill.h.
48951 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48952 grub_video_i386_vbeblit_info.
48953 (grub_video_vbe_unmap_color): Likewise.
48954 (grub_video_vbe_blit_glyph): Likewise.
48955 (grub_video_vbe_scroll): Likewise.
48956 (grub_video_vbe_draw_pixel): Removed function.
48957 (grub_video_vbe_get_pixel): Likewise.
48958 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48959 updated code to use it.
48960 (common_blitter): Added common blitter for render target and bitmap.
48961 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48962 (grub_video_vbe_blit_render_target): Likewise.
48964 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48966 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48967 is in text mode if there is no console control protocol instance
48970 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48972 * include/grub/video.h: Code cleanup.
48974 * include/grub/i386/pc/vbe.h: Likewise.
48976 * video/i386/pc/vbe.c: Likewise.
48978 * video/i386/pc/vbeblit.c: Likewise.
48980 * video/i386/pc/vbefill.c: Likewise.
48982 * video/video.c: Likewise. Also added more comments.
48984 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48986 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48987 (struct grub_biosdisk_dap): Likewise.
48989 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48990 linkage settings for all functions.
48992 2006-07-12 Marco Gerards <marco@gnu.org>
48994 * configure.ac (--enable-mm-debug): Fix typo.
48996 * genkernsyms.sh.in: Use proper quoting for `CC'.
48998 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49000 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49001 (normal_mod_ASFLAGS): Remove "-m32".
49003 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49005 * util/misc.c: Include config.h.
49006 [!HAVE_MEMALIGN]: Do not include malloc.h.
49007 (grub_memalign): Use posix_memalign, if present. Then, use
49008 memalign, if present. Otherwise, emit an error.
49010 * util/grub-emu.c: Do not include malloc.h.
49012 * include/grub/util/misc.h: Include unistd.h. This is required for
49013 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49014 D. Eades III <hde@foobar-qux.org>.
49016 * configure.ac (AC_GNU_SOURCE): Added.
49017 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49020 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49022 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49023 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49025 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49027 * include/grub/types.h (grub_host_addr_t): Rename to
49028 grub_target_addr_t.
49029 (grub_host_off_t): Rename to grub_target_off_t.
49030 (grub_host_size_t): Rename to grub_target_size_t.
49031 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49032 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49034 * include/grub/kernel.h (struct grub_module_header): Change type
49035 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49036 (grub_module_info): Likewise.
49038 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49040 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49041 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49042 Velazquez <jesus.velazquez@gmail.com>.
49044 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49046 Count partitions from 1 instead of 0 in the string representation
49047 of partitions. Still use 0-based internally.
49049 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49050 (sun_partition_map_iterate): Use grub_partition_t instead of
49051 struct grub_partition *. Cast DESC->START_CYLINDER to
49052 grub_uint64_t after converting the endian.
49053 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49054 (sun_partition_map_get_name): Add 1 to P->INDEX.
49056 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49058 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49060 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49061 zero instead of one.
49062 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49063 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49065 * partmap/apple.c (apple_partition_map_iterate): Change the type
49066 of POS to unsigned.
49067 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49068 (apple_partition_map_get_name): Add 1 into P->INDEX.
49070 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49071 of POS to unsigned.
49072 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49073 calculate the offset of a partition.
49074 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49075 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49077 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49078 SECTOR to grub_disk_addr_t.
49079 (acorn_partition_map_iterate): Likewise.
49080 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49081 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49083 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49085 * kern/i386/pc/init.c (make_install_device): Add 1 into
49086 GRUB_INSTALL_DOS_PART.
49088 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49091 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49093 Clean up the code to support 64-bit addressing in disks and
49094 files. This change is not enough for filesystems yet.
49096 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49097 type of "start" to grub_uint64_t.
49098 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49099 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49100 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49103 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49104 to grub_disk_addr_t.
49106 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49109 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49111 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49114 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49116 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49118 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49120 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49121 to grub_off_t, to detect an error from grub_file_seek.
49122 (grub_multiboot_load_elf32): Likewise.
49124 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49125 maximum unsigned long value when an overflow is detected.
49126 (grub_strtoull): New function.
49127 (grub_divmod64): Likewise.
49128 (grub_lltoa): use grub_divmod64.
49130 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49132 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49133 the pointer to next character. Use grub_strtoull instead of
49135 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49136 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49139 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49140 return value is signed.
49141 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49142 test if OFFSET is less than zero, as OFFSET is unsigned now.
49144 * kern/disk.c (struct grub_disk_cache): Change the type of
49145 "sector" to grub_disk_addr_t.
49146 (grub_disk_cache_get_index): Change the type of SECTOR to
49147 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49148 unsigned after shifting.
49149 (grub_disk_cache_invalidate): Change the type of SECTOR to
49151 (grub_disk_cache_unlock): Likewise.
49152 (grub_disk_cache_store): Likewise.
49153 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49154 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49155 grub_disk_addr_t and grub_uint64_t, respectively.
49156 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49157 body, as the value of OFFSET is tweaked by
49158 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49159 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49161 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49162 body, as the value of OFFSET is tweaked by
49163 grub_disk_check_range. Change the types of LEN and N to
49166 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49167 and "saved_offset" to grub_off_t.
49168 (test_header): Cast BUF to char *.
49169 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49171 (grub_gzio_read): Change the types of OFFSET and SIZE to
49172 grub_off_t and grub_size_t, respectively.
49174 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49176 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49177 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49178 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49179 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49180 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49182 * include/grub/types.h (grub_off_t): Unconditionally set to
49184 (grub_disk_addr_t): Changed to grub_uint64_t.
49186 * include/grub/partition.h (struct grub_partition): Change the
49187 types of "start", "len" and "offset" to grub_disk_addr_t,
49188 grub_uint64_t and grub_disk_addr_t, respectively.
49189 (grub_partition_get_start): Return grub_disk_addr_t.
49190 (grub_partition_get_len): Return grub_uint64_t.
49192 * include/grub/misc.h (grub_strtoull): New prototype.
49193 (grub_divmod64): Likewise.
49195 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49196 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49197 grub_off_t, respectively.
49198 All callers and references changed.
49200 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49201 grub_size_t in "read".
49202 All callers and references changed.
49204 * include/grub/file.h (struct grub_file): Change the types of
49205 "offset" and "size" to grub_off_t and grub_off_t,
49206 respectively. Change the type of SECTOR to grub_disk_addr_t in
49208 (grub_file_read): Change the type of LEN to grub_size_t.
49209 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49211 (grub_file_size): Return grub_off_t.
49212 (grub_file_tell): Likewise.
49213 All callers and references changed.
49215 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49216 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49218 (struct grub_disk): Change the type of "total_sectors" to
49219 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49221 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49222 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49223 (grub_disk_write): Likewise.
49224 All callers and references changed.
49226 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49227 char * for grub_strncmp to silence gcc.
49228 (grub_iso9660_mount): Likewise.
49229 (grub_iso9660_mount): Likewise.
49230 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49232 (grub_iso9660_iterate_dir): Likewise.
49233 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49235 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49236 LEN to grub_disk_addr_t and grub_size_t, respectively.
49238 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49240 * fs/jfs.c (grub_jfs_read_file): Likewise.
49242 * fs/minix.c (grub_jfs_read_file): Likewise.
49244 * fs/sfs.c (grub_jfs_read_file): Likewise.
49246 * fs/ufs.c (grub_jfs_read_file): Likewise.
49248 * fs/xfs.c (grub_jfs_read_file): Likewise.
49250 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49251 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49254 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49255 BLKNR to -1 instead of returning GRUB_ERRNO.
49256 (grub_ext2_read_file): Change the types of SECTOR and
49257 LEN to grub_disk_addr_t and grub_size_t, respectively.
49259 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49260 LEN to grub_disk_addr_t and grub_size_t, respectively.
49262 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49265 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49266 string. Do not cast SECTOR explicitly.
49268 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49269 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49270 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49271 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49272 over 2TB and LBA mode is not supported, raise an error.
49273 (get_safe_sectors): New function.
49274 (grub_biosdisk_read): Use get_safe_sectors.
49275 (grub_biosdisk_write): Likewise.
49277 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49278 (grub_efidisk_write): Likewise.
49280 * disk/loopback.c (delete_loopback): Cosmetic changes.
49281 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49283 (grub_loopback_open): Likewise.
49284 (grub_loopback_read): Likewise. Also, change the type of POS to
49285 grub_off_t, and fix the usage of grub_memset.
49287 * commands/i386/pc/play.c: Include grub/machine/time.h.
49289 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49292 * commands/configfile.c: Include grub/env.h.
49294 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49295 GRUB_ERRNO directly instead. Change the type of POS to
49296 grub_off_t. Follow the coding standard.
49298 * commands/blocklist.c: Include grub/partition.h.
49299 (grub_cmd_blocklist): Return an error if the underlying device is
49300 not a disk. Take the starting sector of a partition into account,
49301 if a partition is used.
49303 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49305 (lba_mode): Support 64-bit addresses.
49306 (chs_mode): Likewise.
49307 (copy_buffer): Adapted to the new offsets of a length field and a
49309 (blocklist_default_start): Allocate 64-bit space.
49311 * boot/i386/pc/boot.S (force_lba): Removed.
49312 (boot_drive): Moved to under KERNEL_SECTOR.
49313 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49315 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49317 (lba_mode): Refactored to support a 64-bit address. More size
49319 (setup_sectors): Likewise.
49321 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49323 * DISTLIST: Added include/grub/i386/linux.h. Removed
49324 include/grub/i386/pc/linux.h
49326 * configure.ac (AC_INIT): Bumped to 1.94.
49328 * config.guess: Updated from gnulib.
49329 * config.sub: Likewise.
49330 * install-sh: Likewise.
49331 * mkinstalldirs: Likewise.
49333 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49335 * conf/common.rmk (grub_modules_init.lst): Depended on
49336 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49339 * genmk.rb (PModule::rule): Reverted the previous change.
49341 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49343 * conf/common.rmk (grub_modules_init.lst): Depends on
49344 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49345 that the target does not exist before producing.
49346 (grub_modules_init.h): Remove the target before generating.
49347 (grub_emu_init.c): Likewise.
49349 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49351 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49353 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49354 for the target-specific tests. Make sure that we also have the
49355 up-to-date target variables for those tests.
49357 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49359 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49360 (PModule::rule): Likewise.
49362 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49364 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49365 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49366 target-specific flags should be prefixed.
49367 (PModule::rule): Likewise.
49369 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49371 * configure.ac (CMP): Check if cmp is available explicitly.
49373 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49375 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49376 (target_cpu): New variable.
49377 (pkglibdir): Use target_cpu instead of host_cpu.
49379 * util/i386/pc/grub-install.in (host_cpu): Removed.
49380 (target_cpu): New variable.
49381 (pkglibdir): Use target_cpu instead of host_cpu.
49383 * util/genmoddep.c: Removed.
49385 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49386 instead of GRUB_HOST_SIZEOF_VOID_P.
49387 * kern/dl.c: Likewise.
49389 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49391 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49392 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49393 (GRUB_TARGET_SIZEOF_LONG): ... this.
49394 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49395 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49396 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49398 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49399 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49400 (GRUB_TARGET_SIZEOF_LONG): ... this.
49401 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49402 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49403 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49405 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49406 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49407 (GRUB_TARGET_SIZEOF_LONG): ... this.
49408 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49409 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49411 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49412 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49413 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49414 instead of GRUB_HOST_SIZEOF_LONG.
49415 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49416 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49417 GRUB_CPU_WORDS_BIGENDIAN.
49418 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49419 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49422 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49423 (genmoddep_SOURCES): Likewise.
49424 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49425 (genmoddep_SOURCES): Likewise.
49426 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49427 (genmoddep_SOURCES): Likewise.
49428 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49430 (genmoddep_SOURCES): Likewise.
49432 * genmoddep.awk: New file.
49434 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49435 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49436 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49437 (PModule::rule): Likewise.
49438 (Program::rule): Likewise.
49439 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49440 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49443 * configure.ac: Rewritten intensively to use host and target
49444 instead of build and host, respectively.
49446 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49447 (host_cpu): Removed.
49448 (target_cpu): New variable.
49449 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49450 (BUILD_CC): Removed.
49451 (BUILD_CFLAGS): Likewise.
49452 (BUILD_CPPFLAGS): Likewise.
49453 (TARGET_CC): New variable.
49454 (TARGET_CFLAGS): Likewise.
49455 (TARGET_CPPFLAGS): Likewise.
49456 (TARGET_LDFLAGS): Likewise.
49458 (include): Use target_cpu instead of host_cpu.
49459 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49461 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49463 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49465 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49466 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49467 field 'false' to 'exec_on_false'.
49468 (grub_script_create_cmdif): Renamed argument names to reflect above
49471 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49473 * normal/script.c (grub_script_create_cmdif): Likewise.
49475 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49477 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49479 (grub_hfsplus_btree_recptr): Likewise.
49480 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49481 FILEBLOCK both to pass a block number and store next block
49483 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49484 overflow file correctly. Specify errors appropriately, because
49485 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49486 grub_hfsplus_btree_recptr to get the pointer to a found key.
49487 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49490 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49492 (_linux_mod_SOURCES): New variable.
49493 (_linux_mod_CFLAGS): Likewise.
49494 (_linux_mod_LDFLAGS): Likewise.
49495 (linux_mod_SOURCES): Likewise.
49496 (linux_mod_CFLAGS): Likewise.
49497 (linux_mod_LDFLAGS): Likewise.
49499 * DISTLIST: Added loader/i386/efi/linux.c,
49500 loader/i386/efi/linux_normal.c and
49501 include/grub/i386/efi/loader.h.
49503 * loader/i386/efi/linux.c: New file.
49504 * loader/i386/efi/linux_normal.c: Likewise.
49505 * include/grub/i386/efi/loader.h: Likewise.
49507 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49509 * commands/blocklist.c: New file.
49511 * DISTLIST: Added commands/blocklist.c.
49513 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49514 color for the background, and a darker color for the foreground.
49515 (grub_console_checkkey): Return READ_KEY.
49516 (grub_console_cls): Set the background to
49517 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49519 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49521 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49522 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49524 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49527 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49528 BG. The spec is wrong again.
49530 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49532 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49534 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49535 commands/blocklist.c.
49536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49538 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49539 (blocklist_mod_SOURCES): New variable.
49540 (blocklist_mod_CFLAGS): Likewise.
49541 (blocklist_mod_LDFLAGS): Likewise.
49543 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49545 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49547 (lba_mode): Use %eax more intensively to reduce the code size.
49549 2006-05-20 Marco Gerards <marco@gnu.org>
49551 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49553 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49555 (script): Accept leading newlines.
49556 (newlines): New rule to describe 0 or more newlines.
49557 (commands): Accept `command' with trailing newline. Fixed the
49558 order in which arguments were passed to `grub_script_add_cmd'.
49559 Accept commands separated by newlines.
49560 (function): Changed to accept newlines.
49561 (menuentry) Rewritten.
49563 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49564 front of the list, instead of to the end.
49566 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49568 * util/i386/pc/grub-install.in (bindir): New variable.
49569 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49570 Shaver <lbgwjl@gmail.com>.
49572 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49574 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49575 grub/machine/linux.h
49576 * loader/i386/pc/linux.c: Likewise.
49578 * include/grub/i386/pc/linux.h: Moved to ...
49579 * include/grub/i386/linux.h: ... here.
49581 * include/grub/i386/linux.h (struct linux_kernel_params): New
49584 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49586 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49588 (grub_video_vbe_blit_glyph): Likewise.
49589 (grub_video_vbe_blit_bitmap): Likewise.
49590 (grub_video_vbe_blit_render_target): Likewise.
49592 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49594 * configure.ac (--with-platform): Properly quote the square
49597 2006-05-08 Marco Gerards <marco@gnu.org>
49599 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49601 (kernel_elf_HEADERS): ...to this. Updated all users.
49602 (grubof_symlist.c): Renamed from this...
49603 (kernel_elf_symlist.c): ...to this. Updated all users.
49604 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49605 (grubof_SOURCES): Renamed from this...
49606 (kernel_elf_SOURCES): ...to this.
49607 (grubof_HEADERS): Renamed from this...
49608 (kernel_elf_HEADERS): ...to this.
49609 (grubof_CFLAGS): Renamed from this...
49610 (kernel_elf_CFLAGS): ...to this.
49611 (grubof_ASFLAGS): Renamed from this...
49612 (kernel_elf_ASFLAGS): ...to this.
49613 (grubof_LDFLAGS): Renamed from this...
49614 (kernel_elf_LDFLAGS): ...to this.
49616 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49618 (kernel_elf_HEADERS): ...to this. Updated all users.
49619 (grubof_symlist.c): Renamed from this...
49620 (kernel_elf_symlist.c): ...to this. Updated all users.
49621 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49622 (grubof_SOURCES): Renamed from this...
49623 (kernel_elf_SOURCES): ...to this.
49624 (grubof_HEADERS): Renamed from this...
49625 (kernel_elf_HEADERS): ...to this.
49626 (grubof_CFLAGS): Renamed from this...
49627 (kernel_elf_CFLAGS): ...to this.
49628 (grubof_ASFLAGS): Renamed from this...
49629 (kernel_elf_ASFLAGS): ...to this.
49630 (grubof_LDFLAGS): Renamed from this...
49631 (kernel_elf_LDFLAGS): ...to this.
49633 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49634 `kernel.elf' instead of `grubof'.
49636 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49638 Add --with-platform to configure. Use pkglibdir instead of
49639 pkgdatadir. This is reported by Roger Leigh.
49641 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49642 (host_vendor): Likewise.
49643 (host_os): Likewise.
49644 (pkgdatadir): Likewise.
49645 (platform): New variable.
49646 (pkglibdir): Likewise.
49647 Use PKGLIBDIR instead of PKGDATADIR.
49649 * util/i386/pc/grub-install.in (datadir): Removed.
49650 (host_vendor): Likewise.
49651 (host_os): Likewise.
49652 (pkgdatadir): Likewise.
49653 (platform): New variable.
49654 (pkglibdir): Likewise.
49655 Use PKGLIBDIR instead of PKGDATADIR.
49657 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49658 instead of GRUB_DATADIR.
49660 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49662 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49665 * configure.ac (--with-platform): New option.
49666 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49668 * Makefile.in: Include a makefile based on PLATFORM instead of
49670 (pkgdatadir): Not appended by the machine type.
49671 (pkglibdir): Appended by the machine type.
49672 (host_vendor): Removed.
49673 (platform): New variable.
49674 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49675 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49676 (uninstall): Likewise.
49678 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49680 Use the environment context in the menu. Remove the commands
49681 "default" and "timeout", and use variables instead.
49683 * normal/menu.c: Include grub/env.h.
49684 (print_entry): Cast TITLE to silence gcc.
49685 (get_timeout): New function.
49686 (set_timeout): Likewise.
49687 (get_entry_number): Likewise.
49688 (run_menu): Use a default entry, a fallback entry and a timeout
49689 in the environment variables "default", "fallback" and
49690 "timeout". Also, tweak the default entry if it is not within the
49691 current menu entries.
49692 (grub_menu_run): Use a fallback entry in the environment variable
49695 * normal/main.c (read_config_file): Do not initialize
49696 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49698 (grub_normal_execute): Use a data slot to store the menu.
49700 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49701 fallback_entry and timeout.
49702 (struct grub_menu_list): Removed.
49703 (grub_menu_list_t): Likewise.
49704 (struct grub_context): Likewise.
49705 (grub_context_t): Likewise.
49706 (grub_context_get): Likewise.
49707 (grub_context_get_current_menu): Likewise.
49708 (grub_context_push_menu): Likewise.
49709 (grub_context_pop_menu): Likewise.
49710 (grub_default_init): Likewise.
49711 (grub_default_fini): Likewise.
49712 (grub_timeout_init): Likewise.
49713 (grub_timeout_fini): Likewise.
49715 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49717 (normal_mod_SOURCES): Removed normal/context.c.
49719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49720 commands/default.c, commands/timeout.c and normal/context.c.
49721 (normal_mod_SOURCES): Removed normal/context.c.
49723 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49724 commands/timeout.c and normal/context.c.
49725 (normal_mod_SOURCES): Removed normal/context.c.
49727 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49728 commands/default.c, commands/timeout.c and normal/context.c.
49729 (normal_mod_SOURCES): Removed normal/context.c.
49731 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49733 (default_mod_SOURCES): Removed.
49734 (default_mod_CFLAGS): Likewise.
49735 (default_mod_LDFLAGS): Likewise.
49736 (timeout_mod_SOURCES): Removed.
49737 (timeout_mod_CFLAGS): Likewise.
49738 (timeout_mod_LDFLAGS): Likewise.
49740 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49743 * commands/default.c: Removed.
49744 * commands/timeout.c: Likewise.
49745 * normal/context.c: Likewise.
49747 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49749 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49751 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49753 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49754 "next" to "prev" for readability.
49755 (struct grub_env_sorted_var): New struct.
49756 (grub_env_context): Renamed to ...
49757 (initial_context): ... this.
49758 (grub_env_var_context): Renamed to ...
49759 (current_context): ... this.
49760 (grub_env_find): Look only at CURRENT_CONTEXT.
49761 (grub_env_context_open): Rewritten to copy exported variables from
49763 (grub_env_context_close): Rewritten according to the new
49764 scheme. Also, add an assertion to prevent the initial context from
49766 (grub_env_insert): Removed the code for the sorted list.
49767 (grub_env_remove): Likewise.
49768 (grub_env_export): Simply mark the variable with
49769 GRUB_ENV_VAR_GLOBAL.
49770 (grub_env_set): A cosmetic change for naming consistency.
49771 (grub_env_get): Likewise.
49772 (grub_env_unset): Likewise.
49773 (grub_env_iterate): Rewritten to sort variables within this
49775 (grub_register_variable_hook): Fixed for naming consistency. Call
49776 grub_env_find again, only if NAME is not found at the first time.
49777 (mangle_data_slot_name): New function.
49778 (grub_env_set_data_slot): Likewise.
49779 (grub_env_get_data_slot): Likewise.
49780 (grub_env_unset_data_slot): Likewise.
49782 * include/grub/env.h (grub_env_var_type): New enum.
49783 (GRUB_ENV_VAR_LOCAL): New constant.
49784 (GRUB_ENV_VAR_GLOBAL): Likewise.
49785 (GRUB_ENV_VAR_DATA): Likewise.
49786 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49788 (grub_env_set): Replace VAR with NAME for consistency.
49789 (grub_register_variable_hook): Likewise.
49790 (grub_env_export): Specify the name of the argument.
49791 (grub_env_set_data_slot): New prototype.
49792 (grub_env_get_data_slot): Likewise.
49793 (grub_env_unset_data_slot): Likewise.
49795 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49797 Extend the loader so that GRUB can accept a loader which comes
49798 back to GRUB when a loaded image exits. Also, this change adds
49799 support for a chainloader on EFI.
49801 * term/efi/console.c: Include grub/misc.h.
49802 (grub_console_checkkey): Display a scan code on the top for
49803 debugging. This will be removed once the EFI port gets stable.
49804 Correct the scan code mapping.
49806 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49807 allocate memory from larger regions, in order to reduce the number
49808 of allocated regions. Otherwise, the MacOSX loader panics.
49809 (filter_memory_map): Avoid less than 1MB for compatibility with
49811 (add_memory_regions): Allocate from the tail of a region, if
49812 possible, to avoid allocating a region near to 1MB, for the MacOSX
49815 * kern/efi/init.c (grub_efi_set_prefix): Specify
49816 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49818 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49819 argument IMAGE_HANDLE and specify it to get a loaded image.
49820 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49821 grub_efi_get_loaded_image.
49822 (grub_efi_get_filename): Divide the length by the size of
49824 (grub_efi_get_device_path): New function.
49825 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49826 the length by the size of grub_efi_char16_t for a file path device
49829 * kern/loader.c (grub_loader_noreturn): New variable.
49830 (grub_loader_set): Accept a new argument NORETURN. Set
49831 GRUB_LOADER_NORETURN to NORETURN.
49832 All callers changed.
49833 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49836 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49838 (grub_efi_get_loaded_image): Take an argument to specify an image
49841 * include/grub/loader.h (grub_loader_set): Added one more argument
49844 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49845 instead of grub_efi_open_protocol.
49846 (grub_efidisk_get_device_name): Likewise.
49847 (grub_efidisk_close): Print a newline.
49848 (grub_efidisk_get_device_handle): Fixed to use
49849 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49850 GRUB_EFI_DEVICE_PATH_TYPE.
49852 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49853 * kern/efi/efi.c (device_path_guid): ... here.
49855 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49857 (kernel_mod_HEADERS): Added efi/disk.h.
49858 (_chain_mod_SOURCES): New variable.
49859 (_chain_mod_CFLAGS): Likewise.
49860 (_chain_mod_LDFLAGS): Likewise.
49861 (chain_mod_SOURCES): Likewise.
49862 (chain_mod_CFLAGS): Likewise.
49863 (chain_mod_LDFLAGS): Likewise.
49865 * DISTLIST: Added include/grub/efi/chainloader.h,
49866 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49868 * include/grub/efi/chainloader.h: New file.
49869 * loader/efi/chainloader.c: Likewise.
49870 * loader/efi/chainloader_normal.c: Likewise.
49872 2006-04-30 Marco Gerards <marco@gnu.org>
49874 * commands/configfile.c (grub_cmd_source): New function.
49875 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49876 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49878 2006-04-30 Marco Gerards <marco@gnu.org>
49880 * normal/execute.c (grub_script_execute_cmd): Change the return
49881 type to `grub_err_t'. Correctly return the error.
49882 (grub_script_execute_cmdline): In case a command line is not a
49883 command or a function, try to interpret it as an assignment.
49885 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49887 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49888 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49889 skip a node whose name is obviously invalid as UTF-16,
49890 i.e. contains a NUL character. Stop the iteration when the last
49891 directory entry is found. Instead of using the return value of
49892 grub_hfsplus_btree_iterate_node, store the value in RET and use
49893 it, because the iterator can be stopped by the last directory
49896 2006-04-30 Marco Gerards <marco@gnu.org>
49898 * include/grub/env.h (grub_env_export): New prototype. Reported
49899 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49901 2006-04-30 Marco Gerards <marco@gnu.org>
49903 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49904 size of the extents in a catalog file record.
49906 2006-04-29 Marco Gerards <marco@gnu.org>
49908 * commands/configfile.c (grub_cmd_configfile): Execute the
49909 configfile within its own context.
49911 * include/grub/env.h (grub_env_context_open): New prototype.
49912 (grub_env_context_close): Likewise.
49914 * kern/env.c (grub_env): Removed.
49915 (grub_env_sorted): Likewise.
49916 (grub_env_context): New variable.
49917 (grub_env_var_context): Likewise.
49918 (grub_env_find): Search both the active context and the global
49920 (grub_env_context_open): New function.
49921 (grub_env_context_close): Likewise.
49922 (grub_env_insert): Likewise.
49923 (grub_env_remove): Likewise.
49924 (grub_env_export): Likewise.
49925 (grub_env_set): Changed to use helper functions to avoid code
49927 (grub_env_iterate): Rewritten so both the current context and the
49928 global context are being used.
49930 * normal/command.c (export_command): New function.
49931 (grub_command_init): Register the `export' function.
49933 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49935 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49936 explicitly to suppress gcc's warnings.
49937 * fs/fat.c (grub_fat_find_dir): Likewise.
49938 (grub_fat_label): Likewise.
49939 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49940 (grub_xfs_mount): Likewise.
49941 (grub_xfs_label): Likewise.
49942 * fs/affs.c (grub_affs_mount): Likewise.
49943 (grub_affs_label): Likewise.
49944 (grub_affs_iterate_dir): Likewise.
49945 * fs/sfs.c (grub_sfs_mount): Likewise.
49946 (grub_sfs_iterate_dir): Likewise.
49947 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49948 * fs/hfs.c (grub_hfs_mount): Likewise.
49949 (grub_hfs_cmp_catkeys): Likewise.
49950 (grub_hfs_find_dir): Likewise.
49951 (grub_hfs_dir): Likewise.
49952 (grub_hfs_label): Likewise.
49953 * fs/jfs.c (grub_jfs_mount): Likewise.
49954 (grub_jfs_opendir): Likewise.
49955 (grub_jfs_getent): Likewise.
49956 (grub_jfs_lookup_symlink): Likewise.
49957 (grub_jfs_label): Likewise.
49958 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49959 (grub_hfsplus_iterate_dir): Likewise.
49960 (grub_hfsplus_btree_iterate_node): Made static.
49962 * util/grub-emu.c (prefix): New variable.
49963 (grub_machine_set_prefix): New function.
49964 (main): Do not set the environment variable "prefix" here. Only
49965 set PREFIX, which is used later by grub_machine_set_prefix.
49967 * include/grub/video.h: Do not include grub/symbol.h.
49968 (grub_video_register): Not exported. This symbol is not defined in
49970 (grub_video_unregister): Likewise.
49971 (grub_video_iterate): Likewise.
49972 (grub_video_setup): Likewise.
49973 (grub_video_restore): Likewise.
49974 (grub_video_get_info): Likewise.
49975 (grub_video_get_blit_format): Likewise.
49976 (grub_video_set_palette): Likewise.
49977 (grub_video_get_palette): Likewise.
49978 (grub_video_set_viewport): Likewise.
49979 (grub_video_get_viewport): Likewise.
49980 (grub_video_map_color): Likewise.
49981 (grub_video_map_rgb): Likewise.
49982 (grub_video_map_rgba): Likewise.
49983 (grub_video_fill_rect): Likewise.
49984 (grub_video_blit_glyph): Likewise.
49985 (grub_video_blit_bitmap): Likewise.
49986 (grub_video_blit_render_target): Likewise.
49987 (grub_video_scroll): Likewise.
49988 (grub_video_swap_buffers): Likewise.
49989 (grub_video_create_render_target): Likewise.
49990 (grub_video_delete_render_target): Likewise.
49991 (grub_video_set_active_render_target): Likewise.
49993 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49995 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49997 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49998 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49999 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50000 instead of $(srcdir)/genkernsyms.sh.
50002 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50003 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50004 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50005 instead of $(srcdir)/genkernsyms.sh.
50007 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50008 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50009 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50010 instead of $(srcdir)/genkernsyms.sh.
50012 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50013 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50014 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50015 instead of $(srcdir)/genkernsyms.sh.
50017 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50020 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50022 (gensymlist.sh): New target.
50023 (genkernsyms.sh): Likewise.
50025 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50026 genkernsyms.sh.in and gensymlist.sh.in.
50028 * genkernsyms.sh: Removed.
50029 * gensymlist.sh: Likewise.
50031 * genkernsyms.sh.in: New file.
50032 * gensymlist.sh.in: Likewise.
50034 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50036 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50037 clobber "prefix", since we may have already set it manually.
50039 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50041 * kern/misc.c (abort): New alias for grub_abort.
50043 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50045 A new machine-specific function "grub_machine_set_prefix" is
50046 defined. This is called after loading modules, so that a prefix
50047 initialization can use modules. Also, this change adds an
50048 intensive debugging feature for the memory manager via the
50049 configure option "--enable-mm-debug".
50051 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50054 * kern/sparc64/ieee1275/init.c (abort): Removed.
50055 (grub_stop): Likewise.
50056 (grub_exit): New function.
50057 (grub_set_prefix): Renamed to ...
50058 (grub_machine_set_prefix): ... this.
50059 (grub_machine_init): Do not call grub_set_prefix.
50061 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50062 (grub_machine_set_prefix): ... this.
50063 (grub_machine_init): Do not call grub_set_prefix.
50065 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50066 (grub_machine_init): Do not set the prefix here.
50068 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50070 * kern/efi/init.c: Include grub/mm.h.
50071 (grub_efi_set_prefix): New function.
50073 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50074 (grub_efi_get_filename): New function.
50075 (grub_print_device_path): Renamed to ...
50076 (grub_efi_print_device_path): ... this.
50078 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50079 [MM_DEBUG] (grub_realloc): Likewise.
50080 [MM_DEBUG] (grub_free): Likewise.
50081 [MM_DEBUG] (grub_memalign): Likewise.
50082 [MM_DEBUG] (grub_mm_debug): New variable.
50083 [MM_DEBUG] (grub_debug_malloc): New function.
50084 [MM_DEBUG] (grub_debug_free): New function.
50085 [MM_DEBUG] (grub_debug_realloc): New function.
50086 [MM_DEBUG] (grub_debug_memalign): New function.
50088 * kern/misc.c (grub_abort): Print a newline to distinguish
50091 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50092 grub_set_root_dev after loading modules. This is necessary when
50093 setting a prefix depends on modules.
50095 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50096 (grub_efi_print_device_path): ... this.
50097 (grub_efi_get_filename): New prototype.
50098 (grub_efi_set_prefix): Likewise.
50100 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50102 (grub_efidisk_get_device_handle): New prototype.
50103 (grub_efidisk_get_device_name): Likewise.
50105 * include/grub/mm.h: Include config.h.
50106 (MM_DEBUG): Removed.
50107 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50108 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50109 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50110 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50111 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50112 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50113 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50114 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50115 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50117 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50119 * disk/efi/efidisk.c: Include grub/partition.h.
50120 (iterate_child_devices): New function.
50121 (add_device): First, compare only last device path nodes, so that
50122 devices are sorted by the types.
50123 (grub_efidisk_get_device_handle): New function.
50124 (grub_efidisk_get_device_name): Likewise.
50126 * configure.ac (--enable-mm-debug): New option to enable the
50127 memory manager debugging feature. This makes the binary much
50128 bigger, so is disabled by default.
50130 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50132 Use grub_abort instead of grub_stop, and grub_exit must be
50133 define in each architecture now. Also, this change adds support
50136 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50137 (grub_getkey): New function.
50138 (grub_term_get_current): Likewise.
50140 * util/i386/pc/grub-setup.c: Include grub/term.h.
50141 (grub_getkey): New function.
50142 (grub_term_get_current): Likewise.
50144 * util/misc.c (grub_stop): Renamed to ...
50145 (grub_exit): ... this.
50147 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50148 (grub_exit): ... this.
50149 (grub_machine_init): Use grub_abort instead of abort.
50150 (grub_stop): Removed.
50152 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50155 * kern/i386/pc/startup.S (grub_exit): New function.
50156 (cold_reboot): New label.
50158 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50159 (grub_efi_init): Call grub_efidisk_init.
50160 (grub_efi_fini): Call grub_efidisk_fini.
50162 * kern/efi/efi.c: Include grub/mm.h.
50163 (grub_efi_console_control_guid): Renamed to ...
50164 (console_control_guid): ... this.
50165 (grub_efi_loaded_image_guid): Renamed to ...
50166 (loaded_image_guid): ... this.
50167 (grub_efi_locate_handle): New function.
50168 (grub_efi_open_protocol): Likewise.
50169 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50170 GRUB_EFI_CONSOLE_CONTROL_GUID.
50171 (grub_efi_exit): Removed.
50172 (grub_stop): Likewise.
50173 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50174 (grub_exit): New function.
50175 (grub_print_device_path): Likewise.
50177 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50178 (grub_enter_rescue_mode): Register "exit".
50180 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50181 (grub_abort): New function.
50183 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50185 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50187 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50189 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50190 (grub_print_device_path): New prototype.
50191 (grub_efi_locate_handle): Likewise.
50192 (grub_efi_open_protocol): Likewise.
50194 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50195 * disk/efi/efidisk.c: Likewise.
50197 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50199 * include/grub/efi/console_control.h
50200 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50202 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50203 last 8 bytes as an array.
50204 (GRUB_EFI_DISK_IO_GUID): New macro.
50205 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50206 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50207 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50209 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50210 (struct grub_efi_device_path): Rename the member "sub_type" to
50212 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50213 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50214 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50215 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50216 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50217 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50218 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50219 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50220 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50221 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50222 (struct grub_efi_pci_device_path): New structure.
50223 (grub_efi_pci_device_path_t): New type.
50224 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50225 (struct grub_efi_pccard_device_path): New structure.
50226 (grub_efi_pccard_device_path_t): New type.
50227 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50228 (struct grub_efi_memory_mapped_device_path): New structure.
50229 (grub_efi_memory_mapped_device_path_t): New type.
50230 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50231 (struct grub_efi_vendor_device_path): New structure.
50232 (grub_efi_vendor_device_path_t): New type.
50233 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50234 (struct grub_efi_controller_device_path): New structure.
50235 (grub_efi_controller_device_path_t): New type.
50236 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50237 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50238 (struct grub_efi_acpi_device_path): New structure.
50239 (grub_efi_acpi_device_path_t): New type.
50240 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50241 (struct grub_efi_expanded_acpi_device_path): New structure.
50242 (grub_efi_expanded_acpi_device_path_t): New type.
50243 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50244 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50245 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50246 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50247 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50248 (struct grub_efi_atapi_device_path): New structure.
50249 (grub_efi_atapi_device_path_t): New type.
50250 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50251 (struct grub_efi_fibre_channel_device_path): New structure.
50252 (grub_efi_fibre_channel_device_path_t): New type.
50253 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50254 (struct grub_efi_1394_device_path): New structure.
50255 (grub_efi_1394_device_path_t): New type.
50256 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50257 (struct grub_efi_usb_device_path): New structure.
50258 (grub_efi_usb_device_path_t): New type.
50259 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50260 (struct grub_efi_usb_class_device_path): New structure.
50261 (grub_efi_usb_class_device_path_t): New type.
50262 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50263 (struct grub_efi_i2o_device_path): New structure.
50264 (grub_efi_i2o_device_path_t): New type.
50265 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50266 (struct grub_efi_mac_address_device_path): New structure.
50267 (grub_efi_mac_address_device_path_t): New type.
50268 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50269 (struct grub_efi_ipv4_device_path): New structure.
50270 (grub_efi_ipv4_device_path_t): New type.
50271 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50272 (struct grub_efi_ipv6_device_path): New structure.
50273 (grub_efi_ipv6_device_path_t): New type.
50274 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50275 (struct grub_efi_infiniband_device_path): New structure.
50276 (grub_efi_infiniband_device_path_t): New type.
50277 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50278 (struct grub_efi_uart_device_path): New structure.
50279 (grub_efi_uart_device_path_t): New type.
50280 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50281 (struct grub_efi_vendor_messaging_device_path): New structure.
50282 (grub_efi_vendor_messaging_device_path_t): New type.
50283 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50284 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50285 (struct grub_efi_hard_drive_device_path): New structure.
50286 (grub_efi_hard_drive_device_path_t): New type.
50287 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50288 (struct grub_efi_cdrom_device_path): New structure.
50289 (grub_efi_cdrom_device_path_t): New type.
50290 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50291 (struct grub_efi_vendor_media_device_path): New structure.
50292 (grub_efi_vendor_media_device_path_t): New type.
50293 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50294 (struct grub_efi_file_path_device_path): New structure.
50295 (grub_efi_file_path_device_path_t): New type.
50296 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50297 (struct grub_efi_protocol_device_path): New structure.
50298 (grub_efi_protocol_device_path_t): New type.
50299 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50300 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50301 (struct grub_efi_bios_device_path): New structure.
50302 (grub_efi_bios_device_path_t): New type.
50303 (struct grub_efi_disk_io): New structure.
50304 (grub_efi_disk_io_t): New type.
50305 (struct grub_efi_block_io_media): New structure.
50306 (grub_efi_block_io_media_t): New type.
50307 (struct grub_efi_block_io): New structure.
50308 (grub_efi_block_io_t): New type.
50310 * include/grub/misc.h (grub_stop): Removed.
50311 (grub_exit): New prototype.
50312 (grub_abort): Likewise.
50314 * include/grub/disk.h (enum grub_disk_dev_id): Added
50315 GRUB_DISK_DEVICE_EFIDISK_ID.
50317 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50318 disk/efi/efidisk.c.
50319 (kernel_syms.lst): Remove the target if an error occurs.
50321 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50323 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50324 as it was simply too buggy.
50326 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50328 * kern/misc.c (grub_lltoa): New function.
50329 (grub_vsprintf): Added support for the long long suffix,
50332 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50334 * Makefile.in (LDFLAGS): Add variable.
50335 (LD): Remove variable.
50336 * configure.ac: Add -m32 to LDFLAGS.
50337 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50338 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50339 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50340 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50341 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50343 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50344 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50345 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50347 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50349 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50350 length for unknown glyph.
50352 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50354 Add support for pre-loaded modules into the EFI port.
50356 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50357 completely. Accept one more argument DIR. The caller has changed.
50359 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50361 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50362 (grub_efi_loaded_image_guid): New variable.
50363 (grub_efi_get_loaded_image): New function.
50364 (grub_arch_modules_addr): Likewise.
50366 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50369 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50370 (struct grub_efi_loaded_image): New structure.
50371 (grub_efi_loaded_image_t): New type.
50373 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50375 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50376 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50377 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50379 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50381 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50383 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50385 * DISTLIST: Added include/grub/efi/console.h,
50386 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50387 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50389 * include/grub/efi/console.h: New file.
50390 * include/grub/efi/time.h: Likewise.
50391 * include/grub/i386/efi/kernel.h: Likewise.
50392 * kern/efi/init.c: Likewise.
50393 * kern/efi/mm.c: Likewise.
50394 * term/efi/console.c: Likewise.
50396 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50397 (grub_stop): Removed.
50398 (grub_get_rtc): Likewise.
50399 (grub_machine_init): Simply call grub_efi_init.
50400 (grub_machine_fini): Call grub_efi_fini.
50402 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50403 (grub_efi_output_string): Removed.
50404 (grub_efi_stall): New function.
50405 (grub_stop): Likewise.
50406 (grub_get_rtc): Likewise.
50408 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50409 (grub_efi_stall): New prototype.
50410 (grub_efi_allocate_pages): Likewise.
50411 (grub_efi_free_pages): Likewise.
50412 (grub_efi_get_memory_map): Likewise.
50413 (grub_efi_mm_init): Likewise.
50414 (grub_efi_mm_fini): Likewise.
50415 (grub_efi_init): Likewise.
50416 (grub_efi_fini): Likewise.
50418 * include/grub/i386/efi/time.h: Do not include
50419 grub/symbol.h. Include grub/efi/time.h.
50420 (GRUB_TICKS_PER_SECOND): Removed.
50421 (grub_get_rtc): Likewise.
50423 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50424 Added padding. The EFI spec is buggy.
50425 (GRUB_EFI_BLACK): New macro.
50426 (GRUB_EFI_BLUE): Likewise.
50427 (GRUB_EFI_GREEN): Likewise.
50428 (GRUB_EFI_CYAN): Likewise.
50429 (GRUB_EFI_RED): Likewise.
50430 (GRUB_EFI_MAGENTA): Likewise.
50431 (GRUB_EFI_BROWN): Likewise.
50432 (GRUB_EFI_LIGHTGRAY): Likewise.
50433 (GRUB_EFI_BRIGHT): Likewise.
50434 (GRUB_EFI_DARKGRAY): Likewise.
50435 (GRUB_EFI_LIGHTBLUE): Likewise.
50436 (GRUB_EFI_LIGHTGREEN): Likewise.
50437 (GRUB_EFI_LIGHTCYAN): Likewise.
50438 (GRUB_EFI_LIGHTRED): Likewise.
50439 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50440 (GRUB_EFI_YELLOW): Likewise.
50441 (GRUB_EFI_WHITE): Likewise.
50442 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50443 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50444 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50445 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50446 (GRUB_EFI_BACKGROUND_RED): Likewise.
50447 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50448 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50449 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50450 (GRUB_EFI_TEXT_ATTR): Likewise.
50452 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50453 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50454 (kernel_mod_HEADERS): Added efi/time.h.
50456 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50458 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50459 include/grub/efi/api.h, include/grub/efi/console_control.h,
50460 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50461 include/grub/i386/efi/time.h, kern/efi/efi.c,
50462 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50463 and util/i386/efi/grub-mkimage.c.
50465 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50467 * genmk.rb (PModule#rule): Do not export symbols if
50468 #{prefix}_EXPORTS is set to "no".
50470 * conf/i386-efi.mk: New file.
50471 * conf/i386-efi.rmk: Likewise.
50472 * include/grub/efi/api.h: Likewise.
50473 * include/grub/efi/console_control.h: Likewise.
50474 * include/grub/efi/efi.h: Likewise.
50475 * include/grub/efi/pe32.h: Likewise.
50476 * include/grub/i386/efi/time.h: Likewise.
50477 * kern/efi/efi.c: Likewise.
50478 * kern/i386/efi/init.c: Likewise.
50479 * kern/i386/efi/startup.S: Likewise.
50480 * util/i386/efi/grub-mkimage.c: Likewise.
50482 2006-04-17 Marco Gerards <marco@gnu.org>
50484 * include/grub/script.h: Include <grub/parser.h> and
50485 "grub_script.tab.h".
50486 (struct grub_lexer_param): New struct.
50487 (struct grub_parser_param): Likewise.
50488 (grub_script_create_arglist): Pass the state in an argument.
50489 (grub_script_add_arglist): Likewise.
50490 (grub_script_create_cmdline): Likewise.
50491 (grub_script_create_cmdblock): Likewise.
50492 (grub_script_create_cmdif): Likewise.
50493 (grub_script_create_cmdmenu): Likewise.
50494 (grub_script_add_cmd): Likewise.
50495 (grub_script_arg_add): Likewise.
50496 (grub_script_lexer_ref): Likewise.
50497 (grub_script_lexer_deref): Likewise.
50498 (grub_script_lexer_record_start): Likewise.
50499 (grub_script_lexer_record_stop): Likewise.
50500 (grub_script_mem_record): Likewise.
50501 (grub_script_mem_record_stop): Likewise.
50502 (grub_script_malloc): Likewise.
50503 (grub_script_yylex): Likewise.
50504 (grub_script_yyparse): Likewise.
50505 (grub_script_yyerror): Likewise.
50506 (grub_script_yylex): Likewise.
50507 (grub_script_lexer_init): Return the state.
50509 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50510 (grub_script_lexer_done): Likewise.
50511 (grub_script_lexer_getline): Likewise.
50512 (grub_script_lexer_refs): Likewise.
50513 (script): Likewise.
50514 (newscript): Likewise.
50515 (record): Likewise.
50516 (recording): Likewise.
50517 (recordpos): Likewise.
50518 (recordlen): Likewise.
50519 (grub_script_lexer_init): Return the state instead of setting
50521 (grub_script_lexer_ref): Use the newly added argument for state
50522 instead of globals.
50523 (grub_script_lexer_deref): Likewise.
50524 (grub_script_lexer_record_start): Likewise.
50525 (grub_script_lexer_record_stop): Likewise.
50526 (recordchar): Likewise.
50527 (nextchar): Likewise.
50528 (grub_script_yylex2): Likewise.
50529 (grub_script_yylex): Likewise.
50530 (grub_script_yyerror): Likewise.
50532 * normal/parser.y (func_mem): Removed variable.
50533 (menu_entry): Likewise.
50535 (%lex-param): New parser option.
50536 (%parse-param): Likewise.
50537 (script): Always return the AST.
50538 (argument): Pass the state around.
50539 (arguments): Likewise.
50540 (grubcmd): Likewise.
50541 (commands): Likewise.
50542 (function): Likewise.
50543 (menuentry): Likewise.
50544 (if_statement): Likewise.
50547 * normal/script.c (grub_script_memused): Removed variable.
50548 (grub_script_parsed): Likewise.
50549 (grub_script_malloc): Added a state argument. Use that instead of
50551 (grub_script_mem_record): Likewise.
50552 (grub_script_mem_record_stop): Likewise.
50553 (grub_script_arg_add): Likewise.
50554 (grub_script_add_arglist): Likewise.
50555 (grub_script_create_cmdline): Likewise.
50556 (grub_script_create_cmdif): Likewise.
50557 (grub_script_create_cmdmenu): Likewise.
50558 (grub_script_add_cmd): Likewise.
50559 (grub_script_parse): Setup the state before calling the parser.
50561 2006-04-16 Marco Gerards <marco@gnu.org>
50563 * normal/command.c (grub_command_init): Remove the title command.
50565 * normal/lexer.c (grub_script_yylex): Renamed from this...
50566 (grub_script_yylex2): ... to this.
50567 (grub_script_yylex): New function. Temporary
50568 introduced to filter some tokens.
50569 (grub_script_yyerror): Print a newline.
50571 * normal/main.c (read_config_file): Output information about the
50572 lines that contain errors. Wait for a key after all lines have
50573 been processed. Don't return an empty menu.
50575 * normal/parser.y (func_mem): Don't initialize.
50576 (menu_entry): Likewise.
50577 (err): New variable.
50578 (script): Don't return anything when an error was encountered.
50579 (ws, returns): Removed rules.
50580 (argument): Disabled concatenated variable support.
50581 (arguments): Remove explicit separators.
50582 (grubcmd): Likewise.
50583 (function): Likewise.
50584 (menuentry): Likewise.
50586 (commands): Likewise. Add error handling.
50588 * normal/script.c (grub_script_create_cmdline): If
50589 `grub_script_parsed' is 0, assume the parser encountered an error.
50591 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50593 * configure.ac: Add support for EFI. Fix the typo
50594 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50596 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50598 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50599 foreign multibyte characters should be shown correctly.
50601 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50603 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50605 (read_config_file): Made it to close file before returning.
50607 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50609 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50610 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50611 video/i386/pc/vbefill.c.
50613 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50614 video/i386/pc/vbefill.c.
50616 * include/grub/video.h (grub_video_blit_format): New enum.
50617 (grub_video_mode_info): Added new member blit_format.
50618 (grub_video_get_blit_format): New function prototype.
50620 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50621 function prototype.
50622 (grub_video_vbe_map_rgb): Likewise.
50623 (grub_video_vbe_unmap_color): Likewise.
50625 * include/grub/i386/pc/vbeblit.h: New file.
50627 * include/grub/i386/pc/vbefill.h: New file.
50629 * video/video.c (grub_video_get_blit_format): New function.
50630 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50631 (grub_video_vbe_map_rgb): Likewise.
50632 (grub_video_vbe_unmap_color): Likewise.
50634 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50636 (grub_video_vbe_blit_render_target): Changed to use more optimized
50638 (grub_video_vbe_setup): Added detection for optimized settings.
50639 (grub_video_vbe_create_render_target): Likewise.
50641 * video/i386/pc/vbeblit.c: New file.
50643 * video/i386/pc/vbefill.c: New file.
50645 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50647 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50650 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50651 parsing to support both hex and dec ranges. If filename was missing
50652 show usage information.
50654 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50656 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50657 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50659 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50660 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50661 (video_mod_SOURCES): Added.
50662 (video_mod_CFLAGS): Likewise.
50663 (video_mod_LDFLAGS): Likewise.
50664 (gfxterm_mod_SOURCES): Likewise.
50665 (gfxterm_mod_CFLAGS): Likewise.
50666 (gfxterm_mod_LDFLAGS): Likewise.
50667 (videotest_mod_SOURCES): Likewise.
50668 (videotest_mod_CFLAGS): Likewise.
50669 (videotest_mod_LDFLAGS): Likewise.
50670 (vesafb_mod_SOURCES): Removed.
50671 (vesafb_mod_CFLAGS): Likewise.
50672 (vesafb_mod_LDFLAGS): Likewise.
50673 (vga_mod_SOURCES): Likewise.
50674 (vga_mod_CFLAGS): Likewise.
50675 (vga_mod_LDFLAGS): Likewise.
50677 * commands/videotest.c: New file.
50679 * font/manager.c (fill_with_default_glyph): Modified to use
50681 (grub_font_get_glyph): Likewise.
50682 (fontmanager): Renamed from this...
50683 (font_manager): ... to this.
50685 * include/grub/font.h (grub_font_glyph): Added new structure.
50686 (grub_font_get_glyph): Modified to use grub_font_glyph.
50688 * include/grub/misc.h (grub_abs): Added as inline function.
50690 * include/grub/video.h: New file.
50692 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50693 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50694 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50695 (grub_vbe_get_controller_info): Renamed from this...
50696 (grub_vbe_bios_get_controller_info): ... to this.
50697 (grub_vbe_get_mode_info): Renamed from this...
50698 (grub_vbe_bios_get_mode_info): ... to this.
50699 (grub_vbe_set_mode): Renamed from this...
50700 (grub_vbe_bios_set_mode): ... to this.
50701 (grub_vbe_get_mode): Renamed from this...
50702 (grub_vbe_bios_get_mode): ... to this.
50703 (grub_vbe_set_memory_window): Renamed from this...
50704 (grub_vbe_bios_set_memory_window): ... to this.
50705 (grub_vbe_get_memory_window): Renamed from this...
50706 (grub_vbe_bios_get_memory_window): ... to this.
50707 (grub_vbe_set_scanline_length): Renamed from this...
50708 (grub_vbe_set_scanline_length): ... to this.
50709 (grub_vbe_get_scanline_length): Renamed from this...
50710 (grub_vbe_bios_get_scanline_length): ... to this.
50711 (grub_vbe_set_display_start): Renamed from this...
50712 (grub_vbe_bios_set_display_start): ... to this.
50713 (grub_vbe_get_display_start): Renamed from this...
50714 (grub_vbe_bios_get_display_start): ... to this.
50715 (grub_vbe_set_palette_data): Renamed from this...
50716 (grub_vbe_bios_set_palette_data): ... to this.
50717 (grub_vbe_set_pixel_rgb): Removed.
50718 (grub_vbe_set_pixel_index): Likewise.
50720 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50722 (grub_vbe_bios_get_controller_info): ... to this.
50723 (grub_vbe_get_mode_info): Renamed from this...
50724 (grub_vbe_bios_get_mode_info): ... to this.
50725 (grub_vbe_set_mode): Renamed from this...
50726 (grub_vbe_bios_set_mode): ... to this.
50727 (grub_vbe_get_mode): Renamed from this...
50728 (grub_vbe_bios_get_mode): ... to this.
50729 (grub_vbe_set_memory_window): Renamed from this...
50730 (grub_vbe_bios_set_memory_window): ... to this.
50731 (grub_vbe_get_memory_window): Renamed from this...
50732 (grub_vbe_bios_get_memory_window): ... to this.
50733 (grub_vbe_set_scanline_length): Renamed from this...
50734 (grub_vbe_set_scanline_length): ... to this.
50735 (grub_vbe_get_scanline_length): Renamed from this...
50736 (grub_vbe_bios_get_scanline_length): ... to this.
50737 (grub_vbe_set_display_start): Renamed from this...
50738 (grub_vbe_bios_set_display_start): ... to this.
50739 (grub_vbe_get_display_start): Renamed from this...
50740 (grub_vbe_bios_get_display_start): ... to this.
50741 (grub_vbe_set_palette_data): Renamed from this...
50742 (grub_vbe_bios_set_palette_data): ... to this.
50743 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50744 getting corrupted after calling it. Added more pushes and pops.
50745 (grub_vbe_bios_set_mode): Likewise.
50746 (grub_vbe_bios_get_mode): Likewise.
50747 (grub_vbe_bios_get_memory_window): Likewise.
50748 (grub_vbe_bios_set_scanline_length): Likewise.
50749 (grub_vbe_bios_get_scanline_length): Likewise.
50750 (grub_vbe_bios_get_display_start): Likewise.
50751 (grub_vbe_bios_set_palette_data): Likewise.
50753 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50754 (cl_insert): Likewise.
50755 (cl_delete): Likewise.
50757 * term/gfxterm.c: New file.
50759 * term/i386/pc/vesafb.c: Removed file.
50761 * video/video.c: New file.
50763 * video/i386/pc/vbe.c (real2pm): Added new function.
50764 (grub_video_vbe_draw_pixel): Likewise.
50765 (grub_video_vbe_get_video_ptr): Likewise.
50766 (grub_video_vbe_get_pixel): Likewise
50767 (grub_video_vbe_init): Likewise.
50768 (grub_video_vbe_fini): Likewise.
50769 (grub_video_vbe_setup): Likewise.
50770 (grub_video_vbe_get_info): Likewise.
50771 (grub_video_vbe_set_palette): Likewise.
50772 (grub_video_vbe_get_palette): Likewise.
50773 (grub_video_vbe_set_viewport): Likewise.
50774 (grub_video_vbe_get_viewport): Likewise.
50775 (grub_video_vbe_map_color): Likewise.
50776 (grub_video_vbe_map_rgb): Likewise.
50777 (grub_video_vbe_map_rgba): Likewise.
50778 (grub_video_vbe_unmap_color): Likewise.
50779 (grub_video_vbe_fill_rect): Likewise.
50780 (grub_video_vbe_blit_glyph): Likewise.
50781 (grub_video_vbe_blit_bitmap): Likewise.
50782 (grub_video_vbe_blit_render_target): Likewise.
50783 (grub_video_vbe_scroll): Likewise.
50784 (grub_video_vbe_swap_buffers): Likewise.
50785 (grub_video_vbe_create_render_target): Likewise.
50786 (grub_video_vbe_delete_render_target): Likewise.
50787 (grub_video_vbe_set_active_render_target): Likewise.
50788 (grub_vbe_set_pixel_rgb): Remove function.
50789 (grub_vbe_set_pixel_index): Likewise.
50790 (index_color_mode): Remove static variable.
50791 (active_mode): Likewise.
50792 (framebuffer): Likewise.
50793 (bytes_per_scan_line): Likewise.
50794 (grub_video_vbe_adapter): Added new static variable.
50795 (framebuffer): Likewise.
50796 (render_target): Likewise.
50797 (initial_mode): Likewise.
50798 (mode_in_use): Likewise.
50799 (mode_list): Likewise.
50801 2006-03-10 Marco Gerards <marco@gnu.org>
50803 * configure.ac (AC_INIT): Bumped to 1.93.
50805 * DISTLIST: Added `include/grub/hfs.h'.
50807 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50809 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50810 18H, which might help the BIOS falling back to next boot media.
50812 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50814 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50815 Poe Chen <poe.poechen@gmail.com>.
50817 2006-01-17 Marco Gerards <marco@gnu.org>
50819 * include/grub/normal.h: Include <grub/script.h>.
50820 (grub_command_list): Removed struct.
50821 (grub_command_list_t): Removed type.
50822 (grub_menu_entry): Remove members `num' and `command_list'. Add
50823 members `commands' and `sourcecode'.
50824 * include/grub/script.h: Add inclusion guards.
50825 (grub_script_cmd_menuentry): New struct.
50826 (grub_script_execute_menuentry): New prototype.
50827 (grub_script_lexer_record_start): Likewise.
50828 (grub_script_lexer_record_stop): Likewise.
50829 * normal/execute.c (grub_script_execute_menuentry): New function.
50830 * normal/lexer.c (record, recording, recordpos, recordlen): New
50832 (grub_script_lexer_record_start): New function.
50833 (grub_script_lexer_record_stop): Likewise.
50834 (recordchar): Likewise.
50835 (nextchar): Likewise.
50836 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50837 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50838 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50839 (current_menu): New variable.
50840 (free_menu): Mainly rewritten.
50841 (grub_normal_menu_addentry): New function.
50842 (read_config_file): Rewritten.
50843 * normal/menu.c (run_menu_entry): Mainly rewritten.
50844 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50846 (run): Mainly rewritten.
50847 * normal/parser.y (menu_entry): New variable.
50848 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50849 (menuentry): New rule.
50850 (command): Add `menuentry'.
50851 (if_statement): Allow additional returns before `fi'.
50852 * normal/script.c (grub_script_create_cmdmenu): New function.
50854 2006-01-03 Marco Gerards <marco@gnu.org>
50856 * INSTALL: GNU Bison is required.
50857 * configure.ac: Rewritten the test to detect Bison.
50858 * Makefile.in (YACC): New variable. Reported by Xun Sun
50859 <xun.sun.cn@gmail.com>.
50861 2006-01-03 Marco Gerards <marco@gnu.org>
50863 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50864 the HFS+ filesystem to filesystem blocks.
50865 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50866 GCC warning is silenced.
50868 2006-01-03 Marco Gerards <marco@gnu.org>
50870 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50871 read from disk from big endian to host byte order.
50873 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50875 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50877 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50878 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50879 embedded HFS+ filesystem.
50880 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50881 (grub_hfs_sblock): Move from here...
50882 * include/grub/hfs.h: To here... New file.
50883 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50885 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50887 (grub_hfsplus_volheader): Change type of member `magic' to
50889 (grub_hfsplus_data): Add new member `embedded_offset'.
50890 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50892 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50893 Calculate the offset.
50895 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50897 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50899 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50901 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50903 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50904 ENV->NAME is NULL after allocating ENV->VALUE.
50906 2005-12-25 Marco Gerards <marco@gnu.org>
50908 * kern/env.c (grub_env_set): Rewritten the error handling code.
50910 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50912 * geninit.sh: Made more robust, and more portable.
50914 2005-12-25 Marco Gerards <marco@gnu.org>
50916 Add support for Apple HFS+ filesystems.
50918 * fs/hfsplus.c: New file.
50920 * DISTLIST: Added `fs/hfsplus.c'.
50922 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50923 (hfsplus_mod_SOURCES): New variable.
50924 (hfsplus_mod_CFLAGS): Likewise.
50925 (hfsplus_mod_LDFLAGS): Likewise.
50926 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50927 (grub_setup_SOURCES): Likewise.
50928 (grub_mkdevicemap_SOURCES): Likewise.
50929 (grub_emu_SOURCES): Likewise.
50930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50932 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50934 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50936 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50938 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50939 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50940 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50941 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50942 normal/lexer.c, normal/parser.y, normal/script.c, and
50944 Removed kern/sparc64/cache.c.
50946 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50947 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50950 * configure.ac (AC_INIT): Bumped to 1.92.
50952 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50954 * kern/err.c (grub_error_push): Added new function to support error
50956 (grub_error_pop): Likewise.
50957 (grub_error_stack_items): New local variable to support error stacks.
50958 (grub_error_stack_pos): Likewise.
50959 (grub_error_stack_assert): Likewise.
50960 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50962 (grub_print_error): Added support to print errors from error stack.
50964 * include/grub/err.h (grub_error_push): Added function prototype.
50965 (grub_error_pop): Likewise.
50967 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50969 * configure.ac: Accept `powerpc64' as host_cpu.
50970 (amd64): Rename to `biarch32'.
50972 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50973 non-cacheline-aligned addresses.
50975 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50976 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50977 if `size' is non-zero.
50979 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50981 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50982 and `cd' to make sure the filename is not prefixed with a
50984 (pkgdata_MODULES): Add `gpt.mod'.
50985 (gpt_mod_SOURCES): New variable.
50986 (gpt_mod_CFLAGS): Likewise.
50987 (gpt_mod_LDFLAGS): Likewise.
50989 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50991 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50994 * partmap/gpt.c: New file.
50996 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50997 GPT partition map is detected.
50999 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51001 * commands/i386/pc/play.c: New file.
51002 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51003 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51006 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51008 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51009 ((unused))' to silence gcc warning.
51011 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51013 * configure.ac: Correct `AC_PROG_YACC' test.
51015 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51017 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51018 check before installing files.
51020 2005-11-22 Mike Small <smallm@panix.com>
51022 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51023 number regex so multidigit numbers are recognized correctly.
51025 2005-11-22 Mike Small <smallm@panix.com>
51027 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51028 debugging message before attempting to claim memory.
51029 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51030 multiple addresses in case of failure.
51032 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51034 * term/tparm.c (get_space): Remove empty `if' statement.
51036 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51038 * kern/parser.c (check_varstate): Rename `state' to 's'.
51040 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51042 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51043 variable definitions to the beginning of each function. Sort stack
51045 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51046 `buf' argument to `char *'.
51048 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51050 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51051 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51052 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51053 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51054 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51055 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51056 configfile.mod, search.mod, gzio.mod and test.mod.
51057 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51058 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51059 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51060 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51061 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51062 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51063 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51064 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51065 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51066 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51067 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51068 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51069 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51070 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51071 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51072 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51073 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51074 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51075 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51076 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51077 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51078 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51079 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51081 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51083 (pkgdata_MODULES): Add test.mod.
51085 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51087 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51088 appending to variables with "+=".
51089 (PModule): Use full pathname to generate *.lst filenames.
51091 * Makefile.in: Fixed list rules moved from genmk.rb.
51092 (.DELETE_ON_ERROR): New special target.
51093 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51095 * conf/i386-pc.rmk: Include conf/common.mk.
51096 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51097 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51098 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51099 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51100 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51101 configfile.mod, search.mod, gzio.mod and test.mod.
51102 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51103 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51104 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51105 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51106 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51107 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51108 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51109 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51110 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51111 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51112 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51113 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51114 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51115 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51116 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51117 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51118 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51119 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51120 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51121 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51122 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51123 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51124 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51126 * conf/common.rmk: ... to here. New file.
51128 * conf/common.mk: New file.
51130 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51132 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51133 (grub_script.tab.c): ... here.
51135 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51136 (grub_script.tab.c): ... here.
51138 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51139 (grub_script.tab.c): ... here.
51141 * normal/command.c (grub_command_find): Fixed a memory leak of
51142 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51144 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51146 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51147 "@" which marks the start of a comment on ARM.
51148 (VARIABLE): Likewise.
51150 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51152 Add support for Linux/ADFS partition tables.
51154 * partmap/acorn.c: New file.
51156 * include/grub/acorn_filecore.h: Likewise.
51158 * DISTLIST: Added `partmap/acorn.c' and
51159 `include/grub/acorn_filecore.h'.
51161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51163 (pkgdata_MODULES): Add `acorn.mod'.
51164 (acorn_mod_SOURCES): New variable.
51165 (acorn_mod_CFLAGS): Likewise.
51167 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51169 (pkgdata_MODULES): Add `acorn.mod'.
51170 (acorn_mod_SOURCES): New variable.
51171 (acorn_mod_CFLAGS): Likewise.
51173 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51174 (pkgdata_MODULES): Add `acorn.mod'.
51175 (acorn_mod_SOURCES): New variable.
51176 (acorn_mod_CFLAGS): Likewise.
51177 (acorn_mod_LDFLAGS): Likewise.
51179 * include/types.h (grub_disk_addr_t): New typedef.
51181 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51183 * geninit.sh: New file.
51185 * geninitheader.sh: Likewise.
51187 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51188 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51189 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51190 * commands/configfile.c (grub_configfile_init)
51191 (grub_configfile_fini): Likewise.
51192 * commands/default.c (grub_default_init, grub_default_fini):
51194 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51195 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51196 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51197 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51199 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51200 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51202 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51203 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51205 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51207 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51209 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51210 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51211 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51212 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51213 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51214 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51215 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51216 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51217 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51218 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51219 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51220 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51221 * partmap/amiga.c (grub_amiga_partition_map_init)
51222 (grub_amiga_partition_map_fini): Likewise.
51223 * partmap/apple.c (grub_apple_partition_map_init)
51224 (grub_apple_partition_map_fini): Likewise.
51225 * partmap/pc.c (grub_pc_partition_map_init)
51226 (grub_pc_partition_map_fini): Likewise.
51227 * partmap/sun.c (grub_sun_partition_map_init,
51228 grub_sun_partition_map_fini): Likewise.
51229 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51232 * util/grub-emu.c: Include <grub_modules_init.h>.
51233 (main): Don't initialize and de-initialize any modules directly,
51234 use `grub_init_all' and `grub_fini_all' instead.
51236 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51237 `grub_vesafb_mod_init'.
51238 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51240 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51241 `grub_vga_mod_init'. Updated all users.
51242 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51244 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51245 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51248 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51249 Generate a function to initialize the module in utilities.
51250 Updated all callers.
51251 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51252 initialize the module in utilities. Updated all callers.
51254 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51256 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51257 escape sequence and a literal ^L to clear the screen.
51259 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51260 when returning from Open Firmware.
51262 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51264 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51265 (grub_ofconsole_height): Likewise.
51266 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51267 manually insert a '\n'.
51268 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51269 `grub_ofconsole_height'. Return early if these are already set.
51271 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51273 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51274 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51275 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51276 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51277 and `normal/script.c'.
51278 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51279 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51280 (test_mod_SOURCES): New variable.
51281 (test_mod_CFLAGS): Likewise.
51282 (test_mod_LDFLAGS): Likewise.
51283 (pkgdata_MODULES): Add `test.mod'.
51284 (grub_script.tab.c): New rule.
51285 (grub_script.tab.h): Likewise.
51287 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51290 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51291 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51292 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51293 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51294 (test_mod_SOURCES): New variable.
51295 (test_mod_CFLAGS): Likewise.
51296 (pkgdata_MODULES): Add `test.mod'.
51297 (grub_script.tab.c): New rule.
51298 (grub_script.tab.h): Likewise.
51300 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51302 Add initial scripting support.
51304 * commands/test.c: New file.
51305 * include/grub/script.h: Likewise.
51306 * normal/execute.c: Likewise.
51307 * normal/function.c: Likewise.
51308 * normal/lexer.c: Likewise.
51309 * normal/parser.y: Likewise.
51310 * normal/script.c: Likewise.
51312 * configure.ac: Add `AC_PROG_YACC' test.
51314 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51315 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51316 `normal/function.c' and `normal/script.c'.
51317 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51318 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51319 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51321 (pkgdata_MODULES): Add `test.mod'.
51322 (grub_script.tab.c): New rule.
51323 (grub_script.tab.h): Likewise.
51325 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51327 * include/grub/normal.h (grub_test_init): New prototype.
51328 (grub_test_fini): Likewise.
51330 * normal/command.c: Include <grub/script.h>.
51331 (grub_command_execute): Rewritten.
51333 * util/grub-emu.c (main): Call `grub_test_init' and
51336 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51338 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51340 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51341 there are no pending characters.
51343 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51345 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51346 `grub_strndup' to drop device arguments. Replace unnecessary
51347 `grub_strndup' with `grub_strdup'.
51349 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51351 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51352 `debug' environment variable has been set.
51354 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51356 * Makefile.in (install-local): Use $(DATA).
51357 (uninstall): Likewise.
51358 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51359 (sbin_UTILITIES): ... to here.
51360 (sbin_SCRIPTS): New variable.
51361 (grub_install_SOURCES): New variable.
51362 * util/powerpc/ieee1275/grub-install.in: New file.
51363 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51365 (add_segments): Call `grub_util_get_path'.
51367 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51369 From Timothy Baldwin:
51370 * commands/ls.c (grub_ls_list_files): Close FILE with
51372 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51374 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51376 * include/grub/parser.h: New file.
51378 * kern/parser.c: Likewise.
51380 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51381 (grub_setup_SOURCES): Likewise.
51382 (grub_probefs_SOURCES): Likewise.
51383 (grub_emu_SOURCES): Likewise.
51384 (kernel_img_HEADERS): Add `parser.h'.
51386 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51387 (grub_emu_SOURCES): Add `kern/parser.c'.
51388 (grubof_SOURCES): Likewise.
51390 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51391 (grubof_SOURCES): Add `kern/parser.c'.
51393 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51395 * kern/misc.c (grub_split_cmdline): Removed function.
51397 * kern/rescue.c: Include <grub/parser.h>.
51398 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51399 of `grub_split_cmdline'.
51401 * normal/command.c: Include <grub/parser.h>.
51402 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51403 of `grub_split_cmdline'.
51405 * normal/completion.c: Include <grub/parser.h>.
51406 (cmdline_state): New variable.
51407 (iterate_dir): End the filename with a quote depending on the
51408 command line state.
51409 (get_state): new function.
51410 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51411 split the arguments and determine the current argument. When the
51412 argument string is not quoted, escape all spaces.
51414 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51416 * normal/sparc64/setjmp.S: New file.
51418 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51420 * include/grub/sparc64/libgcc.h: New file.
51421 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51422 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51423 normal/sparc64/setjmp.c.
51425 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51427 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51428 * kern/sparc64/cache.S: New file.
51429 * kern/sparc64/cache.c: Removed.
51430 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51431 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51433 (COMMON_LDFLAGS): Add -melf64_sparc.
51434 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51435 (grubof_SOURCES): Use cache.S instead of cache.c.
51436 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51437 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51438 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51440 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51441 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51442 (linux_mod_CFLAGS): Commented out.
51443 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51444 out because module isn't built.
51445 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51446 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51447 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51448 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51449 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51450 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51451 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51452 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51453 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51454 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51455 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51456 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51457 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51458 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51460 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51462 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51463 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51464 longer, because HFS should not be used on PC.
51466 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51468 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51469 consistently within the loop.
51471 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51473 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51474 directory can not be read.
51476 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51478 * configure.ac (AC_INIT): Increase the version number to 1.91.
51480 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51481 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51482 term/i386/pc/serial.c.
51484 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51486 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51487 file size must be permitted.
51489 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51490 between %ah and %al.
51492 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51494 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51496 Call the hook with a NUL-terminated filename.
51497 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51500 * kern/term.c (cursor_state): New variable.
51501 (grub_term_set_current): Reset the cursor state on a new
51503 (grub_setcursor): Rewritten to use CURSOR_STATE.
51504 (grub_getcursor): New function.
51506 * include/grub/term.h (grub_getcursor): New prototype.
51508 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51509 integers on ARM. Reported by Timothy Baldwin
51510 <T.E.Baldwin99@members.leeds.ac.uk>.
51512 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51514 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51516 (grub_sfs_dir): Likewise.
51518 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51520 Add support for the SFS filesystem.
51522 * fs/sfs.c: New file.
51524 * DISTLIST: Added `fs/sfs.c'.
51526 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51527 (grub_probefs_SOURCES): Likewise.
51528 (grub_emu_SOURCES): Likewise.
51529 (pkgdata_MODULES): Add `sfs.mod'.
51530 (sfs_mod_SOURCES): New variable.
51531 (sfs_mod_CFLAGS): Likewise.
51532 (sfs_mod_LDFLAGS): Likewise.
51534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51535 (pkgdata_MODULES): Add `sfs.mod'.
51536 (sfs_mod_SOURCES): New variable.
51537 (sfs_mod_CFLAGS): Likewise.
51539 * util/grub-emu.c (main): Call `grub_sfs_init' and
51542 * include/grub/fs.h (grub_sfs_init): New prototype.
51543 (grub_sfs_fini): Likewise.
51545 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51547 Add support for the AFFS filesystem.
51549 * fs/affs.c: New file.
51551 * DISTLIST: Added `fs/affs.c'.
51553 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51554 (grub_probefs_SOURCES): Likewise.
51555 (grub_emu_SOURCES): Likewise.
51556 (pkgdata_MODULES): Add `affs.mod'.
51557 (affs_mod_SOURCES): New variable.
51558 (affs_mod_CFLAGS): Likewise.
51559 (affs_mod_LDFLAGS): Likewise.
51561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51562 (pkgdata_MODULES): Add `affs.mod'.
51563 (affs_mod_SOURCES): New variable.
51564 (affs_mod_CFLAGS): Likewise.
51566 * util/grub-emu.c (main): Call `grub_affs_init' and
51569 * include/grub/fs.h (grub_affs_init): New prototype.
51570 (grub_affs_fini): Likewise.
51572 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51574 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51576 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51578 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51581 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51584 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51585 (COMMON_LDFLAGS): New variable.
51586 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51587 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51588 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51589 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51590 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51591 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51592 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51593 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51594 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51595 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51596 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51597 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51598 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51599 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51600 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51602 (normal_mod_ASFLAGS): Add `-m32'.
51604 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51605 (grub_host_size_t, grub_host_ssize_t): New types.
51606 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51607 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51608 `GRUB_HOST_SIZEOF_VOID_P'.
51610 * include/grub/kernel.h (struct grub_module_header): Type of
51611 member offset changed to `grub_host_off_t'. Type of member size
51612 changed to `grub_host_size_t'.
51613 (struct grub_module_info): Type of member offset changed to
51614 `grub_host_off_t'. Type of member size changed to
51615 `grub_host_size_t'.
51617 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51619 Make GRUB's kernel compliant to Multiboot Specification.
51621 * kern/i386/pc/startup.S (multiboot_header): New label.
51622 (multiboot_entry): Likewise.
51623 (multiboot_trampoline): Likewise.
51625 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51626 Increased to 0x4A0.
51628 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51629 put parentheses after a question mark.
51630 [!GRUB_UTIL] (my_mod): New variable.
51632 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51634 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51636 Adds support for the XFS filesystem. Btrees are not supported
51639 * fs/xfs.c: New file.
51641 * DISTLIST: Added `fs/xfs.c'.
51643 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51644 (grub_probefs_SOURCES): Likewise.
51645 (grub_emu_SOURCES): Likewise.
51646 (pkgdata_MODULES): Add `xfs.mod'.
51647 (xfs_mod_SOURCES): New variable.
51648 (xfs_mod_CFLAGS): Likewise.
51650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51651 (pkgdata_MODULES): Add `xfs.mod'.
51652 (xfs_mod_SOURCES): New variable.
51653 (xfs_mod_CFLAGS): Likewise.
51655 * util/grub-emu.c (main): Call `grub_xfs_init' and
51658 * include/grub/fs.h (grub_xfs_init): New prototype.
51659 (grub_xfs_fini): Likewise.
51662 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51664 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51665 color modes, allow greater than 16 colors to be configured as
51668 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51670 * normal/completion.c (complete_arguments): Add the qualifier
51671 const into OPTIONS.
51673 From Omniflux <omniflux+lists@omniflux.com>:
51674 * include/grub/terminfo.h: New file.
51675 * include/grub/tparm.h: Likewise.
51676 * include/grub/i386/pc/serial.h: Likewise.
51677 * term/terminfo.c: Likewise.
51678 * term/tparm.c: Likewise.
51679 * term/i386/pc/serial.c: Likewise.
51680 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51682 (terminfo_mod_SOURCES): New variable.
51683 (terminfo_mod_CFLAGS): Likewise.
51684 (serial_mod_SOURCES): Likewise.
51685 (serial_mod_CFLAGS): Likewise.
51687 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51689 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51690 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51691 and kern/powerpc/ieee1275/cmain.c, respectively.
51693 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51694 * kern/powerpc/ieee1275/crt0.S: ... here.
51696 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51697 * kern/powerpc/ieee1275/cmain.c: ... here.
51699 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51700 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51701 instead of boot/powerpc/ieee1275/crt0.S and
51702 boot/powerpc/ieee1275/cmain.c, respectively.
51704 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51705 sectors. It was not used anyway.
51707 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51709 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51710 `unused parameter' warning.
51712 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51714 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51716 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51719 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51721 * include/grub/normal.h (enum grub_completion_type): Added
51722 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51724 * normal/cmdline.c (print_completion): Handle
51725 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51726 * normal/menu_entry.c (store_completion): Likewise.
51728 * normal/completion.c (complete_arguments): New function.
51729 (grub_normal_do_completion): Call `complete_arguments' when the
51730 current words start with a dash.
51732 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51734 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51735 `gzio.mod' instead of `io.mod').
51737 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51739 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51740 (DISTDIRS): Added io and video.
51741 Rewrite the search routine to make an output consistently.
51743 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51744 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51745 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51746 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51747 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51748 util/powerpc/ieee1275/misc.c.
51750 * include/grub/gzio.h: New file.
51751 * io/gzio.c: Likewise.
51753 * kern/file.c (grub_file_close): Call grub_device_close only if
51754 FILE->DEVICE is not NULL.
51756 * include/grub/mm.h [!NULL] (NULL): New macro.
51758 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51761 (pkgdata_MODULES): Added gzio.mod.
51762 (gzio_mod_SOURCES): New variable.
51763 (gzio_mod_CFLAGS): Likewise.
51765 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51766 (pkgdata_MODULES): Added gzio.mod.
51767 (gzio_mod_SOURCES): New variable.
51768 (gzio_mod_CFLAGS): Likewise.
51770 * commands/cat.c: Include grub/gzio.h.
51771 (grub_cmd_cat): Use grub_gzfile_open instead of
51774 * commands/cmp.c: Include grub/gzio.h.
51775 (grub_cmd_cmp): Use grub_gzfile_open instead of
51778 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51779 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51781 (grub_rescue_cmd_module): Likewise.
51783 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51785 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51786 kern/sparc64/ieee1275/init.c because it contains _start.
51787 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51789 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51791 * configure.ac: Add support for sparc64 host with ieee1275
51793 * configure: Generated from configure.ac.
51794 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51796 (grub_ofdisk_read): Likewise.
51797 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51798 pointers as (void *) to remove a warning.
51799 (grub_ofdisk_close): Likewise.
51800 (grub_ofdisk_read): Likewise.
51801 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51802 returns, so make it return void to remove a warning.
51803 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51804 Corresponding prototype change.
51805 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51806 values, and cast the pointers as (void *) to remove a warning.
51807 (grub_mm_dump): Likewise.
51808 * conf/sparc64-ieee1275.mk: New file.
51809 * conf/sparc64-ieee1275.rmk: Likewise.
51810 * include/grub/sparc64/setjmp.h: Likewise.
51811 * include/grub/sparc64/types.h: Likewise.
51812 * include/grub/sparc64/ieee1275/console.h: Likewise.
51813 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51814 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51815 * include/grub/sparc64/ieee1275/time.h: Likewise.
51816 * kern/sparc64/cache.c: Likewise.
51817 * kern/sparc64/dl.c: Likewise.
51818 * kern/sparc64/ieee1275/init.c: Likewise.
51819 * kern/sparc64/ieee1275/openfw.c: Likewise.
51821 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51823 * util/console.c (grub_ncurses_putchar): If C is greater than
51824 0x7f, set C to a question mark.
51825 (grub_ncurses_getcharwidth): New function.
51826 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51829 * normal/menu.c (print_entry): Made aware of Unicode. First,
51830 convert TITLE to UCS-4, and predict the cursor position by
51833 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51835 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51837 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51839 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51840 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51843 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51844 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51845 grub_strcpy and grub_strlen. Take it into account that a space
51846 character is inserted as a delimiter.
51848 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51850 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51851 invalid magic in the error.
51853 * commands/search.c: New file.
51855 * util/grub-emu.c (main): Call grub_search_init and
51858 * kern/rescue.c (grub_rescue_print_disks): Removed.
51859 (grub_rescue_print_devices): New function.
51860 (grub_rescue_cmd_ls): Use grub_device_iterate with
51861 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51862 grub_rescue_print_disks.
51864 * kern/partition.c (grub_partition_iterate): Return the result of
51865 PARTMAP->ITERATE instead of GRUB_ERRNO.
51867 * kern/device.c: Include grub/partition.h.
51868 (grub_device_iterate): New function.
51870 * include/grub/partition.h (grub_partition_iterate): Return int
51871 instead of grub_err_t.
51873 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51875 [GRUB_UTIL] (grub_search_fini): Likewise.
51877 * include/grub/device.h (grub_device_iterate): New prototype.
51879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51881 (pkgdata_MODULES): Added search.mod.
51882 (search_mod_SOURCES): New variable.
51883 (search_mod_CFLAGS): Likewise.
51885 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51886 (pkgdata_MODULES): Added search.mod.
51887 (search_mod_SOURCES): New variable.
51888 (search_mod_CFLAGS): Likewise.
51890 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51891 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51892 All callers changed.
51894 * DISTLIST: Added commands/search.c.
51896 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51898 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51900 (grub_getcharwidth): New function.
51902 * kern/misc.c (grub_utf8_to_ucs4): New function.
51904 * include/grub/term.h (struct grub_term): Added a new member
51906 (grub_getcharwidth): New prototype.
51908 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51910 * term/i386/pc/console.c (map_char): New function. Segregated from
51911 grub_console_putchar.
51912 (grub_console_putchar): Use map_char.
51913 (grub_console_getcharwidth): New function.
51914 (grub_console_term): Specified grub_console_getcharwidth as
51917 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51918 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51920 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51922 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51923 on grub_strtoul completely.
51924 (write_char): Declare local variables in the beginning of the
51926 (grub_vesafb_getcharwidth): New function.
51927 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51930 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51932 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51933 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51934 commands/i386/pc/vbetest.c.
51936 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51937 call grub_vbe_get_controller_info again, because the returned
51938 information is volatile.
51939 (grub_vbe_set_video_mode): Mostly rewritten.
51940 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51941 grub_vbe_status_t correctly.
51942 (grub_vbe_get_video_mode_info): Likewise.
51943 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51944 several if statements.
51946 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51947 * commands/i386/pc/vbeinfo.c: ... this.
51949 * commands/i386/pc/vbe_test.c: Renamed to ...
51950 * commands/i386/pc/vbetest.c: ... this.
51952 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51954 (grub_cmd_vbeinfo): ... this. Save video modes before
51955 iterating. Skip a video mode, if it is not available, not enough
51956 information is given or it is monochrome. Show the memory
51957 model. Leave the interpretation of MODEVAR to grub_strtoul
51959 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51960 (GRUB_MOD_FINI): Likewise.
51962 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51963 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51964 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51965 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51966 grub_strtoul completely.
51967 (real2pm): Removed.
51968 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51969 (GRUB_MOD_FINI): Likewise.
51971 * normal/misc.c: Include grub/mm.h.
51973 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51974 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51975 (vbe_list_modes_mod_SOURCES): Removed.
51976 (vbe_list_modes_mod_CFLAGS): Likewise.
51977 (vbe_test_mod_SOURCES): Likewise.
51978 (vbe_test_mod_CFLAGS): Likewise.
51979 (vbeinfo_mod_SOURCES): New variable.
51980 (vbeinfo_mod_CFLAGS): Likewise.
51981 (vbetest_mod_SOURCES): Likewise.
51982 (vbetest_mod_CFLAGS): Likewise.
51984 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51986 * normal/misc.c: New file.
51988 * DISTLIST: Added normal/misc.c.
51990 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51991 DISK to HOOK. Call HOOK with DISK.
51992 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51993 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51994 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51996 * normal/menu_entry.c (struct screen): Added a new member
51997 "completion_shown".
51998 (completion_buffer): New global variable.
51999 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52000 (store_completion): New function.
52001 (complete): Likewise.
52002 (clear_completions): Likewise.
52003 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52004 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52005 a tab, call complete.
52007 * normal/completion.c (disk_dev): Removed.
52008 (print_simple_completion): Likewise.
52009 (print_partition_completion): Likewise.
52010 (print_func): New global variable.
52011 (add_completion): Do not take the arguments WHAT or PRINT any
52012 longer. Added a new argument TYPE. Instead of printing directly,
52013 call PRINT_FUNC if not NULL.
52014 All callers changed.
52015 (complete_device): Use a local variable DEV instead of
52016 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52017 (grub_normal_do_completion): Take a new argument HOOK. Do not
52018 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52019 empty string, return NULL instead.
52020 All callers changed.
52022 * normal/cmdline.c (print_completion): New function.
52024 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52026 All callers changed.
52028 * kern/disk.c (grub_print_partinfo): Removed.
52030 * include/grub/partition.h (struct grub_partition_map): Add a new
52031 argument DISK into HOOK of ITERATE.
52032 (grub_partition_iterate): Add a new argument DISK to HOOK.
52034 * include/grub/normal.h (enum grub_completion_type): New enum.
52035 (grub_completion_type_t): New type.
52036 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52037 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52038 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52039 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52040 (grub_normal_do_completion): Added a new argument HOOK.
52041 (grub_normal_print_device_info): New prototype.
52043 * include/grub/disk.h (grub_print_partinfo): Removed.
52045 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52046 (normal_mod_SOURCES): Likewise.
52047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52048 (normal_mod_SOURCES): Likewise.
52050 * commands/ls.c (grub_ls_list_disks): Use
52051 grub_normal_print_device_info instead of grub_print_partinfo. Free
52053 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52054 duplicating the code.
52056 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52058 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52059 follow GCS more precisely.
52060 * commands/i386/pc/vbe_test.c: Likewise.
52061 * include/grub/i386/pc/vbe.h: Likewise.
52062 * term/i386/pc/vesafb.c: Likewise.
52063 * video/i386/pc/vbe.c: Likewise.
52065 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52067 * DISTLIST: Added term/i386/pc/vesafb.c
52068 DISTLIST: Added video/i386/pc/vbe.c
52069 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52070 DISTLIST: Added commands/i386/pc/vbe_test.c.
52071 * commands/i386/pc/vbe_list_modes.c: New file.
52072 * commands/i386/pc/vbe_test.c: Likewise.
52073 * term/i386/pc/vesafb.c: Likewise.
52074 * video/i386/pc/vbe.c: Likewise.
52075 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52076 (grub_vbe_probe) Added prototype.
52077 (grub_vbe_set_video_mode) Likewise.
52078 (grub_vbe_get_video_mode) Likewise.
52079 (grub_vbe_get_video_mode_info) Likewise.
52080 (grub_vbe_set_pixel_rgb) Likewise.
52081 (grub_vbe_set_pixel_index) Likewise.
52082 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52083 (pkgdata_MODULES): Added vesafb.mod.
52084 (pkgdata_MODULES): Added vbe_list_modes.mod.
52085 (pkgdata_MODULES): Added vbe_test.mod.
52086 (vbe_mod_SOURCES): Added.
52087 (vbe_mod_CFLAGS): Likewise.
52088 (vesafb_mod_SOURCES): Likewise.
52089 (vesafb_mod_CFLAGS): Likewise.
52090 (vbe_list_modes_mod_SOURCES): Likewise.
52091 (vbe_list_modes_mod_CFLAGS): Likewise.
52092 (vbe_test_mod_SOURCES): Likewise.
52093 (vbe_test_mod_CFLAGS): Likewise.
52095 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52097 * normal/command.c (grub_command_execute): If INTERACTIVE is
52098 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52099 CMDLINE. Disable the pager if INTERACTIVE is true.
52100 All callers are changed.
52102 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52103 before reading a config file.
52104 * normal/main.c (read_config_file): Even if a command is not
52105 found, register it if it is within an entry.
52107 * util/grub-emu.c: Include sys/types.h and unistd.h.
52108 (options): Added --hold.
52109 (struct arguments): Added a new member "hold".
52110 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52112 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52113 cleared by a debugger, if it is not zero.
52115 * include/grub/normal.h (grub_command_execute): Add an argument
52118 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52120 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52122 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52124 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52125 program with another one, because the old one didn't detect a bug
52126 in gcc-3.4. Always use regparm 2, because the new test is still
52127 not enough for gcc-4.0. Someone must investigate a simple test
52128 case which detects a bug in gcc-4.0.
52130 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52132 * DISTLIST: Added normal/completion.c.
52134 * normal/completion.c: New file.
52136 * term/i386/pc/console.c (grub_console_getwh): New function.
52137 (grub_console_term): Assign grub_console_getwh to getwh.
52139 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52140 function is defined in normal/completion.c as
52141 grub_normal_do_completion.
52142 (grub_cmdline_get): Use grub_normal_do_completion instead of
52145 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52146 returns non-zero, otherwise return 0.
52147 (grub_partition_iterate): First, probe the partition map. Then,
52148 call ITERATE only for this partition map.
52150 * kern/misc.c (grub_strncmp): Rewritten.
52152 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52153 returns non-zero. Otherwise return 0.
52155 * include/grub/partition.h (grub_partition_map_iterate): Return
52156 int instead of void.
52158 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52160 * include/grub/misc.h (grub_strncmp): Change the type of N to
52163 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52166 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52167 unsigned explicitly before comparing it with I.
52169 * kern/main.c (grub_env_write_root): Add the attribute unused into
52172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52173 normal/completion.c.
52174 (normal_mod_SOURCES): Likewise.
52175 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52176 (normal_mod_SOURCES): Likewise.
52178 * normal/command.c (grub_iterate_commands): If ITERATE returns
52179 non-zero, return one immediately.
52181 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52183 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52184 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52186 (grub_vbe_get_controller_info): New function.
52187 (grub_vbe_get_mode_info): Likewise.
52188 (grub_vbe_set_mode): Likewise.
52189 (grub_vbe_get_mode): Likewise.
52190 (grub_vbe_set_memory_window): Likewise.
52191 (grub_vbe_get_memory_window): Likewise.
52192 (grub_vbe_set_scanline_length): Likewise.
52193 (grub_vbe_get_scanline_length): Likewise.
52194 (grub_vbe_set_display_start): Likewise.
52195 (grub_vbe_get_display_start): Likewise.
52196 (grub_vbe_set_palette_data): Likewise.
52197 * include/grub/i386/pc/vbe.h: New file.
52199 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52201 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52202 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52203 * DISTLIST: Likewise.
52204 * kern/ieee1275/of.c: Moved to ...
52205 * kern/ieee1275/ieee1275.c: ... here.
52207 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52209 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52210 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52211 Pass 0 as `end' parameter to grub_strtoul().
52213 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52215 * include/grub/powerpc/ieee1275/console.h: Do not include
52216 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52218 (grub_console_cur_color): Remove i386-specific prototype.
52219 (grub_console_real_putchar): Likewise.
52220 (grub_console_checkkey): Likewise.
52221 (grub_console_getkey): Likewise.
52222 (grub_console_getxy): Likewise.
52223 (grub_console_gotoxy): Likewise.
52224 (grub_console_cls): Likewise.
52225 (grub_console_setcursor): Likewise.
52226 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52227 Include <grub/machine/console.h>.
52228 * term/ieee1275/ofconsole.c: Likewise.
52230 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52232 * Makefile.in (LIBLZO): New variable.
52234 * configure.ac: Check for LZO version 2.
52236 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52237 lzo/lzo1x.h instead of lzo1x.h.
52239 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52242 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52243 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52245 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52246 copying the data from PARTITION to P.
52248 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52250 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52251 negative, unload the module.
52253 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52254 map is "pc_partition_map" but not "pc".
52255 (usage): Fix the description. The options are --boot-image and
52256 --core-image but not --boot-file or --core-file.
52257 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52258 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52261 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52262 --core-file. Specify INSTALL_DEVICE as an argument.
52264 * util/console.c: Include config.h.
52265 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52266 [HAVE_NCURSES_H]: Include ncurses.h.
52267 [HAVE_CURSES_H]: Include curses.h.
52268 [!A_NORMAL] (A_NORMAL): Defined as zero.
52269 [!A_STANDOUT] (A_STANDOUT): Likewise.
52271 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52273 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52275 * configure.ac: Check for curses libraries and headers.
52277 * Makefile.in (LIBCURSES): New variable.
52279 * genmk.rb (Script::rule): Set the executable bits.
52281 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52282 name of the PC partition map is "pc_partition_map" but not "pc".
52284 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52286 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52287 (modules): Likewise.
52288 (usage): Added descriptions for --modules and --grub-probefs.
52289 Handle --modules and --grub-probefs. Save the arguments in MODULES
52290 and GRUB_PROBEFS, respectively.
52291 Auto-detect a filesystem module against GRUBDIR. If the result is
52292 empty and modules are not specified explicitly, abort the
52293 installation. Add the result to MODULES.
52295 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52296 disk/powerpc/ieee1275/ofdisk.c,
52297 include/grub/powerpc/ieee1275/init.h and
52298 term/powerpc/ieee1275/ofconsole.c.
52299 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52300 term/ieee1275/ofconsole.c.
52302 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52304 * COPYING: Upgraded to the latest version. Only the address of the
52305 FSF office has changed.
52307 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52309 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52310 kern/ieee1275.c with kern/ieee1275/of.c.
52312 * kern/ieee1275.c: Moved to ...
52313 * kern/ieee1275/of.c: ... here.
52315 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52317 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52320 * config.guess: Updated to the latest version from gnulib.
52321 * config.sub: Likewise.
52322 * install.sh: Likewise.
52323 * mkinstalldirs: Likewise.
52325 * include/grub/console.h: Removed. This file is arch-specific. Do
52326 not put this in include/grub.
52328 * include/grub/i386/pc/console.h: Resurrected.
52330 * util/console.c: Include grub/machine/console.h instead of
52332 * util/grub-emu.c: Likewise.
52334 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52336 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52339 From Vincent Pelletier <subdino2004@yahoo.fr>
52340 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52341 Redefined to use grub_getwh.
52342 (grub_term): New member named getwh.
52343 (grub_getwh): New prototype.
52344 * kern/term.c (grub_getwh): New function.
52345 * term/i386/pc/console.c (grub_console_getwh): New function.
52346 (grub_console_term): New member `getwh'.
52347 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52348 (grub_vga_term): New member `getwh'.
52349 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52351 (grub_ofconsole_getw): New function.
52352 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52353 (grub_ofconsole_term): New field named getwh and new initial
52356 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52358 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52359 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52360 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52361 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52362 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52363 of <grub/machine/ieee1275.h>.
52364 * commands/ieee1275/reboot.c: Likewise.
52365 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52366 * kern/ieee1275.c: ... to here. All users updated. Change all
52367 parameter structs to use new type `grub_ieee1275_cell_t'.
52368 * term/powerpc/ieee1275/ofconsole.c: Move ...
52369 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52370 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52371 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52372 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52374 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52375 Remove unused prototypes. All users updated.
52376 * include/grub/powerpc/ieee1275/console.h: Removed.
52377 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52378 `grub_ieee1275_cell_t'.
52379 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52380 Cast comparisons with -1 to the correct type.
52381 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52382 type to match `grub_ieee1275_entry_fn'.
52384 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52386 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52388 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52389 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52391 (grub_probefs_SOURCES): New variable.
52393 * util/i386/pc/grub-probefs.c: New file.
52395 * util/i386/pc/grub-setup.c (main): Call
52396 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52397 grub_hfs_init and grub_jfs_init to initialize the system. Call
52398 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52399 grub_pc_partition_map_fini to finish the system.
52401 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52403 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52405 (grub_multiboot_load_elf32): Likewise.
52406 (grub_multiboot_is_elf64): Likewise.
52407 (grub_multiboot_load_elf64): Likewise.
52408 (grub_multiboot_load_elf): Likewise.
52409 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52410 an ELF32 or ELF64 file.
52411 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52413 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52414 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52415 NULL before calling FS->LABEL.
52416 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52417 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52418 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52419 before calling FS->LABEL.
52421 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52423 * util/i386/pc/grub-install.in (datadir): New variable.
52425 (pkgdatadir): New variable.
52426 (pkglibdir): Removed.
52428 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52430 * DISTLIST: Added util/i386/pc/grub-install.in.
52432 * util/i386/pc/grub-install.in: New file.
52434 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52435 (grub_install_SOURCES): Likewise.
52437 * genmk.rb: Added support for scripts.
52438 (Script): New class.
52439 (scripts): New variable.
52441 * Makefile.in (install-local): Install sbin_SCRIPTS by
52443 (uninstall): Remove sbin_SCRIPTS.
52445 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52446 device, try to get a GRUB device by
52447 grub_util_biosdisk_get_grub_dev.
52450 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52451 description for --device-map.
52453 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52455 Change the semantics of variable hooks. They now return strings
52456 instead of error values.
52458 * util/i386/pc/grub-setup.c: Include grub/env.h.
52459 (setup): Use grub_device_set_root instead of grub_env_set.
52461 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52462 grub_env_get instead of grub_device_set_root and
52463 grub_device_get_root, respectively.
52465 * kern/main.c (grub_env_write_root): New function.
52466 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52467 grub_env_set instead of grub_device_set_root.
52469 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52471 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52472 rather than calling ENV->WRITE_HOOK afterwards.
52473 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52474 passing a pointer of a pointer.
52475 (grub_register_variable_hook): Change the types of "read_hook" and
52476 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52478 Allocate the default empty string on the heap, because this string
52479 may be freed later.
52481 * kern/device.c: Include grub/env.h.
52482 (grub_device_set_root): Removed.
52483 (grub_device_get_root): Likewise.
52484 (grub_device_open): Use grub_env_get instead of
52485 grub_device_get_root.
52487 * include/grub/env.h (grub_env_read_hook_t): New type.
52488 (grub_env_write_hook_t): Likewise.
52489 (grub_env_var): Change the types of "read_hook" and "write_hook"
52490 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52491 (grub_register_variable_hook): Likewise.
52493 * include/grub/device.h (grub_device_set_root): Removed.
52494 (grub_device_set_root): Likewise.
52496 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52497 make sure that DIRNAME terminates with '/', so that
52498 grub_fat_find_dir will fail if PATH is not a directory.
52500 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52502 Use the qualifier auto for print_files and print_files_long.
52503 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52505 Put a newline only if there is no error.
52506 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52509 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52511 * kern/partition.c (grub_partition_probe): Initialize PART to
52512 NULL. Otherwise, when no partition map is registered, this returns
52515 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52517 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52518 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52521 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52523 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52524 information on each device, if it does not have partitions. Print
52525 "Device" instead of "Disk", because this function is not specific
52528 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52529 static to ensure that it is put on the memory rather than a
52532 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52534 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52535 (grub_cat_init): Likewise.
52536 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52537 (options): Likewise.
52538 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52539 (grub_configfile_init): Likewise.
52540 * font/manager.c (GRUB_MOD_INIT): Likewise.
52541 * commands/help.c (GRUB_MOD_INIT): Likewise.
52542 (grub_help_init): Likewise.
52543 * normal/command.c (grub_command_init): Likewise.
52544 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52545 * disk/loopback.c (grub_loop_init): Likewise.
52546 (GRUB_MOD_INIT): Likewise.
52547 * commands/ls.c (grub_ls_init): Likewise.
52548 (GRUB_MOD_INIT): Likewise.
52549 (options): Likewise.
52550 * commands/boot.c (grub_boot_init): Likewise.
52551 (GRUB_MOD_INIT): Likewise.
52552 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52553 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52554 (GRUB_MOD_INIT): Likewise.
52555 * commands/cmp.c (grub_cmp_init): Likewise.
52556 (GRUB_MOD_INIT): Likewise.
52558 * normal/arg.c: Use <> instead of "" to include header files.
52559 (SHORT_ARG_HELP): New macro.
52560 (SHORT_ARG_USAGE): Likewise.
52561 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52562 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52564 (find_short): Check if C is 'h' or 'u' explicitly.
52565 (grub_arg_show_help): Use space characters instead of tabs. Treat
52566 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52567 are shown with --help and --usage only if they are not used for
52568 the command itself.
52569 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52572 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52573 const into "longarg". Change the type of "shortarg" to int.
52575 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52577 * boot/i386/pc/boot.S (boot_drive_check): New label.
52579 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52582 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52583 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52585 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52587 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52588 When turning off Gate A20, skip the check and return immediately,
52589 because this is not fatal usually.
52591 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52593 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52594 be 0x7C00 instead of 0x8000.
52596 * boot/i386/pc/pxeboot.S: Rewritten.
52598 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52600 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52603 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52605 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52606 robustness. This routine now supports a BIOS call and System
52607 Control Port A to modify the gate A20.
52609 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52610 Increased to 0x440.
52612 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52614 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52615 device path and resulting ihandle.
52616 (grub_ofdisk_close): dprintf the ihandle being closed.
52617 (grub_ofdisk_read): dprintf function parameters.
52618 * kern/mm.c (grub_mm_init_region): Likewise.
52619 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52620 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52621 size, and boot arguments.
52622 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52623 before loading into memory.
52624 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52625 before loading into memory.
52627 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52629 * kern/mm.c: Added much documentation.
52630 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52631 8, set to 5 instead of 8.
52633 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52635 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52637 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52638 (grub_mkdevicemap_SOURCES): New variable.
52640 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52641 lib/device.c of GRUB Legacy.
52643 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52645 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52646 instead of PATH is NULL.
52648 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52650 * commands/cmp.c (BUFFER_SIZE): New macro.
52651 (grub_cmd_cmp): Close the right file at the right time. Compare
52652 only data just read. Don't report files of different size as
52653 identical. Dynamically allocate buffers. Move variable
52654 declarations at the beginning of function.
52656 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52658 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52661 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52663 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52664 when backspace is pressed at beginning of line.
52666 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52668 * DISTLIST: Added genfslist.sh.
52670 * normal/main.c (fs_module_list): New variable.
52671 (autoload_fs_module): New function.
52672 (read_fs_list): Likewise.
52673 (grub_normal_execute): Call read_fs_list.
52675 * kern/fs.c (grub_fs_autoload_hook): New variable.
52676 (grub_fs_probe): Added support for auto-loading.
52678 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52679 (grub_fs_module_list_t): New type.
52681 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52682 (grub_fs_autoload_hook): New prototype.
52684 * genfslist.sh: New file.
52686 * genmk.rb: Added a rule to generate a filesystem list.
52688 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52690 * configure.ac: Fix the test for cross-compiling.
52692 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52693 define GRUB_UTIL anymore.
52695 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52696 so this function works on other systems than just big endian.
52697 (load_modules): Likewise.
52698 (add_segments): Likewise.
52700 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52702 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52703 contains `l' modifier, get a long from va_arg().
52705 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52707 * kern/mm.c (grub_free): If the next free block which is being
52708 merged is the first free block, set the first block to the block
52710 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52712 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52714 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52715 `grub_ieee1275_chosen'.
52717 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52719 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52720 (grub_ieee1275_chosen): New variable.
52721 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52723 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52724 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52725 Rename first argument to `phandle' for consistency.
52726 (grub_ieee1275_get_property_length): Likewise.
52727 (grub_ieee1275_next_property): Likewise. Change type of first argument
52728 to grub_ieee1275_phandle_t.
52729 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52730 Move export next to declaration.
52731 (grub_ieee1275_chosen): New variable.
52732 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52733 Correct cosmetic typo.
52734 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52735 `grub_ieee1275_chosen'.
52736 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52737 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52738 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52739 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52740 `grub_ieee1275_chosen'.
52742 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52744 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52746 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52747 /chosen/bootargs as "variable=value" pairs.
52749 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52751 * include/grub/misc.h (grub_dprintf): New macro.
52752 (grub_real_dprintf): New prototype.
52753 (grub_strword): Likewise.
52754 (grub_iswordseparator): Likewise.
52755 * kern/misc.c (grub_real_dprintf): New function.
52756 (grub_strword): Likewise.
52757 (grub_iswordseparator): Likewise.
52759 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52761 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52762 (roundup): Remove macro.
52763 (grub_ieee1275_flags): Make static.
52764 (grub_ieee1275_realmode): Remove.
52765 (grub_ieee1275_test_flag): New function.
52766 (grub_ieee1275_set_flag): Likewise.
52767 (find_options): Rename to `grub_ieee1275_find_options'; update
52768 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52769 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52770 (cmain): New prototype.
52771 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52772 `grub_ieee1275_flags' directly.
52773 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52774 machine/biosdisk.h.
52775 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52776 Don't include grub/machine/init.h.
52777 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52778 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52780 (grub_ieee1275_realmode): Likewise.
52781 (grub_ieee1275_flag): New enum.
52782 (grub_ieee1275_test_flag): New prototype.
52783 (grub_ieee1275_set_flag): New prototype.
52784 * include/grub/powerpc/ieee1275/init.h: Remove file.
52785 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52786 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52787 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52788 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52790 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52791 `grub_ieee1275_test_flag'.
52792 (grub_ieee1275_encode_devname): Likewise.
52794 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52796 * include/grub/powerpc/ieee1275/ieee1275.h
52797 (grub_ieee1275_encode_devname): New prototype.
52798 (grub_ieee1275_get_filename): Likewise.
52799 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52801 (grub_set_prefix): Likewise.
52802 (grub_machine_init): Call grub_set_prefix.
52803 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52804 (grub_parse_type): New enum.
52805 (grub_ieee1275_get_devargs): New function.
52806 (grub_ieee1275_get_devname): Likewise.
52807 (grub_ieee1275_parse_args): Likewise.
52808 (grub_ieee1275_get_filename): Likewise.
52809 (grub_ieee1275_encode_devname): Likewise.
52811 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52813 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52814 `grub_loader_unset'.
52816 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52818 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52819 instead of grub_ieee1275_interpret.
52820 (grub_halt_init): New function.
52821 (grub_halt_fini): Likewise.
52822 (GRUB_MOD_INIT): Correct message grammar.
52823 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52824 instead of grub_ieee1275_interpret.
52825 (grub_reboot_init): New function.
52826 (grub_reboot_fini): Likewise.
52827 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52828 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52829 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52830 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52831 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52833 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52835 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52837 (grub_halt): Likewise.
52838 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52839 (cmain): Remove __attribute__((unused)).
52840 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52841 (grub_heap_len): Likewise.
52842 (grub_machine_fini): New function.
52843 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52844 (grub_halt): Likewise.
52845 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52847 * util/powerpc/ieee1275/misc.c: New file.
52849 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52851 * DISTLIST: New file.
52852 * gendistlist.sh: Likewise.
52854 * Makefile.in (COMMON_DISTFILES): Removed.
52855 (BOOT_DISTFILES): Likewise.
52856 (CONF_DISTFILES): Likewise.
52857 (DISK_DISTFILES): Likewise.
52858 (FS_DISTFILES): Likewise.
52859 (INCLUDE_DISTFILES): Likewise.
52860 (KERN_DISTFILES): Likewise.
52861 (LOADER_DISTFILES): Likewise.
52862 (TERM_DISTFILES): Likewise.
52863 (UTIL_DISTFILES): Likewise.
52864 (DISTFILES): Likewise.
52865 (uninstall): Uninstall files in $(pkgdata_DATA).
52866 (DISTLIST): New target.
52867 (distdir): Use the contents of the file DISTLIST to get a list of
52870 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52872 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52873 descriptor. This is ported from GRUB Legacy.
52875 * gencmdlist.sh: Added an extra semicolon to make it work with
52876 old sed versions. Reported by Robert Bihlmeyer
52877 <robbe@orcus.priv.at>.
52879 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52881 Automatic loading of commands is supported.
52883 * normal/main.c (read_command_list): New function.
52884 (grub_normal_execute): Call read_command_list.
52886 * normal/command.c (grub_register_command): Return zero or CMD.
52887 Allocate CMD->NAME from the heap.
52888 Initialize CMD->MODULE_NAME to zero.
52889 Find the same name as well. If the same command is found and it is
52890 a dummy command, overwrite members. If it is not a dummy command,
52892 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52893 (grub_command_find): If a dummy command is found, load a module
52894 and retry to find a command only once.
52896 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52897 make sure that each command is loaded.
52899 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52901 (struct grub_command): Remove const from the member `name'.
52902 Add a new member `module_name'.
52903 (grub_register_command): Return grub_command_t.
52905 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52906 sure that each command is loaded.
52908 * genmk.rb (PModule::rule): Specify a module name without the
52909 suffix ".mod" to gencmdlist.sh.
52911 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52913 * gencmdlist.sh: New file.
52915 * genmk.rb (PModule::rule): Generate a rule for a command list.
52917 Generate command.lst from $(COMMANDFILES).
52919 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52920 (DATA): Added $(pkgdata_DATA).
52921 (install-local): Install files in $(pkgdata_DATA).
52923 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52925 * term/i386/pc/vga.c (debug_command): Removed.
52926 (GRUB_MOD_INIT): Do not register the command "debug".
52928 From Hollis Blanchard:
52929 * commands/configfile.c: New file.
52930 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52931 commands/configfile.c.
52932 (pkgdata_MODULES): Added configfile.mod.
52933 (configfile_mod_SOURCES): New variable.
52934 (configfile_mod_CFLAGS): Likewise.
52935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52936 commands/configfile.c.
52937 (pkgdata_MODULES): Added configfile.mod.
52938 (configfile_mod_SOURCES): New variable.
52939 (configfile_mod_CFLAGS): Likewise.
52940 * util/grub-emu.c (main): Call grub_configfile_init and
52941 grub_configfile_fini.
52942 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52944 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52946 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52948 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52951 * commands/help.c (grub_cmd_help): Do not print newlines after
52952 the last command in print_command_help.
52954 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52956 * commands/default.h: New file.
52957 * commands/timeout.h: Likewise.
52958 * normal/context.c: Likewise.
52960 * util/misc.c: Do not include sys/times.h.
52961 Include sys/time.h and grub/machine/time.h.
52962 (grub_get_rtc): Rewritten with gettimeofday.
52964 * util/grub-emu.c (main): Call grub_default_init and
52965 grub_timeout_init before grub_normal_init, and call
52966 grub_timeout_fini and grub_default_fini after grub_main.
52968 * util/console.c (grub_ncurses_checkkey): Return the read
52971 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52974 * normal/main.c (read_config_file): Push MENU. If this fails,
52975 print an error and wait for a user input.
52976 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52977 If a menu is empty or an error occurs, pop MENU.
52978 (grub_normal_execute): Pop and free MENU after grub_menu_run
52981 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52983 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52985 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52987 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52989 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52992 * include/grub/normal.h (struct grub_menu_list): New struct.
52993 (grub_menu_list_t): New type.
52994 (struct grub_context): New struct.
52995 (grub_context_t): New type.
52996 (grub_register_command): Got rid of EXPORT_FUNC.
52997 (grub_unregister_command): Likewise.
52998 (grub_context_get): New prototype.
52999 (grub_context_get_current_menu): Likewise.
53000 (grub_context_push_menu): Likewise.
53001 (grub_context_pop_menu): Likewise.
53002 [GRUB_UTIL] (grub_default_init): Likewise.
53003 [GRUB_UTIL] (grub_default_fini): Likewise.
53004 [GRUB_UTIL] (grub_timeout_init): Likewise.
53005 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53007 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53008 commands/timeout.c and normal/context.c.
53009 (pkgdata_MODULES): Added default.mod and timeout.mod.
53010 (normal_mod_SOURCES): Added normal/context.c.
53011 (default_mod_SOURCES): New variable.
53012 (default_mod_CFLAGS): Likewise.
53013 (timeout_mod_SOURCES): Likewise.
53014 (timeout_mod_CFLAGS): Likewise.
53015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53017 (pkgdata_MODULES): Added default.mod and timeout.mod.
53018 (normal_mod_SOURCES): Added normal/context.c.
53019 (default_mod_SOURCES): New variable.
53020 (default_mod_CFLAGS): Likewise.
53021 (timeout_mod_SOURCES): Likewise.
53022 (timeout_mod_CFLAGS): Likewise.
53024 * Makefile.in (all-local): Added $(MKFILES).
53026 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53028 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53029 (grub_emu_SOURCES): Likewise.
53030 (pkgdata_MODULES): Add `sun.mod'.
53031 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53034 (pkgdata_MODULES): Add `sun.mod'.
53035 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53036 * include/grub/partition.h (grub_sun_partition_map_init): New
53038 (grub_sun_partition_map_fini): Likewise.
53039 * partmap/sun.c: New file.
53040 * util/grub-emu.c (main): Initialize and de-initialize the sun
53041 partitionmap support.
53043 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53045 This implements an Emacs-like menu entry editor.
53047 * normal/menu_entry.c: New file.
53049 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53050 characters to ASCII.
53051 (saved_char): New variable.
53052 (grub_ncurses_checkkey): Rewritten completely.
53053 (grub_ncurses_getkey): Likewise.
53054 (grub_ncurses_init): Call raw instead of cbreak.
53056 * normal/menu.c (print_entry): Do not put a space.
53057 (init_page): Renamed to ...
53058 (grub_menu_init_page): ... this. All callers changed.
53059 (edit_menu_entry): Removed.
53060 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53062 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53064 * kern/misc.c (grub_vprintf): Call grub_refresh.
53066 * normal/menu.c (DISP_LEFT): Renamed to ...
53067 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53068 * normal/menu.c (DISP_UP): Renamed to ...
53069 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53070 * normal/menu.c (DISP_RIGHT): Renamed to ...
53071 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53072 * normal/menu.c (DISP_DOWN): Renamed to ...
53073 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53074 * normal/menu.c (DISP_HLINE): Renamed to ...
53075 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53076 * normal/menu.c (DISP_VLINE): Renamed to ...
53077 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53078 * normal/menu.c (DISP_UL): Renamed to ...
53079 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53080 * normal/menu.c (DISP_UR): Renamed to ...
53081 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53082 * normal/menu.c (DISP_LL): Renamed to ...
53083 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53084 * normal/menu.c (DISP_LR): Renamed to ...
53085 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53086 * normal/menu.c (TERM_WIDTH): Renamed to ...
53087 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53088 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53089 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53090 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53091 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53092 * normal/menu.c (TERM_MARGIN): Renamed to ...
53093 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53094 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53095 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53096 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53097 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53098 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53099 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53100 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53101 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53102 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53103 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53104 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53105 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53106 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53107 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53108 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53109 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53110 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53111 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53112 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53113 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53114 All callers changed.
53116 * include/grub/normal.h: New prototype.
53118 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53119 normal/menu_entry.c.
53120 (normal_mod_SOURCES): Likewise.
53121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53122 (normal_mod_SOURCES): Likewise.
53124 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53126 * include/grub/normal.h (grub_halt_init): New prototype.
53127 (grub_halt_fini): Likewise.
53128 (grub_reboot_init): Likewise.
53129 (grub_reboot_fini): Likewise.
53131 * util/grub-emu.c: Include signal.h.
53132 (main_env): New global variable.
53133 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53135 (grub_machine_fini): New function.
53136 (main): Call grub_halt_init and grub_reboot_init before
53137 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53138 Call setjmp with MAIN_ENV to go back afterwards.
53139 Call grub_machine_fini right before return.
53141 * include/grub/util/misc.h: Include setjmp.h.
53142 (main_env): New prototype.
53144 * include/grub/kernel.h (grub_machine_fini): New prototype.
53145 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53146 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53148 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53149 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53150 * term/i386/pc/console.c (grub_console_fini): Likewise.
53152 * util/i386/pc/misc.c: New file.
53154 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53155 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53156 commands/i386/pc/reboot.c.
53158 2005-02-14 Guillem Jover <guillem@hadrons.org>
53160 * include/grub/dl.h (grub_dl_check_header): New prototype.
53161 (grub_arch_dl_check_header): Change return type to grub_err_t,
53162 remove size parameter and export function. Update all callers.
53163 * kern/dl.c (grub_dl_check_header): New function.
53164 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53165 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53166 are inside the core.
53167 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53168 independent ELF header checks.
53169 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53170 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53171 `grub_dl_check_header' instead of explicit checks. Check for the
53173 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53174 `grub_dl_check_header' instead of explicit checks. Remove arch
53175 specific ELF header checks.
53177 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53180 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53182 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53183 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53185 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53187 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53188 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53189 (part_map_iterate): Clear `grub_errno' and return 0 if
53190 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53191 * partmap/amiga.c (amiga_partition_map_iterate): Return
53192 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53193 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53195 2005-02-01 Guillem Jover <guillem@hadrons.org>
53197 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53200 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53202 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53204 (grub_rescue_cmd_linux): New prototype.
53205 (grub_rescue_cmd_initrd): Likewise.
53206 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53208 (grub_linux_release_mem): Release the memory for the initrd.
53209 (grub_load_linux): Renamed from this...
53210 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53211 Changed `entry' not to be static. Loop over memory regions to
53212 find another one when the default fails.
53213 (grub_rescue_cmd_initrd): New function.
53214 (grub_linux_init): Remove function.
53215 (grub_linux_fini): Likewise.
53216 (GRUB_MOD_INIT): Register `initrd'.
53217 (GRUB_MOD_FINI): Unregister `initrd'.
53218 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53220 (grub_linux_normal_fini): Likewise.
53221 (GRUB_MOD_INIT): Register `initrd'.
53222 (GRUB_MOD_FINI): Unregister `initrd'.
53224 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53226 * commands/help.c: New file.
53227 * normal/arg.c (show_help): Renamed to...
53228 (grub_arg_show_help): ... this.
53229 * commands/i386/pc/halt.c: New file.
53230 * commands/i386/pc/reboot.c: Likewise.
53231 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53232 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53233 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53234 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53238 (pkgdata_MODULES): Add `help.mod'.
53239 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53240 * grub/i386/pc/init.h (grub_reboot): New prototype.
53241 (grub_halt): Likewise.
53242 * include/grub/normal.h (grub_arg_show_help): New prototype.
53243 (grub_help_init): Likewise.
53244 (grub_help_fini): Likewise.
53245 * util/grub-emu.c (main): Initialize and deinitialize the help
53248 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53250 * normal/command.c (grub_command_init): Fixed the description of
53251 the `set' and `unset' commands.
53253 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53255 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53257 * commands/ieee1275/halt.c: New file.
53258 * commands/ieee1275/reboot.c: Likewise.
53259 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53260 `__attribute__ ((unused))'. Some GCS related fixed.
53261 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53262 (grub_suspend_fini): Likewise.
53263 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53265 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53266 (halt_mod_CFLAGS): New variables.
53267 * include/grub/powerpc/ieee1275/ieee1275.h
53268 (grub_ieee1275_interpret): New prototype.
53270 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53272 * include/grub/misc.h (memmove): New prototype.
53273 (memcpy): Likewise.
53275 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53277 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53278 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53280 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53282 * kern/misc.c (grub_strndup): Function rewritten.
53284 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53286 * normal/menu.c (TERM_WIDTH): Macro redefined.
53287 (TERM_TOP_BORDER_Y): Likewise.
53288 (draw_border): Replaced while-loop by a for-loop. Make the number
53289 of lines consistent with the number of lines displayed in
53290 print_entries. Added a margin below the rectangle.
53291 (print_entry): Make the entry fit in the rectangle.
53292 (print_entries): Display the scroll arrows next to the right
53295 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53297 * fs/minix.c (grub_minix_find_file): Reserve more space for
53298 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53299 `grub_strncpy' to copy `path' into it.
53301 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53303 Add the loopback device, a device via which files can be accessed
53306 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53307 (pkgdata_MODULES): Add loopback.mod.
53308 (loopback_mod_SOURCES): New variable.
53309 (loopback_mod_CFLAGS): Likewise.
53310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53312 (pkgdata_MODULES): Add loopback.mod.
53313 (loopback_mod_SOURCES): New variable.
53314 (loopback_mod_CFLAGS): Likewise.
53315 * disk/loopback.c: new file.
53316 * include/grub/normal.h (grub_loop_init): New prototype.
53317 (grub_loop_fini): New prototype.
53318 * util/grub-emu.c (main): Initialize and de-initialize loopback
53320 * include/grub/disk.h (grub_disk_dev_id): Add
53321 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53323 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53325 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53327 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53328 (suspend_mod_SOURCES): New variable.
53329 (suspend_mod_CFLAGS): Likewise.
53330 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53332 * commands/ieee1275/suspend.c: New file.
53334 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53336 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53337 ((unused))' to `__attribute__ ((used))'.
53338 (GRUB_MOD_FINI): Likewise.
53339 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53340 * genmk.rb (PModule): Assign space to common symbols when linking
53343 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53345 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53346 `unsigned' arguments to `grub_size_t'.
53347 (grub_malloc): Likewise.
53348 (grub_realloc): Likewise.
53349 (grub_memalign): Likewise.
53350 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53351 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53352 * util/misc.c (grub_malloc): Likewise.
53353 (grub_realloc): Likewise.
53354 * kern/mm.c (get_header_from_pointer): Change the casts to
53355 `unsigned' into a cast to `grub_size_t'.
53357 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53358 point to `currnode' when `currnode' is changed.
53360 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53361 Schottelius <nico-linux@schottelius.org>.
53363 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53365 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53366 (note_path): Remove variable.
53367 (GRUB_IEEE1275_NOTE_NAME): New macro.
53368 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53369 (grub_ieee1275_note_hdr): New structure.
53370 (grub_ieee1275_note_desc): Likewise.
53371 (grub_ieee1275_note): Likewise.
53372 (load_note): Remove `dir' argument. All callers updated. Remove
53373 `note_img' and `path'. Do not load a file from `note_path'.
53374 Initialize a struct grub_ieee1275_note and write that to `out'.
53375 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53377 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53379 * util/misc.c (grub_util_read_image): Revert last change. It
53380 called `grub_util_read_at', which seeks from the beginning of the
53383 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53385 * TODO: Add note about endianness in grub-mkimage.
53386 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53388 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53389 (grub_mkimage_SOURCES): New target.
53390 * include/grub/kernel.h (grub_start_addr): Remove variable.
53391 (grub_end_addr): Likewise.
53392 (grub_total_module_size): Likewise.
53393 (grub_kernel_image_size): Likewise.
53394 (GRUB_MODULE_MAGIC): New constant.
53395 (grub_module_info): New structure.
53396 (grub_arch_modules_addr): New prototype.
53397 (grub_get_end_addr): Remove prototype.
53398 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53399 * include/grub/powerpc/ieee1275/kernel.h: New file.
53400 * include/grub/util/misc.h (grub_util_get_fp_size): New
53402 (grub_util_read_at): Likewise.
53403 (grub_util_write_image_at): Likewise.
53404 * kern/main.c (grub_get_end_addr): Remove function.
53405 (grub_load_modules): Call grub_arch_modules_addr instead of using
53406 grub_end_addr. Look for a grub_module_info struct in memory. Use
53407 the grub_module_info fields instead of calling grub_get_end_addr
53408 as loop conditions. Move grub_add_unused_region code here.
53409 (grub_add_unused_region): Remove function.
53410 * kern/i386/pc/init.c: Include grub/cache.h.
53411 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53412 one call to add_mem_region.
53413 (grub_arch_modules_addr): New function.
53414 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53415 (grub_total_module_size): Likewise.
53416 Include grub/machine/kernel.h.
53417 (grub_arch_modules_addr): New function.
53418 * util/grub-emu.c (grub_end_addr): Remove variable.
53419 (grub_total_module_size): Likewise.
53420 (grub_arch_modules_addr): New function.
53421 * util/misc.c: Include unistd.h.
53422 (grub_util_get_fp_size): New function.
53423 (grub_util_read_at): Likewise.
53424 (grub_util_write_image_at): Likewise.
53425 (grub_util_read_image): Call grub_util_read_at.
53426 (grub_util_write_image): Call grub_util_write_image_at.
53427 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53428 additional memory in kernel_img for a struct grub_module_info.
53429 Fill in that grub_module_info.
53430 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53432 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53434 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53436 * include/grub/powerpc/ieee1275/ieee1275.h
53437 (grub_ieee1275_milliseconds): New prototype.
53438 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53440 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53441 grub_ieee1275_milliseconds.
53443 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53445 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53447 (find_options): New function.
53448 (cmain): Call find_options.
53449 * include/grub/powerpc/ieee1275/ieee1275.h
53450 (grub_ieee1275_realmode): New extern variable.
53451 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53452 grub_map if grub_ieee1275_realmode is false.
53454 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53456 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53457 lines are inserted and make it work like readline. Reported by
53458 Vincent Pelletier <subdino2004@yahoo.fr>.
53460 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53462 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53465 `kern/powerpc/cache.S'.
53467 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53469 * genmk.rb: Handle the `Program' class in the main loop. Written
53470 by Johan Rydberg <jrydberg@gnu.org>.
53471 (Program): New class.
53472 (programs): New variable.
53473 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53474 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53475 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53476 (help_arch): Function removed.
53477 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53478 `powerpc/libgcc.h' and `loader.h'.
53479 (pkgdata_PROGRAMS): New variable.
53480 (sbin_UTILITIES): Variable removed.
53481 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53482 (grubof_SOURCES): Variable re-defined so it only includes the
53483 core functionality.
53484 (grubof_CFLAGS): Remove `-DGRUBOF'.
53485 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53486 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53487 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53488 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53489 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53490 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53491 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53492 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53493 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53494 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53495 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53496 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53497 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53498 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53499 (pc_mod_CFLAGS): New variables.
53500 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53501 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53502 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53503 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53505 * include/grub/i386/pc/init.h (grub_os_area_addr)
53506 (rub_os_area_size): ... to here.
53507 * include/grub/powerpc/ieee1275/ieee1275.h
53508 (grub_ieee1275_entry_fn): Export symbol.
53509 * include/grub/powerpc/ieee1275/init.h: New file.
53510 * include/grub/powerpc/libgcc.h: Likewise.
53511 * include/grub/cache.h: Likewise.
53512 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53513 <hollis@penguinppc.org>.
53514 * kern/dl.c: Include <grub/cache.h>.
53515 (grub_dl_flush_cache): New function.
53516 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53518 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53519 (grub_console_init): Removed prototypes.
53520 (grub_machine_init): Don't initialize the modules anymore.
53521 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53523 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53524 Macro undef removed.
53525 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53526 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53527 relocation `R_PPC_REL32'. Return an error when the relocation is
53529 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53530 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53531 * util/misc.c (grub_arch_sync_caches): Likewise.
53533 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53535 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53536 `symlist.c', add `grubof_symlist.c'.
53537 (symlist.c): Variable removed.
53538 (grubof_HEADERS): Variable added.
53539 (grubof_symlist.c): New target.
53540 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53541 `kernel_img_HEADERS'.
53542 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53543 * kern/powerpc/dl.c: New file.
53544 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53546 (grub_arch_dl_relocate_symbols): Likewise.
53547 (grub_register_exported_symbols): Likewise.
53549 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53551 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53552 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53553 to fail instead. Reported by Vincent Pelletier
53554 <subdino2004@yahoo.fr>.
53556 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53557 it is not allocated. Reported by Vincent Pelletier
53558 <subdino2004@yahoo.fr>.
53560 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53561 output so the output looks better.
53563 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53565 Modulize the partition map support and add support for the amiga
53568 * commands/ls.c: Include <grub/partition.h> instead of
53569 <grub/machine/partition.h>.
53570 * kern/disk.c: Likewise.
53571 * kern/rescue.c: Likewise.
53572 * loader/i386/pc/chainloader.c: Likewise.
53573 * normal/cmdline.c: Likewise.
53574 * kern/powerpc/ieee1275/init.c: Likewise.
53575 (grub_machine_init): Call `grub_pc_partition_map_init',
53576 `grub_amiga_partition_map_init' and
53577 `grub_apple_partition_map_init'.
53578 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53579 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53580 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53581 `partition.h' and `pc_partition.h'.
53582 (grub_setup_SOURCES): Remove
53583 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53584 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53585 (grub_emu_SOURCES): Likewise.
53586 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53587 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53588 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53590 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53591 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53592 (grubof_SOURCES): Likewise.
53593 * disk/i386/pc/partition.c: File removed.
53594 * disk/powerpc/ieee1275/partition.c: Likewise.
53595 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53596 * include/grub/i386/pc/partition.h: Likewise.
53597 * kern/partition.c: New file.
53598 * partmap/amiga.c: Likewise.
53599 * partmap/apple.c: Likewise.
53600 * partmap/pc.c: Likewise.
53601 * include/grub/partition.h: Likewise..
53602 * include/grub/pc_partition.h: Likewise.
53603 * util/grub-emu.c: Include <grub/partition.h> instead of
53604 <grub/machine/partition.h>.
53605 (main): Call `grub_pc_partition_map_init',
53606 `grub_amiga_partition_map_init' and
53607 `grub_apple_partition_map_init' and deinitialize afterwards.
53608 * util/i386/pc/biosdisk.c: Include `#include
53609 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53610 `<grub/machine/partition.h>'.
53611 * util/i386/pc/grub-setup.c: Likewise.
53612 * util/i386/pc/biosdisk.c: Likewise.
53613 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53614 partition information in case of a PC partition.
53615 * util/i386/pc/grub-setup.c: Include `#include
53616 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53617 `<grub/machine/partition.h>'.
53618 (setup): Only access the PC specific partition information in case
53621 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53623 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53624 (grub_longjmp): Likewise.
53625 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53627 * normal/powerpc/setjmp.S: New file.
53628 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53629 `normal/powerpc/setjmp.S'.
53630 (grubof_CFLAGS): Add `-DGRUBOF'.
53631 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53632 [GRUB_UTIL && !GRUBOF].
53634 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53636 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53637 property named `name'. Correctly handle the error returned by
53638 `grub_ieee1275_finddevice' if a device can not be opened.
53640 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53642 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53643 `actual' for negativity.
53644 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53647 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53649 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53650 (PAGE_OFFSET): New macro.
53651 (CRTC_ADDR_PORT): Likewise.
53652 (CRTC_DATA_PORT): Likewise.
53653 (START_ADDR_HIGH_REGISTER): Likewise.
53654 (START_ADDR_LOW_REGISTER): Likewise.
53655 (GRAPHICS_ADDR_PORT): Likewise.
53656 (GRAPHICS_DATA_PORT): Likewise.
53657 (READ_MAP_REGISTER): Likewise.
53658 (INPUT_STATUS1_REGISTER): Likewise.
53659 (INPUT_STATUS1_VERTR_BIT): Likewise.
53660 (page): New variable.
53661 (wait_vretrace): New function.
53662 (set_read_map): Likewise.
53663 (set_start_address): Likewise.
53664 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53666 (check_vga_mem): Take the page into account.
53667 (write_char): Likewise.
53668 (write_cursor): Likewise.
53669 (scroll_up): Likewise. Copy the page to the page that is not
53670 shown and switch between both pages.
53671 (grub_vga_putchar): Fix off by one error.
53672 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53675 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53677 Add support for iso9660 (including rockridge).
53679 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53680 (iso9660_mod_SOURCES): New variable.
53681 (iso9660_mod_CFLAGS): Likewise.
53682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53683 * include/grub/fs.h (grub_iso9660_init): New prototype.
53684 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53685 * fs/iso9660.c: New file.
53687 * include/grub/misc.h (grub_strncat): New prototype.
53688 * kern/misc.c (grub_strncat): New function.
53690 * fs/hfs.c (grub_hfs_mount): Translate the error
53691 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53692 * fs/jfs.c (grub_jfs_mount): Likewise.
53693 * fs/ufs.c (grub_ufs_mount): Likewise.
53695 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53697 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53698 which initialized BAT registers.
53699 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53700 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53702 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53703 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53705 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53706 (grub_mapclaim): Likewise.
53707 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53708 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53711 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53713 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53714 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53715 -ffreestanding and -msoft-float.
53717 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53719 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53720 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53721 set in grub_ieee1275_flags.
53723 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53725 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53727 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53728 grub_console_init first.
53729 Change the memory range used for grub_ieee1275_claim and
53730 grub_mm_init_region.
53731 Print an error message if the claim fails.
53732 Include <grub/misc.h>.
53734 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53736 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53737 Call grub_children_iterate for device nodes of type `scsi',
53739 (grub_ofdisk_open): Remove manual device alias resolution.
53740 Fix memory leak when device cannot be opened.
53741 * include/grub/powerpc/ieee1275/ieee1275.h
53742 (grub_children_iterate): New prototype.
53743 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53745 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53746 Return -1 if args.size was -1.
53748 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53750 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53751 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53752 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53753 Open Firmware's memory for it; claim memory from _start to _end.
53754 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53755 (_end): New extern.
53756 (_start): Zero BSS from __bss_start to _end.
53757 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53759 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53761 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53763 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53764 -1 if args.base was -1.
53766 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53768 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53769 escape sequence instead of a literal ^L. Also call
53770 grub_ofconsole_gotoxy.
53772 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53774 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53775 void * arguments to grub_addr_t. All callers updated. Also make
53776 the `result' argument optional.
53777 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53778 All callers updated.
53780 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53782 * commands/ls.c (grub_ls_list_files): Use the string following the
53783 initial ')', if present, as the filesystem path.
53784 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53786 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53788 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53790 Make the source code of the menu interface more readable.
53792 * normal/menu.c: Include grub/mm.h.
53793 (TERM_WIDTH): New macro.
53794 (TERM_HEIGHT): Likewise.
53795 (TERM_INFO_HEIGHT): Likewise.
53796 (TERM_MARGIN): Likewise.
53797 (TERM_SCROLL_WIDTH): Likewise.
53798 (TERM_TOP_BORDER_Y): Likewise.
53799 (TERM_LEFT_BORDER_X): Likewise.
53800 (TERM_BORDER_WIDTH): Likewise.
53801 (TERM_MESSAGE_HEIGHT): Likewise.
53802 (TERM_BORDER_HEIGHT): Likewise.
53803 (TERM_NUM_ENTRIES): Likewise.
53804 (TERM_FIRST_ENTRY_Y): Likewise.
53805 (TERM_ENTRY_WIDTH): Likewise.
53806 (TERM_CURSOR_X): Likewise.
53807 (draw_border): Use macros instead of magic numbers.
53808 (print_entry): Likewise.
53809 (print_entries): Likewise.
53810 (run_menu): Likewise. Also, handle the key 'e'.
53811 (run_menu_entry): Ignore empty command lines.
53812 (print_message): Added a new argument EDIT. If EDIT is true,
53813 print a different message.
53814 (init_page): Likewise.
53815 (edit_menu_entry): New function. Not implemented yet.
53817 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53819 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53820 can be loaded from normal mode.
53822 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53824 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53825 (multiboot_mod_CFLAGS): New variables.
53826 * loader/i386/pc/linux_normal.c: New file.
53827 * loader/i386/pc/multiboot_normal.c: Likewise.
53829 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53830 attribute `unused'.
53832 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53833 `fdiro' to read the mode information from instead of `diro'.
53835 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53836 looking up a symlink.
53838 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53840 * normal/command.c (grub_command_execute): Don't parse the
53841 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53842 flags of the command.
53844 * normal/menu.c (grub_menu_run): Fix typo.
53846 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53848 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53850 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53851 `y + 1' instead of `y - 1'.
53853 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53855 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53857 From Hollis Blanchard <hollis@penguinppc.org>:
53858 * kern/misc.c (memmove): New alias for grub_memmove.
53859 (memcmp): New alias for grub_memcmp.
53860 (memset): New alias for grub_memset.
53861 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53862 Change "int handle" to "grub_ieee1275_phandle_t handle".
53863 * include/grub/powerpc/ieee1275/ieee1275.h
53864 (grub_ieee1275_get_property): Likewise.
53866 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53868 Added normal mode command `chainloader' as module chain.mod, which
53869 depends on normal.mod and _chain.mod.
53871 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53872 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53873 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53875 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53876 but arguments parsing moved to ...
53877 (grub_chainloader_cmd): ... here. New function.
53878 * include/grub/i386/pc/chainloader.h: New file.
53879 * loader/i386/pc/chainloader_normal.c: Likewise.
53881 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53883 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53884 (grub_mkimage_LDFLAGS): Likewise.
53885 (grub_emu_SOURCES): Likewise.
53886 (kernel_img_HEADERS): Added fshelp.h.
53887 * fs/ext2.c: Include <grub/fshelp.h>.
53888 (FILETYPE_REG): New macro.
53889 (FILETYPE_INO_REG): Likewise.
53890 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53892 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53894 (grub_fshelp_node): New struct.
53895 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53897 (grub_ext2_get_file_block): Removed function.
53898 (grub_ext2_read_block): New function.
53899 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53900 This function was written.
53901 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53902 (grub_ext2_find_file): Removed function.
53903 (grub_ext2_read_symlink): New function.
53904 (grub_ext2_iterate_dir): Likewise.
53905 (grub_ext2_open): Rewritten.
53906 (grub_ext2_dir): Rewritten.
53907 * include/grub/fshelp.h: New file.
53908 * fs/fshelp.c: Likewise.
53910 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53912 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53913 (print_message): Add a missing newline.
53914 (run_menu): Added timeout support.
53915 (run_menu_entry): New local function.
53916 (grub_menu_run): Added support for booting.
53918 * kern/loader.c (grub_loader_is_loaded): New function.
53920 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53921 (grub_get_rtc): Exported.
53923 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53924 (grub_get_rtc): Exported.
53926 * include/grub/normal.h (struct grub_command_list): Remove
53927 constant from the member `command'.
53929 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53931 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53933 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53935 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53937 Add support for the JFS filesystem.
53939 * fs/jfs.c: New file.
53940 * include/grub/fs.h (grub_jfs_init): New prototype.
53941 (grub_jfs_fini): New prototype.
53942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53943 (grub_emu_SOURCES): Likewise.
53944 (pkgdata_MODULES): Add jfs.mod.
53945 (jfs_mod_SOURCES): New variable.
53946 (jfs_mod_CFLAGS): Likewise.
53947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53948 (grubof_SOURCES): Likewise.
53949 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53951 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53952 endian to the host endian.
53953 (grub_fat_utf16_to_utf8): Move function from there...
53954 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53955 the endianness of the source string anymore.
53956 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53958 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53960 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53961 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53962 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53963 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53965 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53966 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53967 for `node_found' and `it_dir'.
53968 (grub_hfs_dir): Add prototype for `dir_hook'.
53970 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53971 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53972 and `indir32' to silence a gcc warning.
53974 * include/grub/fs.h (grub_hfs_init): New prototype.
53975 (grub_hfs_fini): Likewise.
53978 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53980 Each disk device has its own id now. This is useful to make use
53981 of multiple disk devices.
53983 * include/grub/disk.h (grub_disk_dev_id): New enum.
53984 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53985 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53987 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53988 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53990 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53991 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53993 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53994 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53996 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53997 "id" which is used by the cache manager.
53999 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54002 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54004 * fs/hfs.c: New file.
54005 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54006 (grub_emu_SOURCES): Likewise.
54007 (pkgdata_MODULES): Add hfs.mod.
54008 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54009 (grubof_SOURCES): Likewise.
54010 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54012 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54013 * kern/misc.c (grub_strncasecmp): Add function.
54015 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54017 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54020 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54021 (grub_ext2_dir): In case the directory entry type is unknown, read
54024 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54026 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54027 grub_load_linux instead of grub_rescue_cmd_linux as second
54028 argument of grub_rescue_register_command.
54030 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54032 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54034 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54036 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54037 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54038 `loader/powerpc/ieee1275/linux.c',
54039 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54040 * include/grub/powerpc/ieee1275/ieee1275.h
54041 (grub_ieee1275_release): New prototype.
54042 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54043 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54044 normal, boot, linux and linux_normal.
54045 * loader/powerpc/ieee1275/linux.c: New file.
54046 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54048 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54050 * normal/arg.c (grub_arg_parse): Correct error handling after
54051 reallocating the argumentlist (check if `argl' is not null instead
54052 of checking if `args' is not null).
54053 * kern/mm.c (grub_realloc): Return the same pointer when using the
54054 same region, instead of returning the header address.
54056 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54058 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54059 one block instead of two when looking for the initial partition.
54060 (grub_partition_probe): Initialize the local variable `p' with 0.
54061 Use base 10 for the grub_strtoul call.
54062 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54063 need for one local variable.
54064 (grub_strtoul): Don't add the new value to `num', instead of that
54067 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54069 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54070 (pxeboot_img_SOURCES): New variable.
54071 (pxeboot_img_ASFLAGS): Likewise.
54072 (pxeboot_img_LDFLAGS): Likewise.
54073 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54074 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54075 <lode_leroy@hotmail.com>.
54077 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54079 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54080 there was no input.
54082 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54084 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54085 the history buffer logic.
54087 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54089 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54090 (FILETYPE_INO_SYMLINK): New macros.
54091 (grub_ext2_find_file): Check if the node is a directory using the
54092 inode stat information instead of using the filetype in the
54093 dirent. Exclude the first character of an absolute symlink.
54094 (grub_ext2_dir): Mask out the filetype part of the mode member of
54097 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54099 Add support for UFS version 1 and 2. Add support for the minix
54100 filesystem version 1 and 2, both the variants with 14 and 30 long
54103 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54105 (grub_emu_SOURCES): Likewise.
54106 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54107 (ufs_mod_SOURCES): New variable.
54108 (ufs_mod_CFLAGS): Likewise.
54109 (minix_mod_SOURCES): Likewise.
54110 (minix_mod_CFLAGS): Likewise.
54111 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54113 (grubof_SOURCES): Likewise.
54114 * fs/ufs.c: New file.
54115 * fs/minix.c: New file.
54116 * include/grub/fs.h (grub_ufs_init): New prototype.
54117 (grub_ufs_fini): Likewise.
54118 (grub_minix_init): Likewise.
54119 (grub_minix_fini): Likewise.
54120 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54123 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54126 commands/ls.c, commands/terminal.c, commands/boot.c,
54127 commands/cmp.c and commands/cat.c.
54128 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54130 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54133 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54135 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54136 and grub_, respectively. Because the conversion is trivial and
54137 mechanical, I omit the details here. Please refer to the CVS
54138 if you need more information.
54140 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54142 * include/pupa: Renamed to ...
54143 * include/grub: ... this.
54144 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54145 * util/i386/pc/grub-mkimage.c: ... this.
54146 * util/i386/pc/pupa-setup.c: Renamed to ...
54147 * util/i386/pc/grub-setup.c: ... this.
54148 * util/pupa-emu.c: Renamed to ...
54149 * util/grub-emu.c: ... this.
54151 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54153 Add support for the newworld apple macintosh (PPC). This has been
54154 tested on the powerbook 2000 only. It only adds support for
54155 generic ieee1275 functions, console and disk support. This should
54156 be easy to port to other architectures with support for Open
54159 * configure.ac: Accept the powerpc as host_cpu. In the case of
54160 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54161 specific tests are only executed while building for the i386.
54162 Inverse test for crosscompile.
54163 * genmk.rb (Utility): Allow assembler files.
54164 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54165 * conf/powerpc-ieee1275.rmk: New file.
54166 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54167 * disk/powerpc/ieee1275/partition.c: Likewise.
54168 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54169 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54170 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54171 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54172 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54173 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54174 * include/pupa/powerpc/ieee1275/loader.h
54175 * include/pupa/powerpc/setjmp.h: Likewise.
54176 * include/pupa/powerpc/types.h: Likewise.
54177 * kern/powerpc/ieee1275/init.c: Likewise.
54178 * kern/powerpc/ieee1275/openfw.c: Likewise.
54179 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54181 These files were written by Johan Rydberg
54182 (jrydberg@night.trouble.net) and I only modified them slightly.
54184 * boot/powerpc/ieee1275/cmain.c: New file.
54185 * boot/powerpc/ieee1275/crt0.S: Likewise.
54186 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54187 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54189 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54191 * Makefile.in: Update copyright.
54192 * genmodsrc.sh: Likewise.
54193 * gensymlist.sh: Likewise.
54194 * term/i386/pc/vga.c: Indent correctly.
54196 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54197 bugreporting address.
54198 * util/i386/pc/pupa-setup.c (usage): Likewise,
54199 (main): Call pupa_ext2_init and pupa_ext2_fini.
54201 * fs/fat.c (log2): Renamed to ...
54202 (fat_log2): ... this.
54203 All callers changed.
54204 * kern/misc.c (memcpy): Alias to pupa_memmove.
54205 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54207 * util/console.c (pupa_ncurses_fini): Return 0.
54209 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54210 Move fail label here.
54211 [__GNU__]: Don't warn when using stat.
54212 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54213 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54214 long int. Use strtol instead of strtoul.
54216 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54218 * commands/boot.c: New file.
54219 * commands/cat.c: Likewise.
54220 * commands/cmp.c: Likewise.
54221 * commands/ls.c: Likewise.
54222 * commands/terminal.c: Likewise.
54223 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54224 (pupa_register_command): Changed interface to match the new
54226 (pupa_command_execute): Changed (almost rewritten) so it uses
54227 pupa_split_command. Added support for setting variables using the
54229 (rescue_command): Changed to work with the new argument parser.
54230 (terminal_command): Moved from here to commands/terminal.c.
54231 (set_command): New function.
54232 (unset_command): New function.
54233 (insmod_command): New function.
54234 (rmmod_command): New function.
54235 (lsmod_command): New function.
54236 (pupa_command_init): Don't initialize the command terminal
54237 anymore. Initialize the commands set, unset, insmod, rmmod and
54239 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54240 (kernel_img_HEADERS): Add arg.h and env.h.
54241 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54242 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54243 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54245 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54247 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54248 (boot_mod_SOURCES): New variable.
54249 (terminal_mod_SOURCES): Likewise.
54250 (ls_mod_SOURCES): Likewise.
54251 (cmp_mod_SOURCES): Likewise.
54252 (cat_mod_SOURCES): Likewise.
54254 * normal/arg.c: New file.
54255 * kern/env.c: Likewise.
54256 * include/pupa/arg.h: Likewise.
54257 * include/pupa/env.h: Likewise.
54258 * font/manager.c (font_command): Changed to match argument parsing
54260 (PUPA_MOD_INIT): Likewise.
54261 * hello/hello.c (pupa_cmd_hello): Likewise.
54262 (PUPA_MOD_INIT): Likewise.
54263 * include/pupa/disk.h: Include <pupa/device.h>.
54264 (pupa_print_partinfo): New prototype.
54265 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54266 (pupa_dl_get_prefix): Likewise.
54267 * include/pupa/misc.h: Include <pupa/err.h>.
54268 (pupa_isgraph): New prototype.
54269 (pupa_isdigit): Likewise.
54270 (pupa_split_cmdline): Likewise.
54271 * include/pupa/normal.h: Include <pupa/arg.h>.
54272 (pupa_command): Changed the prototype of the member `func' to
54273 match the argument parsing interface. Added member `options'.
54274 (pupa_register_command): Updated to match function.
54275 (pupa_arg_parse): New prototype.
54276 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54277 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54278 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54279 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54280 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54281 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54282 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54283 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54284 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54285 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54286 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54287 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54288 * kern/disk.c: Include <pupa/file.h>.
54289 (pupa_print_partinfo): New function.
54290 * kern/dl.c: Include <pupa/env.h>.
54291 (pupa_dl_dir): Variable removed.
54292 (pupa_dl_load): Use the environment variable `prefix' instead of
54293 the variable pupa_dl_dir.
54294 (pupa_dl_set_prefix): Function removed.
54295 (pupa_dl_get_prefix): Likewise.
54296 * kern/i386/pc/init.c: Include <pupa/env.h>.
54297 (pupa_machine_init): Use the environment variable `prefix' instead of
54298 using pupa_dl_set_prefix to set the prefix.
54299 * kern/main.c: Include <pupa/env.h>.
54300 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54301 using pupa_dl_get_prefix to get the prefix.
54302 * kern/misc.c: Include <pupa/env.h>.
54303 (pupa_isdigit): New function.
54304 (pupa_isgraph): Likewise.
54305 (pupa_ftoa): Likewise.
54306 (pupa_vsprintf): Added support for printing values of the type
54307 `double'. Make it possible to format variable output when using
54308 formatting like `%1.2%f'.
54309 (pupa_split_cmdline): New function.
54310 * kern/rescue.c: Include <pupa/env.h>.
54311 (next_word): Removed function.
54312 (pupa_rescue_cmd_prefix): Likewise.
54313 (pupa_rescue_cmd_set): New function.
54314 (pupa_rescue_cmd_unset): New function.
54315 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54316 split the command line instead of splitting it here. Added
54317 support for setting variables using the syntax `foo=bar'. Don't
54318 initialize the prefix command anymore. Initialized the set and
54320 * normal/cmdline.c: Include <pupa/env.h>.
54321 (pupa_tab_complete): Added prototypes for print_simple_completion,
54322 print_partition_completion, add_completion, iterate_commands,
54323 iterate_dev, iterate_part and iterate_dir. Moved code to print
54324 partition information from here to kern/disk.c.
54325 (pupa_cmdline_run): Don't check if the function exists anymore.
54326 * normal/main.c: Include <pupa/env.h>.
54327 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54328 instead of using pupa_dl_get_prefix to get the prefix.
54329 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54330 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54332 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54333 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54334 ((unused))' to silence a gcc warning.
54335 (pupa_vga_setcolor): Likewise.
54336 (debug_command): Changed to match argument parsing
54338 * util/pupa-emu.c: Include <pupa/env.h>.
54339 (options): Added 0's for unused fields to silence a gcc warning.
54341 (main): Use the environment variable `prefix' instead of using
54342 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54343 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54346 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54347 * util/misc.c: Include <malloc.h>.
54348 (pupa_malloc): Rewritten so errors are correctly reported.
54349 (pupa_realloc): Likewise.
54350 (pupa_memalign): Likewise.
54351 (pupa_mm_init_region): Declare unused variables with
54352 `__attribute__ ((unused))' to silence a gcc warning.
54353 * normal/i386/setjmp.S: Remove tab at the end of the file to
54354 silence a gcc warning.
54355 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54356 variables with `__attribute__ ((unused))' to silence a gcc
54358 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54359 local variable i unsigned to silence a gcc warning.
54361 * kern/term.c: Include <pupa/misc.h>.
54362 (pupa_more_lines): New variable.
54363 (pupa_more): Likewise.
54364 (pupa_putcode): When the pager is active pause at the end of every
54366 (pupa_set_more): New function.
54367 * include/pupa/term.h (pupa_set_more): New prototype.
54370 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54372 Now this project is GRUB 2 rather than PUPA. The location of
54373 the CVS repository was moved to GRUB's.
54375 * configure.ac: Use bug-grub as the reporting address.
54376 Use GRUB instead of PUPA.
54377 Change the version number to 1.90.
54379 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54381 * genkernsyms.sh: Updated copyright information.
54382 * genmk.rb: Likewise.
54383 * genmodsrc.sh: Likewise.
54384 * gensymlist.sh: Likewise.
54385 * boot/i386/pc/boot.S: Likewise.
54386 * boot/i386/pc/diskboot.S: Likewise.
54387 * disk/i386/pc/biosdisk.c: Likewise.
54388 * disk/i386/pc/partition.c: Likewise.
54389 * font/manager.c: Likewise.
54390 * fs/ext2.c: Likewise.
54391 * fs/fat.c: Likewise.
54392 * include/pupa/boot.h: Likewise.
54393 * include/pupa/device.h: Likewise.
54394 * include/pupa/disk.h: Likewise.
54395 * include/pupa/dl.h: Likewise.
54396 * include/pupa/elf.h: Likewise.
54397 * include/pupa/err.h: Likewise.
54398 * include/pupa/file.h: Likewise.
54399 * include/pupa/font.h: Likewise.
54400 * include/pupa/fs.h: Likewise.
54401 * include/pupa/kernel.h: Likewise.
54402 * include/pupa/loader.h: Likewise.
54403 * include/pupa/misc.h: Likewise.
54404 * include/pupa/mm.h: Likewise.
54405 * include/pupa/net.h: Likewise.
54406 * include/pupa/normal.h: Likewise.
54407 * include/pupa/rescue.h: Likewise.
54408 * include/pupa/setjmp.h: Likewise.
54409 * include/pupa/symbol.h: Likewise.
54410 * include/pupa/term.h: Likewise.
54411 * include/pupa/types.h: Likewise.
54412 * include/pupa/i386/setjmp.h: Likewise.
54413 * include/pupa/i386/types.h: Likewise.
54414 * include/pupa/i386/pc/biosdisk.h: Likewise.
54415 * include/pupa/i386/pc/boot.h: Likewise.
54416 * include/pupa/i386/pc/console.h: Likewise.
54417 * include/pupa/i386/pc/init.h: Likewise.
54418 * include/pupa/i386/pc/kernel.h: Likewise.
54419 * include/pupa/i386/pc/linux.h: Likewise.
54420 * include/pupa/i386/pc/loader.h: Likewise.
54421 * include/pupa/i386/pc/memory.h: Likewise.
54422 * include/pupa/i386/pc/multiboot.h: Likewise.
54423 * include/pupa/i386/pc/partition.h: Likewise.
54424 * include/pupa/i386/pc/time.h: Likewise.
54425 * include/pupa/i386/pc/vga.h: Likewise.
54426 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54427 * include/pupa/util/getroot.h: Likewise.
54428 * include/pupa/util/misc.h: Likewise.
54429 * include/pupa/util/resolve.h: Likewise.
54430 * kern/device.c: Likewise.
54431 * kern/disk.c: Likewise.
54432 * kern/dl.c: Likewise.
54433 * kern/err.c: Likewise.
54434 * kern/file.c: Likewise.
54435 * kern/fs.c: Likewise.
54436 * kern/loader.c: Likewise.
54437 * kern/main.c: Likewise.
54438 * kern/misc.c: Likewise.
54439 * kern/mm.c: Likewise.
54440 * kern/rescue.c: Likewise.
54441 * kern/term.c: Likewise.
54442 * kern/i386/dl.c: Likewise.
54443 * kern/i386/pc/init.c: Likewise.
54444 * kern/i386/pc/lzo1x.S: Likewise.
54445 * kern/i386/pc/startup.S: Likewise.
54446 * loader/i386/pc/chainloader.c: Likewise.
54447 * loader/i386/pc/linux.c: Likewise.
54448 * loader/i386/pc/multiboot.c: Likewise.
54449 * normal/cmdline.c: Likewise.
54450 * normal/command.c: Likewise.
54451 * normal/main.c: Likewise.
54452 * normal/menu.c: Likewise.
54453 * normal/i386/setjmp.S: Likewise.
54454 * term/i386/pc/console.c: Likewise.
54455 * term/i386/pc/vga.c: Likewise.
54456 * util/console.c: Likewise.
54457 * util/genmoddep.c: Likewise.
54458 * util/misc.c: Likewise.
54459 * util/pupa-emu.c: Likewise.
54460 * util/resolve.c: Likewise.
54461 * util/unifont2pff.rb: Likewise.
54462 * util/i386/pc/biosdisk.c: Likewise.
54463 * util/i386/pc/getroot.c: Likewise.
54464 * util/i386/pc/pupa-mkimage.c: Likewise.
54465 * util/i386/pc/pupa-setup.c: Likewise.
54467 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54469 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54470 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54471 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54472 reading and reset it after reading.
54473 (pupa_ext2_close): Return PUPA_ERR_NONE.
54475 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54477 (struct linux_kernel_header): Add kernel_version and
54479 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54480 pupa_file_read succeeds.
54481 (pupa_rescue_cmd_initrd): Implement.
54483 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54485 * fs/ext2.c (pupa_ext2_label): New function.
54486 (pupa_ext2_fs): Added label.
54487 * fs/fat.c (pupa_fat_label): New function.
54488 (pupa_fat_fs): Added label.
54489 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54491 * kern/misc.c (pupa_strndup): New function.
54492 * include/pupa/misc.h (pupa_strndup): New prototype.
54494 * include/pupa/normal.h: Include <pupa/err.h>.
54495 (pupa_set_history): New prototype.
54496 (pupa_iterate_commands): New prototype.
54497 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54498 <pupa/disk.h>, <pupa/file.h>.
54499 (hist_size): New variable.
54500 (hist_lines): Likewise.
54501 (hist_end): Likewise.
54502 (hist_used): Likewise.
54503 (pupa_set_history): New function.
54504 (pupa_history_get): Likewise.
54505 (pupa_history_add): Likewise.
54506 (pupa_history_replace): Likewise.
54507 (pupa_tab_complete): Likewise.
54508 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54509 completion shows partitionnames while completing partitions, this
54510 feature was suggested by Jeff Bailey.
54511 * normal/command.c (pupa_iterate_commands): New function.
54512 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54513 (pupa_normal_init): Initialize history buffer.
54514 (PUPA_MOD_INIT): Likewise.
54515 (pupa_normal_fini): Free the history buffer.
54516 (PUPA_MOD_FINI): Likewise.
54518 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54521 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54522 * configure.ac [i386]: Check for regparam bug.
54523 (NESTED_FUNC_ATTR) [! i386]: Defined.
54525 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54527 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54528 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54529 (pupa_emu_SOURCES): New variable.
54530 (pupa_emu_LDFLAGS): Likewise.
54531 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54532 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54533 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54534 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54535 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54536 (pupa_jmp_buf): New typedef.
54537 (pupa_setjmp) [PUPA_UTIL]: New macro.
54538 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54539 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54540 (pupa_refresh): New prototype.
54541 * include/pupa/util/getroot.h: New file.
54542 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54544 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54545 (pupa_rescue_cmd_cat): Likewise.
54546 (pupa_rescue_cmd_ls): Likewise.
54547 (pupa_rescue_cmd_testload): Likewise.
54548 (pupa_rescue_cmd_lsmod): Likewise.
54549 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54550 * normal/menu.c (run_menu): Likewise.
54551 * kern/term.c (pupa_cls): Likewise.
54552 (pupa_refresh): New function.
54553 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54554 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54555 * util/console.c: New file.
54557 * util/i386/pc/getroot.c: New file.
54558 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54559 (pupa_putchar): New function.
54560 (pupa_refresh): Likewise.
54561 (xgetcwd): Function moved to ...
54562 (strip_extra_slashes): Likewise.
54563 (get_prefix): Likewise.
54564 * util/i386/pc/getroot.c: ... here.
54565 (find_root_device): Function moved and renamed to...
54566 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54567 Changed all callers.
54568 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54570 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54571 Changed all callers.
54572 * util/misc.c (pupa_memalign): New function.
54573 (pupa_mm_init_region): Likewise.
54574 (pupa_register_exported_symbols): Likewise.
54575 (pupa_putchar): Function removed.
54576 * util/pupa-emu.c: New file.
54578 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54580 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54581 (_multiboot_mod_SOURCES): New variable.
54582 (_multiboot_mod_CFLAGS): Likewise.
54583 * loader/i386/pc/multiboot.c: New file.
54584 * include/pupa/i386/pc/multiboot.h: Likewise.
54585 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54586 (pupa_multiboot_real_boot): New function.
54587 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54588 (pupa_multiboot_real_boot): New prototype.
54589 (pupa_rescue_cmd_multiboot): Likewise
54590 (pupa_rescue_cmd_module): Likewise.
54592 * kern/loader.c (pupa_loader_set): Continue when
54593 pupa_loader_unload_func() fails.
54594 (pupa_loader_unset): New function.
54595 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54597 * kern/misc.c (pupa_stpcpy): New function.
54598 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54600 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54602 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54603 for available extensions.
54605 * include/pupa/i386/pc/time.h: New file.
54606 * kern/disk.c: Include <pupa/machine/time.h>.
54607 (PUPA_CACHE_TIMEOUT): New macro.
54608 (pupa_last_time): New variable.
54609 (pupa_disk_open): Flush the cache when there was a timeout.
54610 (pupa_disk_close): Reset the timer.
54611 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54613 * util/misc.c: Include <sys/times.h>
54614 (pupa_get_rtc): New function.
54616 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54618 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54620 (pupa_ext2_get_file_block): Use blocks member.
54622 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54623 first block. Return -1 instead of pupa_errno on error.
54625 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54627 * README: In the pupa-mkimage example use _chain instead of chain
54628 and ext2 instead of fat.
54629 * TODO: Replace ext2fs with jfs as an example. Add an item for
54630 adding journal playback for ext2fs.
54631 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54632 (pkgdata_MODULES): Added ext2.mod.
54633 (ext2_mod_SOURCES): New variable.
54634 (ext2_mod_CFLAGS): Likewise.
54635 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54636 * include/pupa/misc.h (pupa_strncpy): New prototype.
54637 (pupa_strcat): Likewise.
54638 (pupa_strncmp): Likewise.
54639 * kern/misc.c (pupa_strcat): Enable function.
54640 (pupa_strncpy): New function.
54641 (pupa_strncmp): Likewise.
54642 * fs/ext2.c: New file.
54644 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54645 when the read failed before retrying.
54646 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54647 (_FILE_OFFSET_BITS): Likewise.
54648 * configure.ac: Added AC_SYS_LARGEFILE.
54650 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54652 * genmk.rb (PModule#rule): Make sure to get only symbol names
54653 from the output of nm.
54654 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54656 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54658 I forgot to check in these changes for a long time. This adds
54659 incomplete support for VGA console, and this is still very
54660 buggy. Also, a lot of consideration is required for I18N,
54661 UNICODE, and VGA font issues. Therefore, assume that this is
54662 such that "better than nothing".
54664 * font/manager.c: New file.
54665 * include/pupa/font.h: Likewise.
54666 * include/pupa/i386/pc/vga.h: Likewise.
54667 * term/i386/pc/vga.c: Likewise.
54668 * util/unifont2pff.rb: Likewise.
54670 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54671 (pkgdata_MODULES): Added vga.mod and font.mod.
54672 (vga_mod_SOURCES): New variables.
54673 (vga_mod_CFLAGS): Likewise.
54674 (font_mod_SOURCES): Likewise.
54675 (font_mod_CFLAGS): Likewise.
54677 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54679 * include/pupa/term.h: Include pupa/err.h.
54680 (struct pupa_term): Added init and fini.
54681 Changed the argument of putchar to pupa_uint32_t.
54683 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54684 (pupa_console_real_putchar): New prototype.
54685 (pupa_console_putchar): Removed.
54686 (pupa_console_checkkey): Exported.
54687 (pupa_console_getkey): Likewise.
54689 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54692 * kern/term.c (pupa_term_set_current): Rewritten.
54693 (pupa_putchar): Likewise.
54694 (pupa_putcode): New function.
54696 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54697 (pupa_console_real_putchar): ... this.
54698 (pupa_vga_set_mode): New function.
54699 (pupa_vga_get_font): Likewise.
54701 * normal/command.c: Include pupa/term.h.
54702 (terminal_command): New function.
54703 (pupa_command_init): Register the command "terminal".
54705 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54706 (DISP_UP): Likewise.
54707 (DISP_RIGHT): Likewise.
54708 (DISP_DOWN): Likewise.
54709 (DISP_HLINE): Likewise.
54710 (DISP_VLINE): Likewise.
54711 (DISP_UL): Likewise.
54712 (DISP_UR): Likewise.
54713 (DISP_LL): Likewise.
54714 (DISP_LR): Likewise.
54716 * term/i386/pc/console.c (pupa_console_putchar): New function.
54718 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54720 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54721 FIX. Reverse the path_list.
54723 * include/pupa/normal.h: Export pupa_register_command and
54724 pupa_unregister_command.
54726 * hello/hello.c (pupa_cmd_hello): New module.
54727 * conf/i386-pc.rmk: Added hello.mod.
54729 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54731 * kern/i386/pc/lzo1x.S: New file.
54733 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54734 (compress_kernel): New variable.
54735 (generate_image): Heavily modified to support compressing a
54736 large part of the core image.
54738 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54740 (pupa_util_load_image): New function.
54742 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54743 (pupa_compressed_size): New variable.
54744 (codestart): Enable Gate A20 here.
54745 Decompress the compressed part of the core image.
54746 Rearrange the code to put functions and variables which are
54747 required for initialization in the non-compressed part.
54750 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54753 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54755 * include/pupa/i386/pc/kernel.h
54756 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54757 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54758 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54759 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54760 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54762 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54764 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54765 (Utility#rule): Likewise.
54767 * configure.ac: Check if LZO is available.
54769 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54771 * include/pupa/normal.h: New file.
54772 * include/pupa/setjmp.h: Likewise.
54773 * include/pupa/i386/setjmp.h: Likewise.
54774 * normal/cmdline.c: Likewise.
54775 * normal/command.c: Likewise.
54776 * normal/main.c: Likewise.
54777 * normal/menu.c: Likewise.
54778 * normal/i386/setjmp.S: Likewise.
54780 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54781 (pupa_rescue_cmd_initrd): Likewise.
54783 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54786 * kern/i386/pc/startup.S (translation_table): New variable.
54787 (translate_keycode): New function.
54788 (pupa_console_getkey): Call translate_keycode.
54790 * kern/rescue.c (attempt_normal_mode): New function.
54791 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54792 it failed, print a message.
54794 * kern/mm.c (pupa_real_malloc): Print more information when a
54795 free magic is broken.
54796 (pupa_free): If the first free header is not free actually, set
54799 * kern/main.c (pupa_load_normal_mode): Just load the module
54801 (pupa_main): Don't print the message
54802 "Entering into rescue mode..." here.
54804 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54806 (pupa_rescue_cmd_initrd): Likewise.
54807 (pupa_rescue_cmd_initrd): Likewise.
54809 * include/pupa/symbol.h (FUNCTION): Specify the type.
54810 (VARIABLE): Likewise.
54812 * include/pupa/err.h (pupa_err_t): Added
54813 PUPA_ERR_UNKNOWN_COMMAND.
54815 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54816 (pupa_dl_get_prefix): Likewise.
54818 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54819 Added _chain.mod and _linux.mod instead of chain.mod and
54821 (chain_mod_SOURCES): Renamed to ...
54822 (_chain_mod_SOURCES): ... this.
54823 (chain_mod_CFLAGS): Renamed to ...
54824 (_chain_mod_CFLAGS): ... this.
54825 (linux_mod_SOURCES): Renamed to ...
54826 (_linux_mod_SOURCES): ... this.
54827 (linux_mod_CFLAGS): Renamed to ...
54828 (_linux_mod_CFLAGS): ... this.
54829 (normal_mod_SOURCES): New variable.
54830 (normal_mod_CFLAGS): Likewise.
54831 (normal_mod_ASFLAGS): Likewise.
54833 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54835 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54838 * kern/dl.c (pupa_dl_ref): Refer depending modules
54840 (pupa_dl_unref): Unrefer depending modules recursively.
54841 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54842 a module is unloaded before one depending on that module is
54844 (pupa_dl_unload): Unload depending modules explicitly,
54847 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54849 * include/pupa/i386/pc/linux.h: New file.
54850 * loader/i386/pc/linux.c: Likewise.
54852 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54854 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54855 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54856 of PUPA_CHAINLOADER_BOOT_SECTOR.
54858 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54859 (pupa_linux_prot_size): New variable.
54860 (pupa_linux_tmp_addr): Likewise.
54861 (pupa_linux_real_addr): Likewise.
54862 (pupa_linux_boot_zimage): New function.
54863 (pupa_linux_boot_bzimage): Likewise.
54865 * kern/i386/pc/init.c (struct mem_region): New structure.
54866 (MAX_REGIONS): New macro.
54867 (mem_regions): New variable.
54868 (num_regions): Likewise.
54869 (pupa_os_area_addr): Likewise.
54870 (pupa_os_area_size): Likewise.
54871 (pupa_lower_mem): Likewise.
54872 (pupa_upper_mem): Likewise.
54873 (add_mem_region): New function.
54874 (compact_mem_regions): Likewise.
54875 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54876 the size of the conventional memory and that of so-called upper
54877 memory (before the first memory hole).
54878 Instead of adding each found region to free memory, use
54879 add_mem_region and add them after removing overlaps.
54880 Also, add only 1/4 of the upper memory to free memory. The rest
54881 is used for loading OS images. Maybe this is ad hoc, but this
54882 makes it much easier to relocate OS images when booting.
54884 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54885 (pupa_enter_rescue_mode): Don't register initrd and module.
54887 * kern/mm.c: Include pupa/dl.h.
54889 * kern/main.c: Include pupa/file.h and pupa/device.h.
54891 * kern/loader.c (pupa_loader_load_module_func): Removed.
54892 (pupa_loader_load_module): Likewise.
54894 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54897 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54898 (pupa_linux_tmp_addr): Likewise.
54899 (pupa_linux_real_addr): Likewise.
54900 (pupa_linux_boot_zimage): Likewise.
54901 (pupa_linux_boot_bzimage): Likewise.
54903 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54904 (pupa_upper_mem): Likewise.
54905 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54906 module is too dangerous.
54908 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54909 (pupa_os_area_size): Likewise.
54910 (pupa_loader_set): Remove the first argument. Loader doesn't
54911 manage modules or initrd any longer.
54912 (pupa_loader_load_module): Removed.
54914 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54915 (linux_mod_SOURCES): New variable.
54916 (linux_mod_CFLAGS): Likewise.
54918 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54920 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54921 the length of a blocklist correctly.
54923 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54924 Use ioctl only if the OS file is a block device.
54925 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54926 not very useful for normal files.
54928 * kern/main.c (pupa_set_root_dev): New function.
54929 (pupa_load_normal_mode): Likewise.
54930 (pupa_main): Call those above.
54932 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54935 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54937 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54939 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54940 (setup): Configure the installed partition information and the
54943 * loader/i386/pc/chainloader.c (my_mod): New variable.
54944 (pupa_chainloader_unload): New function.
54945 (pupa_rescue_cmd_chainloader): Refer itself.
54946 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54948 * kern/i386/pc/startup.S (install_partition): Removed.
54949 (version_string): Likewise.
54950 (config_file): Likewise.
54951 (pupa_install_dos_part): New variable.
54952 (pupa_install_bsd_part): Likewise.
54953 (pupa_prefix): Likewise.
54954 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54956 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54958 (make_install_device): New function.
54959 (pupa_machine_init): Set the dl prefix.
54961 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54962 (buf): Renamed to ...
54963 (linebuf): ... this.
54964 (pupa_rescue_cmd_prefix): New function.
54965 (pupa_rescue_cmd_insmod): Likewise.
54966 (pupa_rescue_cmd_rmmod): Likewise.
54967 (pupa_rescue_cmd_lsmod): Likewise.
54968 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54971 * kern/mm.c (pupa_memalign): If failed even after invalidating
54972 disk caches, unload unneeded modules and retry.
54974 * kern/misc.c (pupa_memmove): New function.
54975 (pupa_memcpy): Removed.
54976 (pupa_strcpy): New function.
54977 (pupa_itoa): Made static.
54979 * kern/dl.c (pupa_dl_iterate): New function.
54980 (pupa_dl_ref): Likewise.
54981 (pupa_dl_unref): Likewise.
54982 (pupa_dl_unload): Return if succeeded or not.
54983 (pupa_dl_unload_unneeded): New function.
54984 (pupa_dl_unload_all): Likewise.
54985 (pupa_dl_init): Renamed to ...
54986 (pupa_dl_set_prefix): ... this.
54987 (pupa_dl_get_prefix): New function.
54989 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54990 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54991 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54992 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54993 (pupa_install_dos_part): Declared.
54994 (pupa_install_bsd_part): Likewise.
54995 (pupa_prefix): Likewise.
54996 (pupa_boot_drive): Likewise.
54998 * include/pupa/types.h: Fix a typo.
55000 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55002 (pupa_memmove): Declared.
55003 (pupa_strcpy): Likewise.
55005 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55006 pupa_mod_init takes one argument, its own module.
55007 (pupa_dl_unload_unneeded): Declared.
55008 (pupa_dl_unload_all): Likewise.
55009 (pupa_dl_ref): Likewise.
55010 (pupa_dl_unref): Likewise.
55011 (pupa_dl_iterate): Likewise.
55012 (pupa_dl_init): Renamed to ...
55013 (pupa_dl_set_prefix): ... this.
55014 (pupa_dl_get_prefix): Declared.
55016 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55017 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55019 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55020 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55022 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55023 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55025 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55027 * util/i386/pc/pupa-setup.c (setup): Define the internal
55028 function find_first_partition_start at the top level, because GCC
55029 3.0.x cannot compile internal functions in deeper scopes
55031 (find_root_device): Use lstat instead of stat.
55032 Don't follow symbolic links.
55033 Fix the path-constructing code.
55035 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55036 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55037 by a BLKGETSIZE ioctl first, because block devices don't fill
55038 the member st_mode of the structure stat on Linux.
55039 [__linux__] (linux_find_partition): Use a temporary buffer
55040 REAL_DEV for the working space. Copy it to DEV before returning.
55041 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55042 buffer cache consistent.
55043 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55044 strncmp. The previous value was merely wrong.
55045 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55047 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55048 FAT size is 12. The previous value was merely wrong.
55050 * kern/main.c (pupa_main): Don't split the starting message from
55053 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55054 LF, because BIOS goes crazy about character attributes in this
55057 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55059 * include/i386/pc/util/biosdisk.h: New file.
55060 * util/i386/pc/biosdisk.c: Likewise.
55061 * util/i386/pc/pupa-setup.c: Likewise.
55063 * Makefile.in (INCLUDE_DISTFILES): Added
55064 include/pupa/i386/pc/util/biosdisk.h.
55065 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55066 directory util/i386/pc.
55067 (install-local): Added a rule for sbin_UTILITIES.
55068 (uninstall): Likewise.
55070 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55072 * util/misc.c (xrealloc): New function.
55073 (pupa_malloc): Likewise.
55074 (pupa_free): Likewise.
55075 (pupa_realloc): Likewise.
55076 (pupa_stop): Likewise.
55077 (pupa_putchar): Likewise.
55079 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55081 * include/pupa/util/misc.h (xrealloc): Declared.
55083 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55085 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55086 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55088 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55089 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55091 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55092 way should be implemented.
55093 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55095 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55096 the size of NAME for safety.
55097 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55100 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55101 (pupa_setup_SOURCES): Likewise.
55103 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55105 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55107 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55108 bunch of pushl's from pusha, because this destroys the return
55111 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55113 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55114 This means that any missing prototypes could be fatal. Also, you
55115 must take care when writing assembly code. See the comments at
55116 the beginning of startup.S, for more details.
55118 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55119 compilation mechanism.
55120 (pupa_chainloader_real_boot): Likewise.
55121 (pupa_biosdisk_rw_int13_extensions): Likewise.
55122 (pupa_biosdisk_rw_standard): Likewise.
55123 (pupa_biosdisk_check_int13_extensions): Likewise.
55124 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55125 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55126 (pupa_get_memsize): Likewise.
55127 (pupa_get_mmap_entry): Likewise.
55128 (pupa_console_putchar): Likewise.
55129 (pupa_console_setcursor): Likewise.
55130 (pupa_getrtsecs): Use pushl instead of push.
55132 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55133 memory instead of the stack for a mmap entry, because some
55134 BIOSes may ignore the maximum size and overflow.
55136 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55138 * genmk.rb (PModule#rule): Compile automatically generated
55139 sources with module-specific CFLAGS as well as other sources.
55141 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55143 * configure.ac: Check ld.
55144 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55145 respectively, before checking endianness and sizes.
55147 * Makefile.in (LD): New variable.
55149 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55151 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55153 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55155 * Changelog: New file.